2 <?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?>
3 <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
4 xmlns:xs="http://www.w3.org/2001/XMLSchema"
5 xmlns="http://www.w3.org/1999/xhtml"
11 <h1>About the XML namespace</h1>
13 <div class="bodytext">
15 This schema document describes the XML namespace, in a form
16 suitable for import by other schema documents.
20 <a href="http://www.w3.org/XML/1998/namespace.html">
21 http://www.w3.org/XML/1998/namespace.html
24 <a href="http://www.w3.org/TR/REC-xml">
25 http://www.w3.org/TR/REC-xml
31 Note that local names in this namespace are intended to be
32 defined only by the World Wide Web Consortium or its subgroups.
33 The names currently defined in this namespace are listed below.
34 They should not be used with conflicting semantics by any Working
35 Group, specification, or document instance.
38 See further below in this document for more information about
40 href="#usage">how to refer to this schema document from your own
43 and about<a href="#nsversioning">the
44 namespace-versioning policy governing this schema document</a>.
51 <xs:attribute name="lang">
56 <h3>lang (as an attribute name)</h3>
58 denotes an attribute whose value
59 is a language code for the natural language of the content of
60 any element; its value is inherited. This name is reserved
61 by virtue of its definition in the XML specification.
68 Attempting to install the relevant ISO 2- and 3-letter
69 codes as the enumerated possible values is probably never
70 going to be a realistic possibility.
74 <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
75 http://www.rfc-editor.org/rfc/bcp/bcp47.txt
77 and the IANA language subtag registry at
78 <a href="http://www.iana.org/assignments/language-subtag-registry">
79 http://www.iana.org/assignments/language-subtag-registry
81 for further information.
84 The union allows for the 'un-declaration' of xml:lang with
91 <xs:union memberTypes="xs:language">
93 <xs:restriction base="xs:string">
94 <xs:enumeration value=""/>
101 <xs:attribute name="space">
106 <h3>space (as an attribute name)</h3>
108 denotes an attribute whose
109 value is a keyword indicating what whitespace processing
110 discipline is intended for the content of the element; its
111 value is inherited. This name is reserved by virtue of its
112 definition in the XML specification.
119 <xs:restriction base="xs:NCName">
120 <xs:enumeration value="default"/>
121 <xs:enumeration value="preserve"/>
126 <xs:attribute name="base" type="xs:anyURI">
131 <h3>base (as an attribute name)</h3>
133 denotes an attribute whose value
134 provides a URI to be used as the base for interpreting any
135 relative URIs in the scope of the element on which it
136 appears; its value is inherited. This name is reserved
137 by virtue of its definition in the XML Base specification.
143 href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/
145 for information about this attribute.
152 <xs:attribute name="id" type="xs:ID">
157 <h3>id (as an attribute name)</h3>
159 denotes an attribute whose value
160 should be interpreted as if declared to be of type ID.
161 This name is reserved by virtue of its definition in the
162 xml:id specification.
168 href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/
170 for information about this attribute.
177 <xs:attributeGroup name="specialAttrs">
178 <xs:attribute ref="xml:base"/>
179 <xs:attribute ref="xml:lang"/>
180 <xs:attribute ref="xml:space"/>
181 <xs:attribute ref="xml:id"/>
188 <h3>Father (in any context at all)</h3>
190 <div class="bodytext">
192 denotes Jon Bosak, the chair of
193 the original XML Working Group. This name is reserved by
194 the following decision of the W3C XML Plenary and
195 XML Coordination groups:
199 In appreciation for his vision, leadership and
200 dedication the W3C XML Plenary on this 10th day of
201 February, 2000, reserves for Jon Bosak in perpetuity
202 the XML name "xml:Father".
212 <div xml:id="usage" id="usage">
214 <a name="usage">About this schema document</a>
217 <div class="bodytext">
219 This schema defines attributes and an attribute group suitable
220 for use by schemas wishing to allow<code>xml:base</code>,
221 <code>xml:lang</code>,
222 <code>xml:space</code>
225 attributes on elements they define.
228 To enable this, such a schema must import this schema for
229 the XML namespace, e.g. as follows:
234 <import namespace="http://www.w3.org/XML/1998/namespace"
235 schemaLocation="http://www.w3.org/2001/xml.xsd"/>
241 <import namespace="http://www.w3.org/XML/1998/namespace"
242 schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
245 Subsequently, qualified reference to any of the attributes or the
246 group defined below will have the desired effect, e.g.
251 <attributeGroup ref="xml:specialAttrs"/>
254 will define a type which will schema-validate an instance element
255 with any of those attributes.
264 <div id="nsversioning" xml:id="nsversioning">
266 <a name="nsversioning">Versioning policy for this schema document</a>
268 <div class="bodytext">
270 In keeping with the XML Schema WG's standard versioning
271 policy, this schema document will persist at
272 <a href="http://www.w3.org/2009/01/xml.xsd">
273 http://www.w3.org/2009/01/xml.xsd</a>.
276 At the date of issue it can also be found at
277 <a href="http://www.w3.org/2001/xml.xsd">
278 http://www.w3.org/2001/xml.xsd</a>.
281 The schema document at that URI may however change in the future,
282 in order to remain compatible with the latest version of XML
283 Schema itself, or with the XML namespace itself. In other words,
284 if the XML Schema or XML namespaces change, the version of this
286 <a href="http://www.w3.org/2001/xml.xsd">
287 http://www.w3.org/2001/xml.xsd
289 will change accordingly; the version at
290 <a href="http://www.w3.org/2009/01/xml.xsd">
291 http://www.w3.org/2009/01/xml.xsd
296 Previous dated (and unchanging) versions of this schema
301 <a href="http://www.w3.org/2009/01/xml.xsd">
302 http://www.w3.org/2009/01/xml.xsd
306 <a href="http://www.w3.org/2007/08/xml.xsd">
307 http://www.w3.org/2007/08/xml.xsd
311 <a href="http://www.w3.org/2004/10/xml.xsd">
312 http://www.w3.org/2004/10/xml.xsd
316 <a href="http://www.w3.org/2001/03/xml.xsd">
317 http://www.w3.org/2001/03/xml.xsd