|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:annotation>
|
|
Packit |
712bc5 |
<xs:documentation>
|
|
Packit |
712bc5 |
See http://www.w3.org/XML/1998/namespace.html and
|
|
Packit |
712bc5 |
http://www.w3.org/TR/REC-xml for information about this namespace.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
This schema document describes the XML namespace, in a form
|
|
Packit |
712bc5 |
suitable for import by other schema documents.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
Note that local names in this namespace are intended to be defined
|
|
Packit |
712bc5 |
only by the World Wide Web Consortium or its subgroups. The
|
|
Packit |
712bc5 |
following names are currently defined in this namespace and should
|
|
Packit |
712bc5 |
not be used with conflicting semantics by any Working Group,
|
|
Packit |
712bc5 |
specification, or document instance:
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
base (as an attribute name): denotes an attribute whose value
|
|
Packit |
712bc5 |
provides a URI to be used as the base for interpreting any
|
|
Packit |
712bc5 |
relative URIs in the scope of the element on which it
|
|
Packit |
712bc5 |
appears; its value is inherited. This name is reserved
|
|
Packit |
712bc5 |
by virtue of its definition in the XML Base specification.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
id (as an attribute name): denotes an attribute whose value
|
|
Packit |
712bc5 |
should be interpreted as if declared to be of type ID.
|
|
Packit |
712bc5 |
The xml:id specification is not yet a W3C Recommendation,
|
|
Packit |
712bc5 |
but this attribute is included here to facilitate experimentation
|
|
Packit |
712bc5 |
with the mechanisms it proposes. Note that it is _not_ included
|
|
Packit |
712bc5 |
in the specialAttrs attribute group.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
lang (as an attribute name): denotes an attribute whose value
|
|
Packit |
712bc5 |
is a language code for the natural language of the content of
|
|
Packit |
712bc5 |
any element; its value is inherited. This name is reserved
|
|
Packit |
712bc5 |
by virtue of its definition in the XML specification.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
space (as an attribute name): denotes an attribute whose
|
|
Packit |
712bc5 |
value is a keyword indicating what whitespace processing
|
|
Packit |
712bc5 |
discipline is intended for the content of the element; its
|
|
Packit |
712bc5 |
value is inherited. This name is reserved by virtue of its
|
|
Packit |
712bc5 |
definition in the XML specification.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
Father (in any context at all): denotes Jon Bosak, the chair of
|
|
Packit |
712bc5 |
the original XML Working Group. This name is reserved by
|
|
Packit |
712bc5 |
the following decision of the W3C XML Plenary and
|
|
Packit |
712bc5 |
XML Coordination groups:
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
In appreciation for his vision, leadership and dedication
|
|
Packit |
712bc5 |
the W3C XML Plenary on this 10th day of February, 2000
|
|
Packit |
712bc5 |
reserves for Jon Bosak in perpetuity the XML name
|
|
Packit |
712bc5 |
xml:Father
|
|
Packit |
712bc5 |
</xs:documentation>
|
|
Packit |
712bc5 |
</xs:annotation>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:annotation>
|
|
Packit |
712bc5 |
<xs:documentation>This schema defines attributes and an attribute group
|
|
Packit |
712bc5 |
suitable for use by
|
|
Packit |
712bc5 |
schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
|
|
Packit |
712bc5 |
attributes on elements they define.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
To enable this, such a schema must import this schema
|
|
Packit |
712bc5 |
for the XML namespace, e.g. as follows:
|
|
Packit |
712bc5 |
<schema . . .>
|
|
Packit |
712bc5 |
. . .
|
|
Packit |
712bc5 |
<import namespace="http://www.w3.org/XML/1998/namespace"
|
|
Packit |
712bc5 |
schemaLocation="http://www.w3.org/2005/08/xml.xsd"/>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
Subsequently, qualified reference to any of the attributes
|
|
Packit |
712bc5 |
or the group defined below will have the desired effect, e.g.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<type . . .>
|
|
Packit |
712bc5 |
. . .
|
|
Packit |
712bc5 |
<attributeGroup ref="xml:specialAttrs"/>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
will define a type which will schema-validate an instance
|
|
Packit |
712bc5 |
element with any of those attributes</xs:documentation>
|
|
Packit |
712bc5 |
</xs:annotation>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:annotation>
|
|
Packit |
712bc5 |
<xs:documentation>In keeping with the XML Schema WG's standard versioning
|
|
Packit |
712bc5 |
policy, this schema document will persist at
|
|
Packit |
712bc5 |
http://www.w3.org/2005/08/xml.xsd.
|
|
Packit |
712bc5 |
At the date of issue it can also be found at
|
|
Packit |
712bc5 |
http://www.w3.org/2001/xml.xsd.
|
|
Packit |
712bc5 |
The schema document at that URI may however change in the future,
|
|
Packit |
712bc5 |
in order to remain compatible with the latest version of XML Schema
|
|
Packit |
712bc5 |
itself, or with the XML namespace itself. In other words, if the XML
|
|
Packit |
712bc5 |
Schema or XML namespaces change, the version of this document at
|
|
Packit |
712bc5 |
http://www.w3.org/2001/xml.xsd will change
|
|
Packit |
712bc5 |
accordingly; the version at
|
|
Packit |
712bc5 |
http://www.w3.org/2005/08/xml.xsd will not change.
|
|
Packit |
712bc5 |
</xs:documentation>
|
|
Packit |
712bc5 |
</xs:annotation>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:attribute name="lang">
|
|
Packit |
712bc5 |
<xs:annotation>
|
|
Packit |
712bc5 |
<xs:documentation>Attempting to install the relevant ISO 2- and 3-letter
|
|
Packit |
712bc5 |
codes as the enumerated possible values is probably never
|
|
Packit |
712bc5 |
going to be a realistic possibility. See
|
|
Packit |
712bc5 |
RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
|
|
Packit |
712bc5 |
at http://www.iana.org/assignments/lang-tag-apps.htm for
|
|
Packit |
712bc5 |
further information.
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
The union allows for the 'un-declaration' of xml:lang with
|
|
Packit |
712bc5 |
the empty string.</xs:documentation>
|
|
Packit |
712bc5 |
</xs:annotation>
|
|
Packit |
712bc5 |
<xs:simpleType>
|
|
Packit |
712bc5 |
<xs:union memberTypes="xs:language">
|
|
Packit |
712bc5 |
<xs:simpleType>
|
|
Packit |
712bc5 |
<xs:restriction base="xs:string">
|
|
Packit |
712bc5 |
<xs:enumeration value=""/>
|
|
Packit |
712bc5 |
</xs:restriction>
|
|
Packit |
712bc5 |
</xs:simpleType>
|
|
Packit |
712bc5 |
</xs:union>
|
|
Packit |
712bc5 |
</xs:simpleType>
|
|
Packit |
712bc5 |
</xs:attribute>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:attribute name="space">
|
|
Packit |
712bc5 |
<xs:simpleType>
|
|
Packit |
712bc5 |
<xs:restriction base="xs:NCName">
|
|
Packit |
712bc5 |
<xs:enumeration value="default"/>
|
|
Packit |
712bc5 |
<xs:enumeration value="preserve"/>
|
|
Packit |
712bc5 |
</xs:restriction>
|
|
Packit |
712bc5 |
</xs:simpleType>
|
|
Packit |
712bc5 |
</xs:attribute>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:attribute name="base" type="xs:anyURI">
|
|
Packit |
712bc5 |
<xs:annotation>
|
|
Packit |
712bc5 |
<xs:documentation>See http://www.w3.org/TR/xmlbase/ for
|
|
Packit |
712bc5 |
information about this attribute.</xs:documentation>
|
|
Packit |
712bc5 |
</xs:annotation>
|
|
Packit |
712bc5 |
</xs:attribute>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:attribute name="id" type="xs:ID">
|
|
Packit |
712bc5 |
<xs:annotation>
|
|
Packit |
712bc5 |
<xs:documentation>See http://www.w3.org/TR/xml-id/ for
|
|
Packit |
712bc5 |
information about this attribute.</xs:documentation>
|
|
Packit |
712bc5 |
</xs:annotation>
|
|
Packit |
712bc5 |
</xs:attribute>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
<xs:attributeGroup name="specialAttrs">
|
|
Packit |
712bc5 |
<xs:attribute ref="xml:base"/>
|
|
Packit |
712bc5 |
<xs:attribute ref="xml:lang"/>
|
|
Packit |
712bc5 |
<xs:attribute ref="xml:space"/>
|
|
Packit |
712bc5 |
</xs:attributeGroup>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
</xs:schema>
|