vdv-first3_0.xsd 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- $Header: /home/cvsroot/w3c-xml-schema/user/examples/first-token.xsd,v 1.2 2001/11/01 12:27:47 vdv Exp $ -->
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  4. <xs:element name="name" type="xs:token"/>
  5. <xs:element name="qualification" type="xs:token"/>
  6. <xs:element name="born" type="xs:date"/>
  7. <xs:element name="dead" type="xs:date"/>
  8. <xs:element name="isbn" type="xs:unsignedLong"/>
  9. <xs:attribute name="id" type="xs:ID"/>
  10. <xs:attribute name="available" type="xs:boolean"/>
  11. <xs:attribute name="lang" type="xs:language"/>
  12. <xs:element name="title">
  13. <xs:complexType>
  14. <xs:simpleContent>
  15. <xs:extension base="xs:token">
  16. <xs:attribute ref="lang"/>
  17. </xs:extension>
  18. </xs:simpleContent>
  19. </xs:complexType>
  20. </xs:element>
  21. <xs:element name="library">
  22. <xs:complexType>
  23. <xs:sequence>
  24. <xs:element ref="book" maxOccurs="unbounded"/>
  25. </xs:sequence>
  26. </xs:complexType>
  27. </xs:element>
  28. <xs:element name="author">
  29. <xs:complexType>
  30. <xs:sequence>
  31. <xs:element ref="name"/>
  32. <xs:element ref="born"/>
  33. <xs:element ref="dead" minOccurs="0"/>
  34. </xs:sequence>
  35. <xs:attribute ref="id"/>
  36. </xs:complexType>
  37. </xs:element>
  38. <xs:element name="book">
  39. <xs:complexType>
  40. <xs:sequence>
  41. <xs:element ref="isbn"/>
  42. <xs:element ref="title"/>
  43. <xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
  44. <xs:element ref="character" minOccurs="0" maxOccurs="unbounded"/>
  45. </xs:sequence>
  46. <xs:attribute ref="id"/>
  47. <xs:attribute ref="available"/>
  48. </xs:complexType>
  49. </xs:element>
  50. <xs:element name="character">
  51. <xs:complexType>
  52. <xs:sequence>
  53. <xs:element ref="name"/>
  54. <xs:element ref="born"/>
  55. <xs:element ref="qualification"/>
  56. </xs:sequence>
  57. <xs:attribute ref="id"/>
  58. </xs:complexType>
  59. </xs:element>
  60. </xs:schema>