Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?xml version='1.0'?> |
| 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" |
| 6 | xml:lang="en"> |
| 7 | |
| 8 | <xs:annotation> |
| 9 | <xs:documentation> |
| 10 | <div> |
| 11 | <h1>About the XML namespace</h1> |
| 12 | |
| 13 | <div class="bodytext"> |
| 14 | <p> |
| 15 | |
| 16 | This schema document describes the XML namespace, in a form |
| 17 | suitable for import by other schema documents. |
| 18 | </p> |
| 19 | <p> |
| 20 | See <a href="http://www.w3.org/XML/1998/namespace.html"> |
| 21 | http://www.w3.org/XML/1998/namespace.html</a> and |
| 22 | <a href="http://www.w3.org/TR/REC-xml"> |
| 23 | http://www.w3.org/TR/REC-xml</a> for information |
| 24 | about this namespace. |
| 25 | </p> |
| 26 | |
| 27 | <p> |
| 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 | </p> |
| 34 | <p> |
| 35 | See further below in this document for more information about <a |
| 36 | href="#usage">how to refer to this schema document from your own |
| 37 | XSD schema documents</a> and about <a href="#nsversioning">the |
| 38 | namespace-versioning policy governing this schema document</a>. |
| 39 | </p> |
| 40 | </div> |
| 41 | </div> |
| 42 | |
| 43 | </xs:documentation> |
| 44 | </xs:annotation> |
| 45 | |
| 46 | <xs:attribute name="lang"> |
| 47 | <xs:annotation> |
| 48 | <xs:documentation> |
| 49 | <div> |
| 50 | |
| 51 | <h3>lang (as an attribute name)</h3> |
| 52 | <p> |
| 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.</p> |
| 58 | |
| 59 | </div> |
| 60 | <div> |
| 61 | <h4>Notes</h4> |
| 62 | <p> |
| 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 | </p> |
| 67 | <p> |
| 68 | |
| 69 | See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt"> |
| 70 | http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a> |
| 71 | and the IANA language subtag registry at |
| 72 | <a href="http://www.iana.org/assignments/language-subtag-registry"> |
| 73 | http://www.iana.org/assignments/language-subtag-registry</a> |
| 74 | for further information. |
| 75 | </p> |
| 76 | <p> |
| 77 | |
| 78 | The union allows for the 'un-declaration' of xml:lang with |
| 79 | the empty string. |
| 80 | </p> |
| 81 | </div> |
| 82 | </xs:documentation> |
| 83 | </xs:annotation> |
| 84 | <xs:simpleType> |
| 85 | <xs:union memberTypes="xs:language"> |
| 86 | <xs:simpleType> |
| 87 | <xs:restriction base="xs:string"> |
| 88 | <xs:enumeration value=""/> |
| 89 | |
| 90 | </xs:restriction> |
| 91 | </xs:simpleType> |
| 92 | </xs:union> |
| 93 | </xs:simpleType> |
| 94 | </xs:attribute> |
| 95 | |
| 96 | <xs:attribute name="space"> |
| 97 | <xs:annotation> |
| 98 | <xs:documentation> |
| 99 | |
| 100 | <div> |
| 101 | |
| 102 | <h3>space (as an attribute name)</h3> |
| 103 | <p> |
| 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.</p> |
| 109 | |
| 110 | </div> |
| 111 | </xs:documentation> |
| 112 | </xs:annotation> |
| 113 | <xs:simpleType> |
| 114 | |
| 115 | <xs:restriction base="xs:NCName"> |
| 116 | <xs:enumeration value="default"/> |
| 117 | <xs:enumeration value="preserve"/> |
| 118 | </xs:restriction> |
| 119 | </xs:simpleType> |
| 120 | </xs:attribute> |
| 121 | |
| 122 | <xs:attribute name="base" type="xs:anyURI"> <xs:annotation> |
| 123 | <xs:documentation> |
| 124 | |
| 125 | <div> |
| 126 | |
| 127 | <h3>base (as an attribute name)</h3> |
| 128 | <p> |
| 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.</p> |
| 134 | |
| 135 | <p> |
| 136 | See <a |
| 137 | href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a> |
| 138 | for information about this attribute. |
| 139 | </p> |
| 140 | |
| 141 | </div> |
| 142 | </xs:documentation> |
| 143 | </xs:annotation> |
| 144 | </xs:attribute> |
| 145 | |
| 146 | <xs:attribute name="id" type="xs:ID"> |
| 147 | <xs:annotation> |
| 148 | <xs:documentation> |
| 149 | <div> |
| 150 | |
| 151 | <h3>id (as an attribute name)</h3> |
| 152 | <p> |
| 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.</p> |
| 158 | |
| 159 | <p> |
| 160 | See <a |
| 161 | href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a> |
| 162 | for information about this attribute. |
| 163 | </p> |
| 164 | </div> |
| 165 | </xs:documentation> |
| 166 | </xs:annotation> |
| 167 | |
| 168 | </xs:attribute> |
| 169 | |
| 170 | <xs:attributeGroup name="specialAttrs"> |
| 171 | <xs:attribute ref="xml:base"/> |
| 172 | <xs:attribute ref="xml:lang"/> |
| 173 | <xs:attribute ref="xml:space"/> |
| 174 | <xs:attribute ref="xml:id"/> |
| 175 | </xs:attributeGroup> |
| 176 | |
| 177 | <xs:annotation> |
| 178 | |
| 179 | <xs:documentation> |
| 180 | <div> |
| 181 | |
| 182 | <h3>Father (in any context at all)</h3> |
| 183 | |
| 184 | <div class="bodytext"> |
| 185 | <p> |
| 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 | </p> |
| 191 | <blockquote> |
| 192 | <p> |
| 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 | </p> |
| 199 | </blockquote> |
| 200 | </div> |
| 201 | </div> |
| 202 | </xs:documentation> |
| 203 | </xs:annotation> |
| 204 | |
| 205 | <xs:annotation> |
| 206 | <xs:documentation> |
| 207 | |
| 208 | <div xml:id="usage" id="usage"> |
| 209 | <h2><a name="usage">About this schema document</a></h2> |
| 210 | |
| 211 | <div class="bodytext"> |
| 212 | <p> |
| 213 | This schema defines attributes and an attribute group suitable |
| 214 | for use by schemas wishing to allow <code>xml:base</code>, |
| 215 | <code>xml:lang</code>, <code>xml:space</code> or |
| 216 | <code>xml:id</code> attributes on elements they define. |
| 217 | </p> |
| 218 | |
| 219 | <p> |
| 220 | To enable this, such a schema must import this schema for |
| 221 | the XML namespace, e.g. as follows: |
| 222 | </p> |
| 223 | <pre> |
| 224 | <schema.. .> |
| 225 | .. . |
| 226 | <import namespace="http://www.w3.org/XML/1998/namespace" |
| 227 | schemaLocation="http://www.w3.org/2001/xml.xsd"/> |
| 228 | </pre> |
| 229 | <p> |
| 230 | or |
| 231 | </p> |
| 232 | <pre> |
| 233 | |
| 234 | <import namespace="http://www.w3.org/XML/1998/namespace" |
| 235 | schemaLocation="http://www.w3.org/2009/01/xml.xsd"/> |
| 236 | </pre> |
| 237 | <p> |
| 238 | Subsequently, qualified reference to any of the attributes or the |
| 239 | group defined below will have the desired effect, e.g. |
| 240 | </p> |
| 241 | <pre> |
| 242 | <type.. .> |
| 243 | .. . |
| 244 | <attributeGroup ref="xml:specialAttrs"/> |
| 245 | </pre> |
| 246 | <p> |
| 247 | will define a type which will schema-validate an instance element |
| 248 | with any of those attributes. |
| 249 | </p> |
| 250 | |
| 251 | </div> |
| 252 | </div> |
| 253 | </xs:documentation> |
| 254 | </xs:annotation> |
| 255 | |
| 256 | <xs:annotation> |
| 257 | <xs:documentation> |
| 258 | <div id="nsversioning" xml:id="nsversioning"> |
| 259 | <h2><a name="nsversioning">Versioning policy for this schema document</a></h2> |
| 260 | |
| 261 | <div class="bodytext"> |
| 262 | <p> |
| 263 | In keeping with the XML Schema WG's standard versioning |
| 264 | policy, this schema document will persist at |
| 265 | <a href="http://www.w3.org/2009/01/xml.xsd"> |
| 266 | http://www.w3.org/2009/01/xml.xsd</a>. |
| 267 | </p> |
| 268 | <p> |
| 269 | At the date of issue it can also be found at |
| 270 | <a href="http://www.w3.org/2001/xml.xsd"> |
| 271 | http://www.w3.org/2001/xml.xsd</a>. |
| 272 | </p> |
| 273 | |
| 274 | <p> |
| 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 <a href="http://www.w3.org/2001/xml.xsd"> |
| 280 | http://www.w3.org/2001/xml.xsd |
| 281 | </a> |
| 282 | will change accordingly; the version at |
| 283 | <a href="http://www.w3.org/2009/01/xml.xsd"> |
| 284 | http://www.w3.org/2009/01/xml.xsd |
| 285 | </a> |
| 286 | will not change. |
| 287 | </p> |
| 288 | <p> |
| 289 | |
| 290 | Previous dated (and unchanging) versions of this schema |
| 291 | document are at: |
| 292 | </p> |
| 293 | <ul> |
| 294 | <li><a href="http://www.w3.org/2009/01/xml.xsd"> |
| 295 | http://www.w3.org/2009/01/xml.xsd</a></li> |
| 296 | <li><a href="http://www.w3.org/2007/08/xml.xsd"> |
| 297 | http://www.w3.org/2007/08/xml.xsd</a></li> |
| 298 | <li><a href="http://www.w3.org/2004/10/xml.xsd"> |
| 299 | |
| 300 | http://www.w3.org/2004/10/xml.xsd</a></li> |
| 301 | <li><a href="http://www.w3.org/2001/03/xml.xsd"> |
| 302 | http://www.w3.org/2001/03/xml.xsd</a></li> |
| 303 | </ul> |
| 304 | </div> |
| 305 | </div> |
| 306 | </xs:documentation> |
| 307 | </xs:annotation> |
| 308 | |
| 309 | </xs:schema> |