oadr_xml.xsd 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace" targetNamespace="http://www.w3.org/XML/1998/namespace" xml:lang="en">
  3. <xs:annotation>
  4. <xs:documentation>
  5. See http://www.w3.org/XML/1998/namespace.html and
  6. http://www.w3.org/TR/REC-xml for information about this namespace.
  7. This schema document describes the XML namespace, in a form
  8. suitable for import by other schema documents.
  9. Note that local names in this namespace are intended to be defined
  10. only by the World Wide Web Consortium or its subgroups. The
  11. following names are currently defined in this namespace and should
  12. not be used with conflicting semantics by any Working Group,
  13. specification, or document instance:
  14. base (as an attribute name): denotes an attribute whose value
  15. provides a URI to be used as the base for interpreting any
  16. relative URIs in the scope of the element on which it
  17. appears; its value is inherited. This name is reserved
  18. by virtue of its definition in the XML Base specification.
  19. lang (as an attribute name): denotes an attribute whose value
  20. is a language code for the natural language of the content of
  21. any element; its value is inherited. This name is reserved
  22. by virtue of its definition in the XML specification.
  23. space (as an attribute name): denotes an attribute whose
  24. value is a keyword indicating what whitespace processing
  25. discipline is intended for the content of the element; its
  26. value is inherited. This name is reserved by virtue of its
  27. definition in the XML specification.
  28. Father (in any context at all): denotes Jon Bosak, the chair of
  29. the original XML Working Group. This name is reserved by
  30. the following decision of the W3C XML Plenary and
  31. XML Coordination groups:
  32. In appreciation for his vision, leadership and dedication
  33. the W3C XML Plenary on this 10th day of February, 2000
  34. reserves for Jon Bosak in perpetuity the XML name
  35. xml:Father
  36. </xs:documentation>
  37. </xs:annotation>
  38. <xs:annotation>
  39. <xs:documentation>This schema defines attributes and an attribute group
  40. suitable for use by
  41. schemas wishing to allow xml:base, xml:lang or xml:space attributes
  42. on elements they define.
  43. To enable this, such a schema must import this schema
  44. for the XML namespace, e.g. as follows:
  45. &lt;schema . . .>
  46. . . .
  47. &lt;import namespace="http://www.w3.org/XML/1998/namespace"
  48. schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
  49. Subsequently, qualified reference to any of the attributes
  50. or the group defined below will have the desired effect, e.g.
  51. &lt;type . . .>
  52. . . .
  53. &lt;attributeGroup ref="xml:specialAttrs"/>
  54. will define a type which will schema-validate an instance
  55. element with any of those attributes</xs:documentation>
  56. </xs:annotation>
  57. <xs:annotation>
  58. <xs:documentation>In keeping with the XML Schema WG's standard versioning
  59. policy, this schema document will persist at
  60. http://www.w3.org/2001/03/xml.xsd.
  61. At the date of issue it can also be found at
  62. http://www.w3.org/2001/xml.xsd.
  63. The schema document at that URI may however change in the future,
  64. in order to remain compatible with the latest version of XML Schema
  65. itself. In other words, if the XML Schema namespace changes, the version
  66. of this document at
  67. http://www.w3.org/2001/xml.xsd will change
  68. accordingly; the version at
  69. http://www.w3.org/2001/03/xml.xsd will not change.
  70. </xs:documentation>
  71. </xs:annotation>
  72. <xs:attribute name="lang" type="xs:language">
  73. <xs:annotation>
  74. <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter
  75. codes as the enumerated possible values . . .</xs:documentation>
  76. </xs:annotation>
  77. </xs:attribute>
  78. <xs:attribute name="space" default="preserve">
  79. <xs:simpleType>
  80. <xs:restriction base="xs:NCName">
  81. <xs:enumeration value="default"/>
  82. <xs:enumeration value="preserve"/>
  83. </xs:restriction>
  84. </xs:simpleType>
  85. </xs:attribute>
  86. <xs:attribute name="base" type="xs:anyURI">
  87. <xs:annotation>
  88. <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
  89. information about this attribute.</xs:documentation>
  90. </xs:annotation>
  91. </xs:attribute>
  92. <xs:attributeGroup name="specialAttrs">
  93. <xs:attribute ref="xml:base"/>
  94. <xs:attribute ref="xml:lang"/>
  95. <xs:attribute ref="xml:space"/>
  96. </xs:attributeGroup>
  97. </xs:schema>