src-attribute3-2-st_0.xsd 600 B

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!-- 3.2.3 : 3.2
  3. If ref is present, then all of <simpleType>, form and type must be absent
  4. This one tests <simpleType>
  5. -->
  6. <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://foo" xmlns:foo="http://foo">
  7. <element name="foo">
  8. <complexType>
  9. <attribute ref="foo:bar">
  10. <simpleType>
  11. <restriction base="string">
  12. <maxLength value="20"/>
  13. </restriction>
  14. </simpleType>
  15. </attribute>
  16. </complexType>
  17. </element>
  18. <attribute name="bar" type="string" />
  19. </schema>