home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 160 - Disc 2 / MF_UK_160_2.iso / pc / DiscContent / Trials / oxygen / lib / oxygen.jar / builtin / xml.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-21  |  5.5 KB  |  134 lines

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