Advertisement
Motenten

XInclude.xsd

Sep 22nd, 2012
1,199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.85 KB | None | 0 0
  1. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xi="http://www.w3.org/2001/XInclude" targetNamespace="http://www.w3.org/2001/XInclude" finalDefault="extension">
  2.   <xs:annotation>
  3.    <xs:documentation>
  4.     Not normative, but may be useful.
  5.     See the REC http://www.w3.org/TR/XInclude for definitive
  6.     information about this namespace.
  7.    </xs:documentation>
  8.   </xs:annotation>
  9.  
  10.   <xs:element name="include" type="xi:includeType"/>
  11.  
  12.   <xs:complexType name="includeType" mixed="true">
  13.     <xs:choice minOccurs="0" maxOccurs="unbounded">
  14.       <xs:element ref="xi:fallback"/>
  15.       <xs:any namespace="##other" processContents="lax"/>
  16.       <xs:any namespace="##local" processContents="lax"/>
  17.     </xs:choice>
  18.     <xs:attribute name="href" use="optional" type="xs:anyURI"/>
  19.     <xs:attribute name="parse" use="optional" default="xml" type="xi:parseType"/>
  20.     <xs:attribute name="xpointer" use="optional" type="xs:string"/>
  21.     <xs:attribute name="encoding" use="optional" type="xs:string"/>
  22.     <xs:attribute name="accept" use="optional" type="xs:string"/>
  23.     <xs:attribute name="accept-language" use="optional" type="xs:string"/>
  24.     <xs:anyAttribute namespace="##other" processContents="lax"/>
  25.   </xs:complexType>
  26.  
  27.   <xs:simpleType name="parseType">
  28.     <xs:restriction base="xs:token">
  29.       <xs:enumeration value="xml"/>
  30.       <xs:enumeration value="text"/>
  31.     </xs:restriction>
  32.   </xs:simpleType>
  33.  
  34.   <xs:element name="fallback" type="xi:fallbackType"/>
  35.  
  36.   <xs:complexType name="fallbackType" mixed="true">
  37.     <xs:choice minOccurs="0" maxOccurs="unbounded">
  38.       <xs:element ref="xi:include"/>
  39.       <xs:any namespace="##other" processContents="lax"/>
  40.       <xs:any namespace="##local" processContents="lax"/>
  41.     </xs:choice>
  42.     <xs:anyAttribute namespace="##other" processContents="lax"/>
  43.   </xs:complexType>
  44.  
  45. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement