derivation-ok-extension_0.xsd 612 B

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns="http://FOO" targetNamespace="http://FOO">
  4. <xs:element name="foo">
  5. <xs:complexType>
  6. <xs:complexContent>
  7. <xs:extension base="typeA">
  8. <xs:attribute name="barA_2" type="xs:string" use="required"/>
  9. <xs:attribute name="barA_1" type="xs:string" use="prohibited"/>
  10. </xs:extension>
  11. </xs:complexContent>
  12. </xs:complexType>
  13. </xs:element>
  14. <xs:complexType name="typeA">
  15. <xs:attribute name="barA_1" type="xs:string" use="required"/>
  16. </xs:complexType>
  17. </xs:schema>