patrick@73
|
1 |
# $Id$
|
patrick@73
|
2 |
|
patrick@73
|
3 |
|
patrick@73
|
4 |
include "publidoc.rnc" {
|
patrick@73
|
5 |
start = publiquiz
|
patrick@73
|
6 |
|
patrick@73
|
7 |
document.content =
|
patrick@73
|
8 |
top.head?,
|
patrick@73
|
9 |
(division | topic | quiz)+
|
patrick@84
|
10 |
|
patrick@84
|
11 |
division.content =
|
patrick@84
|
12 |
division.head?,
|
Patrick@353
|
13 |
front?,
|
patrick@84
|
14 |
(division | topic | quiz)+
|
Coraline@436
|
15 |
|
Coraline@436
|
16 |
nowrap.content =
|
Coraline@436
|
17 |
inlines | blanks.inlines | blanks-m.inlines | pointing.inlines
|
patrick@73
|
18 |
}
|
patrick@73
|
19 |
|
patrick@75
|
20 |
|
patrick@73
|
21 |
publiquiz = element publiquiz {
|
patrick@73
|
22 |
publiquiz.attributes,
|
patrick@73
|
23 |
publiquiz.content
|
patrick@73
|
24 |
}
|
patrick@73
|
25 |
|
patrick@73
|
26 |
publiquiz.attributes =
|
patrick@73
|
27 |
version.attribute
|
patrick@73
|
28 |
|
patrick@73
|
29 |
publiquiz.content =
|
patrick@73
|
30 |
document
|
patrick@73
|
31 |
| top.quiz
|
patrick@73
|
32 |
|
patrick@73
|
33 |
|
patrick@73
|
34 |
# =============================================================================
|
patrick@73
|
35 |
# TOP LEVEL
|
patrick@73
|
36 |
# =============================================================================
|
patrick@73
|
37 |
|
Patrick@310
|
38 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ top.quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
39 |
|
patrick@128
|
40 |
top.quiz = element quiz { top.quiz.attributes, top.quiz.content }
|
patrick@73
|
41 |
|
patrick@73
|
42 |
top.quiz.attributes =
|
Patrick@388
|
43 |
quiz.id.attribute?
|
Patrick@158
|
44 |
& quiz.type.attribute?
|
patrick@73
|
45 |
& lang.attribute?
|
patrick@117
|
46 |
quiz.id.attribute = attribute id { xsd:NMTOKEN }
|
Patrick@158
|
47 |
quiz.type.attribute = attribute type { xsd:NCName }
|
patrick@73
|
48 |
|
patrick@128
|
49 |
top.quiz.content =
|
patrick@128
|
50 |
top.head?,
|
claire@345
|
51 |
instructions?,
|
patrick@128
|
52 |
(engine | composite),
|
patrick@128
|
53 |
help?,
|
patrick@128
|
54 |
answer?
|
patrick@73
|
55 |
|
Patrick@310
|
56 |
|
patrick@73
|
57 |
# =============================================================================
|
Patrick@310
|
58 |
# COMPONENT LEVEL
|
patrick@73
|
59 |
# =============================================================================
|
patrick@73
|
60 |
|
patrick@73
|
61 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quiz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
62 |
|
patrick@73
|
63 |
quiz = element quiz { quiz.attributes, quiz.content }
|
patrick@73
|
64 |
|
patrick@73
|
65 |
quiz.attributes =
|
Patrick@310
|
66 |
(quiz.id.attribute | xmlid.attribute)?
|
Patrick@158
|
67 |
& quiz.type.attribute?
|
patrick@73
|
68 |
& lang.attribute?
|
patrick@73
|
69 |
|
patrick@73
|
70 |
quiz.content =
|
patrick@73
|
71 |
component.head?,
|
Patrick@417
|
72 |
instructions?,
|
patrick@87
|
73 |
(engine | composite),
|
patrick@73
|
74 |
help?,
|
patrick@87
|
75 |
answer?
|
patrick@73
|
76 |
|
patrick@73
|
77 |
|
patrick@73
|
78 |
# =============================================================================
|
patrick@73
|
79 |
# SECTION LEVEL
|
patrick@73
|
80 |
# =============================================================================
|
patrick@73
|
81 |
|
patrick@73
|
82 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
83 |
|
patrick@73
|
84 |
blanks.section = element section { section.attributes, blanks.section.content }
|
Coraline@409
|
85 |
blanks-m.section = element section {
|
Coraline@409
|
86 |
section.attributes, blanks-m.section.content }
|
Patrick@336
|
87 |
pointing.section = element section {
|
Patrick@336
|
88 |
section.attributes, pointing.section.content }
|
patrick@73
|
89 |
|
patrick@73
|
90 |
blanks.section.content =
|
patrick@73
|
91 |
section.head?,
|
patrick@73
|
92 |
(blanks.section+ | blanks.block+)
|
Coraline@409
|
93 |
blanks-m.section.content =
|
Coraline@409
|
94 |
section.head?,
|
Coraline@409
|
95 |
(blanks-m.section+ | blanks-m.block+)
|
Patrick@336
|
96 |
pointing.section.content =
|
patrick@73
|
97 |
section.head?,
|
Patrick@336
|
98 |
(pointing.section+ | pointing.block+)
|
patrick@73
|
99 |
|
patrick@73
|
100 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ instructions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
101 |
|
patrick@73
|
102 |
instructions = element instructions { section.content }
|
patrick@73
|
103 |
|
patrick@73
|
104 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
105 |
|
patrick@73
|
106 |
engine =
|
patrick@87
|
107 |
choices-radio
|
patrick@87
|
108 |
| choices-check
|
patrick@87
|
109 |
| blanks-fill
|
patrick@87
|
110 |
| blanks-select
|
Coraline@409
|
111 |
| blanks-media
|
Patrick@216
|
112 |
| blanks-char
|
Patrick@336
|
113 |
| pointing
|
Patrick@336
|
114 |
| pointing-categories
|
Coraline@409
|
115 |
| pip
|
patrick@73
|
116 |
| matching
|
patrick@73
|
117 |
| sort
|
patrick@125
|
118 |
| categories
|
patrick@87
|
119 |
| production
|
patrick@73
|
120 |
|
patrick@73
|
121 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ choices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
122 |
|
patrick@87
|
123 |
choices-radio = element choices-radio {
|
Patrick@376
|
124 |
choices-radio.attributes, choices-radio.content }
|
patrick@87
|
125 |
choices-check = element choices-check {
|
Patrick@376
|
126 |
choices-check.attributes, choices-check.content }
|
patrick@73
|
127 |
|
Patrick@376
|
128 |
choices-radio.attributes =
|
patrick@73
|
129 |
shuffle.attribute?
|
Patrick@376
|
130 |
choices-check.attributes =
|
Patrick@376
|
131 |
success.attribute?
|
Patrick@376
|
132 |
& shuffle.attribute?
|
Patrick@376
|
133 |
success.attribute = attribute success { xsd:decimal {maxInclusive="1"} }
|
patrick@73
|
134 |
shuffle.attribute = attribute shuffle { xsd:boolean }
|
patrick@73
|
135 |
|
patrick@87
|
136 |
choices-radio.content =
|
patrick@73
|
137 |
choices.right
|
patrick@73
|
138 |
& choices.wrong+
|
patrick@87
|
139 |
choices-check.content =
|
patrick@73
|
140 |
(choices.right | choices.wrong)+
|
patrick@73
|
141 |
|
patrick@73
|
142 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
143 |
|
patrick@87
|
144 |
blanks-fill = element blanks-fill {
|
patrick@87
|
145 |
blanks-fill.attributes, blanks-fill.content }
|
patrick@87
|
146 |
blanks-select = element blanks-select {
|
patrick@87
|
147 |
blanks-select.attributes, blanks-select.content }
|
Coraline@409
|
148 |
blanks-media = element blanks-media {
|
Coraline@409
|
149 |
blanks-select.attributes, blanks-media.content }
|
Patrick@411
|
150 |
blanks-char = element blanks-char {
|
Coraline@402
|
151 |
blanks-char.attributes, blanks-select.content }
|
patrick@73
|
152 |
|
patrick@87
|
153 |
blanks-fill.attributes =
|
Patrick@376
|
154 |
success.attribute?
|
Patrick@376
|
155 |
& strict.attribute?
|
claire@381
|
156 |
& long.attribute?
|
patrick@87
|
157 |
blanks-select.attributes =
|
Patrick@376
|
158 |
success.attribute?
|
Patrick@376
|
159 |
& multiple.attribute?
|
claire@380
|
160 |
& noshuffle.attribute?
|
Coraline@409
|
161 |
& orientation.attribute?
|
patrick@73
|
162 |
strict.attribute = attribute strict { xsd:boolean }
|
patrick@73
|
163 |
multiple.attribute = attribute multiple { xsd:boolean }
|
Coraline@437
|
164 |
noshuffle.attribute = attribute no-shuffle { "true" | "false" | "alpha" }
|
claire@381
|
165 |
long.attribute = attribute long { xsd:positiveInteger }
|
Coraline@409
|
166 |
orientation.attribute = attribute orientation {"north"|"east"|"west"|"south"}
|
patrick@73
|
167 |
|
patrick@87
|
168 |
blanks-fill.content =
|
patrick@73
|
169 |
(blanks.block+ | blanks.section+)
|
patrick@87
|
170 |
blanks-select.content =
|
Patrick@342
|
171 |
blanks.intruders?,
|
patrick@73
|
172 |
(blanks.block+ | blanks.section+)
|
Coraline@409
|
173 |
blanks-media.content =
|
Coraline@409
|
174 |
blanks-m.intruders?,
|
Coraline@409
|
175 |
(blanks-m.block+ | blanks-m.section+)
|
patrick@73
|
176 |
|
Coraline@402
|
177 |
blanks-char.attributes =
|
Coraline@402
|
178 |
remove-space.attribute?
|
Coraline@402
|
179 |
remove-space.attribute = attribute remove-space { xsd:boolean }
|
Coraline@402
|
180 |
|
Patrick@336
|
181 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pointing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
182 |
|
Patrick@336
|
183 |
pointing = element pointing { pointing.attributes, pointing.content }
|
patrick@75
|
184 |
|
Patrick@336
|
185 |
pointing.attributes =
|
Patrick@376
|
186 |
success.attribute?
|
Patrick@376
|
187 |
& pointing.type.attribute?
|
Patrick@336
|
188 |
pointing.type.attribute = attribute type { "radio" | "check" }
|
patrick@73
|
189 |
|
Patrick@336
|
190 |
pointing.content =
|
Patrick@336
|
191 |
(pointing.section+ | pointing.block+)
|
Patrick@336
|
192 |
|
Patrick@336
|
193 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pointing-categories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@336
|
194 |
|
Patrick@336
|
195 |
# ~~~~~~ pointing-categories
|
Patrick@376
|
196 |
pointing-categories = element pointing-categories {
|
Patrick@376
|
197 |
pointing-c.attributes, pointing-c.content }
|
Patrick@376
|
198 |
|
Patrick@376
|
199 |
pointing-c.attributes =
|
Patrick@376
|
200 |
success.attribute?
|
Patrick@336
|
201 |
|
Patrick@336
|
202 |
pointing-c.content =
|
Patrick@336
|
203 |
pointing-c.categories,
|
Patrick@336
|
204 |
pointing.section
|
Patrick@336
|
205 |
|
Patrick@336
|
206 |
# ~~~~~~ pointing-c.categories
|
Patrick@336
|
207 |
pointing-c.categories = element categories { pointing-c.categories.content }
|
Patrick@336
|
208 |
|
Patrick@336
|
209 |
pointing-c.categories.content =
|
Patrick@336
|
210 |
pointing-c.category1,
|
Patrick@336
|
211 |
pointing-c.category2,
|
Patrick@336
|
212 |
(pointing-c.category3,
|
Patrick@336
|
213 |
(pointing-c.category4, pointing-c.category5?)?)?
|
Patrick@336
|
214 |
|
Patrick@336
|
215 |
# ~~~~~~ pointing-c.categoryN
|
Patrick@336
|
216 |
pointing-c.category1 = element category {
|
Patrick@336
|
217 |
attribute id { "1" }, pointing-c.category.content }
|
Patrick@336
|
218 |
pointing-c.category2 = element category {
|
Patrick@336
|
219 |
attribute id { "2" }, pointing-c.category.content }
|
Patrick@336
|
220 |
pointing-c.category3 = element category {
|
Patrick@336
|
221 |
attribute id { "3" }, pointing-c.category.content }
|
Patrick@336
|
222 |
pointing-c.category4 = element category {
|
Patrick@336
|
223 |
attribute id { "4" }, pointing-c.category.content }
|
Patrick@336
|
224 |
pointing-c.category5 = element category {
|
Patrick@336
|
225 |
attribute id { "5" }, pointing-c.category.content }
|
Patrick@336
|
226 |
|
Patrick@336
|
227 |
pointing-c.category.content = inlines
|
Patrick@336
|
228 |
|
Coraline@409
|
229 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Coraline@409
|
230 |
|
Coraline@409
|
231 |
pip = element pip { pip.content }
|
Coraline@409
|
232 |
|
Coraline@409
|
233 |
pip.content =
|
Coraline@409
|
234 |
pip.image
|
Coraline@409
|
235 |
|
Coraline@409
|
236 |
pip.image = element image { image.attributes, pip.image.content }
|
Coraline@409
|
237 |
pip.image.content =
|
Coraline@409
|
238 |
pip.point+
|
Coraline@409
|
239 |
|
patrick@73
|
240 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ matching ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
241 |
|
Patrick@161
|
242 |
# ~~~~~~ matching
|
Patrick@169
|
243 |
matching = element matching { matching.attributes, matching.content }
|
Patrick@169
|
244 |
|
Patrick@169
|
245 |
matching.attributes =
|
Patrick@376
|
246 |
success.attribute?
|
Patrick@376
|
247 |
& multiple.attribute?
|
Coraline@409
|
248 |
& orientation.attribute?
|
patrick@75
|
249 |
|
patrick@73
|
250 |
matching.content =
|
Patrick@359
|
251 |
matching.intruders?,
|
patrick@73
|
252 |
match,
|
patrick@73
|
253 |
match+
|
patrick@73
|
254 |
|
Patrick@161
|
255 |
# ~~~~~~ match
|
Patrick@161
|
256 |
match = element match { match.content }
|
Patrick@161
|
257 |
|
Patrick@161
|
258 |
match.content =
|
Patrick@161
|
259 |
match.item,
|
Patrick@161
|
260 |
match.item
|
Patrick@161
|
261 |
|
patrick@73
|
262 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sort ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
263 |
|
patrick@73
|
264 |
sort = element sort { sort.attributes, sort.content }
|
patrick@73
|
265 |
|
patrick@73
|
266 |
sort.attributes =
|
Patrick@376
|
267 |
success.attribute?
|
Patrick@376
|
268 |
& shuffle.attribute?
|
Coraline@409
|
269 |
& orientation.attribute?
|
patrick@75
|
270 |
|
patrick@73
|
271 |
sort.content =
|
patrick@73
|
272 |
comparison?,
|
patrick@73
|
273 |
sort.item,
|
patrick@73
|
274 |
sort.item+
|
patrick@73
|
275 |
|
patrick@125
|
276 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ categories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@125
|
277 |
|
Patrick@310
|
278 |
# ~~~~~~ category.head
|
Patrick@310
|
279 |
category.head = element head { category.head.content }
|
Patrick@310
|
280 |
|
Patrick@310
|
281 |
category.head.content =
|
Patrick@384
|
282 |
title
|
Patrick@384
|
283 |
& shorttitle?
|
Patrick@384
|
284 |
& subtitle*
|
Patrick@310
|
285 |
|
patrick@125
|
286 |
# ~~~~~~ categories
|
Patrick@168
|
287 |
categories = element categories { categories.attributes, categories.content }
|
patrick@125
|
288 |
|
Patrick@168
|
289 |
categories.attributes =
|
Patrick@376
|
290 |
success.attribute?
|
Patrick@376
|
291 |
& multiple.attribute?
|
claire@380
|
292 |
& noshuffle.attribute?
|
Coraline@409
|
293 |
& orientation.attribute?
|
Patrick@310
|
294 |
|
patrick@125
|
295 |
categories.content =
|
Patrick@344
|
296 |
categories.intruders?,
|
patrick@125
|
297 |
category,
|
patrick@125
|
298 |
category+
|
patrick@125
|
299 |
|
patrick@125
|
300 |
# ~~~~~~ category
|
patrick@125
|
301 |
category = element category { category.content }
|
patrick@125
|
302 |
|
patrick@125
|
303 |
category.content =
|
patrick@125
|
304 |
category.head,
|
patrick@125
|
305 |
category.item*
|
patrick@125
|
306 |
|
patrick@87
|
307 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@87
|
308 |
|
Coraline@407
|
309 |
production = element production { production.content }
|
Coraline@407
|
310 |
|
Coraline@407
|
311 |
production.content = text
|
patrick@87
|
312 |
|
patrick@73
|
313 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ composite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
314 |
|
patrick@77
|
315 |
# ~~~~~~ composite
|
Patrick@161
|
316 |
composite = element composite { composite.attributes, composite.content }
|
Patrick@161
|
317 |
|
Patrick@161
|
318 |
composite.attributes =
|
Patrick@376
|
319 |
success.attribute?
|
Patrick@376
|
320 |
& multipage.attribute?
|
Patrick@310
|
321 |
multipage.attribute = attribute multipage { xsd:boolean }
|
patrick@75
|
322 |
|
patrick@73
|
323 |
composite.content =
|
patrick@85
|
324 |
subquiz,
|
Patrick@154
|
325 |
subquiz+
|
patrick@77
|
326 |
|
patrick@85
|
327 |
# ~~~~~~ subquiz
|
patrick@85
|
328 |
subquiz = element subquiz { subquiz.content }
|
patrick@77
|
329 |
|
patrick@85
|
330 |
subquiz.content =
|
patrick@77
|
331 |
instructions?,
|
Patrick@141
|
332 |
engine,
|
Patrick@141
|
333 |
help?,
|
Patrick@141
|
334 |
answer?
|
patrick@73
|
335 |
|
patrick@73
|
336 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
337 |
|
patrick@73
|
338 |
help = element help { help.content }
|
patrick@73
|
339 |
|
patrick@73
|
340 |
help.content =
|
patrick@73
|
341 |
(section+ | block+)?,
|
patrick@73
|
342 |
link*
|
patrick@73
|
343 |
|
patrick@87
|
344 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
345 |
|
patrick@87
|
346 |
answer = element answer { answer.content }
|
patrick@73
|
347 |
|
patrick@87
|
348 |
answer.content =
|
patrick@81
|
349 |
(section+ | block+)?,
|
patrick@80
|
350 |
link*
|
patrick@73
|
351 |
|
patrick@73
|
352 |
|
patrick@73
|
353 |
# =============================================================================
|
patrick@73
|
354 |
# BLOCK LEVEL
|
patrick@73
|
355 |
# =============================================================================
|
patrick@73
|
356 |
|
patrick@73
|
357 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
358 |
|
Patrick@313
|
359 |
blanks.block = (
|
Patrick@313
|
360 |
blanks.p | blanks.list | blanks.blockquote | blanks.speech | blanks.table
|
Patrick@313
|
361 |
| blanks.media)
|
Coraline@409
|
362 |
blanks-m.block = (
|
Coraline@409
|
363 |
blanks-m.p | blanks-m.list | blanks-m.blockquote | blanks-m.speech
|
Coraline@409
|
364 |
| blanks-m.table | blanks-m.media)
|
Patrick@336
|
365 |
pointing.block = (
|
Patrick@336
|
366 |
pointing.p | pointing.list | pointing.blockquote | pointing.speech
|
Patrick@336
|
367 |
| pointing.table | media)
|
patrick@73
|
368 |
|
patrick@73
|
369 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
370 |
|
patrick@73
|
371 |
blanks.p = element p { blanks.p.content }
|
Coraline@409
|
372 |
blanks-m.p = element p { blanks-m.p.content }
|
Patrick@336
|
373 |
pointing.p = element p { pointing.p.content }
|
patrick@73
|
374 |
|
patrick@73
|
375 |
blanks.p.content =
|
patrick@75
|
376 |
blanks.inlines
|
Coraline@409
|
377 |
blanks-m.p.content =
|
Coraline@409
|
378 |
blanks-m.inlines
|
Patrick@336
|
379 |
pointing.p.content =
|
Patrick@336
|
380 |
pointing.inlines
|
patrick@73
|
381 |
|
patrick@73
|
382 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
383 |
|
patrick@73
|
384 |
# ~~~~~~ list
|
patrick@75
|
385 |
blanks.list = element list {
|
patrick@73
|
386 |
block.head?,
|
patrick@73
|
387 |
( (attribute type {"ordered"}?, blanks.item, blanks.item+)
|
Coraline@422
|
388 |
| (attribute type {"glossary"}, item.glossary+) )
|
patrick@75
|
389 |
}
|
Coraline@409
|
390 |
blanks-m.list = element list {
|
Coraline@409
|
391 |
block.head?,
|
Coraline@409
|
392 |
( (attribute type {"ordered"}?, blanks.item, blanks.item+)
|
Coraline@422
|
393 |
| (attribute type {"glossary"}, item.glossary+) )
|
Coraline@409
|
394 |
}
|
Patrick@336
|
395 |
pointing.list = element list {
|
patrick@73
|
396 |
block.head?,
|
Patrick@336
|
397 |
( (attribute type {"ordered"}?, pointing.item, pointing.item+)
|
Coraline@422
|
398 |
| (attribute type {"glossary"}, item.glossary+) )
|
patrick@75
|
399 |
}
|
patrick@73
|
400 |
|
patrick@73
|
401 |
# ~~~~~~ item
|
patrick@73
|
402 |
blanks.item = element item { blanks.item.content }
|
Coraline@409
|
403 |
blanks-m.item = element item { blanks.item.content }
|
Patrick@336
|
404 |
pointing.item = element item { pointing.item.content }
|
patrick@73
|
405 |
|
patrick@73
|
406 |
blanks.item.content =
|
patrick@75
|
407 |
blanks.inlines
|
patrick@73
|
408 |
| blanks.block+
|
Coraline@409
|
409 |
blanks-m.item.content =
|
Coraline@409
|
410 |
blanks-m.inlines
|
Coraline@409
|
411 |
| blanks-m.block+
|
Patrick@336
|
412 |
pointing.item.content =
|
Patrick@336
|
413 |
pointing.inlines
|
Patrick@336
|
414 |
| pointing.block+
|
patrick@73
|
415 |
|
Patrick@313
|
416 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blockquote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@313
|
417 |
|
Patrick@313
|
418 |
blanks.blockquote = element blockquote {
|
Patrick@313
|
419 |
blockquote.attributes, blanks.blockquote.content }
|
Coraline@409
|
420 |
blanks-m.blockquote = element blockquote {
|
Coraline@409
|
421 |
blockquote.attributes, blanks-m.blockquote.content }
|
Patrick@336
|
422 |
pointing.blockquote = element blockquote {
|
Patrick@336
|
423 |
blockquote.attributes, pointing.blockquote.content }
|
Patrick@313
|
424 |
|
Patrick@313
|
425 |
blanks.blockquote.content =
|
Patrick@313
|
426 |
block.head?,
|
Patrick@313
|
427 |
(blanks.p | speech | blanks.list)+,
|
Patrick@313
|
428 |
attribution?
|
Coraline@409
|
429 |
blanks-m.blockquote.content =
|
Coraline@409
|
430 |
block.head?,
|
Coraline@409
|
431 |
(blanks-m.p | speech | blanks-m.list)+,
|
Coraline@409
|
432 |
attribution?
|
Patrick@336
|
433 |
pointing.blockquote.content =
|
Patrick@313
|
434 |
block.head?,
|
Patrick@336
|
435 |
(pointing.p | speech | pointing.list)+,
|
Patrick@313
|
436 |
attribution?
|
Patrick@313
|
437 |
|
Patrick@313
|
438 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ speech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@313
|
439 |
|
Patrick@313
|
440 |
# ~~~~~~ speech
|
Patrick@313
|
441 |
blanks.speech = element speech { blanks.speech.content }
|
Coraline@409
|
442 |
blanks-m.speech = element speech { blanks-m.speech.content }
|
Patrick@336
|
443 |
pointing.speech = element speech { pointing.speech.content }
|
Patrick@313
|
444 |
|
Patrick@313
|
445 |
blanks.speech.content =
|
Patrick@313
|
446 |
blanks.speaker?,
|
Patrick@313
|
447 |
stage?,
|
Patrick@313
|
448 |
(blanks.p | blanks.blockquote)+
|
Coraline@409
|
449 |
blanks-m.speech.content =
|
Coraline@409
|
450 |
blanks-m.speaker?,
|
Coraline@409
|
451 |
stage?,
|
Coraline@409
|
452 |
(blanks-m.p | blanks-m.blockquote)+
|
Patrick@336
|
453 |
pointing.speech.content =
|
Patrick@336
|
454 |
pointing.speaker?,
|
Patrick@313
|
455 |
stage?,
|
Patrick@336
|
456 |
(pointing.p | pointing.blockquote)+
|
Patrick@313
|
457 |
|
Patrick@313
|
458 |
# ~~~~~~ speaker
|
Patrick@313
|
459 |
blanks.speaker = element speaker { blanks.speaker.content }
|
Coraline@409
|
460 |
blanks-m.speaker = element speaker { blanks-m.speaker.content }
|
Patrick@336
|
461 |
pointing.speaker = element speaker { pointing.speaker.content }
|
Patrick@313
|
462 |
|
Patrick@313
|
463 |
blanks.speaker.content = blanks.inlines
|
Coraline@409
|
464 |
blanks-m.speaker.content = blanks-m.inlines
|
Patrick@336
|
465 |
pointing.speaker.content = pointing.inlines
|
Patrick@313
|
466 |
|
patrick@73
|
467 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
468 |
|
Patrick@313
|
469 |
# ~~~~~~ table
|
patrick@249
|
470 |
blanks.table = element table { table.attributes, blanks.table.content }
|
Coraline@409
|
471 |
blanks-m.table = element table { table.attributes, blanks-m.table.content }
|
Patrick@336
|
472 |
pointing.table = element table { table.attributes, pointing.table.content }
|
patrick@73
|
473 |
|
patrick@73
|
474 |
blanks.table.content =
|
patrick@73
|
475 |
block.head?,
|
Patrick@358
|
476 |
((thead?, blanks.tbody+) | blanks.tr+),
|
Patrick@313
|
477 |
blanks.table.caption?
|
Coraline@409
|
478 |
blanks-m.table.content =
|
Coraline@409
|
479 |
block.head?,
|
Coraline@409
|
480 |
((thead?, blanks-m.tbody+) | blanks-m.tr+),
|
Coraline@409
|
481 |
blanks-m.table.caption?
|
Patrick@336
|
482 |
pointing.table.content =
|
patrick@73
|
483 |
block.head?,
|
Patrick@358
|
484 |
((thead?, pointing.tbody+) | pointing.tr+),
|
Patrick@336
|
485 |
pointing.table.caption?
|
patrick@73
|
486 |
|
patrick@73
|
487 |
# ~~~~~~ tbody
|
patrick@249
|
488 |
blanks.tbody = element tbody { blanks.tbody.content }
|
Coraline@409
|
489 |
blanks-m.tbody = element tbody { blanks-m.tbody.content }
|
Patrick@336
|
490 |
pointing.tbody = element tbody { pointing.tbody.content }
|
patrick@73
|
491 |
|
patrick@73
|
492 |
blanks.tbody.content =
|
patrick@249
|
493 |
blanks.tr+
|
Coraline@409
|
494 |
blanks-m.tbody.content =
|
Coraline@409
|
495 |
blanks-m.tr+
|
Patrick@336
|
496 |
pointing.tbody.content =
|
Patrick@336
|
497 |
pointing.tr+
|
patrick@73
|
498 |
|
patrick@249
|
499 |
# ~~~~~~ tr
|
patrick@249
|
500 |
blanks.tr = element tr { tr.attributes, blanks.tr.content }
|
Coraline@409
|
501 |
blanks-m.tr = element tr { tr.attributes, blanks-m.tr.content }
|
Patrick@336
|
502 |
pointing.tr = element tr { tr.attributes, pointing.tr.content }
|
patrick@73
|
503 |
|
patrick@249
|
504 |
blanks.tr.content =
|
patrick@249
|
505 |
(blanks.td | blanks.th)+
|
Coraline@409
|
506 |
blanks-m.tr.content =
|
Coraline@409
|
507 |
(blanks-m.td | blanks-m.th)+
|
Patrick@336
|
508 |
pointing.tr.content =
|
Patrick@336
|
509 |
(pointing.td | pointing.th)+
|
patrick@73
|
510 |
|
patrick@249
|
511 |
# ~~~~~~ td, th
|
patrick@249
|
512 |
blanks.td = element td { td.attributes, blanks.td.content }
|
patrick@249
|
513 |
blanks.th = element th { td.attributes, blanks.td.content }
|
Coraline@409
|
514 |
blanks-m.td = element td { td.attributes, blanks-m.td.content }
|
Coraline@409
|
515 |
blanks-m.th = element th { td.attributes, blanks-m.td.content }
|
Patrick@336
|
516 |
pointing.td = element td { td.attributes, pointing.td.content }
|
Patrick@336
|
517 |
pointing.th = element th { td.attributes, pointing.td.content }
|
patrick@73
|
518 |
|
patrick@249
|
519 |
blanks.td.content =
|
patrick@75
|
520 |
blanks.inlines
|
Patrick@313
|
521 |
| (blanks.p | blanks.media)+
|
Coraline@409
|
522 |
blanks-m.td.content =
|
Coraline@409
|
523 |
blanks-m.inlines
|
Coraline@409
|
524 |
| (blanks-m.p | blanks-m.media)+
|
Patrick@336
|
525 |
pointing.td.content =
|
Patrick@336
|
526 |
pointing.inlines
|
Patrick@336
|
527 |
| (pointing.p | media)+
|
Patrick@313
|
528 |
|
Patrick@313
|
529 |
# ~~~~~~ table.caption
|
Patrick@313
|
530 |
blanks.table.caption = element caption { blanks.caption.content }
|
Coraline@409
|
531 |
blanks-m.table.caption = element caption { blanks-m.caption.content }
|
Patrick@336
|
532 |
pointing.table.caption = element caption { pointing.caption.content }
|
Patrick@313
|
533 |
|
Patrick@313
|
534 |
blanks.caption.content =
|
Patrick@313
|
535 |
blanks.inlines
|
Patrick@313
|
536 |
| (blanks.p | speech | blanks.list | blockquote)+
|
Coraline@409
|
537 |
blanks-m.caption.content =
|
Coraline@409
|
538 |
blanks-m.inlines
|
Coraline@409
|
539 |
| (blanks-m.p | speech | blanks-m.list | blockquote)+
|
Patrick@336
|
540 |
pointing.caption.content =
|
Patrick@336
|
541 |
pointing.inlines
|
Patrick@336
|
542 |
| (pointing.p | speech | pointing.list | blockquote)+
|
patrick@73
|
543 |
|
Patrick@174
|
544 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@174
|
545 |
|
Patrick@313
|
546 |
# ~~~~~~ media
|
Patrick@313
|
547 |
blanks.media = element media { media.attributes, blanks.media.content }
|
Coraline@409
|
548 |
blanks-m.media = element media { media.attributes, blanks-m.media.content }
|
Patrick@336
|
549 |
pointing.media = element media { media.attributes, pointing.media.content }
|
Patrick@174
|
550 |
|
Patrick@313
|
551 |
blanks.media.content =
|
Patrick@174
|
552 |
block.head?,
|
Patrick@174
|
553 |
(blanks.image | audio | video)+,
|
Patrick@313
|
554 |
blanks.media.caption?,
|
Patrick@313
|
555 |
link?
|
Coraline@409
|
556 |
blanks-m.media.content =
|
Coraline@409
|
557 |
block.head?,
|
Coraline@409
|
558 |
(blanks-m.image | audio | video)+,
|
Coraline@409
|
559 |
blanks-m.media.caption?,
|
Coraline@409
|
560 |
link?
|
Patrick@336
|
561 |
pointing.media.content =
|
Patrick@313
|
562 |
block.head?,
|
Patrick@313
|
563 |
(image | audio | video)+,
|
Patrick@336
|
564 |
pointing.media.caption?,
|
Patrick@174
|
565 |
link?
|
Patrick@174
|
566 |
|
Patrick@174
|
567 |
# ~~~~~~ blanks.image
|
Patrick@174
|
568 |
blanks.image = element image { image.attributes, blanks.image.content }
|
Coraline@409
|
569 |
blanks-m.image = element image { image.attributes, blanks-m.image.content }
|
Patrick@174
|
570 |
|
Patrick@174
|
571 |
blanks.image.content =
|
Patrick@174
|
572 |
copyright?,
|
Patrick@192
|
573 |
blanks.dropzone*
|
Coraline@409
|
574 |
blanks-m.image.content =
|
Coraline@409
|
575 |
copyright?,
|
Coraline@409
|
576 |
blanks-m.dropzone*
|
Patrick@174
|
577 |
|
Patrick@313
|
578 |
# ~~~~~~ dropzone
|
Patrick@192
|
579 |
blanks.dropzone = element dropzone {
|
Patrick@192
|
580 |
blanks.dropzone.attributes, blanks.dropzone.content }
|
Coraline@409
|
581 |
blanks-m.dropzone = element dropzone {
|
Patrick@411
|
582 |
blanks-m.dropzone.attributes, blanks-m.dropzone.content }
|
Patrick@183
|
583 |
|
Patrick@192
|
584 |
blanks.dropzone.attributes =
|
Patrick@183
|
585 |
x.attribute
|
Patrick@310
|
586 |
& y.attribute
|
Patrick@411
|
587 |
blanks-m.dropzone.attributes =
|
patrick@194
|
588 |
x.attribute
|
patrick@194
|
589 |
& y.attribute
|
Coraline@412
|
590 |
& h.attribute
|
patrick@194
|
591 |
& w.attribute
|
Patrick@174
|
592 |
|
Patrick@192
|
593 |
blanks.dropzone.content =
|
Patrick@183
|
594 |
blank
|
Coraline@409
|
595 |
blanks-m.dropzone.content =
|
Coraline@409
|
596 |
blank-m
|
Patrick@174
|
597 |
|
Patrick@313
|
598 |
# ~~~~~~ media.caption
|
Patrick@313
|
599 |
blanks.media.caption = element caption {
|
Patrick@313
|
600 |
caption.attributes, blanks.caption.content }
|
Coraline@409
|
601 |
blanks-m.media.caption = element caption {
|
Coraline@409
|
602 |
caption.attributes, blanks-m.caption.content }
|
Patrick@336
|
603 |
pointing.media.caption = element caption {
|
Patrick@336
|
604 |
caption.attributes, pointing.caption.content }
|
Patrick@313
|
605 |
|
patrick@73
|
606 |
# ~~~~~~~~~~~~~~~~~~~~~~~~ choices.right, choices.wrong ~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
607 |
|
patrick@73
|
608 |
choices.right = element right { choices.right.content }
|
patrick@73
|
609 |
choices.wrong = element wrong { choices.right.content }
|
patrick@73
|
610 |
|
patrick@73
|
611 |
choices.right.content =
|
patrick@73
|
612 |
inlines
|
Patrick@161
|
613 |
| ((p | image | (audio, image?) | video), help?, answer?)
|
patrick@73
|
614 |
|
Coraline@409
|
615 |
# ~~~~~~~~~~~~~~~~~~~~ blanks.intruders, blanks-m.intruders ~~~~~~~~~~~~~~~~~~
|
patrick@73
|
616 |
|
Patrick@342
|
617 |
blanks.intruders = element intruders { blanks.intruders.content }
|
Coraline@409
|
618 |
blanks-m.intruders = element intruders { blanks-m.intruders.content }
|
patrick@73
|
619 |
|
Coraline@409
|
620 |
blanks.intruders.content = blank+
|
Coraline@409
|
621 |
blanks-m.intruders.content = blank-m+
|
patrick@73
|
622 |
|
Patrick@359
|
623 |
# ~~~~~~~~~~~~~~~~~~~~~~~ matching.intruders, match.item ~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
624 |
|
Patrick@359
|
625 |
# ~~~~~~~ matching.intruders
|
Patrick@359
|
626 |
matching.intruders = element intruders { matching.intruders.content }
|
Patrick@359
|
627 |
|
Patrick@359
|
628 |
matching.intruders.content =
|
Patrick@359
|
629 |
match.item+
|
Patrick@359
|
630 |
|
Patrick@359
|
631 |
# ~~~~~~~ match.item
|
Patrick@161
|
632 |
match.item = element item { match.item.content }
|
patrick@73
|
633 |
|
Patrick@161
|
634 |
match.item.content =
|
Patrick@161
|
635 |
inlines
|
Patrick@341
|
636 |
| (p, help?, answer?)
|
patrick@73
|
637 |
|
Patrick@313
|
638 |
# ~~~~~~~~~~~~~~~~~~~~~~~~ comparison, sort.item ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
639 |
|
patrick@73
|
640 |
# ~~~~~~ comparison
|
patrick@73
|
641 |
comparison = element comparison { comparison.content }
|
patrick@73
|
642 |
|
patrick@73
|
643 |
comparison.content = inlines
|
patrick@73
|
644 |
|
patrick@73
|
645 |
# ~~~~~~ sort.item
|
patrick@73
|
646 |
sort.item = element item { sort.item.attributes, sort.item.content }
|
patrick@73
|
647 |
|
patrick@73
|
648 |
sort.item.attributes =
|
patrick@73
|
649 |
item.shuffle.attribute?
|
patrick@73
|
650 |
item.shuffle.attribute = attribute shuffle { xsd:integer }
|
patrick@73
|
651 |
|
Patrick@161
|
652 |
sort.item.content =
|
Patrick@161
|
653 |
inlines
|
Patrick@341
|
654 |
| (p, help?, answer?)
|
patrick@73
|
655 |
|
Patrick@344
|
656 |
# ~~~~~~~~~~~~~~~~~~~~~ categories.intruders, category.item ~~~~~~~~~~~~~~~~~~~
|
patrick@125
|
657 |
|
Patrick@344
|
658 |
# ~~~~~~ categories.intruders
|
Patrick@344
|
659 |
categories.intruders = element intruders { categories.intruders.content }
|
Patrick@342
|
660 |
|
Patrick@344
|
661 |
categories.intruders.content =
|
Patrick@342
|
662 |
category.item+
|
Patrick@342
|
663 |
|
Patrick@342
|
664 |
# ~~~~~~ category.item
|
patrick@125
|
665 |
category.item = element item { category.item.content }
|
patrick@125
|
666 |
|
Patrick@161
|
667 |
category.item.content =
|
Patrick@161
|
668 |
inlines
|
Patrick@341
|
669 |
| (p, help?, answer?)
|
patrick@125
|
670 |
|
patrick@73
|
671 |
|
patrick@73
|
672 |
# =============================================================================
|
patrick@73
|
673 |
# INLINE LEVEL
|
patrick@73
|
674 |
# =============================================================================
|
patrick@73
|
675 |
|
patrick@75
|
676 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@75
|
677 |
|
Patrick@293
|
678 |
blanks.inlines = mixed {
|
Patrick@293
|
679 |
sup*
|
Patrick@293
|
680 |
& sub*
|
Patrick@293
|
681 |
& var*
|
Patrick@293
|
682 |
& number*
|
Patrick@293
|
683 |
& acronym*
|
Patrick@293
|
684 |
& warning*
|
Patrick@293
|
685 |
|
Patrick@291
|
686 |
& highlight*
|
Patrick@291
|
687 |
& emphasis*
|
Patrick@291
|
688 |
& mentioned*
|
Patrick@350
|
689 |
& literal*
|
Patrick@350
|
690 |
& term*
|
Patrick@291
|
691 |
& stage*
|
Patrick@350
|
692 |
& name*
|
Patrick@350
|
693 |
& foreign*
|
Patrick@350
|
694 |
& date*
|
Patrick@350
|
695 |
& math*
|
Patrick@351
|
696 |
& quote*
|
Patrick@291
|
697 |
& initial*
|
Patrick@291
|
698 |
& note*
|
Patrick@291
|
699 |
& link*
|
Patrick@291
|
700 |
& anchor*
|
Patrick@291
|
701 |
& index*
|
Patrick@351
|
702 |
& image*
|
Patrick@351
|
703 |
& audio*
|
Patrick@351
|
704 |
& smil*
|
Coraline@436
|
705 |
& nowrap*
|
Patrick@293
|
706 |
|
patrick@75
|
707 |
& blank*
|
Patrick@293
|
708 |
}
|
Patrick@288
|
709 |
|
Coraline@409
|
710 |
blanks-m.inlines = mixed {
|
Coraline@409
|
711 |
sup*
|
Coraline@409
|
712 |
& sub*
|
Coraline@409
|
713 |
& var*
|
Coraline@409
|
714 |
& number*
|
Coraline@409
|
715 |
& acronym*
|
Coraline@409
|
716 |
& warning*
|
Coraline@409
|
717 |
|
Coraline@409
|
718 |
& highlight*
|
Coraline@409
|
719 |
& emphasis*
|
Coraline@409
|
720 |
& mentioned*
|
Coraline@409
|
721 |
& literal*
|
Coraline@409
|
722 |
& term*
|
Coraline@409
|
723 |
& stage*
|
Coraline@409
|
724 |
& name*
|
Coraline@409
|
725 |
& foreign*
|
Coraline@409
|
726 |
& date*
|
Coraline@409
|
727 |
& math*
|
Coraline@409
|
728 |
& quote*
|
Coraline@409
|
729 |
& initial*
|
Coraline@409
|
730 |
& note*
|
Coraline@409
|
731 |
& link*
|
Coraline@409
|
732 |
& anchor*
|
Coraline@409
|
733 |
& index*
|
Coraline@409
|
734 |
& image*
|
Coraline@409
|
735 |
& audio*
|
Coraline@409
|
736 |
& smil*
|
Coraline@436
|
737 |
& nowrap*
|
Coraline@409
|
738 |
|
Coraline@409
|
739 |
& blank-m*
|
Coraline@409
|
740 |
}
|
Coraline@409
|
741 |
|
Patrick@336
|
742 |
pointing.inlines = mixed {
|
Patrick@293
|
743 |
sup*
|
Patrick@293
|
744 |
& sub*
|
Patrick@293
|
745 |
& var*
|
Patrick@293
|
746 |
& number*
|
Patrick@293
|
747 |
& acronym*
|
Patrick@293
|
748 |
& warning*
|
Patrick@293
|
749 |
|
Patrick@291
|
750 |
& highlight*
|
Patrick@291
|
751 |
& emphasis*
|
Patrick@291
|
752 |
& mentioned*
|
Patrick@350
|
753 |
& literal*
|
Patrick@350
|
754 |
& term*
|
Patrick@291
|
755 |
& stage*
|
Patrick@350
|
756 |
& name*
|
Patrick@350
|
757 |
& foreign*
|
Patrick@350
|
758 |
& date*
|
Patrick@350
|
759 |
& math*
|
Patrick@351
|
760 |
& quote*
|
Patrick@291
|
761 |
& initial*
|
Patrick@291
|
762 |
& note*
|
Patrick@291
|
763 |
& link*
|
Patrick@291
|
764 |
& anchor*
|
Patrick@291
|
765 |
& index*
|
Patrick@351
|
766 |
& image*
|
Patrick@351
|
767 |
& audio*
|
Patrick@351
|
768 |
& smil*
|
Coraline@436
|
769 |
& nowrap*
|
Patrick@293
|
770 |
|
Patrick@336
|
771 |
& point*
|
Patrick@293
|
772 |
}
|
patrick@75
|
773 |
|
Coraline@409
|
774 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blank, blank-m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
775 |
|
patrick@73
|
776 |
# ~~~~~~ blank
|
Patrick@216
|
777 |
blank = element blank { blank.attributes, blank.content }
|
Patrick@216
|
778 |
|
Patrick@216
|
779 |
blank.attributes =
|
claire@381
|
780 |
area.attribute?
|
claire@381
|
781 |
& long.attribute?
|
claire@381
|
782 |
& function.attribute?
|
claire@381
|
783 |
area.attribute = attribute area { xsd:boolean }
|
Coraline@402
|
784 |
function.attribute = attribute function { 'accent' | 'uppercase' }
|
patrick@73
|
785 |
|
patrick@73
|
786 |
blank.content =
|
patrick@73
|
787 |
text
|
patrick@87
|
788 |
| (s+, help?, answer?)
|
patrick@73
|
789 |
|
Coraline@409
|
790 |
# ~~~~~~ blank-m
|
Coraline@409
|
791 |
blank-m = element blank { blank-m.content }
|
Patrick@411
|
792 |
blank-m.content =
|
Patrick@411
|
793 |
p
|
Patrick@411
|
794 |
| math
|
Patrick@411
|
795 |
| image
|
Patrick@411
|
796 |
| audio
|
Patrick@411
|
797 |
| (s-m+, help?, answer?)
|
Coraline@409
|
798 |
|
patrick@73
|
799 |
# ~~~~~~ s
|
patrick@73
|
800 |
s = element s { s.content }
|
Coraline@409
|
801 |
s.content = text
|
patrick@73
|
802 |
|
Coraline@409
|
803 |
# ~~~~~~ s-m
|
Coraline@409
|
804 |
s-m = element s { s-m.content }
|
Patrick@411
|
805 |
s-m.content =
|
Patrick@411
|
806 |
p
|
Patrick@411
|
807 |
| math
|
Patrick@411
|
808 |
| image
|
Patrick@411
|
809 |
| audio
|
patrick@73
|
810 |
|
Patrick@336
|
811 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ point ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@73
|
812 |
|
Patrick@336
|
813 |
point = element point { point.attributes, point.content }
|
Coraline@409
|
814 |
pip.point = element point { pip.point.attributes, point.content }
|
patrick@73
|
815 |
|
Patrick@336
|
816 |
point.attributes =
|
Patrick@336
|
817 |
point.ref.attribute?
|
Coraline@409
|
818 |
pip.point.attributes =
|
Coraline@409
|
819 |
point.ref.attribute?
|
Coraline@409
|
820 |
& x.attribute
|
Coraline@409
|
821 |
& y.attribute
|
Coraline@409
|
822 |
& w.attribute
|
Coraline@409
|
823 |
& h.attribute
|
Coraline@409
|
824 |
|
Patrick@340
|
825 |
point.ref.attribute = attribute ref {
|
Patrick@340
|
826 |
"right" | "cat1" | "cat2" | "cat3" | "cat4" | "cat5" }
|
Patrick@336
|
827 |
|
Patrick@356
|
828 |
point.content = inlines
|