bug141333.xsd 616 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified">
  3. <xs:element name="foo" type="baseType"/>
  4. <xs:complexType name="baseType">
  5. <xs:all>
  6. <xs:element name="bar" type="derivedType" minOccurs="0"/>
  7. </xs:all>
  8. <xs:attribute name="attrA" type="xs:string" use="required"/>
  9. </xs:complexType>
  10. <xs:complexType name="derivedType">
  11. <xs:complexContent>
  12. <xs:extension base="baseType">
  13. <xs:attribute name="attrB" type="xs:string" use="required"/>
  14. </xs:extension>
  15. </xs:complexContent>
  16. </xs:complexType>
  17. </xs:schema>