aec62fc9bf82dde75a3b9dfd5bdbf5c223b82aef
[acontent.git] / docs / home / ims / domainProfile_4 / xml.xsd
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/XML/1998/namespace" xml:lang="en">\r
3 \r
4  <xs:annotation>\r
5   <xs:documentation>\r
6    See http://www.w3.org/XML/1998/namespace.html and\r
7    http://www.w3.org/TR/REC-xml for information about this namespace.\r
8 \r
9     This schema document describes the XML namespace, in a form\r
10     suitable for import by other schema documents.  \r
11 \r
12     Note that local names in this namespace are intended to be defined\r
13     only by the World Wide Web Consortium or its subgroups.  The\r
14     following names are currently defined in this namespace and should\r
15     not be used with conflicting semantics by any Working Group,\r
16     specification, or document instance:\r
17 \r
18     base (as an attribute name): denotes an attribute whose value\r
19          provides a URI to be used as the base for interpreting any\r
20          relative URIs in the scope of the element on which it\r
21          appears; its value is inherited.  This name is reserved\r
22          by virtue of its definition in the XML Base specification.\r
23 \r
24     id   (as an attribute name): denotes an attribute whose value\r
25          should be interpreted as if declared to be of type ID.\r
26          This name is reserved by virtue of its definition in the\r
27          xml:id specification.\r
28 \r
29     lang (as an attribute name): denotes an attribute whose value\r
30          is a language code for the natural language of the content of\r
31          any element; its value is inherited.  This name is reserved\r
32          by virtue of its definition in the XML specification.\r
33   \r
34     space (as an attribute name): denotes an attribute whose\r
35          value is a keyword indicating what whitespace processing\r
36          discipline is intended for the content of the element; its\r
37          value is inherited.  This name is reserved by virtue of its\r
38          definition in the XML specification.\r
39 \r
40     Father (in any context at all): denotes Jon Bosak, the chair of \r
41          the original XML Working Group.  This name is reserved by \r
42          the following decision of the W3C XML Plenary and \r
43          XML Coordination groups:\r
44 \r
45              In appreciation for his vision, leadership and dedication\r
46              the W3C XML Plenary on this 10th day of February, 2000\r
47              reserves for Jon Bosak in perpetuity the XML name\r
48              xml:Father\r
49   </xs:documentation>\r
50  </xs:annotation>\r
51 \r
52  <xs:annotation>\r
53   <xs:documentation>This schema defines attributes and an attribute group\r
54         suitable for use by\r
55         schemas wishing to allow xml:base, xml:lang, xml:space or xml:id\r
56         attributes on elements they define.\r
57 \r
58         To enable this, such a schema must import this schema\r
59         for the XML namespace, e.g. as follows:\r
60         &lt;schema . . .&gt;\r
61          . . .\r
62          &lt;import namespace="http://www.w3.org/XML/1998/namespace"\r
63                     schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;\r
64 \r
65         Subsequently, qualified reference to any of the attributes\r
66         or the group defined below will have the desired effect, e.g.\r
67 \r
68         &lt;type . . .&gt;\r
69          . . .\r
70          &lt;attributeGroup ref="xml:specialAttrs"/&gt;\r
71  \r
72          will define a type which will schema-validate an instance\r
73          element with any of those attributes</xs:documentation>\r
74  </xs:annotation>\r
75 \r
76  <xs:annotation>\r
77   <xs:documentation>In keeping with the XML Schema WG's standard versioning\r
78    policy, this schema document will persist at\r
79    http://www.w3.org/2007/08/xml.xsd.\r
80    At the date of issue it can also be found at\r
81    http://www.w3.org/2001/xml.xsd.\r
82    The schema document at that URI may however change in the future,\r
83    in order to remain compatible with the latest version of XML Schema\r
84    itself, or with the XML namespace itself.  In other words, if the XML\r
85    Schema or XML namespaces change, the version of this document at\r
86    http://www.w3.org/2001/xml.xsd will change\r
87    accordingly; the version at\r
88    http://www.w3.org/2007/08/xml.xsd will not change.\r
89   </xs:documentation>\r
90  </xs:annotation>\r
91 \r
92  <xs:attribute name="lang">\r
93   <xs:annotation>\r
94    <xs:documentation>Attempting to install the relevant ISO 2- and 3-letter\r
95          codes as the enumerated possible values is probably never\r
96          going to be a realistic possibility.  See\r
97          RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry\r
98          at http://www.iana.org/assignments/lang-tag-apps.htm for\r
99          further information.\r
100 \r
101          The union allows for the 'un-declaration' of xml:lang with\r
102          the empty string.</xs:documentation>\r
103   </xs:annotation>\r
104   <xs:simpleType>\r
105    <xs:union memberTypes="xs:language">\r
106     <xs:simpleType>    \r
107      <xs:restriction base="xs:string">\r
108       <xs:enumeration value="" />\r
109      </xs:restriction>\r
110     </xs:simpleType>\r
111    </xs:union>\r
112   </xs:simpleType>\r
113  </xs:attribute>\r
114 \r
115  <xs:attribute name="space">\r
116   <xs:simpleType>\r
117    <xs:restriction base="xs:NCName">\r
118     <xs:enumeration value="default" />\r
119     <xs:enumeration value="preserve" />\r
120    </xs:restriction>\r
121   </xs:simpleType>\r
122  </xs:attribute>\r
123 \r
124  <xs:attribute name="base" type="xs:anyURI">\r
125   <xs:annotation>\r
126    <xs:documentation>See http://www.w3.org/TR/xmlbase/ for\r
127                      information about this attribute.</xs:documentation>\r
128   </xs:annotation>\r
129  </xs:attribute>\r
130  \r
131  <xs:attribute name="id" type="xs:ID">\r
132   <xs:annotation>\r
133    <xs:documentation>See http://www.w3.org/TR/xml-id/ for\r
134                      information about this attribute.</xs:documentation>\r
135   </xs:annotation>\r
136  </xs:attribute>\r
137 \r
138  <xs:attributeGroup name="specialAttrs">\r
139   <xs:attribute ref="xml:base" />\r
140   <xs:attribute ref="xml:lang" />\r
141   <xs:attribute ref="xml:space" />\r
142   <xs:attribute ref="xml:id" />\r
143  </xs:attributeGroup>\r
144 \r
145 </xs:schema>\r