<?xml version="1.0" encoding="utf-8"?>
<!-- 

    Copyright (C) 2006 W3C (R) (MIT ERCIM Keio), All Rights Reserved.
    W3C liability, trademark and document use rules apply.

    http://www.w3.org/Consortium/Legal/ipr-notice
    http://www.w3.org/Consortium/Legal/copyright-documents

    $Header: /w3ccvs/WWW/2002/ws/databinding/edcopy/patterns/examples2xsd.xsl,v 1.5 2007/04/19 11:17:25 pdowney Exp $

-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:p="http://www.w3.org/2002/ws/databinding/patterns/6/09/"
    xmlns:e="http://www.w3.org/2002/ws/databinding/examples/6/09/"
    xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/">
  
  <xsl:output method="xml" indent="yes" encoding="UTF-8" />

  <xsl:param name="status" select="'all'"/>

    <xsl:template match="/">
<xsl:comment>

    Copyright (C) 2006 W3C (R) (MIT ERCIM Keio), All Rights Reserved.
    W3C liability, trademark and document use rules apply.

    http://www.w3.org/Consortium/Legal/ipr-notice
    http://www.w3.org/Consortium/Legal/copyright-documents

    Generated from: <xsl:value-of select="//ex:version"/>

</xsl:comment>
	<xs:schema targetNamespace="{e:examples/@targetNamespace}" 
	    elementFormDefault='qualified' attributeFormDefault='unqualified'>
	    <xsl:apply-templates select="//e:typedef"/>
	</xs:schema>
    </xsl:template>

    <xsl:template match="e:typedef">
	<xsl:copy-of select="./*"/>
    </xsl:template>

</xsl:stylesheet>
