summaryrefslogtreecommitdiff
path: root/schema/mathml2/content/sets.xsd
blob: 7a7f7f6851ddeaa4ffcfd610c94677a5ee3df9bd (plain)
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<?xml version="1.0" encoding="UTF-8"?>

<xs:schema 
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns="http://www.w3.org/1998/Math/MathML"
  targetNamespace="http://www.w3.org/1998/Math/MathML"
  elementFormDefault="qualified"
 >

<xs:annotation>
  <xs:documentation>
  This is an XML Schema module for the part of content MathML dealing with
  sets and lists.
  Author: St&#233;phane Dalmas, INRIA.
  </xs:documentation>
</xs:annotation>

<!-- "set" -->

<!-- "type" could be "multiset" or "normal" or anything else -->
<xs:attributeGroup name="set.attlist">
  <xs:attribute name="type" type="xs:string"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:group name="set.content">
  <xs:sequence>
     <xs:group ref="Content-expr.class"/>
  </xs:sequence>
</xs:group>

<xs:complexType name="set.type">
  <xs:group ref="set.content"  minOccurs="0" maxOccurs="unbounded"/>
  <xs:attributeGroup ref="set.attlist"/>
</xs:complexType>

<xs:element name="set" type="set.type"/>

<!-- "list" -->

<xs:attributeGroup name="list.attlist">
  <xs:attribute name="order">
    <xs:simpleType>
       <xs:restriction base="xs:string">
          <xs:enumeration value="lexicographic"/>
          <xs:enumeration value="numeric"/>
       </xs:restriction>
    </xs:simpleType>
  </xs:attribute>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:group name="list.content">
  <xs:sequence>
     <xs:group ref="Content-expr.class"/>
  </xs:sequence>
</xs:group>

<xs:complexType name="list.type">
  <xs:group ref="list.content"  minOccurs="0" maxOccurs="unbounded"/>
  <xs:attributeGroup ref="list.attlist"/>
</xs:complexType>

<xs:element name="list" type="list.type"/>

<!-- "union" -->

<xs:attributeGroup name="union.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="union.type">
  <xs:attributeGroup ref="union.attlist"/>
</xs:complexType>

<xs:element name="union" type="union.type"/>

<!-- "intersect" -->

<xs:attributeGroup name="intersect.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="intersect.type">
  <xs:attributeGroup ref="intersect.attlist"/>
</xs:complexType>

<xs:element name="intersect" type="intersect.type"/>

<!-- "in" -->

<xs:attributeGroup name="in.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="in.type">
  <xs:attributeGroup ref="in.attlist"/>
</xs:complexType>

<xs:element name="in" type="in.type"/>

<!-- "notin" -->

<xs:attributeGroup name="notin.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="notin.type">
  <xs:attributeGroup ref="notin.attlist"/>
</xs:complexType>

<xs:element name="notin" type="notin.type"/>

<!-- "subset" -->

<xs:attributeGroup name="subset.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="subset.type">
  <xs:attributeGroup ref="subset.attlist"/>
</xs:complexType>

<xs:element name="subset" type="subset.type"/>

<!-- "prsubset" -->

<xs:attributeGroup name="prsubset.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="prsubset.type">
  <xs:attributeGroup ref="prsubset.attlist"/>
</xs:complexType>

<xs:element name="prsubset" type="prsubset.type"/>

<!-- "notsubset" -->

<xs:attributeGroup name="notsubset.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="notsubset.type">
  <xs:attributeGroup ref="notsubset.attlist"/>
</xs:complexType>

<xs:element name="notsubset" type="notsubset.type"/>

<!-- "notprsubset" -->

<xs:attributeGroup name="notprsubset.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="notprsubset.type">
  <xs:attributeGroup ref="notprsubset.attlist"/>
</xs:complexType>

<xs:element name="notprsubset" type="notprsubset.type"/>

<!-- "setdiff" -->

<xs:attributeGroup name="setdiff.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="setdiff.type">
  <xs:attributeGroup ref="setdiff.attlist"/>
</xs:complexType>

<xs:element name="setdiff" type="setdiff.type"/>

<!-- "card" -->

<xs:attributeGroup name="card.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="card.type">
  <xs:attributeGroup ref="card.attlist"/>
</xs:complexType>

<xs:element name="card" type="card.type"/>

<!-- "cartesianproduct" -->

<xs:attributeGroup name="cartesianproduct.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="cartesianproduct.type">
  <xs:attributeGroup ref="cartesianproduct.attlist"/>
</xs:complexType>

<xs:element name="cartesianproduct" type="cartesianproduct.type"/>

<!-- And the group of everything -->

<xs:group name="Content-sets.class">
  <xs:choice>
    <xs:element ref="set"/>
    <xs:element ref="list"/>
    <xs:element ref="union"/>
    <xs:element ref="intersect"/>
    <xs:element ref="in"/>
    <xs:element ref="notin"/>
    <xs:element ref="subset"/>
    <xs:element ref="prsubset"/>
    <xs:element ref="notsubset"/>
    <xs:element ref="notprsubset"/>
    <xs:element ref="setdiff"/>
    <xs:element ref="card"/>
    <xs:element ref="cartesianproduct"/>
  </xs:choice>
</xs:group>

</xs:schema>

<!--
  Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
  of Technology, Institut National de Recherche en Informatique et en
  Automatique, Keio University). All Rights Reserved. See
  http://www.w3.org/Consortium/Legal/.
  -->