patrick@0
|
1 |
# $Id$
|
patrick@0
|
2 |
|
patrick@0
|
3 |
start = publidoc
|
patrick@0
|
4 |
|
patrick@0
|
5 |
|
patrick@0
|
6 |
publidoc = element publidoc {
|
patrick@0
|
7 |
publidoc.attributes,
|
patrick@0
|
8 |
publidoc.content
|
patrick@0
|
9 |
}
|
patrick@0
|
10 |
|
patrick@0
|
11 |
publidoc.attributes =
|
patrick@0
|
12 |
version.attribute
|
patrick@0
|
13 |
version.attribute = attribute version { "1.0" }
|
patrick@0
|
14 |
|
patrick@0
|
15 |
publidoc.content =
|
patrick@0
|
16 |
document
|
patrick@0
|
17 |
| top.topic
|
patrick@0
|
18 |
|
patrick@0
|
19 |
|
patrick@0
|
20 |
# =============================================================================
|
patrick@20
|
21 |
# TOP LEVEL
|
patrick@0
|
22 |
# =============================================================================
|
patrick@0
|
23 |
|
patrick@98
|
24 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ top.head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
25 |
|
patrick@90
|
26 |
top.head = element head { top.head.content }
|
patrick@90
|
27 |
|
patrick@90
|
28 |
top.head.content =
|
Patrick@217
|
29 |
(title, shorttitle?, subtitle*)?
|
patrick@156
|
30 |
& (identifier, identifier?)?
|
patrick@181
|
31 |
& copyright*
|
Patrick@155
|
32 |
& collection?
|
patrick@90
|
33 |
& contributors?
|
patrick@90
|
34 |
& date?
|
patrick@90
|
35 |
& place?
|
patrick@156
|
36 |
& (source, source?)?
|
patrick@90
|
37 |
& keywordset?
|
patrick@90
|
38 |
& subjectset?
|
patrick@90
|
39 |
& abstract?
|
patrick@90
|
40 |
& cover?
|
patrick@90
|
41 |
& annotation*
|
patrick@90
|
42 |
|
patrick@0
|
43 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ document ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
44 |
|
patrick@90
|
45 |
# ~~~~~~ document
|
patrick@0
|
46 |
document = element document { document.attributes, document.content }
|
patrick@0
|
47 |
|
patrick@0
|
48 |
document.attributes =
|
patrick@0
|
49 |
document.id.attribute
|
patrick@142
|
50 |
& document.type.attribute?
|
patrick@66
|
51 |
& lang.attribute?
|
patrick@117
|
52 |
document.id.attribute = attribute id { xsd:NMTOKEN }
|
patrick@142
|
53 |
document.type.attribute = attribute type { xsd:NCName }
|
patrick@66
|
54 |
lang.attribute = attribute xml:lang { xsd:language }
|
patrick@0
|
55 |
|
patrick@0
|
56 |
document.content =
|
patrick@20
|
57 |
top.head?,
|
patrick@56
|
58 |
(division | topic)+
|
patrick@0
|
59 |
|
patrick@0
|
60 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
61 |
|
patrick@18
|
62 |
top.topic = element topic { top.topic.attributes, top.topic.content }
|
patrick@0
|
63 |
|
patrick@20
|
64 |
top.topic.attributes =
|
patrick@20
|
65 |
topic.id.attribute
|
patrick@20
|
66 |
& topic.type.attribute?
|
patrick@66
|
67 |
& lang.attribute?
|
patrick@117
|
68 |
topic.id.attribute = attribute id { xsd:NMTOKEN }
|
patrick@20
|
69 |
topic.type.attribute = attribute type { xsd:NCName }
|
patrick@20
|
70 |
|
patrick@20
|
71 |
top.topic.content =
|
patrick@20
|
72 |
top.head?,
|
Patrick@137
|
73 |
header?,
|
Patrick@190
|
74 |
((section+, bibliography?) | bibliography),
|
Patrick@137
|
75 |
footer?
|
patrick@0
|
76 |
|
patrick@40
|
77 |
|
patrick@0
|
78 |
# =============================================================================
|
patrick@20
|
79 |
# DIVISION LEVEL
|
patrick@0
|
80 |
# =============================================================================
|
patrick@0
|
81 |
|
patrick@70
|
82 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
83 |
|
patrick@90
|
84 |
# ~~~~~~ division
|
Patrick@232
|
85 |
division = element division { division.attributes, division.content }
|
Patrick@232
|
86 |
|
Patrick@232
|
87 |
division.attributes =
|
Patrick@232
|
88 |
division.type.attribute?
|
Patrick@232
|
89 |
division.type.attribute = attribute type { xsd:NCName }
|
patrick@0
|
90 |
|
patrick@0
|
91 |
division.content =
|
patrick@20
|
92 |
division.head?,
|
Patrick@217
|
93 |
front?,
|
patrick@56
|
94 |
(division | topic)+
|
patrick@0
|
95 |
|
patrick@90
|
96 |
# ~~~~~~ division.head
|
patrick@90
|
97 |
division.head = element head { division.head.content }
|
patrick@90
|
98 |
|
patrick@90
|
99 |
division.head.content =
|
Patrick@217
|
100 |
(title, shorttitle?, subtitle*)?
|
patrick@90
|
101 |
& abstract?
|
patrick@90
|
102 |
& annotation*
|
patrick@90
|
103 |
|
Patrick@217
|
104 |
# ~~~~~~ front
|
Patrick@217
|
105 |
front = element front { front.content }
|
Patrick@217
|
106 |
|
Patrick@217
|
107 |
front.content =
|
Patrick@217
|
108 |
section+
|
Patrick@217
|
109 |
|
patrick@0
|
110 |
|
patrick@0
|
111 |
# =============================================================================
|
patrick@90
|
112 |
# COMPONENT LEVEL
|
patrick@0
|
113 |
# =============================================================================
|
patrick@0
|
114 |
|
patrick@90
|
115 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ component.head ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
116 |
|
patrick@90
|
117 |
component.head = element head { component.head.content }
|
patrick@90
|
118 |
|
patrick@90
|
119 |
component.head.content =
|
Patrick@217
|
120 |
(title, shorttitle?, subtitle*)?
|
patrick@90
|
121 |
& contributors?
|
patrick@143
|
122 |
& date?
|
patrick@143
|
123 |
& place?
|
patrick@143
|
124 |
& keywordset?
|
patrick@143
|
125 |
& subjectset?
|
patrick@90
|
126 |
& abstract?
|
patrick@90
|
127 |
& annotation*
|
patrick@90
|
128 |
|
patrick@0
|
129 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
130 |
|
patrick@0
|
131 |
topic = element topic { topic.attributes, topic.content }
|
patrick@0
|
132 |
|
patrick@0
|
133 |
topic.attributes =
|
Patrick@191
|
134 |
(topic.id.attribute | xmlid.attribute)?
|
patrick@0
|
135 |
& topic.type.attribute?
|
patrick@69
|
136 |
& lang.attribute?
|
Patrick@191
|
137 |
xmlid.attribute = attribute xml:id { xsd:ID }
|
patrick@0
|
138 |
|
patrick@0
|
139 |
topic.content =
|
patrick@20
|
140 |
component.head?,
|
Patrick@137
|
141 |
header?,
|
Patrick@190
|
142 |
((section+, bibliography?) | bibliography),
|
Patrick@137
|
143 |
footer?
|
patrick@0
|
144 |
|
patrick@0
|
145 |
|
patrick@0
|
146 |
# =============================================================================
|
patrick@20
|
147 |
# SECTION LEVEL
|
patrick@0
|
148 |
# =============================================================================
|
patrick@0
|
149 |
|
Patrick@137
|
150 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@137
|
151 |
|
Patrick@137
|
152 |
header = element header { header.content }
|
Patrick@137
|
153 |
|
Patrick@137
|
154 |
header.content =
|
Patrick@137
|
155 |
block+
|
Patrick@137
|
156 |
|
patrick@20
|
157 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
158 |
|
patrick@90
|
159 |
# ~~~~~~ section
|
patrick@58
|
160 |
section = element section { section.attributes, section.content }
|
patrick@58
|
161 |
|
patrick@58
|
162 |
section.attributes =
|
patrick@58
|
163 |
section.type.attribute?
|
patrick@64
|
164 |
& lang.attribute?
|
patrick@166
|
165 |
& for.attribute?
|
patrick@58
|
166 |
section.type.attribute = attribute type { xsd:NCName }
|
patrick@166
|
167 |
for.attribute = attribute for { xsd:NCName }
|
patrick@0
|
168 |
|
patrick@0
|
169 |
section.content =
|
patrick@20
|
170 |
section.head?,
|
patrick@9
|
171 |
(section+ | block+)
|
patrick@0
|
172 |
|
patrick@90
|
173 |
# ~~~~~~ section.head
|
patrick@90
|
174 |
section.head = element head { section.head.content }
|
patrick@90
|
175 |
|
patrick@90
|
176 |
section.head.content =
|
Patrick@217
|
177 |
(title, shorttitle?, subtitle*)?
|
Marc@177
|
178 |
& keywordset?
|
Marc@177
|
179 |
& subjectset?
|
patrick@90
|
180 |
& abstract?
|
patrick@105
|
181 |
& audio*
|
patrick@90
|
182 |
& annotation*
|
patrick@90
|
183 |
|
Patrick@189
|
184 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bibliography ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@189
|
185 |
|
Patrick@189
|
186 |
# ~~~~~~ bibliography
|
Patrick@189
|
187 |
bibliography = element bibliography { bibliography.content }
|
Patrick@189
|
188 |
|
Patrick@189
|
189 |
bibliography.content =
|
Patrick@189
|
190 |
bibliography.entry+
|
Patrick@189
|
191 |
|
Patrick@137
|
192 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ footer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@137
|
193 |
|
Patrick@137
|
194 |
footer = element footer { footer.content }
|
Patrick@137
|
195 |
|
Patrick@137
|
196 |
footer.content =
|
Patrick@137
|
197 |
block+
|
Patrick@137
|
198 |
|
patrick@0
|
199 |
|
patrick@0
|
200 |
# =============================================================================
|
patrick@20
|
201 |
# BLOCK LEVEL
|
patrick@0
|
202 |
# =============================================================================
|
patrick@0
|
203 |
|
patrick@20
|
204 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@9
|
205 |
|
patrick@90
|
206 |
# ~~~~~~ block
|
patrick@248
|
207 |
block = (p | speech | \list | blockquote | table | table.cals | media)
|
patrick@9
|
208 |
|
patrick@90
|
209 |
# ~~~~~~ block.head
|
patrick@90
|
210 |
block.head = element head { block.head.content }
|
patrick@90
|
211 |
|
patrick@90
|
212 |
block.head.content =
|
Patrick@217
|
213 |
(title, shorttitle?, subtitle*)?
|
patrick@90
|
214 |
|
patrick@42
|
215 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
216 |
|
patrick@20
|
217 |
p = element p { p.content }
|
patrick@0
|
218 |
|
patrick@20
|
219 |
p.content =
|
patrick@0
|
220 |
inlines
|
patrick@0
|
221 |
|
patrick@18
|
222 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ speech ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@18
|
223 |
|
patrick@18
|
224 |
# ~~~~~~ speech
|
patrick@18
|
225 |
speech = element speech { speech.content }
|
patrick@18
|
226 |
|
patrick@18
|
227 |
speech.content =
|
patrick@18
|
228 |
speaker?,
|
patrick@18
|
229 |
stage?,
|
Patrick@199
|
230 |
(p | blockquote)+
|
patrick@18
|
231 |
|
patrick@18
|
232 |
# ~~~~~~ speaker
|
patrick@18
|
233 |
speaker = element speaker { speaker.content }
|
patrick@18
|
234 |
|
patrick@18
|
235 |
speaker.content = inlines
|
patrick@18
|
236 |
|
patrick@17
|
237 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@9
|
238 |
|
patrick@9
|
239 |
# ~~~~~~ list
|
patrick@75
|
240 |
\list = element list {
|
patrick@20
|
241 |
block.head?,
|
patrick@71
|
242 |
( (attribute type {"ordered"}?, item, item+)
|
patrick@9
|
243 |
| (attribute type {"glossary"}, glossary.item+) )
|
patrick@75
|
244 |
}
|
patrick@9
|
245 |
|
patrick@9
|
246 |
# ~~~~~~ item
|
patrick@9
|
247 |
item = element item { item.content }
|
patrick@9
|
248 |
|
patrick@30
|
249 |
item.content =
|
patrick@73
|
250 |
inlines
|
patrick@73
|
251 |
| block+
|
patrick@9
|
252 |
|
patrick@9
|
253 |
# ~~~~~~ glossary.item
|
patrick@9
|
254 |
glossary.item = element item { glossary.item.content }
|
patrick@9
|
255 |
|
patrick@9
|
256 |
glossary.item.content =
|
patrick@9
|
257 |
label,
|
patrick@9
|
258 |
block+
|
patrick@9
|
259 |
|
patrick@44
|
260 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blockquote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@44
|
261 |
|
patrick@44
|
262 |
# ~~~~~~ blockquote
|
patrick@44
|
263 |
blockquote = element blockquote { blockquote.content }
|
patrick@44
|
264 |
|
patrick@44
|
265 |
blockquote.content =
|
patrick@44
|
266 |
block.head?,
|
patrick@44
|
267 |
(p | speech | \list)+,
|
patrick@44
|
268 |
attribution?
|
patrick@44
|
269 |
|
patrick@44
|
270 |
# ~~~~~~ attribution
|
patrick@72
|
271 |
attribution = element attribution { attribution.content }
|
patrick@44
|
272 |
|
Patrick@225
|
273 |
attribution.content = mixed {
|
Patrick@225
|
274 |
sup* & number* & date* & name* & foreign* & acronym* & term* & literal*
|
Patrick@238
|
275 |
& highlight* & emphasis* & mentioned* & note* & warning* }
|
patrick@44
|
276 |
|
patrick@248
|
277 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@17
|
278 |
|
patrick@73
|
279 |
# ~~~~~~ table
|
patrick@248
|
280 |
table = element table { table.attributes, table.content }
|
patrick@248
|
281 |
|
patrick@248
|
282 |
table.attributes =
|
patrick@248
|
283 |
table.type.attribute?
|
patrick@248
|
284 |
table.type.attribute = attribute type { xsd:NCName }
|
patrick@17
|
285 |
|
patrick@17
|
286 |
table.content =
|
patrick@20
|
287 |
block.head?,
|
patrick@248
|
288 |
thead?,
|
patrick@248
|
289 |
(tbody+ | tr+),
|
patrick@109
|
290 |
table.caption?
|
patrick@17
|
291 |
|
patrick@248
|
292 |
# ~~~~~~ thead, tbody
|
patrick@248
|
293 |
thead = element thead { thead.content }
|
patrick@248
|
294 |
tbody = element tbody { tbody.content }
|
patrick@17
|
295 |
|
patrick@248
|
296 |
thead.content =
|
patrick@248
|
297 |
tr+
|
patrick@248
|
298 |
tbody.content =
|
patrick@248
|
299 |
tr+
|
patrick@17
|
300 |
|
patrick@248
|
301 |
# ~~~~~~ tr
|
patrick@248
|
302 |
tr = element tr { tr.attributes, tr.content }
|
patrick@248
|
303 |
|
patrick@248
|
304 |
tr.attributes =
|
patrick@248
|
305 |
align.attribute?
|
patrick@248
|
306 |
& valign.attribute?
|
patrick@17
|
307 |
align.attribute = attribute align { "left" | "right" | "center" | "justify" }
|
patrick@22
|
308 |
valign.attribute = attribute valign { "top" | "middle" | "bottom" }
|
patrick@75
|
309 |
|
patrick@248
|
310 |
tr.content =
|
patrick@248
|
311 |
(td | th)+
|
patrick@17
|
312 |
|
patrick@248
|
313 |
# ~~~~~~ td, th
|
patrick@248
|
314 |
td = element td { td.attributes, td.content }
|
patrick@248
|
315 |
th = element th { td.attributes, td.content }
|
patrick@17
|
316 |
|
patrick@248
|
317 |
td.attributes =
|
patrick@146
|
318 |
align.attribute?
|
patrick@146
|
319 |
& valign.attribute?
|
patrick@248
|
320 |
& colspan.attribute?
|
patrick@248
|
321 |
& rowspan.attribute?
|
patrick@248
|
322 |
colspan.attribute = attribute colspan { xsd:positiveInteger }
|
patrick@248
|
323 |
rowspan.attribute = attribute rowspan { xsd:positiveInteger }
|
patrick@17
|
324 |
|
patrick@248
|
325 |
td.content =
|
patrick@17
|
326 |
inlines
|
patrick@37
|
327 |
| (p | media)+
|
patrick@17
|
328 |
|
patrick@109
|
329 |
# ~~~~~~ table.caption
|
patrick@109
|
330 |
table.caption = element caption { caption.content }
|
patrick@17
|
331 |
|
patrick@17
|
332 |
caption.content =
|
patrick@20
|
333 |
inlines
|
Patrick@138
|
334 |
| (p | speech | \list | blockquote)+
|
patrick@17
|
335 |
|
patrick@248
|
336 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ table.cals ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@248
|
337 |
|
patrick@248
|
338 |
# ~~~~~~ table.cals
|
patrick@248
|
339 |
table.cals = element table { table.attributes, table.cals.content }
|
patrick@248
|
340 |
|
patrick@248
|
341 |
table.cals.content =
|
patrick@248
|
342 |
block.head?,
|
patrick@248
|
343 |
tgroup+,
|
patrick@248
|
344 |
table.caption?
|
patrick@248
|
345 |
|
patrick@248
|
346 |
# ~~~~~~ tgroup
|
patrick@248
|
347 |
tgroup = element tgroup { tgroup.attributes, tgroup.content }
|
patrick@248
|
348 |
|
patrick@248
|
349 |
tgroup.attributes =
|
patrick@248
|
350 |
cols.attribute
|
patrick@248
|
351 |
cols.attribute = attribute cols { xsd:positiveInteger }
|
patrick@248
|
352 |
|
patrick@248
|
353 |
tgroup.content =
|
patrick@248
|
354 |
thead.cals?,
|
patrick@248
|
355 |
tbody.cals
|
patrick@248
|
356 |
|
patrick@248
|
357 |
# ~~~~~~ thead, tbody
|
patrick@248
|
358 |
thead.cals = element thead { thead.cals.content }
|
patrick@248
|
359 |
tbody.cals = element tbody { tbody.cals.content }
|
patrick@248
|
360 |
|
patrick@248
|
361 |
thead.cals.content =
|
patrick@248
|
362 |
row+
|
patrick@248
|
363 |
tbody.cals.content =
|
patrick@248
|
364 |
row+
|
patrick@248
|
365 |
|
patrick@248
|
366 |
# ~~~~~~ row
|
patrick@248
|
367 |
row = element row { row.attributes, row.content }
|
patrick@248
|
368 |
|
patrick@248
|
369 |
row.attributes =
|
patrick@248
|
370 |
valign.attribute?
|
patrick@248
|
371 |
|
patrick@248
|
372 |
row.content =
|
patrick@248
|
373 |
table.cals.entry+
|
patrick@248
|
374 |
|
patrick@248
|
375 |
# ~~~~~~ table.cals.entry
|
patrick@248
|
376 |
table.cals.entry = element entry {
|
patrick@248
|
377 |
table.cals.entry.attributes, table.cals.entry.content }
|
patrick@248
|
378 |
|
patrick@248
|
379 |
table.cals.entry.attributes =
|
patrick@248
|
380 |
align.attribute?
|
patrick@248
|
381 |
& valign.attribute?
|
patrick@248
|
382 |
|
patrick@248
|
383 |
table.cals.entry.content =
|
patrick@248
|
384 |
inlines
|
patrick@248
|
385 |
| (p | media)+
|
patrick@248
|
386 |
|
patrick@35
|
387 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ media ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
388 |
|
patrick@2
|
389 |
# ~~~~~~ media
|
patrick@245
|
390 |
media = element media { media.attributes, media.content }
|
patrick@245
|
391 |
|
patrick@245
|
392 |
media.attributes =
|
patrick@245
|
393 |
media.type.attribute?
|
patrick@245
|
394 |
media.type.attribute = attribute type { xsd:NCName }
|
patrick@0
|
395 |
|
patrick@0
|
396 |
media.content =
|
patrick@24
|
397 |
block.head?,
|
patrick@119
|
398 |
(image | audio | video)+,
|
patrick@109
|
399 |
media.caption?,
|
patrick@36
|
400 |
link?
|
patrick@0
|
401 |
|
patrick@2
|
402 |
# ~~~~~~ image
|
patrick@0
|
403 |
image = element image { image.attributes, image.content }
|
patrick@243
|
404 |
hotspot.image = element image { image.attributes }
|
patrick@0
|
405 |
|
patrick@0
|
406 |
image.attributes =
|
patrick@104
|
407 |
media.id.attribute
|
patrick@104
|
408 |
& image.type?
|
patrick@17
|
409 |
media.id.attribute = attribute id { xsd:NMTOKEN }
|
Patrick@184
|
410 |
image.type = attribute type { "cover" | "thumbnail" | "icon" | "animation" }
|
patrick@0
|
411 |
|
patrick@0
|
412 |
image.content =
|
patrick@111
|
413 |
copyright?,
|
Patrick@176
|
414 |
hotspot*
|
patrick@0
|
415 |
|
patrick@45
|
416 |
# ~~~~~~ audio
|
patrick@45
|
417 |
audio = element audio { audio.attributes }
|
patrick@43
|
418 |
|
patrick@45
|
419 |
audio.attributes =
|
patrick@43
|
420 |
media.id.attribute
|
patrick@104
|
421 |
& audio.type?
|
patrick@113
|
422 |
audio.type = attribute type { "music" | "voice" | "background" | "smil" }
|
patrick@43
|
423 |
|
patrick@119
|
424 |
# ~~~~~~ video
|
patrick@119
|
425 |
video = element video { video.attributes }
|
patrick@119
|
426 |
|
patrick@119
|
427 |
video.attributes =
|
patrick@119
|
428 |
media.id.attribute
|
patrick@119
|
429 |
|
patrick@122
|
430 |
# ~~~~~~ hotspot
|
patrick@122
|
431 |
hotspot = element hotspot { hotspot.attributes, hotspot.content }
|
patrick@122
|
432 |
|
patrick@122
|
433 |
hotspot.attributes =
|
patrick@122
|
434 |
x.attribute
|
patrick@122
|
435 |
& y.attribute
|
patrick@182
|
436 |
& w.attribute
|
Patrick@183
|
437 |
& h.attribute?
|
Patrick@236
|
438 |
& hotspot.display.attribute?
|
Patrick@237
|
439 |
& hotspot.type.attribute?
|
Patrick@191
|
440 |
& xmlid.attribute?
|
Patrick@173
|
441 |
x.attribute = attribute x { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
|
Patrick@173
|
442 |
y.attribute = attribute y { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
|
patrick@182
|
443 |
w.attribute = attribute w { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
|
patrick@182
|
444 |
h.attribute = attribute h { xsd:token {pattern = "\d{1,2}(\.\d{1,2})?%"} }
|
Patrick@236
|
445 |
hotspot.display.attribute = attribute display { "normal" | "visible" | "pulse" }
|
Patrick@237
|
446 |
hotspot.type.attribute = attribute type { xsd:NCName }
|
Patrick@191
|
447 |
|
Patrick@191
|
448 |
hotspot.content =
|
Patrick@191
|
449 |
((link | p+ | hotspot.image | audio | video), (spot, scenario?)?)
|
Patrick@191
|
450 |
| (spot, scenario?)
|
patrick@243
|
451 |
| empty
|
Patrick@191
|
452 |
|
Patrick@191
|
453 |
# ~~~~~~ spot
|
Patrick@191
|
454 |
spot = element spot { spot.attributes, spot.content }
|
Patrick@191
|
455 |
|
Patrick@191
|
456 |
spot.attributes =
|
Patrick@191
|
457 |
dx.attribute?
|
Patrick@191
|
458 |
& dy.attribute?
|
Patrick@191
|
459 |
& dw.attribute?
|
Patrick@191
|
460 |
& dh.attribute?
|
patrick@188
|
461 |
dx.attribute = attribute dx { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
|
patrick@188
|
462 |
dy.attribute = attribute dy { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
|
Patrick@191
|
463 |
dw.attribute = attribute dw { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
|
Patrick@191
|
464 |
dh.attribute = attribute dh { xsd:token {pattern = "-?\d{1,2}(\.\d{1,2})?%"} }
|
Patrick@191
|
465 |
|
Patrick@191
|
466 |
spot.content =
|
Patrick@191
|
467 |
((p+ | image), audio?)
|
Patrick@191
|
468 |
| audio
|
Patrick@191
|
469 |
| video
|
Patrick@191
|
470 |
|
patrick@109
|
471 |
# ~~~~~~ media.caption
|
patrick@109
|
472 |
media.caption = element caption { caption.attributes, caption.content }
|
patrick@109
|
473 |
|
patrick@109
|
474 |
caption.attributes =
|
patrick@109
|
475 |
x.attribute?
|
patrick@109
|
476 |
& y.attribute?
|
patrick@109
|
477 |
|
Patrick@191
|
478 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scenario ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@191
|
479 |
|
Patrick@191
|
480 |
# ~~~~~~ scenario
|
Patrick@191
|
481 |
scenario = element scenario { scenario.content }
|
Patrick@191
|
482 |
|
Patrick@191
|
483 |
scenario.content =
|
Patrick@191
|
484 |
init*,
|
Patrick@191
|
485 |
onclick*
|
Patrick@191
|
486 |
|
Patrick@191
|
487 |
# ~~~~~~ init
|
Patrick@191
|
488 |
init = element init { init.attributes }
|
Patrick@191
|
489 |
|
Patrick@191
|
490 |
init.attributes =
|
Patrick@191
|
491 |
init.action.attribute
|
Patrick@191
|
492 |
& target.attribute?
|
Patrick@191
|
493 |
init.action.attribute = attribute action { "hide" }
|
Patrick@191
|
494 |
target.attribute = attribute target { "hotspot" | "spot" }
|
Patrick@191
|
495 |
|
Patrick@191
|
496 |
# ~~~~~~ onclick
|
Patrick@191
|
497 |
onclick = element onclick { onclick.attributes }
|
Patrick@191
|
498 |
|
Patrick@191
|
499 |
onclick.attributes =
|
Patrick@191
|
500 |
onclick.action.attribute
|
Patrick@191
|
501 |
& target.attribute?
|
Patrick@191
|
502 |
onclick.action.attribute = attribute action { "show" }
|
Patrick@191
|
503 |
|
Patrick@189
|
504 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bibliograpgy.entry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@189
|
505 |
|
Patrick@189
|
506 |
# ~~~~~~ bibliography.entry
|
Patrick@189
|
507 |
bibliography.entry = element entry { bibliography.entry.content }
|
Patrick@189
|
508 |
|
Patrick@189
|
509 |
bibliography.entry.content =
|
Patrick@189
|
510 |
identifier.ean?
|
Patrick@189
|
511 |
& title
|
Patrick@189
|
512 |
& subtitle?
|
Patrick@189
|
513 |
& copyright?
|
Patrick@189
|
514 |
& collection?
|
Patrick@189
|
515 |
& contributors?
|
Patrick@189
|
516 |
& date?
|
Patrick@189
|
517 |
& place?
|
Patrick@189
|
518 |
& folio?
|
Patrick@189
|
519 |
& pages?
|
Patrick@189
|
520 |
|
Patrick@189
|
521 |
# ~~~~~~ folio
|
Patrick@189
|
522 |
folio = element folio { folio.content }
|
Patrick@189
|
523 |
|
Patrick@189
|
524 |
folio.content = xsd:positiveInteger | xsd:token {pattern = "[DLXVI]+"}
|
Patrick@189
|
525 |
|
Patrick@189
|
526 |
# ~~~~~~ pages
|
Patrick@189
|
527 |
pages = element pages { pages.content }
|
Patrick@189
|
528 |
|
Patrick@189
|
529 |
pages.content = xsd:positiveInteger
|
Patrick@189
|
530 |
|
patrick@0
|
531 |
|
patrick@0
|
532 |
# =============================================================================
|
patrick@90
|
533 |
# HEAD LEVEL
|
patrick@90
|
534 |
# =============================================================================
|
patrick@90
|
535 |
|
patrick@127
|
536 |
# ~~~~~~~~~~~~~~~~~~~~~~~ title, shorttitle, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
537 |
|
patrick@90
|
538 |
title = element title { title.content }
|
patrick@127
|
539 |
shorttitle = element shorttitle { title.content }
|
patrick@90
|
540 |
subtitle = element subtitle { title.content }
|
patrick@90
|
541 |
|
patrick@90
|
542 |
title.content = inlines
|
patrick@90
|
543 |
|
patrick@90
|
544 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ identifier ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
545 |
|
patrick@156
|
546 |
identifier = element identifier {
|
patrick@156
|
547 |
(attribute type { "ean" }, xsd:token {pattern = "\d{13}"})
|
patrick@156
|
548 |
| (attribute type { "uri" }, xsd:anyURI)
|
patrick@90
|
549 |
}
|
patrick@90
|
550 |
|
patrick@90
|
551 |
identifier.ean = element identifier {
|
patrick@90
|
552 |
attribute type { "ean" }, xsd:token {pattern = "\d{13}"}
|
patrick@90
|
553 |
}
|
patrick@90
|
554 |
|
patrick@156
|
555 |
identifier.uri = element identifier {
|
patrick@156
|
556 |
attribute type { "uri" }, xsd:anyURI
|
patrick@156
|
557 |
}
|
patrick@90
|
558 |
|
patrick@90
|
559 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ copyright ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
560 |
|
patrick@90
|
561 |
copyright = element copyright { copyright.content }
|
patrick@90
|
562 |
|
patrick@90
|
563 |
copyright.content = inlines
|
patrick@90
|
564 |
|
Patrick@155
|
565 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ collection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@155
|
566 |
|
Patrick@155
|
567 |
collection = element collection { collection.content }
|
Patrick@155
|
568 |
|
Patrick@155
|
569 |
collection.content = inlines
|
Patrick@155
|
570 |
|
patrick@90
|
571 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ contributors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
572 |
|
patrick@90
|
573 |
# ~~~~~~ contributors
|
patrick@90
|
574 |
contributors = element contributors { contributors.content }
|
patrick@90
|
575 |
|
patrick@90
|
576 |
contributors.content =
|
patrick@90
|
577 |
contributor+
|
patrick@90
|
578 |
|
patrick@90
|
579 |
# ~~~~~~ contributor
|
patrick@90
|
580 |
contributor = element contributor { contributor.content }
|
patrick@90
|
581 |
|
patrick@90
|
582 |
contributor.content =
|
patrick@90
|
583 |
(((firstname, secondname?)?, lastname) | label),
|
patrick@90
|
584 |
address?,
|
patrick@90
|
585 |
link?,
|
patrick@101
|
586 |
role+
|
patrick@90
|
587 |
|
patrick@90
|
588 |
# ~~~~~~ firstname, secondname, lastname, label
|
patrick@90
|
589 |
firstname = element firstname { firstname.content }
|
patrick@90
|
590 |
secondname = element secondname { secondname.content }
|
patrick@90
|
591 |
lastname = element lastname { lastname.content }
|
patrick@90
|
592 |
label = element label { label.content }
|
patrick@90
|
593 |
|
patrick@90
|
594 |
firstname.content = inlines
|
patrick@90
|
595 |
secondname.content = inlines
|
patrick@90
|
596 |
lastname.content = inlines
|
patrick@90
|
597 |
label.content = inlines
|
patrick@90
|
598 |
|
patrick@90
|
599 |
# ~~~~~~ address
|
patrick@90
|
600 |
address = element address { address.content }
|
patrick@90
|
601 |
|
patrick@90
|
602 |
address.content = inlines
|
patrick@90
|
603 |
|
patrick@90
|
604 |
# ~~~~~~ role
|
patrick@90
|
605 |
role = element role { role.content }
|
patrick@90
|
606 |
|
patrick@90
|
607 |
role.content = "author" | "illustrator" | "publisher" | "packager"
|
patrick@90
|
608 |
|
patrick@90
|
609 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ place ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
610 |
|
patrick@90
|
611 |
place = element place { place.content }
|
patrick@90
|
612 |
|
patrick@90
|
613 |
place.content = inlines
|
patrick@90
|
614 |
|
patrick@90
|
615 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
616 |
|
patrick@90
|
617 |
source = element source {
|
Patrick@189
|
618 |
( (attribute type { "book" }, bibliography.entry.content)
|
patrick@90
|
619 |
| (attribute type { "file" }, source.content.file)),
|
patrick@90
|
620 |
source.content
|
patrick@90
|
621 |
}
|
patrick@90
|
622 |
|
patrick@90
|
623 |
source.content.file =
|
patrick@90
|
624 |
identifier.uri
|
patrick@90
|
625 |
source.content =
|
patrick@90
|
626 |
annotation*
|
patrick@90
|
627 |
|
Patrick@189
|
628 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
629 |
|
patrick@90
|
630 |
# ~~~~~~ keywordset
|
patrick@90
|
631 |
keywordset = element keywordset { keywordset.content }
|
patrick@90
|
632 |
|
patrick@90
|
633 |
keywordset.content = keyword+
|
patrick@90
|
634 |
|
patrick@90
|
635 |
# ~~~~~~ keyword
|
patrick@90
|
636 |
keyword = element keyword { keyword.content }
|
patrick@90
|
637 |
|
patrick@90
|
638 |
keyword.content = mixed { sup*, sub* }
|
patrick@90
|
639 |
|
patrick@90
|
640 |
# ~~~~~~ subjectset
|
patrick@90
|
641 |
subjectset = element subjectset { subjectset.content }
|
patrick@90
|
642 |
|
patrick@90
|
643 |
subjectset.content = subject+
|
patrick@90
|
644 |
|
patrick@90
|
645 |
# ~~~~~~ subject
|
patrick@132
|
646 |
subject = element subject { subject.content }
|
patrick@90
|
647 |
|
Patrick@214
|
648 |
subject.content = mixed { sup*, sub* }
|
patrick@90
|
649 |
|
patrick@90
|
650 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
651 |
|
patrick@90
|
652 |
abstract = element abstract { abstract.content }
|
patrick@90
|
653 |
|
patrick@90
|
654 |
abstract.content =
|
patrick@90
|
655 |
p+
|
patrick@90
|
656 |
|
patrick@90
|
657 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cover ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
658 |
|
patrick@90
|
659 |
cover = element cover { cover.content }
|
patrick@90
|
660 |
|
patrick@90
|
661 |
cover.content =
|
patrick@90
|
662 |
cover.image
|
patrick@90
|
663 |
|
patrick@90
|
664 |
cover.image = element image { cover.image.attributes }
|
patrick@90
|
665 |
|
patrick@90
|
666 |
cover.image.attributes =
|
patrick@90
|
667 |
cover.image.id.attribute
|
patrick@90
|
668 |
cover.image.id.attribute = attribute id { xsd:NMTOKEN }
|
patrick@105
|
669 |
|
patrick@90
|
670 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ annotation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
671 |
|
patrick@90
|
672 |
annotation = element annotation { annotation.content }
|
patrick@90
|
673 |
|
patrick@90
|
674 |
annotation.content = inlines
|
patrick@90
|
675 |
|
patrick@90
|
676 |
|
patrick@90
|
677 |
# =============================================================================
|
patrick@20
|
678 |
# INLINE LEVEL
|
patrick@0
|
679 |
# =============================================================================
|
patrick@0
|
680 |
|
patrick@0
|
681 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ inlines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
682 |
|
patrick@0
|
683 |
inlines = mixed {
|
patrick@0
|
684 |
sup*
|
patrick@0
|
685 |
& sub*
|
patrick@42
|
686 |
& var*
|
patrick@13
|
687 |
& number*
|
patrick@42
|
688 |
& math*
|
patrick@0
|
689 |
& date*
|
patrick@0
|
690 |
& name*
|
Patrick@212
|
691 |
& foreign*
|
Patrick@212
|
692 |
& acronym*
|
Patrick@212
|
693 |
& term*
|
Patrick@212
|
694 |
& literal*
|
Patrick@212
|
695 |
& stage*
|
Patrick@212
|
696 |
& highlight*
|
Patrick@238
|
697 |
& emphasis*
|
Patrick@212
|
698 |
& mentioned*
|
Patrick@212
|
699 |
& initial*
|
patrick@5
|
700 |
& note*
|
patrick@5
|
701 |
& quote*
|
patrick@25
|
702 |
& link*
|
patrick@42
|
703 |
& anchor*
|
patrick@93
|
704 |
& image*
|
Patrick@208
|
705 |
& audio*
|
patrick@105
|
706 |
& smil*
|
Patrick@205
|
707 |
& warning*
|
patrick@0
|
708 |
}
|
patrick@0
|
709 |
|
patrick@42
|
710 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup, var ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
711 |
|
patrick@252
|
712 |
sup = element sup { mixed { var* & warning* } }
|
patrick@0
|
713 |
|
patrick@252
|
714 |
sub = element sub { mixed { var* & warning* } }
|
patrick@42
|
715 |
|
Patrick@225
|
716 |
var = element var { mixed { warning* } }
|
patrick@42
|
717 |
|
patrick@90
|
718 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ number ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@90
|
719 |
|
patrick@90
|
720 |
number = element number {
|
patrick@90
|
721 |
( attribute type {"roman"}, number.attributes, number.roman.content )
|
patrick@90
|
722 |
| ( number.attributes, number.content)
|
patrick@90
|
723 |
}
|
patrick@90
|
724 |
|
patrick@90
|
725 |
number.attributes =
|
patrick@90
|
726 |
number.value.attribute?
|
patrick@90
|
727 |
number.value.attribute = attribute value { xsd:integer | xsd:decimal }
|
patrick@90
|
728 |
|
Patrick@212
|
729 |
number.content = mixed { sup* & warning* }
|
patrick@246
|
730 |
number.roman.content = xsd:token {pattern = "[MCLXVI]+"}
|
patrick@90
|
731 |
|
patrick@42
|
732 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ math ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@42
|
733 |
|
patrick@42
|
734 |
math = element math {
|
patrick@42
|
735 |
( attribute notation {"tex"}, math.attributes, math.tex.content )
|
patrick@42
|
736 |
| ( math.attributes, math.content)
|
patrick@42
|
737 |
}
|
patrick@42
|
738 |
|
patrick@42
|
739 |
math.attributes =
|
patrick@42
|
740 |
wide.attribute?
|
patrick@42
|
741 |
wide.attribute = attribute wide { xsd:boolean }
|
patrick@42
|
742 |
|
Patrick@225
|
743 |
math.content = mixed { sup* & sub* & var* & warning* }
|
patrick@42
|
744 |
math.tex.content = text
|
patrick@0
|
745 |
|
patrick@36
|
746 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
747 |
|
patrick@0
|
748 |
date = element date { date.attributes, date.content }
|
patrick@0
|
749 |
|
patrick@3
|
750 |
date.attributes =
|
patrick@13
|
751 |
date.value.attribute
|
patrick@13
|
752 |
& date.of.attribute?
|
patrick@13
|
753 |
date.value.attribute = attribute value { xsd:date | xsd:gYearMonth | xsd:gYear }
|
patrick@33
|
754 |
date.of.attribute = attribute of { "birth" | "death" }
|
patrick@0
|
755 |
|
Patrick@226
|
756 |
date.content = mixed { sup* & number* & warning* }
|
patrick@0
|
757 |
|
patrick@36
|
758 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
759 |
|
patrick@0
|
760 |
name = element name { name.attributes, name.content }
|
patrick@2
|
761 |
|
patrick@2
|
762 |
name.attributes =
|
patrick@2
|
763 |
name.of.attribute?
|
Patrick@226
|
764 |
name.of.attribute = attribute of {
|
Patrick@226
|
765 |
"person" | "company" | "book" | "newspaper" | "party" | "movie"
|
Patrick@226
|
766 |
| "painting" }
|
patrick@0
|
767 |
|
Patrick@212
|
768 |
name.content = mixed { sup* & number* & acronym* & warning* }
|
Patrick@212
|
769 |
|
Patrick@212
|
770 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foreign ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
771 |
|
Patrick@212
|
772 |
foreign = element foreign { foreign.attributes, foreign.content }
|
Patrick@212
|
773 |
|
Patrick@212
|
774 |
foreign.attributes =
|
Patrick@212
|
775 |
lang.attribute?
|
Patrick@212
|
776 |
|
claire@242
|
777 |
foreign.content = inlines
|
Patrick@212
|
778 |
|
Patrick@212
|
779 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acronym ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
780 |
|
Patrick@212
|
781 |
acronym = element acronym { acronym.content }
|
Patrick@212
|
782 |
|
Patrick@212
|
783 |
acronym.content = mixed { sup* & warning* }
|
Patrick@212
|
784 |
|
Patrick@212
|
785 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
786 |
|
Patrick@212
|
787 |
term = element term { term.content }
|
Patrick@212
|
788 |
|
Patrick@212
|
789 |
term.content = mixed { sup* & warning* }
|
Patrick@212
|
790 |
|
Patrick@212
|
791 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ literal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
792 |
|
Patrick@212
|
793 |
literal = element literal { literal.content }
|
Patrick@212
|
794 |
|
patrick@253
|
795 |
literal.content = inlines
|
Patrick@212
|
796 |
|
Patrick@212
|
797 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
798 |
|
Patrick@212
|
799 |
stage = element stage { stage.content }
|
Patrick@212
|
800 |
|
Patrick@212
|
801 |
stage.content = inlines
|
Patrick@212
|
802 |
|
Patrick@212
|
803 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ highlight ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
804 |
|
Patrick@212
|
805 |
highlight = element highlight { highlight.content }
|
Patrick@212
|
806 |
|
Patrick@212
|
807 |
highlight.content = inlines
|
Patrick@212
|
808 |
|
Patrick@238
|
809 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emphasis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@238
|
810 |
|
Patrick@238
|
811 |
emphasis = element emphasis { emphasis.content }
|
Patrick@238
|
812 |
|
Patrick@238
|
813 |
emphasis.content = inlines
|
Patrick@238
|
814 |
|
Patrick@212
|
815 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mentioned ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
816 |
|
Patrick@212
|
817 |
mentioned = element mentioned { mentioned.content }
|
Patrick@212
|
818 |
|
Patrick@212
|
819 |
mentioned.content = inlines
|
Patrick@212
|
820 |
|
Patrick@212
|
821 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ initial ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@212
|
822 |
|
Patrick@212
|
823 |
initial = element initial { initial.content }
|
Patrick@212
|
824 |
|
Patrick@212
|
825 |
initial.content =
|
Patrick@212
|
826 |
c,
|
Patrick@212
|
827 |
w?
|
Patrick@212
|
828 |
|
Patrick@212
|
829 |
c = element c { text }
|
Patrick@212
|
830 |
w = element w { inlines }
|
patrick@2
|
831 |
|
patrick@36
|
832 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
833 |
|
patrick@5
|
834 |
note = element note { note.attributes, note.content }
|
patrick@0
|
835 |
|
patrick@5
|
836 |
note.attributes =
|
patrick@5
|
837 |
note.label.attribute?
|
patrick@5
|
838 |
note.label.attribute = attribute label { text }
|
patrick@0
|
839 |
|
patrick@5
|
840 |
note.content =
|
claire@180
|
841 |
(w?, block+) | inlines
|
patrick@91
|
842 |
|
patrick@36
|
843 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@5
|
844 |
|
patrick@5
|
845 |
quote = element quote { quote.content }
|
patrick@5
|
846 |
|
patrick@131
|
847 |
quote.content =
|
patrick@131
|
848 |
(phrase, attribution) | inlines
|
patrick@131
|
849 |
|
patrick@131
|
850 |
phrase = element phrase { phrase.content }
|
patrick@131
|
851 |
|
patrick@131
|
852 |
phrase.content = inlines
|
patrick@5
|
853 |
|
patrick@36
|
854 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@0
|
855 |
|
patrick@0
|
856 |
link = element link { link.attributes, link.content }
|
patrick@0
|
857 |
|
patrick@9
|
858 |
link.attributes =
|
patrick@42
|
859 |
(uri.attribute | idref.attribute)
|
patrick@9
|
860 |
uri.attribute = attribute uri { xsd:anyURI }
|
patrick@9
|
861 |
idref.attribute = attribute idref { xsd:IDREF }
|
patrick@0
|
862 |
|
Patrick@225
|
863 |
link.content = mixed {
|
Patrick@212
|
864 |
sup* & sub* & var* & number* & math* & date* & name* & foreign* & acronym*
|
Patrick@238
|
865 |
& term* & literal* & stage* & highlight* & emphasis* & mentioned* & warning* }
|
patrick@42
|
866 |
|
patrick@42
|
867 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ anchor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@42
|
868 |
|
Patrick@147
|
869 |
anchor = element anchor { anchor.attributes, anchor.content }
|
patrick@42
|
870 |
|
patrick@42
|
871 |
anchor.attributes =
|
patrick@42
|
872 |
anchor.id.attribute
|
patrick@42
|
873 |
anchor.id.attribute = attribute xml:id { xsd:ID }
|
patrick@91
|
874 |
|
Patrick@147
|
875 |
anchor.content = inlines
|
Patrick@147
|
876 |
|
patrick@105
|
877 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smil ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
patrick@105
|
878 |
|
patrick@105
|
879 |
smil = element smil { smil.attributes, smil.content }
|
patrick@105
|
880 |
|
patrick@105
|
881 |
smil.attributes =
|
Patrick@207
|
882 |
audio.attribute?
|
Patrick@207
|
883 |
& begin.attribute?
|
patrick@105
|
884 |
& end.attribute?
|
Patrick@207
|
885 |
audio.attribute = attribute audio { xsd:anyURI }
|
patrick@105
|
886 |
begin.attribute = attribute begin { xsd:decimal }
|
patrick@105
|
887 |
end.attribute = attribute end { xsd:decimal }
|
patrick@105
|
888 |
|
patrick@105
|
889 |
smil.content = inlines
|
Patrick@205
|
890 |
|
Patrick@205
|
891 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Patrick@205
|
892 |
|
Patrick@205
|
893 |
warning = element warning { warning.content }
|
Patrick@205
|
894 |
|
Patrick@231
|
895 |
warning.content = inlines
|