metanorma-itu 0.1.3 → 0.1.4

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