home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / Catalog.xsd1 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-19  |  7.5 KB  |  198 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE xs:schema SYSTEM "http://www.w3.org/2001/XMLSchema.dtd" [
  3. <!ENTITY % schemaAttrs "
  4.     xmlns:er    CDATA   #IMPLIED
  5. ">
  6. ]>
  7. <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
  8.            xmlns:er='urn:oasis:names:tc:entity:xmlns:xml:catalog'
  9.            targetNamespace='urn:oasis:names:tc:entity:xmlns:xml:catalog'
  10.            elementFormDefault='qualified'>
  11.  
  12.   <!-- $Id: Catalog.xsd,v 1.1.2.1 2002/08/19 19:27:51 vlg Exp $ -->
  13.  
  14.   <xs:simpleType name='pubIdChars'>
  15.     <!-- A string of the characters defined as pubIdChar in production 13
  16.          of the Second Edition of the XML 1.0 Recommendation -->
  17.     <xs:restriction base='xs:string'/>
  18.   </xs:simpleType>
  19.  
  20.   <xs:simpleType name='publicIdentifier'>
  21.     <xs:restriction base='xs:string'/>
  22.   </xs:simpleType>
  23.  
  24.   <xs:simpleType name='partialPublicIdentifier'>
  25.     <xs:restriction base='er:pubIdChars'/>
  26.   </xs:simpleType>
  27.  
  28.   <xs:simpleType name='systemOrPublic'>
  29.     <xs:restriction base='xs:string'>
  30.       <xs:enumeration value='system'/>
  31.       <xs:enumeration value='public'/>
  32.     </xs:restriction>
  33.   </xs:simpleType>
  34.  
  35.   <!-- The global attribute xml:base is not explicitly declared; -->
  36.   <!-- it is allowed by the anyAttribute declarations. -->
  37.  
  38.   <xs:complexType name='catalog'>
  39.     <xs:choice minOccurs='1' maxOccurs='unbounded'>
  40.       <xs:element ref='er:public'/>
  41.       <xs:element ref='er:system'/>
  42.       <xs:element ref='er:uri'/>
  43.       <xs:element ref='er:rewriteSystem'/>
  44.       <xs:element ref='er:rewriteURI'/>
  45.       <xs:element ref='er:delegatePublic'/>
  46.       <xs:element ref='er:delegateSystem'/>
  47.       <xs:element ref='er:delegateURI'/>
  48.       <xs:element ref='er:nextCatalog'/>
  49.       <xs:element ref='er:group'/>
  50.       <xs:any namespace='##other' processContents='skip'/>
  51.     </xs:choice>
  52.     <xs:attribute name='id' type='xs:ID'/>
  53.     <xs:attribute name='prefer' type='er:systemOrPublic'/>
  54.     <xs:anyAttribute namespace="##other" processContents="lax"/>
  55.   </xs:complexType>
  56.  
  57.   <xs:complexType name='public'>
  58.     <xs:complexContent>
  59.       <xs:restriction base="xs:anyType">
  60.         <xs:attribute name="publicId" type="er:publicIdentifier"
  61.                        use="required"/>
  62.         <xs:attribute name="uri" type="xs:anyURI" use="required"/>
  63.         <xs:attribute name='id' type='xs:ID'/>
  64.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  65.       </xs:restriction>
  66.     </xs:complexContent>
  67.   </xs:complexType>
  68.  
  69.   <xs:complexType name='system'>
  70.     <xs:complexContent>
  71.       <xs:restriction base="xs:anyType">
  72.         <xs:attribute name="systemId" type="xs:string"
  73.                        use="required"/>
  74.         <xs:attribute name="uri" type="xs:anyURI" use="required"/>
  75.         <xs:attribute name='id' type='xs:ID'/>
  76.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  77.       </xs:restriction>
  78.     </xs:complexContent>
  79.   </xs:complexType>
  80.  
  81.   <xs:complexType name='uri'>
  82.     <xs:complexContent>
  83.       <xs:restriction base="xs:anyType">
  84.         <xs:attribute name="name" type="xs:anyURI"
  85.                        use="required"/>
  86.         <xs:attribute name="uri" type="xs:anyURI" use="required"/>
  87.         <xs:attribute name='id' type='xs:ID'/>
  88.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  89.       </xs:restriction>
  90.     </xs:complexContent>
  91.   </xs:complexType>
  92.  
  93.   <xs:complexType name='rewriteSystem'>
  94.     <xs:complexContent>
  95.       <xs:restriction base="xs:anyType">
  96.         <xs:attribute name="systemIdStartString"
  97.                        type="xs:string"
  98.                        use="required"/>
  99.         <xs:attribute name="rewritePrefix" type="xs:string" use="required"/>
  100.         <xs:attribute name='id' type='xs:ID'/>
  101.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  102.       </xs:restriction>
  103.     </xs:complexContent>
  104.   </xs:complexType>
  105.  
  106.   <xs:complexType name='rewriteURI'>
  107.     <xs:complexContent>
  108.       <xs:restriction base="xs:anyType">
  109.         <xs:attribute name="uriIdStartString"
  110.                        type="xs:string"
  111.                        use="required"/>
  112.         <xs:attribute name="rewritePrefix" type="xs:string" use="required"/>
  113.         <xs:attribute name='id' type='xs:ID'/>
  114.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  115.       </xs:restriction>
  116.     </xs:complexContent>
  117.   </xs:complexType>
  118.  
  119.   <xs:complexType name='delegatePublic'>
  120.     <xs:complexContent>
  121.       <xs:restriction base="xs:anyType">
  122.         <xs:attribute name="publicIdStartString"
  123.                        type="er:partialPublicIdentifier"
  124.                        use="required"/>
  125.         <xs:attribute name="catalog" type="xs:anyURI" use="required"/>
  126.         <xs:attribute name='id' type='xs:ID'/>
  127.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  128.       </xs:restriction>
  129.     </xs:complexContent>
  130.   </xs:complexType>
  131.  
  132.   <xs:complexType name='delegateSystem'>
  133.     <xs:complexContent>
  134.       <xs:restriction base="xs:anyType">
  135.         <xs:attribute name="systemIdStartString"
  136.                        type="xs:string"
  137.                        use="required"/>
  138.         <xs:attribute name="catalog" type="xs:anyURI" use="required"/>
  139.         <xs:attribute name='id' type='xs:ID'/>
  140.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  141.       </xs:restriction>
  142.     </xs:complexContent>
  143.   </xs:complexType>
  144.  
  145.   <xs:complexType name='delegateURI'>
  146.     <xs:complexContent>
  147.       <xs:restriction base="xs:anyType">
  148.         <xs:attribute name="uriStartString"
  149.                        type="xs:string"
  150.                        use="required"/>
  151.         <xs:attribute name="catalog" type="xs:anyURI" use="required"/>
  152.         <xs:attribute name='id' type='xs:ID'/>
  153.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  154.       </xs:restriction>
  155.     </xs:complexContent>
  156.   </xs:complexType>
  157.  
  158.   <xs:complexType name='nextCatalog'>
  159.     <xs:complexContent>
  160.       <xs:restriction base="xs:anyType">
  161.         <xs:attribute name="catalog" type="xs:anyURI" use="required"/>
  162.         <xs:attribute name='id' type='xs:ID'/>
  163.         <xs:anyAttribute namespace="##other" processContents="lax"/>
  164.       </xs:restriction>
  165.     </xs:complexContent>
  166.   </xs:complexType>
  167.  
  168.   <xs:complexType name='group'>
  169.     <xs:choice minOccurs='1' maxOccurs='unbounded'>
  170.       <xs:element ref='er:public'/>
  171.       <xs:element ref='er:system'/>
  172.       <xs:element ref='er:uri'/>
  173.       <xs:element ref='er:rewriteSystem'/>
  174.       <xs:element ref='er:rewriteURI'/>
  175.       <xs:element ref='er:delegatePublic'/>
  176.       <xs:element ref='er:delegateSystem'/>
  177.       <xs:element ref='er:delegateURI'/>
  178.       <xs:element ref='er:nextCatalog'/>
  179.       <xs:any namespace='##other' processContents='skip'/>
  180.     </xs:choice>
  181.     <xs:attribute name='prefer' type='er:systemOrPublic'/>
  182.     <xs:attribute name='id' type='xs:ID'/>
  183.     <xs:anyAttribute namespace="##other" processContents="lax"/>
  184.   </xs:complexType>
  185.  
  186.   <xs:element name="catalog" type="er:catalog"/>
  187.   <xs:element name="public" type="er:public"/>
  188.   <xs:element name="system" type="er:system"/>
  189.   <xs:element name="uri" type="er:uri"/>
  190.   <xs:element name="rewriteSystem" type="er:rewriteSystem"/>
  191.   <xs:element name="rewriteURI" type="er:rewriteURI"/>
  192.   <xs:element name="delegatePublic" type="er:delegatePublic"/>
  193.   <xs:element name="delegateSystem" type="er:delegateSystem"/>
  194.   <xs:element name="delegateURI" type="er:delegateURI"/>
  195.   <xs:element name="nextCatalog" type="er:nextCatalog"/>
  196.   <xs:element name="group" type="er:group"/>
  197.  
  198. </xs:schema>