asciidoctor-iso 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.oss-guides.rubocop.yml +1077 -0
- data/.rubocop.yml +15 -0
- data/Gemfile +4 -0
- data/README.adoc +96 -0
- data/asciidoctor-iso.gemspec +44 -0
- data/grammar1.gif +0 -0
- data/grammar2.gif +0 -0
- data/grammar3.gif +0 -0
- data/grammar4.gif +0 -0
- data/lib/asciidoctor-iso.rb +3 -0
- data/lib/asciidoctor/iso/base.rb +145 -0
- data/lib/asciidoctor/iso/blocks.rb +185 -0
- data/lib/asciidoctor/iso/converter.rb +53 -0
- data/lib/asciidoctor/iso/front.rb +80 -0
- data/lib/asciidoctor/iso/inline_anchor.rb +65 -0
- data/lib/asciidoctor/iso/lists.rb +158 -0
- data/lib/asciidoctor/iso/table.rb +53 -0
- data/lib/asciidoctor/iso/utils.rb +224 -0
- data/lib/asciidoctor/iso/validate.rb +37 -0
- data/lib/asciidoctor/iso/validate.rnc +444 -0
- data/lib/asciidoctor/iso/validate.rng +1001 -0
- data/lib/asciidoctor/iso/version.rb +5 -0
- data/spec/examples/rice.adoc +654 -0
- data/spec/examples/rice.html +1805 -0
- data/spec/examples/rice.xml +63 -0
- metadata +268 -0
@@ -0,0 +1,1001 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
+
<start>
|
4
|
+
<ref name="iso_standard"/>
|
5
|
+
</start>
|
6
|
+
<define name="iso_standard">
|
7
|
+
<element name="iso-standard">
|
8
|
+
<ref name="front"/>
|
9
|
+
<ref name="middle"/>
|
10
|
+
<optional>
|
11
|
+
<ref name="back"/>
|
12
|
+
</optional>
|
13
|
+
</element>
|
14
|
+
</define>
|
15
|
+
<define name="front">
|
16
|
+
<element name="front">
|
17
|
+
<ref name="title"/>
|
18
|
+
<ref name="documenttype"/>
|
19
|
+
<optional>
|
20
|
+
<ref name="documentstatus"/>
|
21
|
+
</optional>
|
22
|
+
<ref name="id"/>
|
23
|
+
<ref name="language"/>
|
24
|
+
<optional>
|
25
|
+
<ref name="version"/>
|
26
|
+
</optional>
|
27
|
+
<ref name="author"/>
|
28
|
+
<ref name="foreword"/>
|
29
|
+
<optional>
|
30
|
+
<ref name="introduction"/>
|
31
|
+
</optional>
|
32
|
+
</element>
|
33
|
+
</define>
|
34
|
+
<define name="language">
|
35
|
+
<element name="language">
|
36
|
+
<choice>
|
37
|
+
<value>en</value>
|
38
|
+
<value>fr</value>
|
39
|
+
</choice>
|
40
|
+
</element>
|
41
|
+
</define>
|
42
|
+
<define name="version">
|
43
|
+
<element name="version">
|
44
|
+
<optional>
|
45
|
+
<ref name="edition"/>
|
46
|
+
</optional>
|
47
|
+
<optional>
|
48
|
+
<ref name="revdate"/>
|
49
|
+
</optional>
|
50
|
+
<optional>
|
51
|
+
<ref name="copyright_year"/>
|
52
|
+
</optional>
|
53
|
+
</element>
|
54
|
+
</define>
|
55
|
+
<define name="id">
|
56
|
+
<element name="id">
|
57
|
+
<ref name="documentnumber"/>
|
58
|
+
<optional>
|
59
|
+
<ref name="tc_documentnumber"/>
|
60
|
+
</optional>
|
61
|
+
<optional>
|
62
|
+
<ref name="ref_documentnumber"/>
|
63
|
+
</optional>
|
64
|
+
</element>
|
65
|
+
</define>
|
66
|
+
<define name="author">
|
67
|
+
<element name="author">
|
68
|
+
<ref name="technical_committee"/>
|
69
|
+
<optional>
|
70
|
+
<ref name="subcommittee"/>
|
71
|
+
</optional>
|
72
|
+
<optional>
|
73
|
+
<ref name="workgroup"/>
|
74
|
+
</optional>
|
75
|
+
<optional>
|
76
|
+
<ref name="secretariat"/>
|
77
|
+
</optional>
|
78
|
+
</element>
|
79
|
+
</define>
|
80
|
+
<define name="documenttype">
|
81
|
+
<element name="documenttype">
|
82
|
+
<choice>
|
83
|
+
<value>international-standard</value>
|
84
|
+
<value>technical-specification</value>
|
85
|
+
<value>technical-report</value>
|
86
|
+
<value>publicly-available-specification</value>
|
87
|
+
<value>international-workshop-agreement</value>
|
88
|
+
<value>guide</value>
|
89
|
+
</choice>
|
90
|
+
</element>
|
91
|
+
</define>
|
92
|
+
<define name="documentstatus">
|
93
|
+
<element name="documentstatus">
|
94
|
+
<ref name="stage"/>
|
95
|
+
<optional>
|
96
|
+
<ref name="substage"/>
|
97
|
+
</optional>
|
98
|
+
</element>
|
99
|
+
</define>
|
100
|
+
<define name="stage">
|
101
|
+
<element name="stage">
|
102
|
+
<choice>
|
103
|
+
<value>00</value>
|
104
|
+
<value>10</value>
|
105
|
+
<value>20</value>
|
106
|
+
<value>30</value>
|
107
|
+
<value>40</value>
|
108
|
+
<value>50</value>
|
109
|
+
<value>60</value>
|
110
|
+
<value>90</value>
|
111
|
+
<value>95</value>
|
112
|
+
</choice>
|
113
|
+
</element>
|
114
|
+
</define>
|
115
|
+
<define name="substage">
|
116
|
+
<element name="substage">
|
117
|
+
<choice>
|
118
|
+
<value>00</value>
|
119
|
+
<value>20</value>
|
120
|
+
<value>60</value>
|
121
|
+
<value>90</value>
|
122
|
+
<value>92</value>
|
123
|
+
<value>93</value>
|
124
|
+
<value>98</value>
|
125
|
+
<value>99</value>
|
126
|
+
</choice>
|
127
|
+
</element>
|
128
|
+
</define>
|
129
|
+
<define name="documentnumber">
|
130
|
+
<element name="documentnumber">
|
131
|
+
<optional>
|
132
|
+
<attribute name="partnumber"/>
|
133
|
+
</optional>
|
134
|
+
<text/>
|
135
|
+
</element>
|
136
|
+
</define>
|
137
|
+
<define name="tc_documentnumber">
|
138
|
+
<element name="tc_documentnumber">
|
139
|
+
<text/>
|
140
|
+
</element>
|
141
|
+
</define>
|
142
|
+
<define name="ref_documentnumber">
|
143
|
+
<element name="ref_documentnumber">
|
144
|
+
<text/>
|
145
|
+
</element>
|
146
|
+
</define>
|
147
|
+
<define name="technical_committee">
|
148
|
+
<element name="technical_committee">
|
149
|
+
<optional>
|
150
|
+
<attribute name="number"/>
|
151
|
+
</optional>
|
152
|
+
<text/>
|
153
|
+
</element>
|
154
|
+
</define>
|
155
|
+
<define name="subcommittee">
|
156
|
+
<element name="subcommittee">
|
157
|
+
<optional>
|
158
|
+
<attribute name="number"/>
|
159
|
+
</optional>
|
160
|
+
<text/>
|
161
|
+
</element>
|
162
|
+
</define>
|
163
|
+
<define name="workgroup">
|
164
|
+
<element name="workgroup">
|
165
|
+
<optional>
|
166
|
+
<attribute name="number"/>
|
167
|
+
</optional>
|
168
|
+
<text/>
|
169
|
+
</element>
|
170
|
+
</define>
|
171
|
+
<define name="secretariat">
|
172
|
+
<element name="secretariat">
|
173
|
+
<text/>
|
174
|
+
</element>
|
175
|
+
</define>
|
176
|
+
<define name="revdate">
|
177
|
+
<element name="revdate">
|
178
|
+
<text/>
|
179
|
+
</element>
|
180
|
+
</define>
|
181
|
+
<define name="copyright_year">
|
182
|
+
<element name="copyright_year">
|
183
|
+
<text/>
|
184
|
+
</element>
|
185
|
+
</define>
|
186
|
+
<define name="edition">
|
187
|
+
<element name="edition">
|
188
|
+
<text/>
|
189
|
+
</element>
|
190
|
+
</define>
|
191
|
+
<define name="title">
|
192
|
+
<element name="title">
|
193
|
+
<ref name="title_en"/>
|
194
|
+
<ref name="title_fr"/>
|
195
|
+
</element>
|
196
|
+
</define>
|
197
|
+
<define name="title_en">
|
198
|
+
<element name="en">
|
199
|
+
<optional>
|
200
|
+
<ref name="title_intro"/>
|
201
|
+
</optional>
|
202
|
+
<ref name="title_main"/>
|
203
|
+
<optional>
|
204
|
+
<ref name="title_part"/>
|
205
|
+
</optional>
|
206
|
+
</element>
|
207
|
+
</define>
|
208
|
+
<define name="title_fr">
|
209
|
+
<element name="fr">
|
210
|
+
<optional>
|
211
|
+
<ref name="title_intro"/>
|
212
|
+
</optional>
|
213
|
+
<ref name="title_main"/>
|
214
|
+
<optional>
|
215
|
+
<ref name="title_part"/>
|
216
|
+
</optional>
|
217
|
+
</element>
|
218
|
+
</define>
|
219
|
+
<define name="title_intro">
|
220
|
+
<element name="title_intro">
|
221
|
+
<text/>
|
222
|
+
</element>
|
223
|
+
</define>
|
224
|
+
<define name="title_main">
|
225
|
+
<element name="title_main">
|
226
|
+
<text/>
|
227
|
+
</element>
|
228
|
+
</define>
|
229
|
+
<define name="title_part">
|
230
|
+
<element name="title_part">
|
231
|
+
<text/>
|
232
|
+
</element>
|
233
|
+
</define>
|
234
|
+
<define name="foreword">
|
235
|
+
<element name="foreword">
|
236
|
+
<zeroOrMore>
|
237
|
+
<choice>
|
238
|
+
<ref name="para"/>
|
239
|
+
<ref name="table"/>
|
240
|
+
<ref name="note"/>
|
241
|
+
<ref name="formula"/>
|
242
|
+
<ref name="warning"/>
|
243
|
+
<ref name="ol"/>
|
244
|
+
<ref name="ul"/>
|
245
|
+
<ref name="dl"/>
|
246
|
+
<ref name="figure"/>
|
247
|
+
<ref name="quote"/>
|
248
|
+
<ref name="sourcecode"/>
|
249
|
+
<ref name="review_note"/>
|
250
|
+
</choice>
|
251
|
+
</zeroOrMore>
|
252
|
+
</element>
|
253
|
+
</define>
|
254
|
+
<define name="introduction">
|
255
|
+
<element name="introduction">
|
256
|
+
<optional>
|
257
|
+
<attribute name="anchor">
|
258
|
+
<data type="ID"/>
|
259
|
+
</attribute>
|
260
|
+
</optional>
|
261
|
+
<zeroOrMore>
|
262
|
+
<choice>
|
263
|
+
<ref name="para"/>
|
264
|
+
<ref name="table"/>
|
265
|
+
<ref name="note"/>
|
266
|
+
<ref name="formula"/>
|
267
|
+
<ref name="warning"/>
|
268
|
+
<ref name="ol"/>
|
269
|
+
<ref name="ul"/>
|
270
|
+
<ref name="dl"/>
|
271
|
+
<ref name="figure"/>
|
272
|
+
<ref name="quote"/>
|
273
|
+
<ref name="sourcecode"/>
|
274
|
+
<ref name="review_note"/>
|
275
|
+
</choice>
|
276
|
+
</zeroOrMore>
|
277
|
+
<optional>
|
278
|
+
<ref name="patent_notice"/>
|
279
|
+
</optional>
|
280
|
+
</element>
|
281
|
+
</define>
|
282
|
+
<define name="patent_notice">
|
283
|
+
<element name="patent_notice">
|
284
|
+
<optional>
|
285
|
+
<attribute name="anchor">
|
286
|
+
<data type="ID"/>
|
287
|
+
</attribute>
|
288
|
+
</optional>
|
289
|
+
<oneOrMore>
|
290
|
+
<ref name="para"/>
|
291
|
+
</oneOrMore>
|
292
|
+
</element>
|
293
|
+
</define>
|
294
|
+
<define name="middle">
|
295
|
+
<element name="middle">
|
296
|
+
<ref name="scope"/>
|
297
|
+
<ref name="norm_ref"/>
|
298
|
+
<ref name="terms_defs"/>
|
299
|
+
<oneOrMore>
|
300
|
+
<ref name="clause"/>
|
301
|
+
</oneOrMore>
|
302
|
+
</element>
|
303
|
+
</define>
|
304
|
+
<define name="scope">
|
305
|
+
<element name="scope">
|
306
|
+
<optional>
|
307
|
+
<attribute name="anchor">
|
308
|
+
<data type="ID"/>
|
309
|
+
</attribute>
|
310
|
+
</optional>
|
311
|
+
<oneOrMore>
|
312
|
+
<ref name="para"/>
|
313
|
+
</oneOrMore>
|
314
|
+
</element>
|
315
|
+
</define>
|
316
|
+
<define name="norm_ref">
|
317
|
+
<element name="norm_ref">
|
318
|
+
<optional>
|
319
|
+
<attribute name="anchor">
|
320
|
+
<data type="ID"/>
|
321
|
+
</attribute>
|
322
|
+
</optional>
|
323
|
+
<!-- boilerplate -->
|
324
|
+
<ref name="para"/>
|
325
|
+
<zeroOrMore>
|
326
|
+
<ref name="iso_ref_title"/>
|
327
|
+
</zeroOrMore>
|
328
|
+
</element>
|
329
|
+
</define>
|
330
|
+
<define name="iso_ref_title">
|
331
|
+
<element name="iso_ref_title">
|
332
|
+
<attribute name="anchor">
|
333
|
+
<data type="ID"/>
|
334
|
+
</attribute>
|
335
|
+
<ref name="isocode"/>
|
336
|
+
<optional>
|
337
|
+
<ref name="isodate"/>
|
338
|
+
<optional>
|
339
|
+
<ref name="date_footnote"/>
|
340
|
+
</optional>
|
341
|
+
</optional>
|
342
|
+
<ref name="isotitle"/>
|
343
|
+
</element>
|
344
|
+
</define>
|
345
|
+
<define name="isocode">
|
346
|
+
<element name="isocode">
|
347
|
+
<text/>
|
348
|
+
</element>
|
349
|
+
</define>
|
350
|
+
<define name="isodate">
|
351
|
+
<element name="isodate">
|
352
|
+
<text/>
|
353
|
+
</element>
|
354
|
+
</define>
|
355
|
+
<define name="date_footnote">
|
356
|
+
<element name="date_footnote">
|
357
|
+
<text/>
|
358
|
+
</element>
|
359
|
+
</define>
|
360
|
+
<define name="isotitle">
|
361
|
+
<element name="isotitle">
|
362
|
+
<text/>
|
363
|
+
</element>
|
364
|
+
</define>
|
365
|
+
<define name="terms_defs">
|
366
|
+
<element name="terms_defs">
|
367
|
+
<optional>
|
368
|
+
<attribute name="anchor">
|
369
|
+
<data type="ID"/>
|
370
|
+
</attribute>
|
371
|
+
</optional>
|
372
|
+
<!-- boilerplate -->
|
373
|
+
<ref name="para"/>
|
374
|
+
<ref name="para"/>
|
375
|
+
<ref name="ul"/>
|
376
|
+
<oneOrMore>
|
377
|
+
<ref name="termdef"/>
|
378
|
+
</oneOrMore>
|
379
|
+
</element>
|
380
|
+
</define>
|
381
|
+
<define name="termdef">
|
382
|
+
<element name="termdef">
|
383
|
+
<optional>
|
384
|
+
<attribute name="anchor">
|
385
|
+
<data type="ID"/>
|
386
|
+
</attribute>
|
387
|
+
</optional>
|
388
|
+
<ref name="term"/>
|
389
|
+
<zeroOrMore>
|
390
|
+
<ref name="admitted_term"/>
|
391
|
+
</zeroOrMore>
|
392
|
+
<optional>
|
393
|
+
<ref name="termsymbol"/>
|
394
|
+
</optional>
|
395
|
+
<zeroOrMore>
|
396
|
+
<ref name="deprecated_term"/>
|
397
|
+
</zeroOrMore>
|
398
|
+
<optional>
|
399
|
+
<ref name="termdomain"/>
|
400
|
+
</optional>
|
401
|
+
<ref name="para"/>
|
402
|
+
<zeroOrMore>
|
403
|
+
<ref name="termnote"/>
|
404
|
+
</zeroOrMore>
|
405
|
+
<zeroOrMore>
|
406
|
+
<ref name="termexample"/>
|
407
|
+
</zeroOrMore>
|
408
|
+
<zeroOrMore>
|
409
|
+
<ref name="termref"/>
|
410
|
+
</zeroOrMore>
|
411
|
+
</element>
|
412
|
+
</define>
|
413
|
+
<define name="term">
|
414
|
+
<element name="term">
|
415
|
+
<text/>
|
416
|
+
</element>
|
417
|
+
</define>
|
418
|
+
<define name="admitted_term">
|
419
|
+
<element name="admitted_term">
|
420
|
+
<text/>
|
421
|
+
</element>
|
422
|
+
</define>
|
423
|
+
<define name="termsymbol">
|
424
|
+
<element name="termsymbol">
|
425
|
+
<ref name="stem"/>
|
426
|
+
</element>
|
427
|
+
</define>
|
428
|
+
<define name="deprecated_term">
|
429
|
+
<element name="deprecated_term">
|
430
|
+
<text/>
|
431
|
+
</element>
|
432
|
+
</define>
|
433
|
+
<define name="termdomain">
|
434
|
+
<element name="termdomain">
|
435
|
+
<text/>
|
436
|
+
</element>
|
437
|
+
</define>
|
438
|
+
<define name="termnote">
|
439
|
+
<element name="termnote">
|
440
|
+
<zeroOrMore>
|
441
|
+
<choice>
|
442
|
+
<text/>
|
443
|
+
<ref name="xref"/>
|
444
|
+
<ref name="eref"/>
|
445
|
+
</choice>
|
446
|
+
</zeroOrMore>
|
447
|
+
</element>
|
448
|
+
</define>
|
449
|
+
<define name="termexample">
|
450
|
+
<element name="termexample">
|
451
|
+
<text/>
|
452
|
+
</element>
|
453
|
+
</define>
|
454
|
+
<define name="termref">
|
455
|
+
<element name="termref">
|
456
|
+
<ref name="xref"/>
|
457
|
+
<optional>
|
458
|
+
<ref name="isosection"/>
|
459
|
+
<optional>
|
460
|
+
<ref name="modification"/>
|
461
|
+
</optional>
|
462
|
+
</optional>
|
463
|
+
</element>
|
464
|
+
</define>
|
465
|
+
<define name="isosection">
|
466
|
+
<element name="isosection">
|
467
|
+
<text/>
|
468
|
+
</element>
|
469
|
+
</define>
|
470
|
+
<define name="modification">
|
471
|
+
<element name="modification">
|
472
|
+
<text/>
|
473
|
+
</element>
|
474
|
+
</define>
|
475
|
+
<define name="clause">
|
476
|
+
<element name="clause">
|
477
|
+
<optional>
|
478
|
+
<attribute name="anchor">
|
479
|
+
<data type="ID"/>
|
480
|
+
</attribute>
|
481
|
+
</optional>
|
482
|
+
<optional>
|
483
|
+
<ref name="tname"/>
|
484
|
+
</optional>
|
485
|
+
<zeroOrMore>
|
486
|
+
<choice>
|
487
|
+
<ref name="para"/>
|
488
|
+
<ref name="table"/>
|
489
|
+
<ref name="note"/>
|
490
|
+
<ref name="formula"/>
|
491
|
+
<ref name="warning"/>
|
492
|
+
<ref name="ol"/>
|
493
|
+
<ref name="ul"/>
|
494
|
+
<ref name="dl"/>
|
495
|
+
<ref name="figure"/>
|
496
|
+
<ref name="quote"/>
|
497
|
+
<ref name="sourcecode"/>
|
498
|
+
<ref name="review_note"/>
|
499
|
+
</choice>
|
500
|
+
</zeroOrMore>
|
501
|
+
<zeroOrMore>
|
502
|
+
<ref name="clause"/>
|
503
|
+
</zeroOrMore>
|
504
|
+
</element>
|
505
|
+
</define>
|
506
|
+
<define name="quote">
|
507
|
+
<element name="quote">
|
508
|
+
<optional>
|
509
|
+
<attribute name="anchor">
|
510
|
+
<data type="ID"/>
|
511
|
+
</attribute>
|
512
|
+
</optional>
|
513
|
+
<zeroOrMore>
|
514
|
+
<choice>
|
515
|
+
<ref name="para"/>
|
516
|
+
<ref name="table"/>
|
517
|
+
<ref name="note"/>
|
518
|
+
<ref name="formula"/>
|
519
|
+
<ref name="warning"/>
|
520
|
+
<ref name="ol"/>
|
521
|
+
<ref name="ul"/>
|
522
|
+
<ref name="dl"/>
|
523
|
+
<ref name="figure"/>
|
524
|
+
<ref name="quote"/>
|
525
|
+
<ref name="sourcecode"/>
|
526
|
+
<ref name="review_note"/>
|
527
|
+
</choice>
|
528
|
+
</zeroOrMore>
|
529
|
+
</element>
|
530
|
+
</define>
|
531
|
+
<define name="back">
|
532
|
+
<element name="back">
|
533
|
+
<zeroOrMore>
|
534
|
+
<ref name="annex"/>
|
535
|
+
</zeroOrMore>
|
536
|
+
<ref name="bibliography"/>
|
537
|
+
</element>
|
538
|
+
</define>
|
539
|
+
<define name="annex">
|
540
|
+
<element name="annex">
|
541
|
+
<optional>
|
542
|
+
<attribute name="anchor">
|
543
|
+
<data type="ID"/>
|
544
|
+
</attribute>
|
545
|
+
</optional>
|
546
|
+
<optional>
|
547
|
+
<ref name="tname"/>
|
548
|
+
</optional>
|
549
|
+
<zeroOrMore>
|
550
|
+
<choice>
|
551
|
+
<ref name="para"/>
|
552
|
+
<ref name="table"/>
|
553
|
+
<ref name="note"/>
|
554
|
+
<ref name="formula"/>
|
555
|
+
<ref name="warning"/>
|
556
|
+
<ref name="ol"/>
|
557
|
+
<ref name="ul"/>
|
558
|
+
<ref name="dl"/>
|
559
|
+
<ref name="figure"/>
|
560
|
+
<ref name="quote"/>
|
561
|
+
<ref name="sourcecode"/>
|
562
|
+
<ref name="review_note"/>
|
563
|
+
</choice>
|
564
|
+
</zeroOrMore>
|
565
|
+
<zeroOrMore>
|
566
|
+
<ref name="clause"/>
|
567
|
+
</zeroOrMore>
|
568
|
+
</element>
|
569
|
+
</define>
|
570
|
+
<define name="bibliography">
|
571
|
+
<element name="bibliography">
|
572
|
+
<optional>
|
573
|
+
<attribute name="anchor">
|
574
|
+
<data type="ID"/>
|
575
|
+
</attribute>
|
576
|
+
</optional>
|
577
|
+
<oneOrMore>
|
578
|
+
<choice>
|
579
|
+
<ref name="iso_ref_title"/>
|
580
|
+
<ref name="reference"/>
|
581
|
+
</choice>
|
582
|
+
</oneOrMore>
|
583
|
+
</element>
|
584
|
+
</define>
|
585
|
+
<define name="reference">
|
586
|
+
<element name="reference">
|
587
|
+
<ref name="ref"/>
|
588
|
+
<ref name="para"/>
|
589
|
+
</element>
|
590
|
+
</define>
|
591
|
+
<define name="ref">
|
592
|
+
<element name="ref">
|
593
|
+
<optional>
|
594
|
+
<attribute name="anchor">
|
595
|
+
<data type="ID"/>
|
596
|
+
</attribute>
|
597
|
+
</optional>
|
598
|
+
<text/>
|
599
|
+
</element>
|
600
|
+
</define>
|
601
|
+
<define name="para">
|
602
|
+
<element name="p">
|
603
|
+
<zeroOrMore>
|
604
|
+
<choice>
|
605
|
+
<text/>
|
606
|
+
<ref name="em"/>
|
607
|
+
<ref name="eref"/>
|
608
|
+
<ref name="strong"/>
|
609
|
+
<ref name="stem"/>
|
610
|
+
<ref name="sub"/>
|
611
|
+
<ref name="sup"/>
|
612
|
+
<ref name="tt"/>
|
613
|
+
<ref name="xref"/>
|
614
|
+
<ref name="fn"/>
|
615
|
+
<ref name="br"/>
|
616
|
+
</choice>
|
617
|
+
</zeroOrMore>
|
618
|
+
</element>
|
619
|
+
</define>
|
620
|
+
<define name="figure">
|
621
|
+
<element name="figure">
|
622
|
+
<optional>
|
623
|
+
<attribute name="src"/>
|
624
|
+
</optional>
|
625
|
+
<optional>
|
626
|
+
<attribute name="anchor">
|
627
|
+
<data type="ID"/>
|
628
|
+
</attribute>
|
629
|
+
</optional>
|
630
|
+
<optional>
|
631
|
+
<ref name="tname"/>
|
632
|
+
</optional>
|
633
|
+
<optional>
|
634
|
+
<ref name="dl"/>
|
635
|
+
</optional>
|
636
|
+
<zeroOrMore>
|
637
|
+
<ref name="figure"/>
|
638
|
+
</zeroOrMore>
|
639
|
+
</element>
|
640
|
+
</define>
|
641
|
+
<define name="sourcecode">
|
642
|
+
<element name="sourcecode">
|
643
|
+
<optional>
|
644
|
+
<attribute name="anchor">
|
645
|
+
<data type="ID"/>
|
646
|
+
</attribute>
|
647
|
+
</optional>
|
648
|
+
<optional>
|
649
|
+
<ref name="tname"/>
|
650
|
+
</optional>
|
651
|
+
<zeroOrMore>
|
652
|
+
<choice>
|
653
|
+
<text/>
|
654
|
+
<ref name="callout"/>
|
655
|
+
</choice>
|
656
|
+
</zeroOrMore>
|
657
|
+
<optional>
|
658
|
+
<ref name="colist"/>
|
659
|
+
</optional>
|
660
|
+
</element>
|
661
|
+
</define>
|
662
|
+
<define name="review_note">
|
663
|
+
<element name="review_note">
|
664
|
+
<optional>
|
665
|
+
<attribute name="color"/>
|
666
|
+
</optional>
|
667
|
+
<text/>
|
668
|
+
</element>
|
669
|
+
</define>
|
670
|
+
<define name="callout">
|
671
|
+
<element name="callout">
|
672
|
+
<data type="ID"/>
|
673
|
+
</element>
|
674
|
+
</define>
|
675
|
+
<define name="colist">
|
676
|
+
<element name="colist">
|
677
|
+
<oneOrMore>
|
678
|
+
<ref name="annotation"/>
|
679
|
+
</oneOrMore>
|
680
|
+
</element>
|
681
|
+
</define>
|
682
|
+
<define name="annotation">
|
683
|
+
<element name="annotation">
|
684
|
+
<optional>
|
685
|
+
<attribute name="anchor">
|
686
|
+
<data type="ID"/>
|
687
|
+
</attribute>
|
688
|
+
</optional>
|
689
|
+
<text/>
|
690
|
+
</element>
|
691
|
+
</define>
|
692
|
+
<define name="fn">
|
693
|
+
<element name="fn">
|
694
|
+
<zeroOrMore>
|
695
|
+
<choice>
|
696
|
+
<text/>
|
697
|
+
<ref name="em"/>
|
698
|
+
<ref name="eref"/>
|
699
|
+
<ref name="stem"/>
|
700
|
+
<ref name="strong"/>
|
701
|
+
<ref name="sub"/>
|
702
|
+
<ref name="sup"/>
|
703
|
+
<ref name="tt"/>
|
704
|
+
<ref name="xref"/>
|
705
|
+
<ref name="br"/>
|
706
|
+
</choice>
|
707
|
+
</zeroOrMore>
|
708
|
+
</element>
|
709
|
+
</define>
|
710
|
+
<define name="ol">
|
711
|
+
<element name="ol">
|
712
|
+
<attribute name="type"/>
|
713
|
+
<oneOrMore>
|
714
|
+
<ref name="li"/>
|
715
|
+
</oneOrMore>
|
716
|
+
</element>
|
717
|
+
</define>
|
718
|
+
<define name="ul">
|
719
|
+
<element name="ul">
|
720
|
+
<oneOrMore>
|
721
|
+
<ref name="li"/>
|
722
|
+
</oneOrMore>
|
723
|
+
</element>
|
724
|
+
</define>
|
725
|
+
<define name="li">
|
726
|
+
<element name="li">
|
727
|
+
<oneOrMore>
|
728
|
+
<choice>
|
729
|
+
<ref name="para"/>
|
730
|
+
<ref name="table"/>
|
731
|
+
<ref name="note"/>
|
732
|
+
<ref name="formula"/>
|
733
|
+
<ref name="warning"/>
|
734
|
+
<ref name="ol"/>
|
735
|
+
<ref name="ul"/>
|
736
|
+
<ref name="dl"/>
|
737
|
+
<ref name="quote"/>
|
738
|
+
<ref name="sourcecode"/>
|
739
|
+
<ref name="review_note"/>
|
740
|
+
</choice>
|
741
|
+
</oneOrMore>
|
742
|
+
</element>
|
743
|
+
</define>
|
744
|
+
<define name="dl">
|
745
|
+
<element name="dl">
|
746
|
+
<oneOrMore>
|
747
|
+
<ref name="dt"/>
|
748
|
+
<ref name="dd"/>
|
749
|
+
</oneOrMore>
|
750
|
+
</element>
|
751
|
+
</define>
|
752
|
+
<define name="dt">
|
753
|
+
<element name="dt">
|
754
|
+
<choice>
|
755
|
+
<text/>
|
756
|
+
<ref name="em"/>
|
757
|
+
<ref name="eref"/>
|
758
|
+
<ref name="stem"/>
|
759
|
+
<ref name="strong"/>
|
760
|
+
<ref name="sub"/>
|
761
|
+
<ref name="sup"/>
|
762
|
+
<ref name="tt"/>
|
763
|
+
<ref name="xref"/>
|
764
|
+
<ref name="br"/>
|
765
|
+
</choice>
|
766
|
+
</element>
|
767
|
+
</define>
|
768
|
+
<define name="dd">
|
769
|
+
<element name="dd">
|
770
|
+
<zeroOrMore>
|
771
|
+
<choice>
|
772
|
+
<ref name="para"/>
|
773
|
+
<ref name="table"/>
|
774
|
+
<ref name="note"/>
|
775
|
+
<ref name="formula"/>
|
776
|
+
<ref name="warning"/>
|
777
|
+
<ref name="ol"/>
|
778
|
+
<ref name="ul"/>
|
779
|
+
<ref name="dl"/>
|
780
|
+
<ref name="quote"/>
|
781
|
+
<ref name="sourcecode"/>
|
782
|
+
<ref name="review_note"/>
|
783
|
+
</choice>
|
784
|
+
</zeroOrMore>
|
785
|
+
</element>
|
786
|
+
</define>
|
787
|
+
<define name="note">
|
788
|
+
<element name="note">
|
789
|
+
<oneOrMore>
|
790
|
+
<ref name="para"/>
|
791
|
+
</oneOrMore>
|
792
|
+
</element>
|
793
|
+
</define>
|
794
|
+
<define name="warning">
|
795
|
+
<element name="warning">
|
796
|
+
<oneOrMore>
|
797
|
+
<ref name="para"/>
|
798
|
+
</oneOrMore>
|
799
|
+
</element>
|
800
|
+
</define>
|
801
|
+
<define name="formula">
|
802
|
+
<element name="formula">
|
803
|
+
<optional>
|
804
|
+
<attribute name="anchor">
|
805
|
+
<data type="ID"/>
|
806
|
+
</attribute>
|
807
|
+
</optional>
|
808
|
+
<ref name="stem"/>
|
809
|
+
<optional>
|
810
|
+
<ref name="dl"/>
|
811
|
+
</optional>
|
812
|
+
</element>
|
813
|
+
</define>
|
814
|
+
<define name="xref">
|
815
|
+
<element name="xref">
|
816
|
+
<optional>
|
817
|
+
<attribute name="format">
|
818
|
+
<choice>
|
819
|
+
<value>footnote</value>
|
820
|
+
<value>inline</value>
|
821
|
+
</choice>
|
822
|
+
</attribute>
|
823
|
+
</optional>
|
824
|
+
<attribute name="target"/>
|
825
|
+
<choice>
|
826
|
+
<text/>
|
827
|
+
<ref name="iso_ref"/>
|
828
|
+
</choice>
|
829
|
+
</element>
|
830
|
+
</define>
|
831
|
+
<define name="iso_ref">
|
832
|
+
<element name="iso_ref">
|
833
|
+
<ref name="isocode"/>
|
834
|
+
<optional>
|
835
|
+
<ref name="isodate"/>
|
836
|
+
<optional>
|
837
|
+
<optional>
|
838
|
+
<ref name="isosection"/>
|
839
|
+
</optional>
|
840
|
+
</optional>
|
841
|
+
</optional>
|
842
|
+
</element>
|
843
|
+
</define>
|
844
|
+
<define name="eref">
|
845
|
+
<element name="eref">
|
846
|
+
<attribute name="target"/>
|
847
|
+
<text/>
|
848
|
+
</element>
|
849
|
+
</define>
|
850
|
+
<define name="br">
|
851
|
+
<element name="br">
|
852
|
+
<empty/>
|
853
|
+
</element>
|
854
|
+
</define>
|
855
|
+
<define name="em">
|
856
|
+
<element name="em">
|
857
|
+
<text/>
|
858
|
+
</element>
|
859
|
+
</define>
|
860
|
+
<define name="strong">
|
861
|
+
<element name="strong">
|
862
|
+
<text/>
|
863
|
+
</element>
|
864
|
+
</define>
|
865
|
+
<define name="stem">
|
866
|
+
<element name="stem">
|
867
|
+
<text/>
|
868
|
+
</element>
|
869
|
+
</define>
|
870
|
+
<define name="sub">
|
871
|
+
<element name="sub">
|
872
|
+
<text/>
|
873
|
+
</element>
|
874
|
+
</define>
|
875
|
+
<define name="sup">
|
876
|
+
<element name="sup">
|
877
|
+
<text/>
|
878
|
+
</element>
|
879
|
+
</define>
|
880
|
+
<define name="tt">
|
881
|
+
<element name="tt">
|
882
|
+
<text/>
|
883
|
+
</element>
|
884
|
+
</define>
|
885
|
+
<define name="table">
|
886
|
+
<element name="table">
|
887
|
+
<optional>
|
888
|
+
<attribute name="anchor">
|
889
|
+
<data type="ID"/>
|
890
|
+
</attribute>
|
891
|
+
</optional>
|
892
|
+
<optional>
|
893
|
+
<ref name="tname"/>
|
894
|
+
</optional>
|
895
|
+
<optional>
|
896
|
+
<ref name="thead"/>
|
897
|
+
</optional>
|
898
|
+
<ref name="tbody"/>
|
899
|
+
<optional>
|
900
|
+
<ref name="tfoot"/>
|
901
|
+
</optional>
|
902
|
+
<zeroOrMore>
|
903
|
+
<ref name="note"/>
|
904
|
+
</zeroOrMore>
|
905
|
+
</element>
|
906
|
+
</define>
|
907
|
+
<define name="tname">
|
908
|
+
<element name="name">
|
909
|
+
<text/>
|
910
|
+
</element>
|
911
|
+
</define>
|
912
|
+
<define name="thead">
|
913
|
+
<element name="thead">
|
914
|
+
<oneOrMore>
|
915
|
+
<ref name="tr"/>
|
916
|
+
</oneOrMore>
|
917
|
+
</element>
|
918
|
+
</define>
|
919
|
+
<define name="tbody">
|
920
|
+
<element name="tbody">
|
921
|
+
<oneOrMore>
|
922
|
+
<ref name="tr"/>
|
923
|
+
</oneOrMore>
|
924
|
+
</element>
|
925
|
+
</define>
|
926
|
+
<define name="tfoot">
|
927
|
+
<element name="tfoot">
|
928
|
+
<oneOrMore>
|
929
|
+
<ref name="tr"/>
|
930
|
+
</oneOrMore>
|
931
|
+
</element>
|
932
|
+
</define>
|
933
|
+
<define name="tr">
|
934
|
+
<element name="tr">
|
935
|
+
<oneOrMore>
|
936
|
+
<choice>
|
937
|
+
<ref name="td"/>
|
938
|
+
<ref name="th"/>
|
939
|
+
</choice>
|
940
|
+
</oneOrMore>
|
941
|
+
</element>
|
942
|
+
</define>
|
943
|
+
<define name="th">
|
944
|
+
<element name="th">
|
945
|
+
<optional>
|
946
|
+
<attribute name="colspan"/>
|
947
|
+
</optional>
|
948
|
+
<optional>
|
949
|
+
<attribute name="rowspan"/>
|
950
|
+
</optional>
|
951
|
+
<optional>
|
952
|
+
<attribute name="align"/>
|
953
|
+
</optional>
|
954
|
+
<zeroOrMore>
|
955
|
+
<choice>
|
956
|
+
<text/>
|
957
|
+
<ref name="em"/>
|
958
|
+
<ref name="eref"/>
|
959
|
+
<ref name="stem"/>
|
960
|
+
<ref name="strong"/>
|
961
|
+
<ref name="sub"/>
|
962
|
+
<ref name="sup"/>
|
963
|
+
<ref name="tt"/>
|
964
|
+
<ref name="xref"/>
|
965
|
+
<ref name="fn"/>
|
966
|
+
<ref name="br"/>
|
967
|
+
<ref name="para"/>
|
968
|
+
</choice>
|
969
|
+
</zeroOrMore>
|
970
|
+
</element>
|
971
|
+
</define>
|
972
|
+
<define name="td">
|
973
|
+
<element name="td">
|
974
|
+
<optional>
|
975
|
+
<attribute name="colspan"/>
|
976
|
+
</optional>
|
977
|
+
<optional>
|
978
|
+
<attribute name="rowspan"/>
|
979
|
+
</optional>
|
980
|
+
<optional>
|
981
|
+
<attribute name="align"/>
|
982
|
+
</optional>
|
983
|
+
<zeroOrMore>
|
984
|
+
<choice>
|
985
|
+
<text/>
|
986
|
+
<ref name="em"/>
|
987
|
+
<ref name="eref"/>
|
988
|
+
<ref name="stem"/>
|
989
|
+
<ref name="strong"/>
|
990
|
+
<ref name="sub"/>
|
991
|
+
<ref name="sup"/>
|
992
|
+
<ref name="tt"/>
|
993
|
+
<ref name="xref"/>
|
994
|
+
<ref name="fn"/>
|
995
|
+
<ref name="br"/>
|
996
|
+
<ref name="para"/>
|
997
|
+
</choice>
|
998
|
+
</zeroOrMore>
|
999
|
+
</element>
|
1000
|
+
</define>
|
1001
|
+
</grammar>
|