vdv-first0_0.xsd 1.8 KB

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