Blame test/schemas/xml.xsd

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