1 <?xml version='1.0'?>
\r
2 <?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?>
\r
3 <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
\r
4 xmlns:xs="http://www.w3.org/2001/XMLSchema"
\r
5 xmlns ="http://www.w3.org/1999/xhtml"
\r
11 <h1>About the XML namespace</h1>
\r
13 <div class="bodytext">
\r
15 This schema document describes the XML namespace, in a form
\r
16 suitable for import by other schema documents.
\r
19 See <a href="http://www.w3.org/XML/1998/namespace.html">
\r
20 http://www.w3.org/XML/1998/namespace.html</a> and
\r
21 <a href="http://www.w3.org/TR/REC-xml">
\r
22 http://www.w3.org/TR/REC-xml</a> for information
\r
23 about this namespace.
\r
26 Note that local names in this namespace are intended to be
\r
27 defined only by the World Wide Web Consortium or its subgroups.
\r
28 The names currently defined in this namespace are listed below.
\r
29 They should not be used with conflicting semantics by any Working
\r
30 Group, specification, or document instance.
\r
33 See further below in this document for more information about <a
\r
34 href="#usage">how to refer to this schema document from your own
\r
35 XSD schema documents</a> and about <a href="#nsversioning">the
\r
36 namespace-versioning policy governing this schema document</a>.
\r
43 <xs:attribute name="lang">
\r
48 <h3>lang (as an attribute name)</h3>
\r
50 denotes an attribute whose value
\r
51 is a language code for the natural language of the content of
\r
52 any element; its value is inherited. This name is reserved
\r
53 by virtue of its definition in the XML specification.</p>
\r
59 Attempting to install the relevant ISO 2- and 3-letter
\r
60 codes as the enumerated possible values is probably never
\r
61 going to be a realistic possibility.
\r
64 See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
\r
65 http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
\r
66 and the IANA language subtag registry at
\r
67 <a href="http://www.iana.org/assignments/language-subtag-registry">
\r
68 http://www.iana.org/assignments/language-subtag-registry</a>
\r
69 for further information.
\r
72 The union allows for the 'un-declaration' of xml:lang with
\r
79 <xs:union memberTypes="xs:language">
\r
81 <xs:restriction base="xs:string">
\r
82 <xs:enumeration value=""/>
\r
89 <xs:attribute name="space">
\r
94 <h3>space (as an attribute name)</h3>
\r
96 denotes an attribute whose
\r
97 value is a keyword indicating what whitespace processing
\r
98 discipline is intended for the content of the element; its
\r
99 value is inherited. This name is reserved by virtue of its
\r
100 definition in the XML specification.</p>
\r
103 </xs:documentation>
\r
106 <xs:restriction base="xs:NCName">
\r
107 <xs:enumeration value="default"/>
\r
108 <xs:enumeration value="preserve"/>
\r
113 <xs:attribute name="base" type="xs:anyURI"> <xs:annotation>
\r
117 <h3>base (as an attribute name)</h3>
\r
119 denotes an attribute whose value
\r
120 provides a URI to be used as the base for interpreting any
\r
121 relative URIs in the scope of the element on which it
\r
122 appears; its value is inherited. This name is reserved
\r
123 by virtue of its definition in the XML Base specification.</p>
\r
127 href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a>
\r
128 for information about this attribute.
\r
131 </xs:documentation>
\r
135 <xs:attribute name="id" type="xs:ID">
\r
140 <h3>id (as an attribute name)</h3>
\r
142 denotes an attribute whose value
\r
143 should be interpreted as if declared to be of type ID.
\r
144 This name is reserved by virtue of its definition in the
\r
145 xml:id specification.</p>
\r
149 href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
\r
150 for information about this attribute.
\r
153 </xs:documentation>
\r
157 <xs:attributeGroup name="specialAttrs">
\r
158 <xs:attribute ref="xml:base"/>
\r
159 <xs:attribute ref="xml:lang"/>
\r
160 <xs:attribute ref="xml:space"/>
\r
161 <xs:attribute ref="xml:id"/>
\r
162 </xs:attributeGroup>
\r
168 <h3>Father (in any context at all)</h3>
\r
170 <div class="bodytext">
\r
172 denotes Jon Bosak, the chair of
\r
173 the original XML Working Group. This name is reserved by
\r
174 the following decision of the W3C XML Plenary and
\r
175 XML Coordination groups:
\r
179 In appreciation for his vision, leadership and
\r
180 dedication the W3C XML Plenary on this 10th day of
\r
181 February, 2000, reserves for Jon Bosak in perpetuity
\r
182 the XML name "xml:Father".
\r
187 </xs:documentation>
\r
192 <div xml:id="usage" id="usage">
\r
193 <h2><a name="usage">About this schema document</a></h2>
\r
195 <div class="bodytext">
\r
197 This schema defines attributes and an attribute group suitable
\r
198 for use by schemas wishing to allow <code>xml:base</code>,
\r
199 <code>xml:lang</code>, <code>xml:space</code> or
\r
200 <code>xml:id</code> attributes on elements they define.
\r
203 To enable this, such a schema must import this schema for
\r
204 the XML namespace, e.g. as follows:
\r
209 <import namespace="http://www.w3.org/XML/1998/namespace"
\r
210 schemaLocation="http://www.w3.org/2001/xml.xsd"/>
\r
216 <import namespace="http://www.w3.org/XML/1998/namespace"
\r
217 schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
\r
220 Subsequently, qualified reference to any of the attributes or the
\r
221 group defined below will have the desired effect, e.g.
\r
226 <attributeGroup ref="xml:specialAttrs"/>
\r
229 will define a type which will schema-validate an instance element
\r
230 with any of those attributes.
\r
234 </xs:documentation>
\r
239 <div id="nsversioning" xml:id="nsversioning">
\r
240 <h2><a name="nsversioning">Versioning policy for this schema document</a></h2>
\r
241 <div class="bodytext">
\r
243 In keeping with the XML Schema WG's standard versioning
\r
244 policy, this schema document will persist at
\r
245 <a href="http://www.w3.org/2009/01/xml.xsd">
\r
246 http://www.w3.org/2009/01/xml.xsd</a>.
\r
249 At the date of issue it can also be found at
\r
250 <a href="http://www.w3.org/2001/xml.xsd">
\r
251 http://www.w3.org/2001/xml.xsd</a>.
\r
254 The schema document at that URI may however change in the future,
\r
255 in order to remain compatible with the latest version of XML
\r
256 Schema itself, or with the XML namespace itself. In other words,
\r
257 if the XML Schema or XML namespaces change, the version of this
\r
258 document at <a href="http://www.w3.org/2001/xml.xsd">
\r
259 http://www.w3.org/2001/xml.xsd
\r
261 will change accordingly; the version at
\r
262 <a href="http://www.w3.org/2009/01/xml.xsd">
\r
263 http://www.w3.org/2009/01/xml.xsd
\r
268 Previous dated (and unchanging) versions of this schema
\r
272 <li><a href="http://www.w3.org/2009/01/xml.xsd">
\r
273 http://www.w3.org/2009/01/xml.xsd</a></li>
\r
274 <li><a href="http://www.w3.org/2007/08/xml.xsd">
\r
275 http://www.w3.org/2007/08/xml.xsd</a></li>
\r
276 <li><a href="http://www.w3.org/2004/10/xml.xsd">
\r
277 http://www.w3.org/2004/10/xml.xsd</a></li>
\r
278 <li><a href="http://www.w3.org/2001/03/xml.xsd">
\r
279 http://www.w3.org/2001/03/xml.xsd</a></li>
\r
283 </xs:documentation>
\r