blob: 8fbe0c8ee4a086074cdca852f6a5b656d73bcd05 [file] [log] [blame]
Carsten Hiesserichd741ae42013-09-26 18:41:33 +02001<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
2 xmlns:xi="http://www.w3.org/2001/XInclude"
3 targetNamespace="http://www.w3.org/2001/XInclude"
4 finalDefault="extension">
5 <xs:annotation>
6 <xs:documentation>
7 Not normative, but may be useful.
8 See the REC http://www.w3.org/TR/XInclude for definitive
9 information about this namespace.
10 </xs:documentation>
11 </xs:annotation>
12
13 <xs:element name="include" type="xi:includeType" />
14
15 <xs:complexType name="includeType" mixed="true">
16 <xs:choice minOccurs='0' maxOccurs='unbounded' >
17 <xs:element ref='xi:fallback' />
18 <xs:any namespace='##other' processContents='lax' />
19 <xs:any namespace='##local' processContents='lax' />
20 </xs:choice>
21 <xs:attribute name="href" use="optional" type="xs:anyURI"/>
22 <xs:attribute name="parse" use="optional" default="xml"
23 type="xi:parseType" />
24 <xs:attribute name="xpointer" use="optional" type="xs:string"/>
25 <xs:attribute name="encoding" use="optional" type="xs:string"/>
26 <xs:attribute name="accept" use="optional" type="xs:string"/>
27 <xs:attribute name="accept-language" use="optional" type="xs:string"/>
28 <xs:anyAttribute namespace="##other" processContents="lax"/>
29 </xs:complexType>
30
31 <xs:simpleType name="parseType">
32 <xs:restriction base="xs:token">
33 <xs:enumeration value="xml"/>
34 <xs:enumeration value="text"/>
35 </xs:restriction>
36 </xs:simpleType>
37
38 <xs:element name="fallback" type="xi:fallbackType" />
39
40 <xs:complexType name="fallbackType" mixed="true">
41 <xs:choice minOccurs="0" maxOccurs="unbounded">
42 <xs:element ref="xi:include"/>
43 <xs:any namespace="##other" processContents="lax"/>
44 <xs:any namespace="##local" processContents="lax"/>
45 </xs:choice>
46 <xs:anyAttribute namespace="##other" processContents="lax" />
47 </xs:complexType>
48
49</xs:schema>