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