-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathxhtml11-model-1.xsd
324 lines (320 loc) · 12.3 KB
/
xhtml11-model-1.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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:e="http://ylioppilastutkinto.fi/exam.xsd"
xmlns:xh11d="http://www.w3.org/1999/xhtml/datatypes/" elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/1999/xhtml/datatypes/" schemaLocation="xhtml-datatypes-1.xsd" />
<xs:import namespace="http://ylioppilastutkinto.fi/exam.xsd" schemaLocation="exam.xsd" />
<xs:annotation>
<xs:documentation>
This is the XML Schema module of common content models for XHTML11
$Id: xhtml11-model-1.xsd,v 1.9 2009/02/03 15:14:49 ahby Exp $
</xs:documentation>
<xs:documentation source="xhtml-copyright-1.xsd" />
</xs:annotation>
<xs:annotation>
<xs:documentation>
XHTML Document Model
This module describes the groupings of elements/attributes
that make up common content models for XHTML elements.
XHTML has following basic content models:
xhtml.Inline.mix; character-level elements
xhtml.Block.mix; block-like elements, e.g., paragraphs and lists
xhtml.Flow.mix; any block or inline elements
xhtml.InlinePre.mix; Special class for pre content model
xhtml.InlineNoAnchor.mix; Content model for Anchor
Any groups declared in this module may be used to create
element content models, but the above are considered 'global'
(insofar as that term applies here). XHTML has the
following Attribute Groups
xhtml.Core.extra.attrib
xhtml.I18n.extra.attrib
xhtml.Common.extra
The above attribute Groups are considered Global
</xs:documentation>
</xs:annotation>
<xs:attributeGroup name="xhtml.I18n.extra.attrib">
<xs:annotation>
<xs:documentation> Extended I18n attribute </xs:documentation>
</xs:annotation>
<xs:attribute name="lang" type="xh11d:LanguageCode" />
</xs:attributeGroup>
<xs:attributeGroup name="xhtml.Common.extra">
<xs:annotation>
<xs:documentation> Extended Common Attributes </xs:documentation>
</xs:annotation>
</xs:attributeGroup>
<xs:attributeGroup name="xhtml.Core.extra.attrib">
<xs:annotation>
<xs:documentation> Extend Core Attributes </xs:documentation>
</xs:annotation>
</xs:attributeGroup>
<xs:attributeGroup name="xhtml.Global.core.extra.attrib">
<xs:annotation>
<xs:documentation> Extended Global Core Attributes </xs:documentation>
</xs:annotation>
</xs:attributeGroup>
<xs:attributeGroup name="xhtml.Global.I18n.extra.attrib">
<xs:annotation>
<xs:documentation> Extended Global I18n attributes </xs:documentation>
</xs:annotation>
</xs:attributeGroup>
<xs:attributeGroup name="xhtml.Global.Common.extra">
<xs:annotation>
<xs:documentation> Extended Global Common Attributes </xs:documentation>
</xs:annotation>
</xs:attributeGroup>
<xs:group name="xhtml.Head.extra">
<xs:sequence />
</xs:group>
<!--
ins and del are used to denote editing changes
-->
<xs:group name="xhtml.Edit.class">
<xs:choice>
<xs:element name="ins" type="xhtml.edit.type" />
<xs:element name="del" type="xhtml.edit.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.Misc.extra">
<xs:choice>
<xs:group ref="e:Answer.class" />
<xs:element ref="e:attachment" />
<xs:element ref="e:image" />
<xs:element ref="e:image-overlay" />
<xs:element ref="e:video" />
<xs:element ref="e:audio" />
<xs:element ref="e:audio-group" />
<xs:element ref="e:file" />
<xs:element ref="e:attachment-link" />
<xs:element ref="e:attachment-links" />
<xs:element ref="e:localization" />
<xs:element ref="e:formula" />
<xs:element ref="e:question-number" />
<xs:element ref="e:translation" />
</xs:choice>
</xs:group>
<!--
These elements are neither block nor inline, and can
essentially be used anywhere in the document body.
-->
<xs:group name="xhtml.Misc.class">
<xs:choice>
<xs:group ref="xhtml.Edit.class" />
<xs:group ref="xhtml.Misc.extra" />
</xs:choice>
</xs:group>
<!-- Inline Elements -->
<xs:group name="xhtml.InlStruct.class">
<xs:choice>
<xs:element name="br" type="xhtml.br.type" />
<xs:element name="span" type="xhtml.span.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.InlPhras.class">
<xs:choice>
<xs:element name="em" type="xhtml.em.type" />
<xs:element name="strong" type="xhtml.strong.type" />
<xs:element name="dfn" type="xhtml.dfn.type" />
<xs:element name="code" type="xhtml.code.type" />
<xs:element name="samp" type="xhtml.samp.type" />
<xs:element name="kbd" type="xhtml.kbd.type" />
<xs:element name="var" type="xhtml.var.type" />
<xs:element name="cite" type="xhtml.cite.type" />
<xs:element name="abbr" type="xhtml.abbr.type" />
<xs:element name="acronym" type="xhtml.acronym.type" />
<xs:element name="q" type="xhtml.q.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.InlPres.class">
<xs:choice>
<xs:element name="tt" type="xhtml.InlPres.type" />
<xs:element name="i" type="xhtml.InlPres.type" />
<xs:element name="b" type="xhtml.InlPres.type" />
<xs:element name="big" type="xhtml.InlPres.type" />
<xs:element name="small" type="xhtml.InlPres.type" />
<xs:element name="sub" type="xhtml.InlPres.type" />
<xs:element name="sup" type="xhtml.InlPres.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.Anchor.class">
<xs:sequence>
<xs:element name="a" type="xhtml.a.type" />
</xs:sequence>
</xs:group>
<xs:group name="xhtml.Inline.extra">
<xs:sequence />
</xs:group>
<!--
Inline.class includes all inline elements,
used as a component in mixes
-->
<xs:group name="xhtml.Inline.class">
<xs:choice>
<xs:group ref="xhtml.InlStruct.class" />
<xs:group ref="xhtml.InlPhras.class" />
<xs:group ref="xhtml.InlPres.class" />
<xs:group ref="xhtml.Anchor.class" />
<xs:group ref="xhtml.Inline.extra" />
</xs:choice>
</xs:group>
<!--
InlinePre.mix
Used as a component in pre model
-->
<xs:group name="xhtml.InlinePre.mix">
<xs:choice>
<xs:group ref="xhtml.InlStruct.class" />
<xs:group ref="xhtml.InlPhras.class" />
<xs:element name="tt" type="xhtml.InlPres.type" />
<xs:element name="i" type="xhtml.InlPres.type" />
<xs:element name="b" type="xhtml.InlPres.type" />
<xs:group ref="xhtml.Anchor.class" />
<xs:group ref="xhtml.Misc.class" />
<xs:group ref="xhtml.Inline.extra" />
</xs:choice>
</xs:group>
<!--
InlNoAnchor.class includes all non-anchor inlines,
used as a component in mixes
-->
<xs:group name="xhtml.InlNoAnchor.class">
<xs:choice>
<xs:group ref="xhtml.InlStruct.class" />
<xs:group ref="xhtml.InlPhras.class" />
<xs:group ref="xhtml.InlPres.class" />
<xs:group ref="xhtml.Inline.extra" />
</xs:choice>
</xs:group>
<!--
InlNoAnchor.mix includes all non-anchor inlines
-->
<xs:group name="xhtml.InlNoAnchor.mix">
<xs:choice>
<xs:group ref="xhtml.InlNoAnchor.class" />
<xs:group ref="xhtml.Misc.class" />
</xs:choice>
</xs:group>
<!--
Inline.mix includes all inline elements, including Misc.class
-->
<xs:group name="xhtml.Inline.mix">
<xs:choice>
<xs:group ref="xhtml.Inline.class" />
<xs:group ref="xhtml.Misc.class" />
</xs:choice>
</xs:group>
<!--
In the HTML 4 DTD, heading and list elements were included
in the block group. The Heading.class and
List.class groups must now be included explicitly
on element declarations where desired.
-->
<xs:group name="xhtml.Heading.class">
<xs:choice>
<xs:element name="h1" type="xhtml.h1.type" />
<xs:element name="h2" type="xhtml.h2.type" />
<xs:element name="h3" type="xhtml.h3.type" />
<xs:element name="h4" type="xhtml.h4.type" />
<xs:element name="h5" type="xhtml.h5.type" />
<xs:element name="h6" type="xhtml.h6.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.List.class">
<xs:choice>
<xs:element name="ul" type="xhtml.ul.type" />
<xs:element name="ol" type="xhtml.ol.type" />
<xs:element name="dl" type="xhtml.dl.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.Table.class">
<xs:choice>
<xs:element name="table" type="xhtml.table.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.BlkStruct.class">
<xs:choice>
<xs:element name="p" type="xhtml.p.type" />
<xs:element name="div" type="xhtml.div.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.BlkPhras.class">
<xs:choice>
<xs:element name="pre" type="xhtml.pre.type" />
<xs:element name="blockquote" type="xhtml.blockquote.type" />
<xs:element name="address" type="xhtml.address.type" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.BlkPres.class">
<xs:sequence>
<xs:element name="hr" type="xhtml.hr.type" />
</xs:sequence>
</xs:group>
<xs:group name="xhtml.BlkSpecial.class">
<xs:choice>
<xs:group ref="xhtml.Table.class" />
</xs:choice>
</xs:group>
<xs:group name="xhtml.Block.extra">
<xs:sequence />
</xs:group>
<!--
Block.class includes all block elements,
used as an component in mixes
-->
<xs:group name="xhtml.Block.class">
<xs:choice>
<xs:group ref="xhtml.BlkStruct.class" />
<xs:group ref="xhtml.BlkPhras.class" />
<xs:group ref="xhtml.BlkPres.class" />
<xs:group ref="xhtml.BlkSpecial.class" />
<xs:group ref="xhtml.Block.extra" />
</xs:choice>
</xs:group>
<!--
Block.mix includes all block elements plus %Misc.class;
-->
<xs:group name="xhtml.Block.mix">
<xs:choice>
<xs:group ref="xhtml.Heading.class" />
<xs:group ref="xhtml.List.class" />
<xs:group ref="xhtml.Block.class" />
<xs:group ref="xhtml.Misc.class" />
</xs:choice>
</xs:group>
<!--
All Content Elements
Flow.mix includes all text content, block and inline
Note that the "any" element included here allows us
to add data from any other namespace, a necessity
for compound document creation.
Note however that it is not possible to add
to any head level element without further
modification. To add RDF metadata to the head
of a document, modify the structure module.
-->
<xs:group name="xhtml.Flow.mix">
<xs:choice>
<xs:group ref="xhtml.Heading.class" />
<xs:group ref="xhtml.List.class" />
<xs:group ref="xhtml.Block.class" />
<xs:group ref="xhtml.Inline.class" />
<xs:group ref="xhtml.Misc.class" />
</xs:choice>
</xs:group>
<!--
BlkNoForm.mix includes all non-form block elements,
plus Misc.class
-->
<xs:group name="xhtml.BlkNoForm.mix">
<xs:choice>
<xs:group ref="xhtml.Heading.class" />
<xs:group ref="xhtml.List.class" />
<xs:group ref="xhtml.BlkStruct.class" />
<xs:group ref="xhtml.BlkPhras.class" />
<xs:group ref="xhtml.BlkPres.class" />
<xs:group ref="xhtml.Table.class" />
<xs:group ref="xhtml.Block.extra" />
<xs:group ref="xhtml.Misc.class" />
</xs:choice>
</xs:group>
</xs:schema>