-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagesnippets.xsd
114 lines (114 loc) · 4 KB
/
pagesnippets.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="https://github.com/suppenhuhn79/pagesnippets" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ps="https://github.com/suppenhuhn79/pagesnippets">
<xsd:element name="pagesnippets">
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="stylesheet">
<xsd:complexType>
<xsd:attribute type="xsd:string" name="src" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="script">
<xsd:complexType>
<xsd:attribute type="xsd:string" name="src" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element ref="ps:snippet" />
<xsd:element ref="ps:snippet-group" />
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="snippet">
<xsd:complexType>
<xsd:choice>
<xsd:any namespace="##other" processContents="lax" />
<xsd:element ref="ps:insert-snippet" />
</xsd:choice>
<xsd:attribute type="xsd:string" name="name" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="snippet-group">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element ref="ps:snippet" />
<xsd:element ref="ps:snippet-group" />
</xsd:choice>
<xsd:attribute type="xsd:string" name="name" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="call-function">
<xsd:complexType>
<xsd:attribute type="xsd:string" name="name" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="choose">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="ps:if" maxOccurs="unbounded" />
<xsd:element name="else" type="ps:ctContent" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="mode" default="strict">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="strict|lax" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="for-each" type="ps:ctContentList" />
<xsd:element name="for-empty" type="ps:ctContentList" />
<xsd:element name="if" type="ps:ctContentTest" />
<xsd:element name="insert-snippet">
<xsd:complexType>
<xsd:attribute type="xsd:string" name="name" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="text">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute type="xsd:string" name="date-format" />
<xsd:attribute type="xsd:string" name="number-format" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="ctContent">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:any namespace="##other" processContents="lax" />
<xsd:element ref="ps:call-function" />
<xsd:element ref="ps:choose" />
<xsd:element ref="ps:if" />
<xsd:element ref="ps:for-each" />
<xsd:element ref="ps:for-empty" />
<xsd:element ref="ps:insert-snippet" />
<xsd:element ref="ps:text" />
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="ctContentList">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:any namespace="##other" processContents="lax" />
<xsd:element ref="ps:call-function" />
<xsd:element ref="ps:choose" />
<xsd:element ref="ps:if" />
<xsd:element ref="ps:for-each" />
<xsd:element ref="ps:for-empty" />
<xsd:element ref="ps:insert-snippet" />
<xsd:element ref="ps:text" />
</xsd:choice>
<xsd:attribute name="list" use="required" />
</xsd:complexType>
<xsd:complexType name="ctContentTest">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:any namespace="##other" processContents="lax" />
<xsd:element ref="ps:call-function" />
<xsd:element ref="ps:choose" />
<xsd:element ref="ps:if" />
<xsd:element ref="ps:for-each" />
<xsd:element ref="ps:for-empty" />
<xsd:element ref="ps:insert-snippet" />
<xsd:element ref="ps:text" />
</xsd:choice>
<xsd:attribute name="test" use="required" />
</xsd:complexType>
</xsd:schema>