configurationengine/doc/xsd/XInclude.xsd
changeset 0 2e8eeb919028
equal deleted inserted replaced
-1:000000000000 0:2e8eeb919028
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
       
     3            xmlns:xi="http://www.w3.org/2001/XInclude"
       
     4            targetNamespace="http://www.w3.org/2001/XInclude"
       
     5            finalDefault="extension">
       
     6 
       
     7   <xs:element name="include" type="xi:includeType" />
       
     8 
       
     9   <xs:complexType name="includeType" mixed="true">
       
    10     <xs:choice minOccurs='0' maxOccurs='unbounded' >
       
    11       <xs:element ref='xi:fallback' />
       
    12       <xs:any namespace='##other' processContents='lax' />
       
    13       <xs:any namespace='##local' processContents='lax' />
       
    14     </xs:choice>
       
    15     <xs:attribute name="href" use="optional" type="xs:anyURI"/>
       
    16     <xs:attribute name="parse" use="optional" default="xml"
       
    17                   type="xi:parseType" />
       
    18     <xs:attribute name="xpointer" use="optional" type="xs:string"/>
       
    19     <xs:attribute name="encoding" use="optional" type="xs:string"/>
       
    20     <xs:attribute name="accept" use="optional" type="xs:string"/>
       
    21     <xs:attribute name="accept-language" use="optional" type="xs:string"/>
       
    22     <xs:anyAttribute namespace="##other" processContents="lax"/>
       
    23   </xs:complexType>
       
    24 
       
    25   <xs:simpleType name="parseType">
       
    26     <xs:restriction base="xs:token">
       
    27       <xs:enumeration value="xml"/>
       
    28       <xs:enumeration value="text"/>
       
    29     </xs:restriction>
       
    30   </xs:simpleType>
       
    31   
       
    32   <xs:element name="fallback" type="xi:fallbackType" />
       
    33 
       
    34   <xs:complexType name="fallbackType" mixed="true">
       
    35     <xs:choice minOccurs="0" maxOccurs="unbounded">
       
    36       <xs:element ref="xi:include"/>
       
    37       <xs:any namespace="##other" processContents="lax"/>
       
    38       <xs:any namespace="##local" processContents="lax"/>
       
    39     </xs:choice>
       
    40     <xs:anyAttribute namespace="##other" processContents="lax" />
       
    41   </xs:complexType>
       
    42 
       
    43 </xs:schema>