metanorma-mpfd 0.3.21 → 0.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +17 -0
  3. data/Gemfile +1 -8
  4. data/README.adoc +1 -96
  5. data/lib/asciidoctor/mpfd/biblio.rng +166 -567
  6. data/lib/asciidoctor/mpfd/converter.rb +84 -7
  7. data/lib/asciidoctor/mpfd/isodoc.rng +727 -763
  8. data/lib/asciidoctor/mpfd/isostandard.rng +1054 -0
  9. data/lib/asciidoctor/mpfd/mpfd.rng +145 -11
  10. data/lib/asciidoctor/mpfd/pdf.js +31 -0
  11. data/lib/asciidoctor/mpfd/section.rb +51 -23
  12. data/lib/asciidoctor/mpfd.rb +1 -0
  13. data/lib/isodoc/mpfd/html/header.html +6 -64
  14. data/lib/isodoc/mpfd/html/html_rsd_titlepage.html +4 -4
  15. data/lib/isodoc/mpfd/html/htmlstyle.scss +505 -200
  16. data/lib/isodoc/mpfd/html/rsd.scss +30 -149
  17. data/lib/isodoc/mpfd/html/scripts.html +27 -25
  18. data/lib/isodoc/mpfd/html/scripts.pdf.html +70 -0
  19. data/lib/isodoc/mpfd/html/word_rsd_titlepage.html +2 -2
  20. data/lib/isodoc/mpfd/html/wordstyle.scss +9 -61
  21. data/lib/isodoc/mpfd/html_convert.rb +258 -4
  22. data/lib/isodoc/mpfd/i18n-en.yaml +0 -1
  23. data/lib/isodoc/mpfd/metadata.rb +32 -8
  24. data/lib/isodoc/mpfd/{base_convert.rb → pdf_convert.rb} +137 -40
  25. data/lib/isodoc/mpfd/word_convert.rb +292 -4
  26. data/lib/metanorma/mpfd/processor.rb +4 -8
  27. data/lib/metanorma/mpfd/version.rb +1 -1
  28. data/lib/metanorma-mpfd.rb +1 -0
  29. data/metanorma-mpfd.gemspec +8 -7
  30. metadata +66 -33
  31. data/.github/workflows/macos.yml +0 -39
  32. data/.github/workflows/ubuntu.yml +0 -53
  33. data/.github/workflows/windows.yml +0 -41
  34. data/.hound.yml +0 -3
  35. data/.rubocop.yml +0 -10
  36. data/lib/asciidoctor/mpfd/basicdoc.rng +0 -1059
  37. data/lib/asciidoctor/mpfd/reqt.rng +0 -171
  38. data/lib/asciidoctor/mpfd/validate.rb +0 -30
  39. data/lib/isodoc/mpfd/i18n-zh-Hans.yaml +0 -2
@@ -18,491 +18,77 @@
18
18
  of this.
19
19
  -->
20
20
  <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
21
- <include href="reqt.rng"/>
22
- <!-- include "biblio.rnc" { } -->
23
- <include href="basicdoc.rng">
24
- <start>
25
- <ref name="standard-document"/>
26
- </start>
27
- <define name="hyperlink">
28
- <element name="link">
29
- <attribute name="target">
30
- <data type="anyURI"/>
31
- </attribute>
32
- <optional>
33
- <attribute name="type">
34
- <ref name="ReferenceFormat"/>
35
- </attribute>
36
- </optional>
37
- <optional>
38
- <attribute name="alt"/>
39
- </optional>
40
- <text/>
41
- </element>
42
- </define>
43
- <define name="xref">
44
- <element name="xref">
45
- <attribute name="target">
46
- <data type="IDREF"/>
47
- </attribute>
48
- <optional>
49
- <attribute name="type">
50
- <ref name="ReferenceFormat"/>
51
- </attribute>
52
- </optional>
53
- <optional>
54
- <attribute name="alt"/>
55
- </optional>
56
- <optional>
57
- <attribute name="case">
58
- <choice>
59
- <value>capital</value>
60
- <value>lowercase</value>
61
- </choice>
62
- </attribute>
63
- </optional>
64
- <text/>
65
- </element>
66
- </define>
67
- <define name="example">
68
- <element name="example">
69
- <attribute name="id">
70
- <data type="ID"/>
71
- </attribute>
72
- <optional>
73
- <attribute name="unnumbered">
74
- <data type="boolean"/>
75
- </attribute>
76
- </optional>
77
- <optional>
78
- <attribute name="subsequence"/>
79
- </optional>
80
- <optional>
81
- <ref name="tname"/>
82
- </optional>
83
- <oneOrMore>
84
- <choice>
85
- <ref name="formula"/>
86
- <ref name="ul"/>
87
- <ref name="ol"/>
88
- <ref name="dl"/>
89
- <ref name="quote"/>
90
- <ref name="sourcecode"/>
91
- <ref name="paragraph-with-footnote"/>
92
- <ref name="figure"/>
93
- </choice>
94
- </oneOrMore>
95
- <zeroOrMore>
96
- <ref name="note"/>
97
- </zeroOrMore>
98
- </element>
99
- </define>
100
- <define name="BibDataExtensionType">
101
- <ref name="doctype"/>
21
+ <include href="biblio.rng"/>
22
+ <start>
23
+ <ref name="standard-document"/>
24
+ </start>
25
+ <define name="standard-document">
26
+ <element name="standard-document">
27
+ <ref name="bibdata"/>
102
28
  <optional>
103
- <ref name="editorialgroup"/>
29
+ <ref name="version"/>
104
30
  </optional>
31
+ <oneOrMore>
32
+ <ref name="sections"/>
33
+ </oneOrMore>
105
34
  <zeroOrMore>
106
- <ref name="ics"/>
35
+ <ref name="annex"/>
107
36
  </zeroOrMore>
108
37
  <zeroOrMore>
109
- <ref name="structuredidentifier"/>
38
+ <ref name="references"/>
110
39
  </zeroOrMore>
111
- </define>
112
- <!-- TitleType = text -->
113
- <define name="sections">
114
- <element name="sections">
115
- <oneOrMore>
116
- <choice>
117
- <ref name="clause"/>
118
- <ref name="terms"/>
119
- <ref name="term-clause"/>
120
- <ref name="definitions"/>
121
- </choice>
122
- </oneOrMore>
123
- </element>
124
- </define>
125
- <define name="references">
126
- <element name="references">
127
- <optional>
128
- <attribute name="id">
129
- <data type="ID"/>
130
- </attribute>
131
- </optional>
132
- <optional>
133
- <attribute name="obligation">
134
- <choice>
135
- <value>normative</value>
136
- <value>informative</value>
137
- </choice>
138
- </attribute>
139
- </optional>
140
- <attribute name="normative">
141
- <data type="boolean"/>
142
- </attribute>
143
- <optional>
144
- <ref name="section-title"/>
145
- </optional>
146
- <zeroOrMore>
147
- <ref name="BasicBlock"/>
148
- </zeroOrMore>
149
- <zeroOrMore>
150
- <ref name="note"/>
151
- </zeroOrMore>
152
- <zeroOrMore>
153
- <ref name="bibitem"/>
154
- <zeroOrMore>
155
- <ref name="note"/>
156
- </zeroOrMore>
157
- </zeroOrMore>
158
- <zeroOrMore>
159
- <ref name="references"/>
160
- </zeroOrMore>
161
- </element>
162
- </define>
163
- <define name="note">
164
- <element name="note">
165
- <attribute name="id">
166
- <data type="ID"/>
167
- </attribute>
168
- <oneOrMore>
169
- <choice>
170
- <ref name="paragraph"/>
171
- <ref name="ul"/>
172
- <ref name="ol"/>
173
- <ref name="dl"/>
174
- <ref name="formula"/>
175
- </choice>
176
- </oneOrMore>
177
- </element>
178
- </define>
179
- <define name="Basic-Section">
180
- <optional>
181
- <attribute name="id">
182
- <data type="ID"/>
183
- </attribute>
184
- </optional>
185
- <optional>
186
- <attribute name="language"/>
187
- </optional>
188
- <optional>
189
- <attribute name="script"/>
190
- </optional>
191
- <optional>
192
- <attribute name="obligation">
193
- <choice>
194
- <value>normative</value>
195
- <value>informative</value>
196
- </choice>
197
- </attribute>
198
- </optional>
199
- <optional>
200
- <ref name="section-title"/>
201
- </optional>
202
- <group>
203
- <oneOrMore>
204
- <ref name="BasicBlock"/>
205
- </oneOrMore>
206
- <zeroOrMore>
207
- <ref name="note"/>
208
- </zeroOrMore>
209
- </group>
210
- </define>
211
- <define name="li">
212
- <element name="li">
213
- <group>
214
- <optional>
215
- <attribute name="id">
216
- <data type="ID"/>
217
- </attribute>
218
- </optional>
219
- <oneOrMore>
220
- <ref name="BasicBlock"/>
221
- </oneOrMore>
222
- </group>
223
- <!-- exclude figures? -->
224
- </element>
225
- </define>
226
- <define name="dd">
227
- <element name="dd">
228
- <zeroOrMore>
229
- <!-- exclude figures? -->
230
- <ref name="BasicBlock"/>
231
- </zeroOrMore>
232
- </element>
233
- </define>
234
- <define name="thead">
235
- <element name="thead">
236
- <oneOrMore>
237
- <ref name="tr"/>
238
- </oneOrMore>
239
- </element>
240
- </define>
241
- <define name="td">
242
- <element name="td">
243
- <optional>
244
- <attribute name="colspan"/>
245
- </optional>
246
- <optional>
247
- <attribute name="rowspan"/>
248
- </optional>
249
- <optional>
250
- <attribute name="align">
251
- <choice>
252
- <value>left</value>
253
- <value>right</value>
254
- <value>center</value>
255
- </choice>
256
- </attribute>
257
- </optional>
258
- <choice>
259
- <zeroOrMore>
260
- <choice>
261
- <ref name="TextElement"/>
262
- <ref name="fn"/>
263
- </choice>
264
- </zeroOrMore>
265
- <oneOrMore>
266
- <choice>
267
- <ref name="paragraph-with-footnote"/>
268
- <ref name="dl"/>
269
- <ref name="ul"/>
270
- <ref name="ol"/>
271
- <ref name="figure"/>
272
- </choice>
273
- </oneOrMore>
274
- </choice>
275
- </element>
276
- </define>
277
- <define name="th">
278
- <element name="th">
279
- <optional>
280
- <attribute name="colspan"/>
281
- </optional>
282
- <optional>
283
- <attribute name="rowspan"/>
284
- </optional>
285
- <optional>
286
- <attribute name="align">
287
- <choice>
288
- <value>left</value>
289
- <value>right</value>
290
- <value>center</value>
291
- </choice>
292
- </attribute>
293
- </optional>
294
- <choice>
295
- <zeroOrMore>
296
- <choice>
297
- <ref name="TextElement"/>
298
- <ref name="fn"/>
299
- </choice>
300
- </zeroOrMore>
301
- <oneOrMore>
302
- <ref name="paragraph-with-footnote"/>
303
- </oneOrMore>
304
- </choice>
305
- </element>
306
- </define>
307
- <define name="table-note">
308
- <element name="note">
309
- <optional>
310
- <attribute name="id">
311
- <data type="ID"/>
312
- </attribute>
313
- </optional>
314
- <ref name="paragraph"/>
315
- </element>
316
- </define>
317
- </include>
318
- <!-- end overrides -->
319
- <define name="TextElement" combine="choice">
320
- <ref name="concept"/>
321
- </define>
322
- <define name="concept">
323
- <element name="concept">
324
- <optional>
325
- <attribute name="term"/>
326
- </optional>
327
- <choice>
328
- <ref name="eref"/>
329
- <ref name="xref"/>
330
- <ref name="termref"/>
331
- </choice>
332
40
  </element>
333
41
  </define>
334
- <define name="BasicBlock" combine="choice">
335
- <choice>
336
- <ref name="requirement"/>
337
- <ref name="recommendation"/>
338
- <ref name="permission"/>
339
- </choice>
42
+ <define name="bibdata">
43
+ <element name="bibdata">
44
+ <ref name="BibData"/>
45
+ </element>
340
46
  </define>
341
- <define name="bibliography">
342
- <element name="bibliography">
343
- <oneOrMore>
344
- <choice>
345
- <ref name="references"/>
346
- <ref name="reference-clause"/>
347
- </choice>
348
- </oneOrMore>
47
+ <define name="status">
48
+ <element name="status">
49
+ <ref name="FormattedString"/>
349
50
  </element>
350
51
  </define>
351
- <define name="reference-clause">
352
- <element name="clause">
353
- <optional>
354
- <attribute name="id">
355
- <data type="ID"/>
356
- </attribute>
357
- </optional>
358
- <optional>
359
- <attribute name="language"/>
360
- </optional>
361
- <optional>
362
- <attribute name="script"/>
363
- </optional>
364
- <optional>
365
- <attribute name="inline-header">
366
- <data type="boolean"/>
367
- </attribute>
368
- </optional>
52
+ <define name="version">
53
+ <element name="version">
369
54
  <optional>
370
- <attribute name="obligation">
371
- <choice>
372
- <value>normative</value>
373
- <value>informative</value>
374
- </choice>
375
- </attribute>
55
+ <ref name="vedition"/>
376
56
  </optional>
377
57
  <optional>
378
- <ref name="section-title"/>
58
+ <ref name="revision-date"/>
379
59
  </optional>
380
60
  <zeroOrMore>
381
- <ref name="BasicBlock"/>
382
- </zeroOrMore>
383
- <zeroOrMore>
384
- <ref name="note"/>
61
+ <ref name="draft"/>
385
62
  </zeroOrMore>
386
- <choice>
387
- <oneOrMore>
388
- <ref name="reference-clause"/>
389
- </oneOrMore>
390
- <zeroOrMore>
391
- <ref name="references"/>
392
- </zeroOrMore>
393
- </choice>
394
- </element>
395
- </define>
396
- <define name="editorialgroup">
397
- <element name="editorialgroup">
398
- <oneOrMore>
399
- <ref name="technical-committee"/>
400
- </oneOrMore>
401
63
  </element>
402
64
  </define>
403
- <define name="technical-committee">
404
- <element name="technical-committee">
405
- <ref name="IsoWorkgroup"/>
65
+ <define name="vedition">
66
+ <element name="edition">
67
+ <data type="int"/>
406
68
  </element>
407
69
  </define>
408
- <define name="IsoWorkgroup">
409
- <optional>
410
- <attribute name="number">
411
- <data type="int"/>
412
- </attribute>
413
- </optional>
414
- <optional>
415
- <attribute name="type"/>
416
- </optional>
417
- <text/>
418
- </define>
419
- <define name="ics">
420
- <element name="ics">
421
- <element name="code">
422
- <text/>
423
- </element>
424
- <element name="text">
425
- <text/>
426
- </element>
70
+ <define name="revision-date">
71
+ <element name="revision-date">
72
+ <data type="date"/>
427
73
  </element>
428
74
  </define>
429
- <define name="standard-document">
430
- <element name="standard-document">
431
- <ref name="bibdata"/>
432
- <optional>
433
- <ref name="boilerplate"/>
434
- </optional>
435
- <optional>
436
- <ref name="preface"/>
437
- </optional>
438
- <ref name="sections"/>
439
- <zeroOrMore>
440
- <ref name="annex"/>
441
- </zeroOrMore>
442
- <zeroOrMore>
443
- <ref name="references"/>
444
- </zeroOrMore>
75
+ <define name="draft">
76
+ <element name="draft">
77
+ <text/>
445
78
  </element>
446
79
  </define>
447
- <define name="preface">
448
- <element name="preface">
80
+ <define name="sections">
81
+ <element name="sections">
449
82
  <oneOrMore>
450
83
  <choice>
451
84
  <ref name="content"/>
452
- <ref name="preface_abstract"/>
453
- <ref name="foreword"/>
454
- <ref name="introduction"/>
455
- <ref name="acknowledgements"/>
85
+ <ref name="clause"/>
86
+ <ref name="terms"/>
87
+ <ref name="definitions"/>
456
88
  </choice>
457
89
  </oneOrMore>
458
90
  </element>
459
91
  </define>
460
- <define name="foreword">
461
- <element name="foreword">
462
- <ref name="Content-Section"/>
463
- </element>
464
- </define>
465
- <define name="introduction">
466
- <element name="introduction">
467
- <ref name="Content-Section"/>
468
- </element>
469
- </define>
470
- <define name="boilerplate">
471
- <element name="boilerplate">
472
- <optional>
473
- <ref name="copyright-statement"/>
474
- </optional>
475
- <optional>
476
- <ref name="license-statement"/>
477
- </optional>
478
- <optional>
479
- <ref name="legal-statement"/>
480
- </optional>
481
- <optional>
482
- <ref name="feedback-statement"/>
483
- </optional>
484
- </element>
485
- </define>
486
- <define name="copyright-statement">
487
- <element name="copyright-statement">
488
- <ref name="Content-Section"/>
489
- </element>
490
- </define>
491
- <define name="license-statement">
492
- <element name="license-statement">
493
- <ref name="Content-Section"/>
494
- </element>
495
- </define>
496
- <define name="legal-statement">
497
- <element name="legal-statement">
498
- <ref name="Content-Section"/>
499
- </element>
500
- </define>
501
- <define name="feedback-statement">
502
- <element name="feedback-statement">
503
- <ref name="Content-Section"/>
504
- </element>
505
- </define>
506
92
  <define name="definitions">
507
93
  <element name="definitions">
508
94
  <optional>
@@ -510,104 +96,68 @@
510
96
  <data type="ID"/>
511
97
  </attribute>
512
98
  </optional>
513
- <optional>
514
- <attribute name="language"/>
515
- </optional>
516
- <optional>
517
- <attribute name="script"/>
518
- </optional>
519
- <optional>
520
- <attribute name="obligation">
521
- <choice>
522
- <value>normative</value>
523
- <value>informative</value>
524
- </choice>
525
- </attribute>
526
- </optional>
527
99
  <optional>
528
100
  <ref name="section-title"/>
529
101
  </optional>
530
- <oneOrMore>
531
- <zeroOrMore>
532
- <ref name="BasicBlock"/>
533
- </zeroOrMore>
534
- <zeroOrMore>
535
- <ref name="note"/>
536
- </zeroOrMore>
537
- <ref name="dl"/>
538
- </oneOrMore>
539
- </element>
540
- </define>
541
- <define name="content">
542
- <element name="clause">
543
- <ref name="Content-Section"/>
102
+ <ref name="dl"/>
544
103
  </element>
545
104
  </define>
546
- <define name="abstract">
547
- <element name="abstract">
548
- <ref name="Content-Section"/>
105
+ <define name="section-title">
106
+ <element name="title">
107
+ <text/>
549
108
  </element>
550
109
  </define>
551
- <define name="acknowledgements">
552
- <element name="acknowledgements">
110
+ <define name="content">
111
+ <element name="content">
553
112
  <ref name="Content-Section"/>
554
113
  </element>
555
114
  </define>
556
115
  <define name="content-subsection">
557
116
  <element name="clause">
558
- <optional>
559
- <attribute name="type"/>
560
- </optional>
561
117
  <ref name="Content-Section"/>
562
118
  </element>
563
119
  </define>
564
- <define name="Content-Section">
120
+ <define name="Basic-Section">
565
121
  <optional>
566
122
  <attribute name="id">
567
123
  <data type="ID"/>
568
124
  </attribute>
569
125
  </optional>
570
126
  <optional>
571
- <attribute name="language"/>
572
- </optional>
573
- <optional>
574
- <attribute name="script"/>
575
- </optional>
576
- <optional>
577
- <attribute name="inline-header">
578
- <data type="boolean"/>
579
- </attribute>
127
+ <ref name="section-title"/>
580
128
  </optional>
129
+ <oneOrMore>
130
+ <ref name="BasicBlock"/>
131
+ </oneOrMore>
132
+ <zeroOrMore>
133
+ <ref name="note"/>
134
+ </zeroOrMore>
135
+ </define>
136
+ <define name="Content-Section">
581
137
  <optional>
582
- <attribute name="obligation">
583
- <choice>
584
- <value>normative</value>
585
- <value>informative</value>
586
- </choice>
138
+ <attribute name="id">
139
+ <data type="ID"/>
587
140
  </attribute>
588
141
  </optional>
589
142
  <optional>
590
143
  <ref name="section-title"/>
591
144
  </optional>
592
- <group>
145
+ <choice>
593
146
  <group>
594
- <zeroOrMore>
147
+ <oneOrMore>
595
148
  <ref name="BasicBlock"/>
596
- </zeroOrMore>
149
+ </oneOrMore>
597
150
  <zeroOrMore>
598
151
  <ref name="note"/>
599
152
  </zeroOrMore>
600
153
  </group>
601
- <zeroOrMore>
154
+ <oneOrMore>
602
155
  <ref name="content-subsection"/>
603
- </zeroOrMore>
604
- </group>
156
+ </oneOrMore>
157
+ </choice>
605
158
  </define>
606
159
  <define name="clause">
607
160
  <element name="clause">
608
- <optional>
609
- <attribute name="type"/>
610
- </optional>
611
161
  <ref name="Clause-Section"/>
612
162
  </element>
613
163
  </define>
@@ -618,102 +168,27 @@
618
168
  </attribute>
619
169
  </optional>
620
170
  <optional>
621
- <attribute name="language"/>
622
- </optional>
623
- <optional>
624
- <attribute name="script"/>
625
- </optional>
626
- <optional>
627
- <attribute name="inline-header">
628
- <data type="boolean"/>
629
- </attribute>
171
+ <ref name="section-title"/>
630
172
  </optional>
631
- <optional>
632
- <attribute name="obligation">
633
- <choice>
634
- <value>normative</value>
635
- <value>informative</value>
636
- </choice>
637
- </attribute>
638
- </optional>
639
- <optional>
640
- <ref name="section-title"/>
641
- </optional>
642
- <group>
643
- <group>
644
- <zeroOrMore>
645
- <ref name="BasicBlock"/>
646
- </zeroOrMore>
647
- <zeroOrMore>
648
- <ref name="note"/>
649
- </zeroOrMore>
650
- </group>
651
- <zeroOrMore>
652
- <choice>
653
- <ref name="clause-subsection"/>
654
- <ref name="terms"/>
655
- <ref name="definitions"/>
656
- </choice>
657
- </zeroOrMore>
658
- </group>
659
- </define>
660
- <define name="Annex-Section">
661
- <optional>
662
- <attribute name="id">
663
- <data type="ID"/>
664
- </attribute>
665
- </optional>
666
- <optional>
667
- <attribute name="language"/>
668
- </optional>
669
- <optional>
670
- <attribute name="script"/>
671
- </optional>
672
- <optional>
673
- <attribute name="inline-header">
674
- <data type="boolean"/>
675
- </attribute>
676
- </optional>
677
- <optional>
678
- <attribute name="obligation">
679
- <choice>
680
- <value>normative</value>
681
- <value>informative</value>
682
- </choice>
683
- </attribute>
684
- </optional>
685
- <optional>
686
- <ref name="section-title"/>
687
- </optional>
688
- <group>
173
+ <choice>
689
174
  <group>
690
- <zeroOrMore>
175
+ <oneOrMore>
691
176
  <ref name="BasicBlock"/>
692
- </zeroOrMore>
177
+ </oneOrMore>
693
178
  <zeroOrMore>
694
179
  <ref name="note"/>
695
180
  </zeroOrMore>
696
181
  </group>
697
- <zeroOrMore>
698
- <choice>
699
- <ref name="annex-subsection"/>
700
- <ref name="terms"/>
701
- <ref name="definitions"/>
702
- <ref name="references"/>
703
- </choice>
704
- </zeroOrMore>
705
- </group>
182
+ <oneOrMore>
183
+ <ref name="clause-subsection"/>
184
+ </oneOrMore>
185
+ </choice>
706
186
  </define>
707
187
  <define name="clause-subsection">
708
188
  <element name="clause">
709
189
  <ref name="Clause-Section"/>
710
190
  </element>
711
191
  </define>
712
- <define name="annex-subsection">
713
- <element name="clause">
714
- <ref name="Annex-Section"/>
715
- </element>
716
- </define>
717
192
  <define name="annex">
718
193
  <element name="annex">
719
194
  <optional>
@@ -721,17 +196,6 @@
721
196
  <data type="ID"/>
722
197
  </attribute>
723
198
  </optional>
724
- <optional>
725
- <attribute name="language"/>
726
- </optional>
727
- <optional>
728
- <attribute name="script"/>
729
- </optional>
730
- <optional>
731
- <attribute name="inline-header">
732
- <data type="boolean"/>
733
- </attribute>
734
- </optional>
735
199
  <attribute name="obligation">
736
200
  <choice>
737
201
  <value>normative</value>
@@ -741,69 +205,46 @@
741
205
  <optional>
742
206
  <ref name="section-title"/>
743
207
  </optional>
744
- <group>
208
+ <choice>
745
209
  <group>
746
- <zeroOrMore>
210
+ <oneOrMore>
747
211
  <ref name="BasicBlock"/>
748
- </zeroOrMore>
212
+ </oneOrMore>
749
213
  <zeroOrMore>
750
214
  <ref name="note"/>
751
215
  </zeroOrMore>
752
216
  </group>
753
- <zeroOrMore>
754
- <choice>
755
- <ref name="annex-subsection"/>
756
- <ref name="terms"/>
757
- <ref name="definitions"/>
758
- <ref name="references"/>
759
- </choice>
760
- </zeroOrMore>
761
- </group>
217
+ <oneOrMore>
218
+ <ref name="clause-subsection"/>
219
+ </oneOrMore>
220
+ </choice>
762
221
  </element>
763
222
  </define>
764
- <define name="terms">
765
- <element name="terms">
223
+ <define name="references">
224
+ <element name="references">
766
225
  <optional>
767
226
  <attribute name="id">
768
227
  <data type="ID"/>
769
228
  </attribute>
770
229
  </optional>
771
- <optional>
772
- <attribute name="language"/>
773
- </optional>
774
- <optional>
775
- <attribute name="script"/>
776
- </optional>
777
- <optional>
778
- <attribute name="obligation">
779
- <choice>
780
- <value>normative</value>
781
- <value>informative</value>
782
- </choice>
783
- </attribute>
784
- </optional>
785
230
  <optional>
786
231
  <ref name="section-title"/>
787
232
  </optional>
788
233
  <zeroOrMore>
789
- <ref name="BasicBlock"/>
234
+ <ref name="bibitem"/>
790
235
  </zeroOrMore>
791
- <zeroOrMore>
792
- <ref name="note"/>
793
- </zeroOrMore>
794
- <choice>
795
- <oneOrMore>
796
- <ref name="term"/>
797
- </oneOrMore>
798
- <group>
799
- <zeroOrMore>
800
- <ref name="terms"/>
801
- </zeroOrMore>
802
- <optional>
803
- <ref name="definitions"/>
804
- </optional>
805
- </group>
806
- </choice>
236
+ </element>
237
+ </define>
238
+ <define name="terms">
239
+ <element name="terms">
240
+ <optional>
241
+ <attribute name="id">
242
+ <data type="ID"/>
243
+ </attribute>
244
+ </optional>
245
+ <oneOrMore>
246
+ <ref name="term"/>
247
+ </oneOrMore>
807
248
  </element>
808
249
  </define>
809
250
  <define name="term">
@@ -819,18 +260,12 @@
819
260
  <zeroOrMore>
820
261
  <ref name="admitted"/>
821
262
  </zeroOrMore>
822
- <zeroOrMore>
823
- <ref name="related"/>
824
- </zeroOrMore>
825
263
  <zeroOrMore>
826
264
  <ref name="deprecates"/>
827
265
  </zeroOrMore>
828
266
  <optional>
829
267
  <ref name="termdomain"/>
830
268
  </optional>
831
- <zeroOrMore>
832
- <ref name="termgrammar"/>
833
- </zeroOrMore>
834
269
  <ref name="definition"/>
835
270
  <zeroOrMore>
836
271
  <ref name="termnote"/>
@@ -857,22 +292,6 @@
857
292
  </oneOrMore>
858
293
  </element>
859
294
  </define>
860
- <define name="related">
861
- <element name="related">
862
- <optional>
863
- <attribute name="type">
864
- <choice>
865
- <value>compare</value>
866
- <value>contrast</value>
867
- <value>see</value>
868
- </choice>
869
- </attribute>
870
- </optional>
871
- <oneOrMore>
872
- <ref name="TextElement"/>
873
- </oneOrMore>
874
- </element>
875
- </define>
876
295
  <define name="deprecates">
877
296
  <element name="deprecates">
878
297
  <oneOrMore>
@@ -887,22 +306,9 @@
887
306
  </oneOrMore>
888
307
  </element>
889
308
  </define>
890
- <define name="termgrammar">
891
- <element name="grammar">
892
- <oneOrMore>
893
- <ref name="TextElement"/>
894
- </oneOrMore>
895
- </element>
896
- </define>
897
309
  <define name="definition">
898
310
  <element name="definition">
899
- <oneOrMore>
900
- <choice>
901
- <ref name="paragraph"/>
902
- <ref name="figure"/>
903
- <ref name="formula"/>
904
- </choice>
905
- </oneOrMore>
311
+ <ref name="paragraph"/>
906
312
  </element>
907
313
  </define>
908
314
  <define name="termnote">
@@ -910,15 +316,7 @@
910
316
  <attribute name="id">
911
317
  <data type="ID"/>
912
318
  </attribute>
913
- <oneOrMore>
914
- <choice>
915
- <ref name="paragraph"/>
916
- <ref name="ul"/>
917
- <ref name="ol"/>
918
- <ref name="dl"/>
919
- <ref name="formula"/>
920
- </choice>
921
- </oneOrMore>
319
+ <ref name="paragraph"/>
922
320
  </element>
923
321
  </define>
924
322
  <define name="termexample">
@@ -926,7 +324,7 @@
926
324
  <attribute name="id">
927
325
  <data type="ID"/>
928
326
  </attribute>
929
- <ref name="paragraph"/>
327
+ <ref name="BasicBlock"/>
930
328
  </element>
931
329
  </define>
932
330
  <define name="termsource">
@@ -945,10 +343,7 @@
945
343
  </define>
946
344
  <define name="origin">
947
345
  <element name="origin">
948
- <choice>
949
- <ref name="erefType"/>
950
- <ref name="termref"/>
951
- </choice>
346
+ <ref name="erefType"/>
952
347
  </element>
953
348
  </define>
954
349
  <define name="modification">
@@ -956,122 +351,691 @@
956
351
  <ref name="paragraph"/>
957
352
  </element>
958
353
  </define>
959
- <define name="termref">
960
- <element name="termref">
961
- <attribute name="base"/>
962
- <attribute name="target"/>
354
+ <define name="BasicBlock">
355
+ <choice>
356
+ <ref name="paragraph-with-footnote"/>
357
+ <ref name="table"/>
358
+ <ref name="formula"/>
359
+ <ref name="admonition"/>
360
+ <ref name="ol"/>
361
+ <ref name="ul"/>
362
+ <ref name="dl"/>
363
+ <ref name="figure"/>
364
+ <ref name="quote"/>
365
+ <ref name="sourcecode"/>
366
+ <ref name="example"/>
367
+ <ref name="review"/>
368
+ </choice>
369
+ </define>
370
+ <define name="paragraph">
371
+ <element name="p">
372
+ <ref name="ParagraphType"/>
373
+ </element>
374
+ </define>
375
+ <define name="Alignments">
376
+ <choice>
377
+ <value>left</value>
378
+ <value>right</value>
379
+ <value>center</value>
380
+ <value>justified</value>
381
+ </choice>
382
+ </define>
383
+ <define name="ParagraphType">
384
+ <attribute name="id">
385
+ <data type="ID"/>
386
+ </attribute>
387
+ <optional>
388
+ <attribute name="align">
389
+ <ref name="Alignments"/>
390
+ </attribute>
391
+ </optional>
392
+ <zeroOrMore>
393
+ <ref name="TextElement"/>
394
+ </zeroOrMore>
395
+ <zeroOrMore>
396
+ <ref name="note"/>
397
+ </zeroOrMore>
398
+ </define>
399
+ <define name="paragraph-with-footnote">
400
+ <element name="p">
401
+ <attribute name="id">
402
+ <data type="ID"/>
403
+ </attribute>
963
404
  <optional>
964
- <text/>
405
+ <attribute name="align">
406
+ <ref name="Alignments"/>
407
+ </attribute>
965
408
  </optional>
409
+ <zeroOrMore>
410
+ <choice>
411
+ <ref name="TextElement"/>
412
+ <ref name="fn"/>
413
+ </choice>
414
+ </zeroOrMore>
415
+ <zeroOrMore>
416
+ <ref name="note"/>
417
+ </zeroOrMore>
966
418
  </element>
967
419
  </define>
968
- <define name="structuredidentifier">
969
- <element name="structuredidentifier">
420
+ <define name="note">
421
+ <element name="note">
422
+ <attribute name="id">
423
+ <data type="ID"/>
424
+ </attribute>
425
+ <oneOrMore>
426
+ <ref name="paragraph-with-footnote"/>
427
+ </oneOrMore>
428
+ </element>
429
+ </define>
430
+ <define name="review">
431
+ <element name="review">
432
+ <attribute name="id">
433
+ <data type="ID"/>
434
+ </attribute>
435
+ <attribute name="reviewer"/>
970
436
  <optional>
971
- <attribute name="type"/>
437
+ <attribute name="date">
438
+ <data type="dateTime"/>
439
+ </attribute>
440
+ </optional>
441
+ <attribute name="from">
442
+ <data type="IDREF"/>
443
+ </attribute>
444
+ <optional>
445
+ <attribute name="to">
446
+ <data type="IDREF"/>
447
+ </attribute>
972
448
  </optional>
973
449
  <oneOrMore>
974
- <element name="agency">
975
- <text/>
976
- </element>
450
+ <ref name="paragraph"/>
977
451
  </oneOrMore>
452
+ </element>
453
+ </define>
454
+ <define name="formula">
455
+ <element name="formula">
456
+ <attribute name="id">
457
+ <data type="ID"/>
458
+ </attribute>
459
+ <ref name="stem"/>
978
460
  <optional>
979
- <element name="class">
980
- <text/>
981
- </element>
461
+ <ref name="dl"/>
982
462
  </optional>
983
- <element name="docnumber">
984
- <text/>
985
- </element>
463
+ <zeroOrMore>
464
+ <ref name="note"/>
465
+ </zeroOrMore>
466
+ </element>
467
+ </define>
468
+ <define name="quote">
469
+ <element name="quote">
470
+ <attribute name="id">
471
+ <data type="ID"/>
472
+ </attribute>
986
473
  <optional>
987
- <element name="partnumber">
988
- <text/>
989
- </element>
474
+ <attribute name="alignment">
475
+ <ref name="Alignments"/>
476
+ </attribute>
990
477
  </optional>
991
478
  <optional>
992
- <element name="edition">
993
- <text/>
994
- </element>
479
+ <ref name="quote-source"/>
995
480
  </optional>
996
481
  <optional>
997
- <element name="version">
998
- <text/>
999
- </element>
482
+ <ref name="quote-author"/>
1000
483
  </optional>
484
+ <oneOrMore>
485
+ <ref name="paragraph-with-footnote"/>
486
+ </oneOrMore>
487
+ <zeroOrMore>
488
+ <ref name="note"/>
489
+ </zeroOrMore>
490
+ </element>
491
+ </define>
492
+ <define name="quote-source">
493
+ <element name="source">
494
+ <ref name="erefType"/>
495
+ </element>
496
+ </define>
497
+ <define name="quote-author">
498
+ <element name="author">
499
+ <text/>
500
+ </element>
501
+ </define>
502
+ <define name="sourcecode">
503
+ <element name="sourcecode">
504
+ <attribute name="id">
505
+ <data type="ID"/>
506
+ </attribute>
1001
507
  <optional>
1002
- <element name="supplementtype">
508
+ <ref name="tname"/>
509
+ </optional>
510
+ <oneOrMore>
511
+ <choice>
1003
512
  <text/>
1004
- </element>
513
+ <ref name="callout"/>
514
+ </choice>
515
+ </oneOrMore>
516
+ <zeroOrMore>
517
+ <ref name="annotation"/>
518
+ </zeroOrMore>
519
+ <zeroOrMore>
520
+ <ref name="note"/>
521
+ </zeroOrMore>
522
+ </element>
523
+ </define>
524
+ <define name="table">
525
+ <element name="table">
526
+ <attribute name="id">
527
+ <data type="ID"/>
528
+ </attribute>
529
+ <optional>
530
+ <ref name="tname"/>
1005
531
  </optional>
1006
532
  <optional>
1007
- <element name="supplementnumber">
1008
- <text/>
1009
- </element>
533
+ <ref name="thead"/>
1010
534
  </optional>
535
+ <ref name="tbody"/>
1011
536
  <optional>
1012
- <element name="language">
1013
- <text/>
1014
- </element>
537
+ <ref name="tfoot"/>
1015
538
  </optional>
539
+ <zeroOrMore>
540
+ <ref name="table-note"/>
541
+ </zeroOrMore>
1016
542
  <optional>
1017
- <element name="year">
1018
- <text/>
1019
- </element>
543
+ <ref name="dl"/>
1020
544
  </optional>
1021
545
  </element>
1022
546
  </define>
1023
- <define name="preface_abstract">
1024
- <element name="abstract">
1025
- <ref name="Basic-Section"/>
547
+ <define name="tname">
548
+ <element name="name">
549
+ <text/>
1026
550
  </element>
1027
551
  </define>
1028
- <define name="term-clause">
1029
- <element name="clause">
552
+ <define name="thead">
553
+ <element name="thead">
554
+ <ref name="tr"/>
555
+ </element>
556
+ </define>
557
+ <define name="tfoot">
558
+ <element name="tfoot">
559
+ <ref name="tr"/>
560
+ </element>
561
+ </define>
562
+ <define name="tbody">
563
+ <element name="tbody">
564
+ <oneOrMore>
565
+ <ref name="tr"/>
566
+ </oneOrMore>
567
+ </element>
568
+ </define>
569
+ <define name="table-note">
570
+ <element name="note">
571
+ <ref name="paragraph"/>
572
+ </element>
573
+ </define>
574
+ <define name="tr">
575
+ <element name="tr">
576
+ <oneOrMore>
577
+ <choice>
578
+ <ref name="td"/>
579
+ <ref name="th"/>
580
+ </choice>
581
+ </oneOrMore>
582
+ </element>
583
+ </define>
584
+ <define name="td">
585
+ <element name="td">
1030
586
  <optional>
1031
- <attribute name="id">
1032
- <data type="ID"/>
587
+ <attribute name="colspan"/>
588
+ </optional>
589
+ <optional>
590
+ <attribute name="rowspan"/>
591
+ </optional>
592
+ <optional>
593
+ <attribute name="align">
594
+ <choice>
595
+ <value>left</value>
596
+ <value>right</value>
597
+ <value>center</value>
598
+ </choice>
1033
599
  </attribute>
1034
600
  </optional>
601
+ <choice>
602
+ <zeroOrMore>
603
+ <ref name="TextElement"/>
604
+ </zeroOrMore>
605
+ <oneOrMore>
606
+ <ref name="paragraph-with-footnote"/>
607
+ </oneOrMore>
608
+ </choice>
609
+ </element>
610
+ </define>
611
+ <define name="th">
612
+ <element name="th">
613
+ <optional>
614
+ <attribute name="colspan"/>
615
+ </optional>
1035
616
  <optional>
1036
- <attribute name="language"/>
617
+ <attribute name="rowspan"/>
1037
618
  </optional>
1038
619
  <optional>
1039
- <attribute name="script"/>
620
+ <attribute name="align">
621
+ <choice>
622
+ <value>left</value>
623
+ <value>right</value>
624
+ <value>center</value>
625
+ </choice>
626
+ </attribute>
1040
627
  </optional>
628
+ <choice>
629
+ <zeroOrMore>
630
+ <ref name="TextElement"/>
631
+ </zeroOrMore>
632
+ <oneOrMore>
633
+ <ref name="paragraph-with-footnote"/>
634
+ </oneOrMore>
635
+ </choice>
636
+ </element>
637
+ </define>
638
+ <define name="example">
639
+ <element name="example">
640
+ <attribute name="id">
641
+ <data type="ID"/>
642
+ </attribute>
643
+ <oneOrMore>
644
+ <choice>
645
+ <ref name="formula"/>
646
+ <ref name="ul"/>
647
+ <ref name="ol"/>
648
+ <ref name="dl"/>
649
+ <ref name="quote"/>
650
+ <ref name="sourcecode"/>
651
+ <ref name="paragraph-with-footnote"/>
652
+ </choice>
653
+ </oneOrMore>
654
+ <zeroOrMore>
655
+ <ref name="note"/>
656
+ </zeroOrMore>
657
+ </element>
658
+ </define>
659
+ <define name="admonition">
660
+ <element name="admonition">
661
+ <attribute name="type">
662
+ <choice>
663
+ <value>warning</value>
664
+ <value>note</value>
665
+ <value>tip</value>
666
+ <value>important</value>
667
+ <value>caution</value>
668
+ </choice>
669
+ </attribute>
670
+ <attribute name="id">
671
+ <data type="ID"/>
672
+ </attribute>
673
+ <zeroOrMore>
674
+ <ref name="paragraph-with-footnote"/>
675
+ </zeroOrMore>
676
+ <zeroOrMore>
677
+ <ref name="note"/>
678
+ </zeroOrMore>
679
+ </element>
680
+ </define>
681
+ <define name="figure">
682
+ <element name="figure">
683
+ <attribute name="id">
684
+ <data type="ID"/>
685
+ </attribute>
686
+ <optional>
687
+ <ref name="source"/>
688
+ </optional>
689
+ <optional>
690
+ <ref name="tname"/>
691
+ </optional>
692
+ <choice>
693
+ <oneOrMore>
694
+ <ref name="figure"/>
695
+ </oneOrMore>
696
+ <group>
697
+ <zeroOrMore>
698
+ <ref name="TextElement"/>
699
+ </zeroOrMore>
700
+ <zeroOrMore>
701
+ <ref name="note"/>
702
+ </zeroOrMore>
703
+ <optional>
704
+ <ref name="dl"/>
705
+ </optional>
706
+ </group>
707
+ </choice>
708
+ </element>
709
+ </define>
710
+ <define name="TextElement">
711
+ <choice>
712
+ <text/>
713
+ <ref name="em"/>
714
+ <ref name="eref"/>
715
+ <ref name="strong"/>
716
+ <ref name="stem"/>
717
+ <ref name="sub"/>
718
+ <ref name="sup"/>
719
+ <ref name="tt"/>
720
+ <ref name="strike"/>
721
+ <ref name="smallcap"/>
722
+ <ref name="xref"/>
723
+ <ref name="br"/>
724
+ <ref name="hyperlink"/>
725
+ <ref name="hr"/>
726
+ <ref name="pagebreak"/>
727
+ <ref name="bookmark"/>
728
+ </choice>
729
+ </define>
730
+ <define name="source">
731
+ <element name="source">
732
+ <ref name="TypedUri"/>
733
+ </element>
734
+ </define>
735
+ <define name="em">
736
+ <element name="em">
737
+ <text/>
738
+ </element>
739
+ </define>
740
+ <define name="strong">
741
+ <element name="strong">
742
+ <text/>
743
+ </element>
744
+ </define>
745
+ <define name="tt">
746
+ <element name="tt">
747
+ <text/>
748
+ </element>
749
+ </define>
750
+ <define name="sub">
751
+ <element name="sub">
752
+ <text/>
753
+ </element>
754
+ </define>
755
+ <define name="sup">
756
+ <element name="sup">
757
+ <text/>
758
+ </element>
759
+ </define>
760
+ <define name="strike">
761
+ <element name="strike">
762
+ <text/>
763
+ </element>
764
+ </define>
765
+ <define name="smallcap">
766
+ <element name="smallcap">
767
+ <text/>
768
+ </element>
769
+ </define>
770
+ <define name="br">
771
+ <element name="br">
772
+ <empty/>
773
+ </element>
774
+ </define>
775
+ <define name="hr">
776
+ <element name="hr">
777
+ <empty/>
778
+ </element>
779
+ </define>
780
+ <define name="pagebreak">
781
+ <element name="pagebreak">
782
+ <empty/>
783
+ </element>
784
+ </define>
785
+ <!-- bare ID element, used for referencing arbitrary spans of text -->
786
+ <define name="bookmark">
787
+ <element name="bookmark">
788
+ <attribute name="id">
789
+ <data type="ID"/>
790
+ </attribute>
791
+ <empty/>
792
+ </element>
793
+ </define>
794
+ <define name="ReferenceFormat">
795
+ <choice>
796
+ <value>external</value>
797
+ <value>inline</value>
798
+ <value>footnote</value>
799
+ <value>callout</value>
800
+ </choice>
801
+ </define>
802
+ <define name="eref">
803
+ <element name="eref">
804
+ <ref name="erefType"/>
805
+ </element>
806
+ </define>
807
+ <define name="erefType">
808
+ <optional>
809
+ <attribute name="normative">
810
+ <data type="boolean"/>
811
+ </attribute>
812
+ </optional>
813
+ <attribute name="citeas"/>
814
+ <attribute name="type">
815
+ <ref name="ReferenceFormat"/>
816
+ </attribute>
817
+ <ref name="CitationType"/>
818
+ <text/>
819
+ </define>
820
+ <define name="hyperlink">
821
+ <element name="link">
822
+ <attribute name="target">
823
+ <data type="anyURI"/>
824
+ </attribute>
825
+ <attribute name="type">
826
+ <ref name="ReferenceFormat"/>
827
+ </attribute>
828
+ <text/>
829
+ </element>
830
+ </define>
831
+ <define name="xref">
832
+ <element name="xref">
833
+ <attribute name="target">
834
+ <data type="IDREF"/>
835
+ </attribute>
836
+ <attribute name="type">
837
+ <ref name="ReferenceFormat"/>
838
+ </attribute>
839
+ <text/>
840
+ </element>
841
+ </define>
842
+ <define name="fn">
843
+ <element name="fn">
844
+ <attribute name="reference"/>
845
+ <oneOrMore>
846
+ <ref name="paragraph"/>
847
+ </oneOrMore>
848
+ </element>
849
+ </define>
850
+ <!--
851
+ This is xref with fixed @type="footnote", and @target built in as paragraph+
852
+ @reference replaces ReferenceElement/text
853
+ so <fn reference="2"><p>This is a footnote</p></fn>
854
+ corresponds to
855
+ <eref type="footnote" target="fn2">2</xref> <p id="fn2">This is a footnote</p>
856
+ -->
857
+ <define name="callout">
858
+ <element name="callout">
859
+ <attribute name="target">
860
+ <data type="IDREF"/>
861
+ </attribute>
862
+ <text/>
863
+ </element>
864
+ </define>
865
+ <!--
866
+ This is xref with fixed @type="callout"; the target by convention is in an annotation in the same source code snippet
867
+ so <callout target="xyz">1</callout>
868
+ corresponds to <xref type="callout" target="xyz">1</xref>
869
+ -->
870
+ <define name="image">
871
+ <element name="image">
872
+ <attribute name="id">
873
+ <data type="ID"/>
874
+ </attribute>
1041
875
  <optional>
1042
- <attribute name="inline-header">
1043
- <data type="boolean"/>
876
+ <attribute name="src">
877
+ <data type="anyURI"/>
1044
878
  </attribute>
1045
879
  </optional>
880
+ <attribute name="imagetype">
881
+ <choice>
882
+ <value>SVG</value>
883
+ <value>JPEG</value>
884
+ <value>GIF</value>
885
+ <value>PNG</value>
886
+ <value>PDF</value>
887
+ </choice>
888
+ </attribute>
1046
889
  <optional>
1047
- <attribute name="obligation">
890
+ <attribute name="width">
1048
891
  <choice>
1049
- <value>normative</value>
1050
- <value>informative</value>
892
+ <data type="int"/>
893
+ <value>auto</value>
1051
894
  </choice>
1052
895
  </attribute>
1053
896
  </optional>
1054
897
  <optional>
1055
- <ref name="section-title"/>
898
+ <attribute name="height">
899
+ <choice>
900
+ <data type="int"/>
901
+ <value>auto</value>
902
+ </choice>
903
+ </attribute>
1056
904
  </optional>
905
+ </element>
906
+ </define>
907
+ <define name="stem">
908
+ <element name="stem">
909
+ <attribute name="type">
910
+ <choice>
911
+ <value>MathML</value>
912
+ <value>AsciiMath</value>
913
+ </choice>
914
+ </attribute>
915
+ <text/>
916
+ </element>
917
+ </define>
918
+ <define name="annotation">
919
+ <element name="annotation">
920
+ <attribute name="id">
921
+ <data type="ID"/>
922
+ </attribute>
923
+ <ref name="paragraph"/>
924
+ </element>
925
+ </define>
926
+ <define name="ul">
927
+ <element name="ul">
928
+ <attribute name="id">
929
+ <data type="ID"/>
930
+ </attribute>
931
+ <oneOrMore>
932
+ <ref name="li"/>
933
+ </oneOrMore>
1057
934
  <zeroOrMore>
1058
- <ref name="BasicBlock"/>
935
+ <ref name="note"/>
1059
936
  </zeroOrMore>
937
+ </element>
938
+ </define>
939
+ <define name="li">
940
+ <element name="li">
941
+ <oneOrMore>
942
+ <ref name="paragraph-with-footnote"/>
943
+ </oneOrMore>
944
+ </element>
945
+ </define>
946
+ <define name="ol">
947
+ <element name="ol">
948
+ <attribute name="id">
949
+ <data type="ID"/>
950
+ </attribute>
951
+ <attribute name="type">
952
+ <choice>
953
+ <value>roman</value>
954
+ <value>alphabet</value>
955
+ <value>arabic</value>
956
+ <value>roman_upper</value>
957
+ <value>alphabet_upper</value>
958
+ </choice>
959
+ </attribute>
960
+ <oneOrMore>
961
+ <ref name="li"/>
962
+ </oneOrMore>
1060
963
  <zeroOrMore>
1061
964
  <ref name="note"/>
1062
965
  </zeroOrMore>
966
+ </element>
967
+ </define>
968
+ <define name="dl">
969
+ <element name="dl">
970
+ <attribute name="id">
971
+ <data type="ID"/>
972
+ </attribute>
973
+ <oneOrMore>
974
+ <ref name="dt"/>
975
+ <ref name="dd"/>
976
+ </oneOrMore>
1063
977
  <zeroOrMore>
1064
- <choice>
1065
- <ref name="term-clause"/>
1066
- <ref name="terms"/>
1067
- <ref name="definitions"/>
1068
- </choice>
978
+ <ref name="note"/>
1069
979
  </zeroOrMore>
1070
980
  </element>
1071
981
  </define>
1072
- <define name="termdocsource">
1073
- <element name="termdocsource">
1074
- <ref name="CitationType"/>
982
+ <define name="dt">
983
+ <element name="dt">
984
+ <ref name="TextElement"/>
985
+ </element>
986
+ </define>
987
+ <define name="dd">
988
+ <element name="dd">
989
+ <zeroOrMore>
990
+ <ref name="paragraph-with-footnote"/>
991
+ </zeroOrMore>
1075
992
  </element>
1076
993
  </define>
994
+ <define name="BibData">
995
+ <optional>
996
+ <attribute name="type">
997
+ <ref name="BibItemType"/>
998
+ </attribute>
999
+ </optional>
1000
+ <oneOrMore>
1001
+ <ref name="btitle"/>
1002
+ </oneOrMore>
1003
+ <optional>
1004
+ <ref name="formattedref"/>
1005
+ </optional>
1006
+ <zeroOrMore>
1007
+ <ref name="bsource"/>
1008
+ </zeroOrMore>
1009
+ <zeroOrMore>
1010
+ <ref name="docidentifier"/>
1011
+ </zeroOrMore>
1012
+ <zeroOrMore>
1013
+ <ref name="bdate"/>
1014
+ </zeroOrMore>
1015
+ <zeroOrMore>
1016
+ <ref name="contributor"/>
1017
+ </zeroOrMore>
1018
+ <optional>
1019
+ <ref name="edition"/>
1020
+ </optional>
1021
+ <zeroOrMore>
1022
+ <ref name="biblionote"/>
1023
+ </zeroOrMore>
1024
+ <zeroOrMore>
1025
+ <ref name="language"/>
1026
+ </zeroOrMore>
1027
+ <zeroOrMore>
1028
+ <ref name="script"/>
1029
+ </zeroOrMore>
1030
+ <optional>
1031
+ <ref name="abstract"/>
1032
+ </optional>
1033
+ <optional>
1034
+ <ref name="status"/>
1035
+ </optional>
1036
+ <ref name="copyright"/>
1037
+ <zeroOrMore>
1038
+ <ref name="docrelation"/>
1039
+ </zeroOrMore>
1040
+ </define>
1077
1041
  </grammar>