bug145246.xsd.imp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns="http://purl.org/dc/elements/1.1/"
  4. targetNamespace="http://purl.org/dc/elements/1.1/"
  5. elementFormDefault="qualified"
  6. attributeFormDefault="unqualified">
  7. <xs:annotation>
  8. <xs:documentation xml:lang="en">
  9. DCMES 1.1 XML Schema
  10. XML Schema for http://purl.org/dc/elements/1.1/ namespace
  11. Created 2003-04-02
  12. Created by
  13. Tim Cole (t-cole3@uiuc.edu)
  14. Tom Habing (thabing@uiuc.edu)
  15. Jane Hunter (jane@dstc.edu.au)
  16. Pete Johnston (p.johnston@ukoln.ac.uk),
  17. Carl Lagoze (lagoze@cs.cornell.edu)
  18. This schema declares XML elements for the 15 DC elements from the
  19. http://purl.org/dc/elements/1.1/ namespace.
  20. It defines a complexType SimpleLiteral which permits mixed content
  21. and makes the xml:lang attribute available. It disallows child elements by
  22. use of minOcccurs/maxOccurs.
  23. However, this complexType does permit the derivation of other complexTypes
  24. which would permit child elements.
  25. All elements are declared as substitutable for the abstract element any,
  26. which means that the default type for all elements is dc:SimpleLiteral.
  27. </xs:documentation>
  28. </xs:annotation>
  29. <xs:import namespace="http://www.w3.org/XML/1998/namespace"
  30. schemaLocation="xml.xsd">
  31. </xs:import>
  32. <!--http://www.w3.org/2001/03/xml.xsd-->
  33. <xs:complexType name="SimpleLiteral">
  34. <xs:annotation>
  35. <xs:documentation xml:lang="en">
  36. This is the default type for all of the DC elements.
  37. It permits text content only with optional
  38. xml:lang attribute.
  39. Text is allowed because mixed="true", but sub-elements
  40. are disallowed because minOccurs="0" and maxOccurs="0"
  41. are on the xs:any tag.
  42. This complexType allows for restriction or extension permitting
  43. child elements.
  44. </xs:documentation>
  45. </xs:annotation>
  46. <xs:complexContent mixed="true">
  47. <xs:restriction base="xs:anyType">
  48. <xs:sequence>
  49. <xs:any processContents="lax" minOccurs="1" maxOccurs="2"/>
  50. </xs:sequence>
  51. <xs:attribute ref="xml:lang" use="optional"/>
  52. </xs:restriction>
  53. </xs:complexContent>
  54. </xs:complexType>
  55. <xs:element name="any" type="SimpleLiteral" abstract="true"/>
  56. <xs:element name="title" substitutionGroup="any"/>
  57. <xs:element name="creator" substitutionGroup="any"/>
  58. <xs:element name="subject" substitutionGroup="any"/>
  59. <xs:element name="description" substitutionGroup="any"/>
  60. <xs:element name="publisher" substitutionGroup="any"/>
  61. <xs:element name="contributor" substitutionGroup="any"/>
  62. <xs:element name="date" substitutionGroup="any"/>
  63. <xs:element name="type" substitutionGroup="any"/>
  64. <xs:element name="format" substitutionGroup="any"/>
  65. <xs:element name="identifier" substitutionGroup="any"/>
  66. <xs:element name="source" substitutionGroup="any"/>
  67. <xs:element name="language" substitutionGroup="any"/>
  68. <xs:element name="relation" substitutionGroup="any"/>
  69. <xs:element name="coverage" substitutionGroup="any"/>
  70. <xs:element name="rights" substitutionGroup="any"/>
  71. <xs:group name="elementsGroup">
  72. <xs:annotation>
  73. <xs:documentation xml:lang="en">
  74. This group is included as a convenience for schema authors
  75. who need to refer to all the elements in the
  76. http://purl.org/dc/elements/1.1/ namespace.
  77. </xs:documentation>
  78. </xs:annotation>
  79. <xs:sequence>
  80. <xs:choice minOccurs="0" maxOccurs="unbounded">
  81. <xs:element ref="any"/>
  82. </xs:choice>
  83. </xs:sequence>
  84. </xs:group>
  85. <xs:complexType name="elementContainer">
  86. <xs:annotation>
  87. <xs:documentation xml:lang="en">
  88. This complexType is included as a convenience for schema authors who need to define a root
  89. or container element for all of the DC elements.
  90. </xs:documentation>
  91. </xs:annotation>
  92. <xs:choice>
  93. <xs:group ref="elementsGroup"/>
  94. </xs:choice>
  95. </xs:complexType>
  96. </xs:schema>