<!DOCTYPE xsd:schema 
  PUBLIC "-//W3C//DTD XMLSCHEMA 200105//EN"
         "http://www.w3.org/2001/XMLSchema.dtd" [
<!ENTITY % schemaAttrs "
  xmlns:tns CDATA #IMPLIED
  xmlns:xsd CDATA #IMPLIED"
>
<!ENTITY % p "xsd:">
<!ENTITY % s ":xsd">
<!ENTITY % html-for-documentation SYSTEM
  "ancillary/xhtml-for-annotation.dtd">
%html-for-documentation;

]>
<xsd:schema 
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
 xmlns:tns="http://www.w3.org/XML/2008/xsdl-exx/ns1" 
 targetNamespace="http://www.w3.org/XML/2008/xsdl-exx/ns1"
 elementFormDefault="qualified" 
 >
 <xsd:annotation>
  <xsd:documentation>
   <div xmlns="http://www.w3.org/1999/xhtml"
   >
    <p>Sample schema for discussion and testing purposes.
     2 January 2007.  Based on an example by Xan Gregg, published 
     at <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=5074#c2"
      >comment 2 of bug 5074</a> of the W3C's public Bugzilla
     instance.</p>
    <p>
     This schema tests the validator's interpretation of the rule
     that says elements in a substitution group must have types
     derived from that of the substitution group head.
    </p>
   </div>
  </xsd:documentation>
 </xsd:annotation>

 <xsd:element name="test">
  <xsd:complexType>
   <xsd:sequence maxOccurs="unbounded">
    <xsd:element ref="tns:ea"/>
   </xsd:sequence>
  </xsd:complexType>
 </xsd:element>	

 <xsd:complexType name="ta">
  <xsd:sequence>
   <xsd:element name="a" minOccurs="0"/>
  </xsd:sequence>
 </xsd:complexType>

 <xsd:complexType name="t0">
  <xsd:complexContent>
   <xsd:restriction base="tns:ta">
    <xsd:sequence/>
   </xsd:restriction>
  </xsd:complexContent>
 </xsd:complexType>

 <xsd:complexType name="tb">
  <xsd:complexContent>
   <xsd:extension base="tns:t0">
    <xsd:sequence>
     <xsd:element name="b" minOccurs="0"/>
    </xsd:sequence>
   </xsd:extension>
  </xsd:complexContent>
 </xsd:complexType>
 
 <xsd:element name="ea" type="tns:ta"/>
 <xsd:element name="e0" substitutionGroup="tns:ea"/>
 <xsd:element name="eb" substitutionGroup="tns:e0"/>
 
</xsd:schema>
<!-- Keep this comment at the end of the file
Local variables: 
mode: xml 
sgml-default-dtd-file:nil 
sgml-omittag:t 
sgml-shorttag:t 
End:
-->

