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