home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / servlet-api.jar / javax / servlet / resources / xml.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2004-08-28  |  3.5 KB  |  97 lines

  1. <?xml version='1.0'?>
  2. <!--
  3.   Copyright 2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >
  18. <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
  19.  
  20.  <xs:annotation>
  21.   <xs:documentation>
  22.    See http://www.w3.org/XML/1998/namespace.html and
  23.    http://www.w3.org/TR/REC-xml for information about this namespace.
  24.   </xs:documentation>
  25.  </xs:annotation>
  26.  
  27.  <xs:annotation>
  28.   <xs:documentation>This schema defines attributes and an attribute group
  29.         suitable for use by
  30.         schemas wishing to allow xml:base, xml:lang or xml:space attributes
  31.         on elements they define.
  32.  
  33.         To enable this, such a schema must import this schema
  34.         for the XML namespace, e.g. as follows:
  35.         <schema . . .>
  36.          . . .
  37.          <import namespace="http://www.w3.org/XML/1998/namespace"
  38.                     schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
  39.  
  40.         Subsequently, qualified reference to any of the attributes
  41.         or the group defined below will have the desired effect, e.g.
  42.  
  43.         <type . . .>
  44.          . . .
  45.          <attributeGroup ref="xml:specialAttrs"/>
  46.  
  47.          will define a type which will schema-validate an instance
  48.          element with any of those attributes</xs:documentation>
  49.  </xs:annotation>
  50.  
  51.  <xs:annotation>
  52.   <xs:documentation>In keeping with the XML Schema WG's standard versioning
  53.    policy, this schema document will persist at
  54.    http://www.w3.org/2001/03/xml.xsd.
  55.    At the date of issue it can also be found at
  56.    http://www.w3.org/2001/xml.xsd.
  57.    The schema document at that URI may however change in the future,
  58.    in order to remain compatible with the latest version of XML Schema
  59.    itself.  In other words, if the XML Schema namespace changes, the version
  60.    of this document at
  61.    http://www.w3.org/2001/xml.xsd will change
  62.    accordingly; the version at
  63.    http://www.w3.org/2001/03/xml.xsd will not change.
  64.   </xs:documentation>
  65.  </xs:annotation>
  66.  
  67.  <xs:attribute name="lang" type="xs:language">
  68.   <xs:annotation>
  69.    <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter
  70.          codes as the enumerated possible values . . .</xs:documentation>
  71.   </xs:annotation>
  72.  </xs:attribute>
  73.  
  74.  <xs:attribute name="space" default="preserve">
  75.   <xs:simpleType>
  76.    <xs:restriction base="xs:NCName">
  77.     <xs:enumeration value="default"/>
  78.     <xs:enumeration value="preserve"/>
  79.    </xs:restriction>
  80.   </xs:simpleType>
  81.  </xs:attribute>
  82.  
  83.  <xs:attribute name="base" type="xs:anyURI">
  84.   <xs:annotation>
  85.    <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
  86.                      information about this attribute.</xs:documentation>
  87.   </xs:annotation>
  88.  </xs:attribute>
  89.  
  90.  <xs:attributeGroup name="specialAttrs">
  91.   <xs:attribute ref="xml:base"/>
  92.   <xs:attribute ref="xml:lang"/>
  93.   <xs:attribute ref="xml:space"/>
  94.  </xs:attributeGroup>
  95.  
  96. </xs:schema>
  97.