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    lang (as an attribute name): denotes an attribute whose value
 25         is a language code for the natural language of the content of
 26         any element; its value is inherited.  This name is reserved
 27         by virtue of its definition in the XML specification.
 28  
 29    space (as an attribute name): denotes an attribute whose
 30         value is a keyword indicating what whitespace processing
 31         discipline is intended for the content of the element; its
 32         value is inherited.  This name is reserved by virtue of its
 33         definition in the XML specification.
 34
 35    Father (in any context at all): denotes Jon Bosak, the chair of 
 36         the original XML Working Group.  This name is reserved by 
 37         the following decision of the W3C XML Plenary and 
 38         XML Coordination groups:
 39
 40             In appreciation for his vision, leadership and dedication
 41             the W3C XML Plenary on this 10th day of February, 2000
 42             reserves for Jon Bosak in perpetuity the XML name
 43             xml:Father
 44  </xs:documentation>
 45 </xs:annotation>
 46
 47 <xs:annotation>
 48  <xs:documentation>This schema defines attributes and an attribute group
 49        suitable for use by
 50        schemas wishing to allow xml:base, xml:lang or xml:space attributes
 51        on elements they define.
 52
 53        To enable this, such a schema must import this schema
 54        for the XML namespace, e.g. as follows:
 55        &lt;schema . . .>
 56         . . .
 57         &lt;import namespace="http://www.w3.org/XML/1998/namespace"
 58                    schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
 59
 60        Subsequently, qualified reference to any of the attributes
 61        or the group defined below will have the desired effect, e.g.
 62
 63        &lt;type . . .>
 64         . . .
 65         &lt;attributeGroup ref="xml:specialAttrs"/>
 66 
 67         will define a type which will schema-validate an instance
 68         element with any of those attributes</xs:documentation>
 69 </xs:annotation>
 70
 71 <xs:annotation>
 72  <xs:documentation>In keeping with the XML Schema WG's standard versioning
 73   policy, this schema document will persist at
 74   http://www.w3.org/2001/03/xml.xsd.
 75   At the date of issue it can also be found at
 76   http://www.w3.org/2001/xml.xsd.
 77   The schema document at that URI may however change in the future,
 78   in order to remain compatible with the latest version of XML Schema
 79   itself.  In other words, if the XML Schema namespace changes, the version
 80   of this document at
 81   http://www.w3.org/2001/xml.xsd will change
 82   accordingly; the version at
 83   http://www.w3.org/2001/03/xml.xsd will not change.
 84  </xs:documentation>
 85 </xs:annotation>
 86
 87 <xs:attribute name="lang" type="xs:language">
 88  <xs:annotation>
 89   <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter
 90         codes as the enumerated possible values . . .</xs:documentation>
 91  </xs:annotation>
 92 </xs:attribute>
 93
 94 <xs:attribute name="space" default="preserve">
 95  <xs:simpleType>
 96   <xs:restriction base="xs:NCName">
 97    <xs:enumeration value="default"/>
 98    <xs:enumeration value="preserve"/>
 99   </xs:restriction>
100  </xs:simpleType>
101 </xs:attribute>
102
103 <xs:attribute name="base" type="xs:anyURI">
104  <xs:annotation>
105   <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
106                     information about this attribute.</xs:documentation>
107  </xs:annotation>
108 </xs:attribute>
109
110 <xs:attributeGroup name="specialAttrs">
111  <xs:attribute ref="xml:base"/>
112  <xs:attribute ref="xml:lang"/>
113  <xs:attribute ref="xml:space"/>
114 </xs:attributeGroup>
115
116</xs:schema>