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