src-element3_0.xsd 724 B

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!-- 3.2.3 : 3
  3. type and either <simpleType> or <complexType> are mutually exclusive
  4. -->
  5. <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://foo" xmlns:foo="http://foo">
  6. <element name="foo" type="foo:someType">
  7. <complexType>
  8. <sequence>
  9. <element name="bar" type="string"/>
  10. </sequence>
  11. </complexType>
  12. </element>
  13. <element name="bar" type="foo:someType">
  14. <simpleType>
  15. <restriction base="string">
  16. <maxLength value="20"/>
  17. </restriction>
  18. </simpleType>
  19. </element>
  20. <complexType name="someType">
  21. <sequence>
  22. <element name="bar" type="string"/>
  23. </sequence>
  24. </complexType>
  25. </schema>