File:  [LON-CAPA] / modules / damieng / clean_xml / xml.xsd
Revision 1.1: download - view: text, annotated - select for diffs
Fri Apr 17 15:35:01 2015 UTC (9 years, 5 months ago) by damieng
Branches: MAIN
CVS tags: HEAD
added clean_xml and graphical_editor

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>