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