15 | 16 | This schema document describes the XML namespace, in a form 17 | suitable for import by other schema documents. 18 |
19 |20 | See 21 | http://www.w3.org/XML/1998/namespace.html and 22 | 23 | http://www.w3.org/TR/REC-xml for information 24 | about this namespace. 25 |
26 | 27 |28 | Note that local names in this namespace are intended to be 29 | defined only by the World Wide Web Consortium or its subgroups. 30 | The names currently defined in this namespace are listed below. 31 | They should not be used with conflicting semantics by any Working 32 | Group, specification, or document instance. 33 |
34 |35 | See further below in this document for more information about how to refer to this schema document from your own 37 | XSD schema documents and about the 38 | namespace-versioning policy governing this schema document. 39 |
40 |53 | 54 | denotes an attribute whose value 55 | is a language code for the natural language of the content of 56 | any element; its value is inherited. This name is reserved 57 | by virtue of its definition in the XML specification.
58 | 59 |63 | Attempting to install the relevant ISO 2- and 3-letter 64 | codes as the enumerated possible values is probably never 65 | going to be a realistic possibility. 66 |
67 |68 | 69 | See BCP 47 at 70 | http://www.rfc-editor.org/rfc/bcp/bcp47.txt 71 | and the IANA language subtag registry at 72 | 73 | http://www.iana.org/assignments/language-subtag-registry 74 | for further information. 75 |
76 |77 | 78 | The union allows for the 'un-declaration' of xml:lang with 79 | the empty string. 80 |
81 |104 | denotes an attribute whose 105 | value is a keyword indicating what whitespace processing 106 | discipline is intended for the content of the element; its 107 | value is inherited. This name is reserved by virtue of its 108 | definition in the XML specification.
109 | 110 |129 | denotes an attribute whose value 130 | provides a URI to be used as the base for interpreting any 131 | relative URIs in the scope of the element on which it 132 | appears; its value is inherited. This name is reserved 133 | by virtue of its definition in the XML Base specification.
134 | 135 |136 | See http://www.w3.org/TR/xmlbase/ 138 | for information about this attribute. 139 |
140 | 141 |153 | 154 | denotes an attribute whose value 155 | should be interpreted as if declared to be of type ID. 156 | This name is reserved by virtue of its definition in the 157 | xml:id specification.
158 | 159 |160 | See http://www.w3.org/TR/xml-id/ 162 | for information about this attribute. 163 |
164 |186 | denotes Jon Bosak, the chair of 187 | the original XML Working Group. This name is reserved by 188 | the following decision of the W3C XML Plenary and 189 | XML Coordination groups: 190 |
191 |192 |200 |193 | 194 | In appreciation for his vision, leadership and 195 | dedication the W3C XML Plenary on this 10th day of 196 | February, 2000, reserves for Jon Bosak in perpetuity 197 | the XML name "xml:Father". 198 |
199 |
213 | This schema defines attributes and an attribute group suitable
214 | for use by schemas wishing to allow xml:base
,
215 | xml:lang
, xml:space
or
216 | xml:id
attributes on elements they define.
217 |
220 | To enable this, such a schema must import this schema for 221 | the XML namespace, e.g. as follows: 222 |
223 |224 | <schema.. .> 225 | .. . 226 | <import namespace="http://www.w3.org/XML/1998/namespace" 227 | schemaLocation="http://www.w3.org/2001/xml.xsd"/> 228 |229 |
230 | or 231 |
232 |233 | 234 | <import namespace="http://www.w3.org/XML/1998/namespace" 235 | schemaLocation="http://www.w3.org/2009/01/xml.xsd"/> 236 |237 |
238 | Subsequently, qualified reference to any of the attributes or the 239 | group defined below will have the desired effect, e.g. 240 |
241 |242 | <type.. .> 243 | .. . 244 | <attributeGroup ref="xml:specialAttrs"/> 245 |246 |
247 | will define a type which will schema-validate an instance element 248 | with any of those attributes. 249 |
250 | 251 |263 | In keeping with the XML Schema WG's standard versioning 264 | policy, this schema document will persist at 265 | 266 | http://www.w3.org/2009/01/xml.xsd. 267 |
268 |269 | At the date of issue it can also be found at 270 | 271 | http://www.w3.org/2001/xml.xsd. 272 |
273 | 274 |275 | The schema document at that URI may however change in the future, 276 | in order to remain compatible with the latest version of XML 277 | Schema itself, or with the XML namespace itself. In other words, 278 | if the XML Schema or XML namespaces change, the version of this 279 | document at 280 | http://www.w3.org/2001/xml.xsd 281 | 282 | will change accordingly; the version at 283 | 284 | http://www.w3.org/2009/01/xml.xsd 285 | 286 | will not change. 287 |
288 |289 | 290 | Previous dated (and unchanging) versions of this schema 291 | document are at: 292 |
293 | 304 |