metanorma-plateau 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2308 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ instantiations of this grammar may replace leaf strings
4
+ with more elaborated types; e.g. title (text) replaced with
5
+ title-main, title-intro, title-part; type replaced with
6
+ enum.
7
+
8
+ some renaming at leaf nodes is permissible
9
+
10
+ obligations can change both from optional to mandatory,
11
+ and from mandatory to optional; optional elements may
12
+ be omitted; freely positioned alternatives may be replaced
13
+ with strict ordering
14
+
15
+ DO NOT introduce a namespace here. We do not want a distinct namespace
16
+ for these elements, and a distinct namespace for any grammar inheriting
17
+ these elements; we just want one namespace for any child grammars
18
+ of this.
19
+ -->
20
+ <!-- VERSION v1.3.3 -->
21
+ <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
22
+ <include href="reqt.rng"/>
23
+ <include href="basicdoc.rng">
24
+ <define name="amend">
25
+ <element name="amend">
26
+ <ref name="BlockAttributes"/>
27
+ <ref name="AmendType"/>
28
+ <zeroOrMore>
29
+ <ref name="autonumber"/>
30
+ </zeroOrMore>
31
+ </element>
32
+ </define>
33
+ <define name="AdmonitionAttr">
34
+ <attribute name="type">
35
+ <ref name="AdmonitionType"/>
36
+ </attribute>
37
+ <optional>
38
+ <attribute name="class"/>
39
+ </optional>
40
+ <optional>
41
+ <attribute name="uri">
42
+ <data type="anyURI"/>
43
+ </attribute>
44
+ </optional>
45
+ <optional>
46
+ <attribute name="coverpage">
47
+ <data type="boolean"/>
48
+ </attribute>
49
+ </optional>
50
+ <optional>
51
+ <attribute name="notag">
52
+ <data type="boolean"/>
53
+ </attribute>
54
+ </optional>
55
+ </define>
56
+ <define name="AdmonitionType">
57
+ <choice>
58
+ <value>warning</value>
59
+ <value>note</value>
60
+ <value>tip</value>
61
+ <value>important</value>
62
+ <value>caution</value>
63
+ <value>statement</value>
64
+ <value>editorial</value>
65
+ <value>box</value>
66
+ </choice>
67
+ </define>
68
+ <define name="index">
69
+ <element name="index">
70
+ <optional>
71
+ <attribute name="to">
72
+ <data type="IDREF"/>
73
+ </attribute>
74
+ </optional>
75
+ <element name="primary">
76
+ <oneOrMore>
77
+ <choice>
78
+ <ref name="PureTextElement"/>
79
+ <ref name="stem"/>
80
+ </choice>
81
+ </oneOrMore>
82
+ </element>
83
+ <optional>
84
+ <element name="secondary">
85
+ <oneOrMore>
86
+ <choice>
87
+ <ref name="PureTextElement"/>
88
+ <ref name="stem"/>
89
+ </choice>
90
+ </oneOrMore>
91
+ </element>
92
+ </optional>
93
+ <optional>
94
+ <element name="tertiary">
95
+ <oneOrMore>
96
+ <choice>
97
+ <ref name="PureTextElement"/>
98
+ <ref name="stem"/>
99
+ </choice>
100
+ </oneOrMore>
101
+ </element>
102
+ </optional>
103
+ </element>
104
+ </define>
105
+ <define name="section-title">
106
+ <element name="title">
107
+ <zeroOrMore>
108
+ <ref name="TextElement"/>
109
+ </zeroOrMore>
110
+ </element>
111
+ <zeroOrMore>
112
+ <element name="variant-title">
113
+ <ref name="TypedTitleString"/>
114
+ </element>
115
+ </zeroOrMore>
116
+ </define>
117
+ <define name="hyperlink">
118
+ <element name="link">
119
+ <attribute name="target">
120
+ <data type="anyURI"/>
121
+ </attribute>
122
+ <optional>
123
+ <attribute name="type">
124
+ <ref name="ReferenceFormat"/>
125
+ </attribute>
126
+ </optional>
127
+ <optional>
128
+ <attribute name="alt"/>
129
+ </optional>
130
+ <optional>
131
+ <attribute name="update-type">
132
+ <data type="boolean"/>
133
+ </attribute>
134
+ </optional>
135
+ <optional>
136
+ <attribute name="style"/>
137
+ </optional>
138
+ <oneOrMore>
139
+ <ref name="PureTextElement"/>
140
+ </oneOrMore>
141
+ </element>
142
+ </define>
143
+ <define name="xref">
144
+ <element name="xref">
145
+ <ref name="XrefAttributes"/>
146
+ <ref name="XrefBody"/>
147
+ </element>
148
+ </define>
149
+ <define name="erefType">
150
+ <optional>
151
+ <attribute name="normative">
152
+ <data type="boolean"/>
153
+ </attribute>
154
+ </optional>
155
+ <attribute name="citeas"/>
156
+ <optional>
157
+ <attribute name="type">
158
+ <ref name="ReferenceFormat"/>
159
+ </attribute>
160
+ </optional>
161
+ <optional>
162
+ <attribute name="alt"/>
163
+ </optional>
164
+ <optional>
165
+ <attribute name="case">
166
+ <choice>
167
+ <value>capital</value>
168
+ <value>lowercase</value>
169
+ </choice>
170
+ </attribute>
171
+ </optional>
172
+ <optional>
173
+ <attribute name="droploc">
174
+ <data type="boolean"/>
175
+ </attribute>
176
+ </optional>
177
+ <optional>
178
+ <attribute name="style"/>
179
+ </optional>
180
+ <ref name="CitationType"/>
181
+ <oneOrMore>
182
+ <ref name="PureTextElement"/>
183
+ </oneOrMore>
184
+ </define>
185
+ <define name="UlAttr">
186
+ <ref name="BlockAttributes"/>
187
+ </define>
188
+ <define name="UlBody">
189
+ <optional>
190
+ <ref name="tname"/>
191
+ </optional>
192
+ <oneOrMore>
193
+ <ref name="ul_li"/>
194
+ </oneOrMore>
195
+ <zeroOrMore>
196
+ <ref name="note"/>
197
+ </zeroOrMore>
198
+ </define>
199
+ <define name="OlBody">
200
+ <optional>
201
+ <ref name="tname"/>
202
+ </optional>
203
+ <oneOrMore>
204
+ <ref name="li"/>
205
+ </oneOrMore>
206
+ <zeroOrMore>
207
+ <ref name="note"/>
208
+ </zeroOrMore>
209
+ </define>
210
+ <define name="OlAttr">
211
+ <ref name="BlockAttributes"/>
212
+ <optional>
213
+ <attribute name="type">
214
+ <choice>
215
+ <value>roman</value>
216
+ <value>alphabet</value>
217
+ <value>arabic</value>
218
+ <value>roman_upper</value>
219
+ <value>alphabet_upper</value>
220
+ </choice>
221
+ </attribute>
222
+ </optional>
223
+ </define>
224
+ <define name="DlAttr">
225
+ <ref name="BlockAttributes"/>
226
+ <optional>
227
+ <attribute name="key">
228
+ <data type="boolean"/>
229
+ </attribute>
230
+ </optional>
231
+ </define>
232
+ <define name="DlBody">
233
+ <optional>
234
+ <ref name="tname"/>
235
+ </optional>
236
+ <oneOrMore>
237
+ <ref name="dt"/>
238
+ <ref name="dd"/>
239
+ </oneOrMore>
240
+ <zeroOrMore>
241
+ <ref name="note"/>
242
+ </zeroOrMore>
243
+ </define>
244
+ <define name="dt">
245
+ <element name="dt">
246
+ <ref name="OptionalId"/>
247
+ <zeroOrMore>
248
+ <ref name="TextElement"/>
249
+ </zeroOrMore>
250
+ </element>
251
+ </define>
252
+ <define name="ExampleAttr">
253
+ <optional>
254
+ <attribute name="unnumbered">
255
+ <data type="boolean"/>
256
+ </attribute>
257
+ </optional>
258
+ <optional>
259
+ <attribute name="subsequence"/>
260
+ </optional>
261
+ <optional>
262
+ <attribute name="number"/>
263
+ </optional>
264
+ <ref name="BlockAttributes"/>
265
+ </define>
266
+ <define name="ExampleBody">
267
+ <optional>
268
+ <ref name="tname"/>
269
+ </optional>
270
+ <oneOrMore>
271
+ <choice>
272
+ <ref name="formula"/>
273
+ <ref name="ul"/>
274
+ <ref name="ol"/>
275
+ <ref name="dl"/>
276
+ <ref name="quote"/>
277
+ <ref name="sourcecode"/>
278
+ <ref name="paragraph-with-footnote"/>
279
+ <ref name="figure"/>
280
+ </choice>
281
+ </oneOrMore>
282
+ <zeroOrMore>
283
+ <ref name="note"/>
284
+ </zeroOrMore>
285
+ </define>
286
+ <define name="TableAttr">
287
+ <optional>
288
+ <attribute name="unnumbered">
289
+ <data type="boolean"/>
290
+ </attribute>
291
+ </optional>
292
+ <optional>
293
+ <attribute name="number"/>
294
+ </optional>
295
+ <optional>
296
+ <attribute name="subsequence"/>
297
+ </optional>
298
+ <optional>
299
+ <attribute name="alt"/>
300
+ </optional>
301
+ <optional>
302
+ <attribute name="summary"/>
303
+ </optional>
304
+ <optional>
305
+ <attribute name="uri">
306
+ <data type="anyURI"/>
307
+ </attribute>
308
+ </optional>
309
+ <optional>
310
+ <attribute name="width"/>
311
+ </optional>
312
+ <ref name="BlockAttributes"/>
313
+ </define>
314
+ <define name="TableBody">
315
+ <optional>
316
+ <ref name="colgroup"/>
317
+ </optional>
318
+ <optional>
319
+ <ref name="tname"/>
320
+ </optional>
321
+ <optional>
322
+ <ref name="thead"/>
323
+ </optional>
324
+ <ref name="tbody"/>
325
+ <optional>
326
+ <ref name="tfoot"/>
327
+ </optional>
328
+ <optional>
329
+ <ref name="dl"/>
330
+ </optional>
331
+ <zeroOrMore>
332
+ <ref name="table-note"/>
333
+ </zeroOrMore>
334
+ <zeroOrMore>
335
+ <ref name="source"/>
336
+ </zeroOrMore>
337
+ </define>
338
+ <define name="FigureAttr">
339
+ <optional>
340
+ <attribute name="unnumbered">
341
+ <data type="boolean"/>
342
+ </attribute>
343
+ </optional>
344
+ <optional>
345
+ <attribute name="number"/>
346
+ </optional>
347
+ <optional>
348
+ <attribute name="subsequence"/>
349
+ </optional>
350
+ <optional>
351
+ <attribute name="class"/>
352
+ </optional>
353
+ <optional>
354
+ <attribute name="width"/>
355
+ </optional>
356
+ <ref name="BlockAttributes"/>
357
+ </define>
358
+ <define name="FigureBody">
359
+ <optional>
360
+ <ref name="tname"/>
361
+ </optional>
362
+ <choice>
363
+ <ref name="image"/>
364
+ <ref name="video"/>
365
+ <ref name="audio"/>
366
+ <ref name="pre"/>
367
+ <oneOrMore>
368
+ <ref name="paragraph-with-footnote"/>
369
+ </oneOrMore>
370
+ <zeroOrMore>
371
+ <ref name="figure"/>
372
+ </zeroOrMore>
373
+ </choice>
374
+ <zeroOrMore>
375
+ <ref name="fn"/>
376
+ </zeroOrMore>
377
+ <optional>
378
+ <ref name="dl"/>
379
+ </optional>
380
+ <zeroOrMore>
381
+ <ref name="note"/>
382
+ </zeroOrMore>
383
+ <zeroOrMore>
384
+ <ref name="source"/>
385
+ </zeroOrMore>
386
+ </define>
387
+ <define name="source">
388
+ <element name="source">
389
+ <attribute name="status">
390
+ <ref name="SourceStatusType"/>
391
+ </attribute>
392
+ <ref name="origin"/>
393
+ <optional>
394
+ <ref name="modification"/>
395
+ </optional>
396
+ </element>
397
+ </define>
398
+ <define name="SourceAttr">
399
+ <optional>
400
+ <attribute name="unnumbered">
401
+ <data type="boolean"/>
402
+ </attribute>
403
+ </optional>
404
+ <optional>
405
+ <attribute name="number"/>
406
+ </optional>
407
+ <optional>
408
+ <attribute name="subsequence"/>
409
+ </optional>
410
+ <optional>
411
+ <attribute name="lang"/>
412
+ </optional>
413
+ <ref name="BlockAttributes"/>
414
+ <optional>
415
+ <attribute name="linenums">
416
+ <data type="boolean"/>
417
+ </attribute>
418
+ </optional>
419
+ </define>
420
+ <define name="SourceBody">
421
+ <optional>
422
+ <ref name="tname"/>
423
+ </optional>
424
+ <oneOrMore>
425
+ <choice>
426
+ <text/>
427
+ <ref name="callout"/>
428
+ <ref name="xref"/>
429
+ <ref name="eref"/>
430
+ </choice>
431
+ </oneOrMore>
432
+ <zeroOrMore>
433
+ <ref name="annotation"/>
434
+ </zeroOrMore>
435
+ <zeroOrMore>
436
+ <ref name="note"/>
437
+ </zeroOrMore>
438
+ </define>
439
+ <define name="FormulaAttr">
440
+ <optional>
441
+ <attribute name="unnumbered">
442
+ <data type="boolean"/>
443
+ </attribute>
444
+ </optional>
445
+ <optional>
446
+ <attribute name="number"/>
447
+ </optional>
448
+ <optional>
449
+ <attribute name="subsequence"/>
450
+ </optional>
451
+ <optional>
452
+ <attribute name="inequality">
453
+ <data type="boolean"/>
454
+ </attribute>
455
+ </optional>
456
+ <ref name="BlockAttributes"/>
457
+ </define>
458
+ <define name="ParagraphAttrs">
459
+ <optional>
460
+ <attribute name="align">
461
+ <ref name="Alignments"/>
462
+ </attribute>
463
+ </optional>
464
+ <optional>
465
+ <attribute name="type"/>
466
+ </optional>
467
+ <ref name="BlockAttributes"/>
468
+ </define>
469
+ <define name="QuoteAttr">
470
+ <optional>
471
+ <attribute name="alignment">
472
+ <ref name="Alignments"/>
473
+ </attribute>
474
+ </optional>
475
+ <ref name="BlockAttributes"/>
476
+ </define>
477
+ <!-- TitleType = text -->
478
+ <define name="sections">
479
+ <element name="sections">
480
+ <oneOrMore>
481
+ <choice>
482
+ <ref name="clause"/>
483
+ <ref name="terms"/>
484
+ <ref name="term-clause"/>
485
+ <ref name="definitions"/>
486
+ <ref name="floating-title"/>
487
+ </choice>
488
+ </oneOrMore>
489
+ </element>
490
+ </define>
491
+ <define name="references">
492
+ <element name="references">
493
+ <optional>
494
+ <attribute name="id">
495
+ <data type="ID"/>
496
+ </attribute>
497
+ </optional>
498
+ <optional>
499
+ <attribute name="obligation">
500
+ <choice>
501
+ <value>normative</value>
502
+ <value>informative</value>
503
+ </choice>
504
+ </attribute>
505
+ </optional>
506
+ <attribute name="normative">
507
+ <data type="boolean"/>
508
+ </attribute>
509
+ <optional>
510
+ <ref name="section-title"/>
511
+ </optional>
512
+ <zeroOrMore>
513
+ <ref name="BasicBlock"/>
514
+ </zeroOrMore>
515
+ <zeroOrMore>
516
+ <ref name="doc_bibitem"/>
517
+ <zeroOrMore>
518
+ <ref name="note"/>
519
+ </zeroOrMore>
520
+ </zeroOrMore>
521
+ <zeroOrMore>
522
+ <ref name="references"/>
523
+ </zeroOrMore>
524
+ </element>
525
+ </define>
526
+ <define name="NoteAttr">
527
+ <optional>
528
+ <attribute name="unnumbered">
529
+ <data type="boolean"/>
530
+ </attribute>
531
+ </optional>
532
+ <optional>
533
+ <attribute name="number"/>
534
+ </optional>
535
+ <optional>
536
+ <attribute name="subsequence"/>
537
+ </optional>
538
+ <optional>
539
+ <attribute name="type"/>
540
+ </optional>
541
+ <optional>
542
+ <attribute name="coverpage">
543
+ <data type="boolean"/>
544
+ </attribute>
545
+ </optional>
546
+ <optional>
547
+ <attribute name="notag">
548
+ <data type="boolean"/>
549
+ </attribute>
550
+ </optional>
551
+ <ref name="BlockAttributes"/>
552
+ </define>
553
+ <define name="NoteBody">
554
+ <oneOrMore>
555
+ <choice>
556
+ <ref name="paragraph"/>
557
+ <ref name="ul"/>
558
+ <ref name="ol"/>
559
+ <ref name="dl"/>
560
+ <ref name="formula"/>
561
+ <ref name="quote"/>
562
+ <ref name="sourcecode"/>
563
+ </choice>
564
+ </oneOrMore>
565
+ </define>
566
+ <define name="Basic-Section">
567
+ <optional>
568
+ <attribute name="id">
569
+ <data type="ID"/>
570
+ </attribute>
571
+ </optional>
572
+ <optional>
573
+ <attribute name="language"/>
574
+ </optional>
575
+ <optional>
576
+ <attribute name="script"/>
577
+ </optional>
578
+ <optional>
579
+ <attribute name="obligation">
580
+ <choice>
581
+ <value>normative</value>
582
+ <value>informative</value>
583
+ </choice>
584
+ </attribute>
585
+ </optional>
586
+ <optional>
587
+ <ref name="section-title"/>
588
+ </optional>
589
+ <oneOrMore>
590
+ <ref name="BasicBlock"/>
591
+ </oneOrMore>
592
+ </define>
593
+ <define name="LiBody">
594
+ <oneOrMore>
595
+ <ref name="BasicBlock"/>
596
+ </oneOrMore>
597
+ </define>
598
+ <!-- exclude figures? -->
599
+ <define name="dd">
600
+ <element name="dd">
601
+ <zeroOrMore>
602
+ <!-- exclude figures? -->
603
+ <ref name="BasicBlock"/>
604
+ </zeroOrMore>
605
+ </element>
606
+ </define>
607
+ <define name="thead">
608
+ <element name="thead">
609
+ <oneOrMore>
610
+ <ref name="tr"/>
611
+ </oneOrMore>
612
+ </element>
613
+ </define>
614
+ <define name="TdBody">
615
+ <choice>
616
+ <zeroOrMore>
617
+ <choice>
618
+ <ref name="TextElement"/>
619
+ <ref name="fn"/>
620
+ </choice>
621
+ </zeroOrMore>
622
+ <oneOrMore>
623
+ <choice>
624
+ <ref name="paragraph-with-footnote"/>
625
+ <ref name="dl"/>
626
+ <ref name="ul"/>
627
+ <ref name="ol"/>
628
+ <ref name="figure"/>
629
+ </choice>
630
+ </oneOrMore>
631
+ </choice>
632
+ </define>
633
+ <define name="ThBody">
634
+ <choice>
635
+ <zeroOrMore>
636
+ <choice>
637
+ <ref name="TextElement"/>
638
+ <ref name="fn"/>
639
+ </choice>
640
+ </zeroOrMore>
641
+ <oneOrMore>
642
+ <ref name="paragraph-with-footnote"/>
643
+ </oneOrMore>
644
+ </choice>
645
+ </define>
646
+ <define name="table-note">
647
+ <element name="note">
648
+ <optional>
649
+ <attribute name="id">
650
+ <data type="ID"/>
651
+ </attribute>
652
+ </optional>
653
+ <ref name="paragraph"/>
654
+ </element>
655
+ </define>
656
+ <define name="stem">
657
+ <element name="stem">
658
+ <attribute name="type">
659
+ <choice>
660
+ <value>MathML</value>
661
+ <value>AsciiMath</value>
662
+ <value>LatexMath</value>
663
+ </choice>
664
+ </attribute>
665
+ <attribute name="block">
666
+ <data type="boolean"/>
667
+ </attribute>
668
+ <oneOrMore>
669
+ <choice>
670
+ <text/>
671
+ <ref name="AnyElement"/>
672
+ </choice>
673
+ </oneOrMore>
674
+ </element>
675
+ </define>
676
+ <define name="em">
677
+ <element name="em">
678
+ <zeroOrMore>
679
+ <choice>
680
+ <ref name="PureTextElement"/>
681
+ <ref name="stem"/>
682
+ <ref name="index"/>
683
+ <ref name="index-xref"/>
684
+ <ref name="eref"/>
685
+ <ref name="erefstack"/>
686
+ <ref name="xref"/>
687
+ <ref name="hyperlink"/>
688
+ </choice>
689
+ </zeroOrMore>
690
+ </element>
691
+ </define>
692
+ <define name="strong">
693
+ <element name="strong">
694
+ <zeroOrMore>
695
+ <choice>
696
+ <ref name="PureTextElement"/>
697
+ <ref name="stem"/>
698
+ <ref name="index"/>
699
+ <ref name="index-xref"/>
700
+ <ref name="eref"/>
701
+ <ref name="erefstack"/>
702
+ <ref name="xref"/>
703
+ <ref name="hyperlink"/>
704
+ </choice>
705
+ </zeroOrMore>
706
+ </element>
707
+ </define>
708
+ <define name="tt">
709
+ <element name="tt">
710
+ <zeroOrMore>
711
+ <choice>
712
+ <ref name="PureTextElement"/>
713
+ <ref name="index"/>
714
+ <ref name="index-xref"/>
715
+ <ref name="eref"/>
716
+ <ref name="erefstack"/>
717
+ <ref name="xref"/>
718
+ <ref name="hyperlink"/>
719
+ </choice>
720
+ </zeroOrMore>
721
+ </element>
722
+ </define>
723
+ <define name="keyword">
724
+ <element name="keyword">
725
+ <zeroOrMore>
726
+ <choice>
727
+ <ref name="PureTextElement"/>
728
+ <ref name="index"/>
729
+ <ref name="index-xref"/>
730
+ </choice>
731
+ </zeroOrMore>
732
+ </element>
733
+ </define>
734
+ <define name="strike">
735
+ <element name="strike">
736
+ <zeroOrMore>
737
+ <choice>
738
+ <ref name="PureTextElement"/>
739
+ <ref name="index"/>
740
+ <ref name="index-xref"/>
741
+ </choice>
742
+ </zeroOrMore>
743
+ </element>
744
+ </define>
745
+ <define name="underline">
746
+ <element name="underline">
747
+ <zeroOrMore>
748
+ <choice>
749
+ <ref name="PureTextElement"/>
750
+ <ref name="index"/>
751
+ <ref name="index-xref"/>
752
+ </choice>
753
+ </zeroOrMore>
754
+ </element>
755
+ </define>
756
+ <define name="smallcap">
757
+ <element name="smallcap">
758
+ <zeroOrMore>
759
+ <choice>
760
+ <ref name="PureTextElement"/>
761
+ <ref name="index"/>
762
+ <ref name="index-xref"/>
763
+ </choice>
764
+ </zeroOrMore>
765
+ </element>
766
+ </define>
767
+ <define name="sub">
768
+ <element name="sub">
769
+ <zeroOrMore>
770
+ <choice>
771
+ <ref name="PureTextElement"/>
772
+ <ref name="stem"/>
773
+ </choice>
774
+ </zeroOrMore>
775
+ </element>
776
+ </define>
777
+ <define name="sup">
778
+ <element name="sup">
779
+ <zeroOrMore>
780
+ <choice>
781
+ <ref name="PureTextElement"/>
782
+ <ref name="stem"/>
783
+ </choice>
784
+ </zeroOrMore>
785
+ </element>
786
+ </define>
787
+ <define name="pagebreak">
788
+ <element name="pagebreak">
789
+ <optional>
790
+ <attribute name="orientation">
791
+ <choice>
792
+ <value>landscape</value>
793
+ <value>portrait</value>
794
+ </choice>
795
+ </attribute>
796
+ </optional>
797
+ </element>
798
+ </define>
799
+ </include>
800
+ <!-- end overrides -->
801
+ <define name="doc_bibitem">
802
+ <element name="bibitem">
803
+ <attribute name="id">
804
+ <data type="ID"/>
805
+ </attribute>
806
+ <optional>
807
+ <attribute name="hidden">
808
+ <data type="boolean"/>
809
+ </attribute>
810
+ </optional>
811
+ <optional>
812
+ <attribute name="suppress_identifier">
813
+ <data type="boolean"/>
814
+ </attribute>
815
+ </optional>
816
+ <ref name="ReducedBibliographicItem"/>
817
+ </element>
818
+ </define>
819
+ <define name="image" combine="choice">
820
+ <element name="svg">
821
+ <oneOrMore>
822
+ <choice>
823
+ <text/>
824
+ <ref name="AnyElement"/>
825
+ </choice>
826
+ </oneOrMore>
827
+ </element>
828
+ </define>
829
+ <define name="BasicBlock" combine="choice">
830
+ <ref name="columnbreak"/>
831
+ </define>
832
+ <define name="columnbreak">
833
+ <element name="columnbreak">
834
+ <empty/>
835
+ </element>
836
+ </define>
837
+ <define name="MultilingualRenderingType">
838
+ <choice>
839
+ <value>common</value>
840
+ <value>all-columns</value>
841
+ <value>parallel</value>
842
+ <value>tag</value>
843
+ </choice>
844
+ </define>
845
+ <define name="colgroup">
846
+ <element name="colgroup">
847
+ <oneOrMore>
848
+ <ref name="col"/>
849
+ </oneOrMore>
850
+ </element>
851
+ </define>
852
+ <define name="col">
853
+ <element name="col">
854
+ <attribute name="width"/>
855
+ </element>
856
+ </define>
857
+ <define name="BibItemType" combine="choice">
858
+ <value>internal</value>
859
+ </define>
860
+ <define name="TextElement" combine="choice">
861
+ <choice>
862
+ <ref name="concept"/>
863
+ <ref name="add"/>
864
+ <ref name="del"/>
865
+ <ref name="span"/>
866
+ <ref name="erefstack"/>
867
+ <ref name="date_inline"/>
868
+ </choice>
869
+ </define>
870
+ <define name="PureTextElement" combine="choice">
871
+ <ref name="passthrough_inline"/>
872
+ </define>
873
+ <define name="passthrough_inline">
874
+ <element name="passthrough">
875
+ <optional>
876
+ <attribute name="formats"/>
877
+ </optional>
878
+ <text/>
879
+ </element>
880
+ </define>
881
+ <define name="add">
882
+ <element name="add">
883
+ <choice>
884
+ <ref name="PureTextElement"/>
885
+ <ref name="eref"/>
886
+ <ref name="erefstack"/>
887
+ <ref name="stem"/>
888
+ <ref name="keyword"/>
889
+ <ref name="xref"/>
890
+ <ref name="hyperlink"/>
891
+ <ref name="index"/>
892
+ <ref name="index-xref"/>
893
+ </choice>
894
+ </element>
895
+ </define>
896
+ <define name="del">
897
+ <element name="del">
898
+ <choice>
899
+ <ref name="PureTextElement"/>
900
+ <ref name="eref"/>
901
+ <ref name="erefstack"/>
902
+ <ref name="stem"/>
903
+ <ref name="keyword"/>
904
+ <ref name="xref"/>
905
+ <ref name="hyperlink"/>
906
+ <ref name="index"/>
907
+ <ref name="index-xref"/>
908
+ </choice>
909
+ </element>
910
+ </define>
911
+ <define name="span">
912
+ <element name="span">
913
+ <optional>
914
+ <attribute name="class"/>
915
+ </optional>
916
+ <optional>
917
+ <attribute name="style"/>
918
+ </optional>
919
+ <optional>
920
+ <attribute name="custom-charset"/>
921
+ </optional>
922
+ <oneOrMore>
923
+ <ref name="TextElement"/>
924
+ </oneOrMore>
925
+ </element>
926
+ </define>
927
+ <define name="date_inline">
928
+ <element name="date">
929
+ <attribute name="value"/>
930
+ <optional>
931
+ <attribute name="format"/>
932
+ </optional>
933
+ <optional>
934
+ <attribute name="language"/>
935
+ </optional>
936
+ <optional>
937
+ <attribute name="script"/>
938
+ </optional>
939
+ <optional>
940
+ <attribute name="locale"/>
941
+ </optional>
942
+ </element>
943
+ </define>
944
+ <define name="concept">
945
+ <element name="concept">
946
+ <optional>
947
+ <attribute name="bold">
948
+ <data type="boolean"/>
949
+ </attribute>
950
+ </optional>
951
+ <optional>
952
+ <attribute name="ital">
953
+ <data type="boolean"/>
954
+ </attribute>
955
+ </optional>
956
+ <optional>
957
+ <attribute name="ref">
958
+ <data type="boolean"/>
959
+ </attribute>
960
+ </optional>
961
+ <optional>
962
+ <attribute name="linkmention">
963
+ <data type="boolean"/>
964
+ </attribute>
965
+ </optional>
966
+ <optional>
967
+ <attribute name="linkref">
968
+ <data type="boolean"/>
969
+ </attribute>
970
+ </optional>
971
+ <optional>
972
+ <element name="refterm">
973
+ <zeroOrMore>
974
+ <choice>
975
+ <ref name="PureTextElement"/>
976
+ <ref name="stem"/>
977
+ <ref name="index"/>
978
+ <ref name="index-xref"/>
979
+ </choice>
980
+ </zeroOrMore>
981
+ </element>
982
+ </optional>
983
+ <optional>
984
+ <element name="renderterm">
985
+ <zeroOrMore>
986
+ <choice>
987
+ <ref name="PureTextElement"/>
988
+ <ref name="stem"/>
989
+ <ref name="index"/>
990
+ <ref name="index-xref"/>
991
+ </choice>
992
+ </zeroOrMore>
993
+ </element>
994
+ </optional>
995
+ <choice>
996
+ <ref name="eref"/>
997
+ <ref name="erefstack"/>
998
+ <ref name="xref"/>
999
+ <ref name="termref"/>
1000
+ </choice>
1001
+ </element>
1002
+ </define>
1003
+ <define name="BasicBlock" combine="choice">
1004
+ <choice>
1005
+ <ref name="requirement"/>
1006
+ <ref name="recommendation"/>
1007
+ <ref name="permission"/>
1008
+ <ref name="imagemap"/>
1009
+ <ref name="svgmap"/>
1010
+ <ref name="inputform"/>
1011
+ <ref name="toc"/>
1012
+ <ref name="passthrough"/>
1013
+ </choice>
1014
+ </define>
1015
+ <define name="toc">
1016
+ <element name="toc">
1017
+ <ref name="ul"/>
1018
+ </element>
1019
+ </define>
1020
+ <define name="passthrough">
1021
+ <element name="passthrough">
1022
+ <optional>
1023
+ <attribute name="formats"/>
1024
+ </optional>
1025
+ <text/>
1026
+ </element>
1027
+ </define>
1028
+ <define name="inputform">
1029
+ <element name="form">
1030
+ <attribute name="id">
1031
+ <data type="ID"/>
1032
+ </attribute>
1033
+ <attribute name="name"/>
1034
+ <attribute name="action"/>
1035
+ <optional>
1036
+ <attribute name="class"/>
1037
+ </optional>
1038
+ <ref name="BlockAttributes"/>
1039
+ <zeroOrMore>
1040
+ <choice>
1041
+ <ref name="TextElement"/>
1042
+ <ref name="FormInput"/>
1043
+ </choice>
1044
+ </zeroOrMore>
1045
+ </element>
1046
+ </define>
1047
+ <define name="FormInput">
1048
+ <choice>
1049
+ <ref name="input"/>
1050
+ <ref name="formlabel"/>
1051
+ <ref name="select"/>
1052
+ <ref name="textarea"/>
1053
+ </choice>
1054
+ </define>
1055
+ <define name="InputType">
1056
+ <choice>
1057
+ <value>button</value>
1058
+ <value>checkbox</value>
1059
+ <value>date</value>
1060
+ <value>file</value>
1061
+ <value>password</value>
1062
+ <value>radio</value>
1063
+ <value>submit</value>
1064
+ <value>text</value>
1065
+ </choice>
1066
+ </define>
1067
+ <define name="input">
1068
+ <element name="input">
1069
+ <attribute name="type">
1070
+ <ref name="InputType"/>
1071
+ </attribute>
1072
+ <optional>
1073
+ <attribute name="checked">
1074
+ <data type="boolean"/>
1075
+ </attribute>
1076
+ </optional>
1077
+ <optional>
1078
+ <attribute name="disabled">
1079
+ <data type="boolean"/>
1080
+ </attribute>
1081
+ </optional>
1082
+ <optional>
1083
+ <attribute name="readonly">
1084
+ <data type="boolean"/>
1085
+ </attribute>
1086
+ </optional>
1087
+ <optional>
1088
+ <attribute name="maxlength">
1089
+ <data type="int"/>
1090
+ </attribute>
1091
+ </optional>
1092
+ <optional>
1093
+ <attribute name="minlength">
1094
+ <data type="int"/>
1095
+ </attribute>
1096
+ </optional>
1097
+ <optional>
1098
+ <attribute name="name"/>
1099
+ </optional>
1100
+ <optional>
1101
+ <attribute name="value"/>
1102
+ </optional>
1103
+ <optional>
1104
+ <attribute name="id">
1105
+ <data type="ID"/>
1106
+ </attribute>
1107
+ </optional>
1108
+ </element>
1109
+ </define>
1110
+ <define name="formlabel">
1111
+ <element name="label">
1112
+ <attribute name="for">
1113
+ <data type="IDREF"/>
1114
+ </attribute>
1115
+ <zeroOrMore>
1116
+ <ref name="PureTextElement"/>
1117
+ </zeroOrMore>
1118
+ </element>
1119
+ </define>
1120
+ <define name="select">
1121
+ <element name="select">
1122
+ <optional>
1123
+ <attribute name="name"/>
1124
+ </optional>
1125
+ <optional>
1126
+ <attribute name="value"/>
1127
+ </optional>
1128
+ <optional>
1129
+ <attribute name="id">
1130
+ <data type="ID"/>
1131
+ </attribute>
1132
+ </optional>
1133
+ <optional>
1134
+ <attribute name="disabled">
1135
+ <data type="boolean"/>
1136
+ </attribute>
1137
+ </optional>
1138
+ <optional>
1139
+ <attribute name="multiple">
1140
+ <data type="boolean"/>
1141
+ </attribute>
1142
+ </optional>
1143
+ <optional>
1144
+ <attribute name="size">
1145
+ <data type="int"/>
1146
+ </attribute>
1147
+ </optional>
1148
+ <oneOrMore>
1149
+ <ref name="option"/>
1150
+ </oneOrMore>
1151
+ </element>
1152
+ </define>
1153
+ <define name="option">
1154
+ <element name="option">
1155
+ <optional>
1156
+ <attribute name="disabled">
1157
+ <data type="boolean"/>
1158
+ </attribute>
1159
+ </optional>
1160
+ <optional>
1161
+ <attribute name="value"/>
1162
+ </optional>
1163
+ <zeroOrMore>
1164
+ <ref name="PureTextElement"/>
1165
+ </zeroOrMore>
1166
+ </element>
1167
+ </define>
1168
+ <define name="textarea">
1169
+ <element name="textarea">
1170
+ <optional>
1171
+ <attribute name="name"/>
1172
+ </optional>
1173
+ <optional>
1174
+ <attribute name="value"/>
1175
+ </optional>
1176
+ <optional>
1177
+ <attribute name="id">
1178
+ <data type="ID"/>
1179
+ </attribute>
1180
+ </optional>
1181
+ <optional>
1182
+ <attribute name="rows">
1183
+ <data type="int"/>
1184
+ </attribute>
1185
+ </optional>
1186
+ <optional>
1187
+ <attribute name="cols">
1188
+ <data type="int"/>
1189
+ </attribute>
1190
+ </optional>
1191
+ </element>
1192
+ </define>
1193
+ <define name="bibliography">
1194
+ <element name="bibliography">
1195
+ <oneOrMore>
1196
+ <choice>
1197
+ <ref name="references"/>
1198
+ <ref name="reference-clause"/>
1199
+ </choice>
1200
+ </oneOrMore>
1201
+ </element>
1202
+ </define>
1203
+ <define name="Section-Attributes">
1204
+ <optional>
1205
+ <attribute name="id">
1206
+ <data type="ID"/>
1207
+ </attribute>
1208
+ </optional>
1209
+ <optional>
1210
+ <attribute name="language"/>
1211
+ </optional>
1212
+ <optional>
1213
+ <attribute name="script"/>
1214
+ </optional>
1215
+ <optional>
1216
+ <attribute name="inline-header">
1217
+ <data type="boolean"/>
1218
+ </attribute>
1219
+ </optional>
1220
+ <optional>
1221
+ <attribute name="number"/>
1222
+ </optional>
1223
+ <optional>
1224
+ <attribute name="branch-number"/>
1225
+ </optional>
1226
+ <optional>
1227
+ <attribute name="obligation">
1228
+ <choice>
1229
+ <value>normative</value>
1230
+ <value>informative</value>
1231
+ </choice>
1232
+ </attribute>
1233
+ </optional>
1234
+ </define>
1235
+ <define name="reference-clause">
1236
+ <element name="clause">
1237
+ <ref name="Section-Attributes"/>
1238
+ <optional>
1239
+ <ref name="section-title"/>
1240
+ </optional>
1241
+ <zeroOrMore>
1242
+ <ref name="BasicBlock"/>
1243
+ </zeroOrMore>
1244
+ <choice>
1245
+ <oneOrMore>
1246
+ <ref name="reference-clause"/>
1247
+ </oneOrMore>
1248
+ <zeroOrMore>
1249
+ <ref name="references"/>
1250
+ </zeroOrMore>
1251
+ </choice>
1252
+ </element>
1253
+ </define>
1254
+ <define name="Root-Attributes">
1255
+ <attribute name="version"/>
1256
+ <attribute name="schema-version"/>
1257
+ <attribute name="type">
1258
+ <choice>
1259
+ <value>semantic</value>
1260
+ <value>presentation</value>
1261
+ </choice>
1262
+ </attribute>
1263
+ </define>
1264
+ <define name="standard-document">
1265
+ <element name="standard-document">
1266
+ <ref name="Root-Attributes"/>
1267
+ <ref name="bibdata"/>
1268
+ <optional>
1269
+ <ref name="misccontainer"/>
1270
+ </optional>
1271
+ <optional>
1272
+ <ref name="boilerplate"/>
1273
+ </optional>
1274
+ <optional>
1275
+ <ref name="preface"/>
1276
+ </optional>
1277
+ <ref name="sections"/>
1278
+ <zeroOrMore>
1279
+ <ref name="annex"/>
1280
+ </zeroOrMore>
1281
+ <optional>
1282
+ <ref name="bibliography"/>
1283
+ </optional>
1284
+ <zeroOrMore>
1285
+ <ref name="indexsect"/>
1286
+ </zeroOrMore>
1287
+ <optional>
1288
+ <ref name="colophon"/>
1289
+ </optional>
1290
+ </element>
1291
+ </define>
1292
+ <define name="misccontainer">
1293
+ <element name="metanorma-extension">
1294
+ <oneOrMore>
1295
+ <ref name="AnyElement"/>
1296
+ </oneOrMore>
1297
+ </element>
1298
+ </define>
1299
+ <define name="preface">
1300
+ <element name="preface">
1301
+ <oneOrMore>
1302
+ <choice>
1303
+ <ref name="content"/>
1304
+ <ref name="abstract"/>
1305
+ <ref name="foreword"/>
1306
+ <ref name="introduction"/>
1307
+ <ref name="acknowledgements"/>
1308
+ </choice>
1309
+ </oneOrMore>
1310
+ </element>
1311
+ </define>
1312
+ <define name="colophon">
1313
+ <element name="colophon">
1314
+ <oneOrMore>
1315
+ <ref name="content"/>
1316
+ </oneOrMore>
1317
+ </element>
1318
+ </define>
1319
+ <define name="foreword">
1320
+ <element name="foreword">
1321
+ <ref name="Content-Section"/>
1322
+ </element>
1323
+ </define>
1324
+ <define name="introduction">
1325
+ <element name="introduction">
1326
+ <ref name="Content-Section"/>
1327
+ </element>
1328
+ </define>
1329
+ <define name="indexsect">
1330
+ <element name="indexsect">
1331
+ <ref name="Content-Section"/>
1332
+ </element>
1333
+ </define>
1334
+ <define name="boilerplate">
1335
+ <element name="boilerplate">
1336
+ <optional>
1337
+ <ref name="copyright-statement"/>
1338
+ </optional>
1339
+ <optional>
1340
+ <ref name="license-statement"/>
1341
+ </optional>
1342
+ <optional>
1343
+ <ref name="legal-statement"/>
1344
+ </optional>
1345
+ <optional>
1346
+ <ref name="feedback-statement"/>
1347
+ </optional>
1348
+ </element>
1349
+ </define>
1350
+ <define name="copyright-statement">
1351
+ <element name="copyright-statement">
1352
+ <ref name="Content-Section"/>
1353
+ </element>
1354
+ </define>
1355
+ <define name="license-statement">
1356
+ <element name="license-statement">
1357
+ <ref name="Content-Section"/>
1358
+ </element>
1359
+ </define>
1360
+ <define name="legal-statement">
1361
+ <element name="legal-statement">
1362
+ <ref name="Content-Section"/>
1363
+ </element>
1364
+ </define>
1365
+ <define name="feedback-statement">
1366
+ <element name="feedback-statement">
1367
+ <ref name="Content-Section"/>
1368
+ </element>
1369
+ </define>
1370
+ <define name="definitions">
1371
+ <element name="definitions">
1372
+ <optional>
1373
+ <attribute name="id">
1374
+ <data type="ID"/>
1375
+ </attribute>
1376
+ </optional>
1377
+ <optional>
1378
+ <attribute name="language"/>
1379
+ </optional>
1380
+ <optional>
1381
+ <attribute name="script"/>
1382
+ </optional>
1383
+ <optional>
1384
+ <attribute name="type"/>
1385
+ </optional>
1386
+ <optional>
1387
+ <attribute name="obligation">
1388
+ <choice>
1389
+ <value>normative</value>
1390
+ <value>informative</value>
1391
+ </choice>
1392
+ </attribute>
1393
+ </optional>
1394
+ <optional>
1395
+ <ref name="section-title"/>
1396
+ </optional>
1397
+ <oneOrMore>
1398
+ <zeroOrMore>
1399
+ <ref name="BasicBlock"/>
1400
+ </zeroOrMore>
1401
+ <ref name="dl"/>
1402
+ </oneOrMore>
1403
+ </element>
1404
+ </define>
1405
+ <define name="content">
1406
+ <element name="clause">
1407
+ <ref name="Content-Section"/>
1408
+ </element>
1409
+ </define>
1410
+ <define name="abstract">
1411
+ <element name="abstract">
1412
+ <ref name="Content-Section"/>
1413
+ </element>
1414
+ </define>
1415
+ <define name="acknowledgements">
1416
+ <element name="acknowledgements">
1417
+ <ref name="Content-Section"/>
1418
+ </element>
1419
+ </define>
1420
+ <define name="content-subsection">
1421
+ <element name="clause">
1422
+ <ref name="Content-Section"/>
1423
+ </element>
1424
+ </define>
1425
+ <define name="Content-Section">
1426
+ <ref name="Section-Attributes"/>
1427
+ <optional>
1428
+ <attribute name="type"/>
1429
+ </optional>
1430
+ <optional>
1431
+ <ref name="section-title"/>
1432
+ </optional>
1433
+ <group>
1434
+ <zeroOrMore>
1435
+ <ref name="BasicBlock"/>
1436
+ </zeroOrMore>
1437
+ <zeroOrMore>
1438
+ <ref name="content-subsection"/>
1439
+ </zeroOrMore>
1440
+ </group>
1441
+ </define>
1442
+ <define name="clause">
1443
+ <element name="clause">
1444
+ <ref name="Clause-Section"/>
1445
+ </element>
1446
+ </define>
1447
+ <define name="Clause-Section">
1448
+ <ref name="Section-Attributes"/>
1449
+ <optional>
1450
+ <attribute name="type"/>
1451
+ </optional>
1452
+ <optional>
1453
+ <ref name="section-title"/>
1454
+ </optional>
1455
+ <choice>
1456
+ <choice>
1457
+ <oneOrMore>
1458
+ <ref name="BasicBlock"/>
1459
+ </oneOrMore>
1460
+ <ref name="amend"/>
1461
+ </choice>
1462
+ <oneOrMore>
1463
+ <choice>
1464
+ <ref name="clause-subsection"/>
1465
+ <ref name="terms"/>
1466
+ <ref name="definitions"/>
1467
+ <ref name="floating-title"/>
1468
+ </choice>
1469
+ </oneOrMore>
1470
+ </choice>
1471
+ </define>
1472
+ <define name="Annex-Section">
1473
+ <ref name="Annex-Section-Attr"/>
1474
+ <ref name="Annex-Section-Body"/>
1475
+ </define>
1476
+ <define name="Annex-Section-Attr">
1477
+ <optional>
1478
+ <attribute name="id">
1479
+ <data type="ID"/>
1480
+ </attribute>
1481
+ </optional>
1482
+ <optional>
1483
+ <attribute name="language"/>
1484
+ </optional>
1485
+ <optional>
1486
+ <attribute name="script"/>
1487
+ </optional>
1488
+ <optional>
1489
+ <attribute name="inline-header">
1490
+ <data type="boolean"/>
1491
+ </attribute>
1492
+ </optional>
1493
+ <optional>
1494
+ <attribute name="obligation">
1495
+ <choice>
1496
+ <value>normative</value>
1497
+ <value>informative</value>
1498
+ </choice>
1499
+ </attribute>
1500
+ </optional>
1501
+ <optional>
1502
+ <attribute name="type"/>
1503
+ </optional>
1504
+ </define>
1505
+ <define name="Annex-Section-Body">
1506
+ <optional>
1507
+ <ref name="section-title"/>
1508
+ </optional>
1509
+ <group>
1510
+ <zeroOrMore>
1511
+ <ref name="BasicBlock"/>
1512
+ </zeroOrMore>
1513
+ <zeroOrMore>
1514
+ <choice>
1515
+ <ref name="annex-subsection"/>
1516
+ <ref name="terms"/>
1517
+ <ref name="definitions"/>
1518
+ <ref name="references"/>
1519
+ <ref name="floating-title"/>
1520
+ </choice>
1521
+ </zeroOrMore>
1522
+ </group>
1523
+ </define>
1524
+ <define name="clause-subsection">
1525
+ <element name="clause">
1526
+ <ref name="Clause-Section"/>
1527
+ </element>
1528
+ </define>
1529
+ <define name="annex-subsection">
1530
+ <element name="clause">
1531
+ <ref name="Annex-Section"/>
1532
+ </element>
1533
+ </define>
1534
+ <define name="annex">
1535
+ <element name="annex">
1536
+ <ref name="Annex-Section"/>
1537
+ </element>
1538
+ </define>
1539
+ <define name="terms">
1540
+ <element name="terms">
1541
+ <ref name="Section-Attributes"/>
1542
+ <optional>
1543
+ <attribute name="type"/>
1544
+ </optional>
1545
+ <optional>
1546
+ <ref name="section-title"/>
1547
+ </optional>
1548
+ <zeroOrMore>
1549
+ <ref name="BasicBlock"/>
1550
+ </zeroOrMore>
1551
+ <choice>
1552
+ <oneOrMore>
1553
+ <choice>
1554
+ <ref name="term"/>
1555
+ <ref name="terms"/>
1556
+ </choice>
1557
+ </oneOrMore>
1558
+ <group>
1559
+ <zeroOrMore>
1560
+ <ref name="terms"/>
1561
+ </zeroOrMore>
1562
+ <optional>
1563
+ <ref name="definitions"/>
1564
+ </optional>
1565
+ </group>
1566
+ </choice>
1567
+ </element>
1568
+ </define>
1569
+ <define name="term">
1570
+ <element name="term">
1571
+ <optional>
1572
+ <attribute name="id">
1573
+ <data type="ID"/>
1574
+ </attribute>
1575
+ </optional>
1576
+ <optional>
1577
+ <attribute name="language"/>
1578
+ </optional>
1579
+ <optional>
1580
+ <attribute name="script"/>
1581
+ </optional>
1582
+ <ref name="BlockAttributes"/>
1583
+ <oneOrMore>
1584
+ <ref name="preferred"/>
1585
+ </oneOrMore>
1586
+ <zeroOrMore>
1587
+ <ref name="admitted"/>
1588
+ </zeroOrMore>
1589
+ <zeroOrMore>
1590
+ <ref name="deprecates"/>
1591
+ </zeroOrMore>
1592
+ <zeroOrMore>
1593
+ <ref name="related"/>
1594
+ </zeroOrMore>
1595
+ <optional>
1596
+ <ref name="termdomain"/>
1597
+ </optional>
1598
+ <optional>
1599
+ <ref name="termsubject"/>
1600
+ </optional>
1601
+ <oneOrMore>
1602
+ <ref name="termdefinition"/>
1603
+ </oneOrMore>
1604
+ <zeroOrMore>
1605
+ <ref name="termnote"/>
1606
+ </zeroOrMore>
1607
+ <zeroOrMore>
1608
+ <ref name="termexample"/>
1609
+ </zeroOrMore>
1610
+ <zeroOrMore>
1611
+ <ref name="termsource"/>
1612
+ </zeroOrMore>
1613
+ </element>
1614
+ </define>
1615
+ <define name="preferred">
1616
+ <element name="preferred">
1617
+ <ref name="Designation"/>
1618
+ </element>
1619
+ </define>
1620
+ <define name="admitted">
1621
+ <element name="admitted">
1622
+ <ref name="Designation"/>
1623
+ </element>
1624
+ </define>
1625
+ <define name="related">
1626
+ <element name="related">
1627
+ <attribute name="type">
1628
+ <ref name="RelatedTermType"/>
1629
+ </attribute>
1630
+ <element name="preferred">
1631
+ <ref name="Designation"/>
1632
+ </element>
1633
+ <choice>
1634
+ <ref name="eref"/>
1635
+ <ref name="erefstack"/>
1636
+ <ref name="xref"/>
1637
+ <ref name="termref"/>
1638
+ </choice>
1639
+ </element>
1640
+ </define>
1641
+ <define name="RelatedTermType">
1642
+ <choice>
1643
+ <value>deprecates</value>
1644
+ <value>supersedes</value>
1645
+ <value>narrower</value>
1646
+ <value>broader</value>
1647
+ <value>equivalent</value>
1648
+ <value>compare</value>
1649
+ <value>contrast</value>
1650
+ <value>see</value>
1651
+ <value>seealso</value>
1652
+ </choice>
1653
+ </define>
1654
+ <define name="deprecates">
1655
+ <element name="deprecates">
1656
+ <ref name="Designation"/>
1657
+ </element>
1658
+ </define>
1659
+ <define name="Designation">
1660
+ <optional>
1661
+ <attribute name="absent">
1662
+ <data type="boolean"/>
1663
+ </attribute>
1664
+ </optional>
1665
+ <optional>
1666
+ <attribute name="geographic-area"/>
1667
+ </optional>
1668
+ <choice>
1669
+ <ref name="expression_designation"/>
1670
+ <ref name="letter_symbol_designation"/>
1671
+ <ref name="graphical_symbol_designation"/>
1672
+ </choice>
1673
+ <optional>
1674
+ <ref name="fieldofapplication"/>
1675
+ </optional>
1676
+ <optional>
1677
+ <ref name="usageinfo"/>
1678
+ </optional>
1679
+ <zeroOrMore>
1680
+ <ref name="termsource"/>
1681
+ </zeroOrMore>
1682
+ </define>
1683
+ <define name="fieldofapplication">
1684
+ <element name="field-of-application">
1685
+ <oneOrMore>
1686
+ <ref name="PureTextElement"/>
1687
+ </oneOrMore>
1688
+ </element>
1689
+ </define>
1690
+ <define name="usageinfo">
1691
+ <element name="usage-info">
1692
+ <oneOrMore>
1693
+ <ref name="PureTextElement"/>
1694
+ </oneOrMore>
1695
+ </element>
1696
+ </define>
1697
+ <define name="letter_symbol_designation">
1698
+ <element name="letter-symbol">
1699
+ <optional>
1700
+ <attribute name="isInternational">
1701
+ <data type="boolean"/>
1702
+ </attribute>
1703
+ </optional>
1704
+ <optional>
1705
+ <attribute name="type">
1706
+ <choice>
1707
+ <value>letter</value>
1708
+ <value>symbol</value>
1709
+ <value>formula</value>
1710
+ <value>equation</value>
1711
+ </choice>
1712
+ </attribute>
1713
+ </optional>
1714
+ <element name="name">
1715
+ <oneOrMore>
1716
+ <choice>
1717
+ <ref name="PureTextElement"/>
1718
+ <ref name="stem"/>
1719
+ </choice>
1720
+ </oneOrMore>
1721
+ </element>
1722
+ </element>
1723
+ </define>
1724
+ <define name="graphical_symbol_designation">
1725
+ <element name="graphical-symbol">
1726
+ <optional>
1727
+ <attribute name="isInternational">
1728
+ <data type="boolean"/>
1729
+ </attribute>
1730
+ </optional>
1731
+ <ref name="figure"/>
1732
+ </element>
1733
+ </define>
1734
+ <define name="expression_designation">
1735
+ <element name="expression">
1736
+ <optional>
1737
+ <attribute name="language">
1738
+ <a:documentation>ISO-639</a:documentation>
1739
+ </attribute>
1740
+ </optional>
1741
+ <optional>
1742
+ <attribute name="script">
1743
+ <a:documentation>ISO-15924</a:documentation>
1744
+ </attribute>
1745
+ </optional>
1746
+ <optional>
1747
+ <attribute name="type">
1748
+ <ref name="ExpressionDesignationType"/>
1749
+ </attribute>
1750
+ </optional>
1751
+ <optional>
1752
+ <attribute name="isInternational">
1753
+ <data type="boolean"/>
1754
+ </attribute>
1755
+ </optional>
1756
+ <element name="name">
1757
+ <zeroOrMore>
1758
+ <choice>
1759
+ <ref name="PureTextElement"/>
1760
+ <ref name="stem"/>
1761
+ <ref name="index"/>
1762
+ </choice>
1763
+ </zeroOrMore>
1764
+ </element>
1765
+ <optional>
1766
+ <element name="abbreviation-type">
1767
+ <ref name="AbbreviationType"/>
1768
+ </element>
1769
+ </optional>
1770
+ <optional>
1771
+ <element name="pronunciation">
1772
+ <ref name="LocalizedString"/>
1773
+ </element>
1774
+ </optional>
1775
+ <optional>
1776
+ <element name="grammar">
1777
+ <ref name="Grammar"/>
1778
+ </element>
1779
+ </optional>
1780
+ </element>
1781
+ </define>
1782
+ <define name="ExpressionDesignationType">
1783
+ <choice>
1784
+ <value>prefix</value>
1785
+ <value>suffix</value>
1786
+ <value>abbreviation</value>
1787
+ <value>full</value>
1788
+ </choice>
1789
+ </define>
1790
+ <define name="AbbreviationType">
1791
+ <choice>
1792
+ <value>truncation</value>
1793
+ <value>acronym</value>
1794
+ <value>initialism</value>
1795
+ </choice>
1796
+ </define>
1797
+ <define name="Grammar">
1798
+ <zeroOrMore>
1799
+ <element name="gender">
1800
+ <ref name="GrammarGender"/>
1801
+ </element>
1802
+ </zeroOrMore>
1803
+ <zeroOrMore>
1804
+ <element name="number">
1805
+ <ref name="GrammarNumber"/>
1806
+ </element>
1807
+ </zeroOrMore>
1808
+ <optional>
1809
+ <element name="isPreposition">
1810
+ <data type="boolean"/>
1811
+ </element>
1812
+ </optional>
1813
+ <optional>
1814
+ <element name="isParticiple">
1815
+ <data type="boolean"/>
1816
+ </element>
1817
+ </optional>
1818
+ <optional>
1819
+ <element name="isAdjective">
1820
+ <data type="boolean"/>
1821
+ </element>
1822
+ </optional>
1823
+ <optional>
1824
+ <element name="isVerb">
1825
+ <data type="boolean"/>
1826
+ </element>
1827
+ </optional>
1828
+ <optional>
1829
+ <element name="isAdverb">
1830
+ <data type="boolean"/>
1831
+ </element>
1832
+ </optional>
1833
+ <optional>
1834
+ <element name="isNoun">
1835
+ <data type="boolean"/>
1836
+ </element>
1837
+ </optional>
1838
+ <zeroOrMore>
1839
+ <element name="grammar-value">
1840
+ <text/>
1841
+ </element>
1842
+ </zeroOrMore>
1843
+ </define>
1844
+ <define name="GrammarGender">
1845
+ <choice>
1846
+ <value>masculine</value>
1847
+ <value>feminine</value>
1848
+ <value>neuter</value>
1849
+ <value>common</value>
1850
+ </choice>
1851
+ </define>
1852
+ <define name="GrammarNumber">
1853
+ <choice>
1854
+ <value>singular</value>
1855
+ <value>dual</value>
1856
+ <value>plural</value>
1857
+ </choice>
1858
+ </define>
1859
+ <define name="termdomain">
1860
+ <element name="domain">
1861
+ <oneOrMore>
1862
+ <ref name="TextElement"/>
1863
+ </oneOrMore>
1864
+ </element>
1865
+ </define>
1866
+ <define name="termsubject">
1867
+ <element name="subject">
1868
+ <oneOrMore>
1869
+ <ref name="TextElement"/>
1870
+ </oneOrMore>
1871
+ </element>
1872
+ </define>
1873
+ <define name="termdefinition">
1874
+ <element name="definition">
1875
+ <optional>
1876
+ <attribute name="type"/>
1877
+ </optional>
1878
+ <choice>
1879
+ <ref name="verbaldefinition"/>
1880
+ <ref name="nonverbalrep"/>
1881
+ <group>
1882
+ <ref name="verbaldefinition"/>
1883
+ <ref name="nonverbalrep"/>
1884
+ </group>
1885
+ </choice>
1886
+ </element>
1887
+ </define>
1888
+ <define name="verbaldefinition">
1889
+ <element name="verbal-definition">
1890
+ <oneOrMore>
1891
+ <choice>
1892
+ <ref name="paragraph"/>
1893
+ <ref name="dl"/>
1894
+ <ref name="ol"/>
1895
+ <ref name="ul"/>
1896
+ <ref name="table"/>
1897
+ <ref name="figure"/>
1898
+ <ref name="formula"/>
1899
+ </choice>
1900
+ </oneOrMore>
1901
+ <zeroOrMore>
1902
+ <ref name="termsource"/>
1903
+ </zeroOrMore>
1904
+ </element>
1905
+ </define>
1906
+ <define name="nonverbalrep">
1907
+ <element name="non-verbal-representation">
1908
+ <oneOrMore>
1909
+ <choice>
1910
+ <ref name="table"/>
1911
+ <ref name="figure"/>
1912
+ <ref name="formula"/>
1913
+ </choice>
1914
+ </oneOrMore>
1915
+ <zeroOrMore>
1916
+ <ref name="termsource"/>
1917
+ </zeroOrMore>
1918
+ </element>
1919
+ </define>
1920
+ <define name="termnote">
1921
+ <element name="termnote">
1922
+ <attribute name="id">
1923
+ <data type="ID"/>
1924
+ </attribute>
1925
+ <optional>
1926
+ <attribute name="unnumbered">
1927
+ <data type="boolean"/>
1928
+ </attribute>
1929
+ </optional>
1930
+ <optional>
1931
+ <attribute name="number"/>
1932
+ </optional>
1933
+ <optional>
1934
+ <attribute name="subsequence"/>
1935
+ </optional>
1936
+ <ref name="BlockAttributes"/>
1937
+ <oneOrMore>
1938
+ <choice>
1939
+ <ref name="paragraph"/>
1940
+ <ref name="ul"/>
1941
+ <ref name="ol"/>
1942
+ <ref name="dl"/>
1943
+ <ref name="formula"/>
1944
+ </choice>
1945
+ </oneOrMore>
1946
+ </element>
1947
+ </define>
1948
+ <define name="termexample">
1949
+ <element name="termexample">
1950
+ <attribute name="id">
1951
+ <data type="ID"/>
1952
+ </attribute>
1953
+ <ref name="BlockAttributes"/>
1954
+ <oneOrMore>
1955
+ <choice>
1956
+ <ref name="formula"/>
1957
+ <ref name="ul"/>
1958
+ <ref name="ol"/>
1959
+ <ref name="dl"/>
1960
+ <ref name="quote"/>
1961
+ <ref name="sourcecode"/>
1962
+ <ref name="paragraph"/>
1963
+ <ref name="figure"/>
1964
+ </choice>
1965
+ </oneOrMore>
1966
+ </element>
1967
+ </define>
1968
+ <define name="termsource">
1969
+ <element name="termsource">
1970
+ <attribute name="status">
1971
+ <ref name="SourceStatusType"/>
1972
+ </attribute>
1973
+ <attribute name="type">
1974
+ <choice>
1975
+ <value>authoritative</value>
1976
+ <value>lineage</value>
1977
+ </choice>
1978
+ </attribute>
1979
+ <ref name="origin"/>
1980
+ <optional>
1981
+ <ref name="modification"/>
1982
+ </optional>
1983
+ </element>
1984
+ </define>
1985
+ <define name="SourceStatusType">
1986
+ <choice>
1987
+ <value>identical</value>
1988
+ <value>modified</value>
1989
+ <value>adapted</value>
1990
+ <value>restyled</value>
1991
+ <value>context-added</value>
1992
+ <value>generalisation</value>
1993
+ <value>specialisation</value>
1994
+ <value>unspecified</value>
1995
+ </choice>
1996
+ </define>
1997
+ <define name="origin">
1998
+ <element name="origin">
1999
+ <choice>
2000
+ <ref name="erefType"/>
2001
+ <ref name="termref"/>
2002
+ </choice>
2003
+ </element>
2004
+ </define>
2005
+ <define name="modification">
2006
+ <element name="modification">
2007
+ <ref name="paragraph"/>
2008
+ </element>
2009
+ </define>
2010
+ <define name="termref">
2011
+ <element name="termref">
2012
+ <attribute name="base"/>
2013
+ <attribute name="target"/>
2014
+ <optional>
2015
+ <text/>
2016
+ </optional>
2017
+ </element>
2018
+ </define>
2019
+ <define name="term-clause">
2020
+ <element name="clause">
2021
+ <optional>
2022
+ <attribute name="id">
2023
+ <data type="ID"/>
2024
+ </attribute>
2025
+ </optional>
2026
+ <optional>
2027
+ <attribute name="language"/>
2028
+ </optional>
2029
+ <optional>
2030
+ <attribute name="script"/>
2031
+ </optional>
2032
+ <optional>
2033
+ <attribute name="inline-header">
2034
+ <data type="boolean"/>
2035
+ </attribute>
2036
+ </optional>
2037
+ <optional>
2038
+ <attribute name="obligation">
2039
+ <choice>
2040
+ <value>normative</value>
2041
+ <value>informative</value>
2042
+ </choice>
2043
+ </attribute>
2044
+ </optional>
2045
+ <optional>
2046
+ <ref name="section-title"/>
2047
+ </optional>
2048
+ <zeroOrMore>
2049
+ <ref name="BasicBlock"/>
2050
+ </zeroOrMore>
2051
+ <zeroOrMore>
2052
+ <choice>
2053
+ <ref name="term-clause"/>
2054
+ <ref name="terms"/>
2055
+ <ref name="definitions"/>
2056
+ </choice>
2057
+ </zeroOrMore>
2058
+ </element>
2059
+ </define>
2060
+ <define name="termdocsource">
2061
+ <element name="termdocsource">
2062
+ <ref name="CitationType"/>
2063
+ </element>
2064
+ </define>
2065
+ <define name="autonumber">
2066
+ <element name="autonumber">
2067
+ <attribute name="type">
2068
+ <choice>
2069
+ <value>requirement</value>
2070
+ <value>recommendation</value>
2071
+ <value>permission</value>
2072
+ <value>table</value>
2073
+ <value>figure</value>
2074
+ <value>admonition</value>
2075
+ <value>formula</value>
2076
+ <value>sourcecode</value>
2077
+ <value>example</value>
2078
+ <value>note</value>
2079
+ </choice>
2080
+ </attribute>
2081
+ <text/>
2082
+ </element>
2083
+ </define>
2084
+ <define name="imagemap">
2085
+ <element name="imagemap">
2086
+ <ref name="BlockAttributes"/>
2087
+ <ref name="figure"/>
2088
+ <zeroOrMore>
2089
+ <element name="area">
2090
+ <attribute name="type">
2091
+ <choice>
2092
+ <value>rect</value>
2093
+ <value>circle</value>
2094
+ <value>ellipse</value>
2095
+ <value>poly</value>
2096
+ </choice>
2097
+ </attribute>
2098
+ <choice>
2099
+ <ref name="xref"/>
2100
+ <ref name="hyperlink"/>
2101
+ <ref name="eref"/>
2102
+ <ref name="erefstack"/>
2103
+ </choice>
2104
+ <oneOrMore>
2105
+ <element name="coords">
2106
+ <attribute name="x">
2107
+ <data type="float"/>
2108
+ </attribute>
2109
+ <attribute name="y">
2110
+ <data type="float"/>
2111
+ </attribute>
2112
+ </element>
2113
+ </oneOrMore>
2114
+ <optional>
2115
+ <element name="radius">
2116
+ <attribute name="x">
2117
+ <data type="float"/>
2118
+ </attribute>
2119
+ <optional>
2120
+ <attribute name="y">
2121
+ <data type="float"/>
2122
+ </attribute>
2123
+ </optional>
2124
+ </element>
2125
+ </optional>
2126
+ </element>
2127
+ </zeroOrMore>
2128
+ </element>
2129
+ </define>
2130
+ <define name="svgmap">
2131
+ <element name="svgmap">
2132
+ <ref name="BlockAttributes"/>
2133
+ <ref name="figure"/>
2134
+ <zeroOrMore>
2135
+ <element name="target">
2136
+ <attribute name="href">
2137
+ <data type="anyURI"/>
2138
+ </attribute>
2139
+ <choice>
2140
+ <ref name="xref"/>
2141
+ <ref name="hyperlink"/>
2142
+ <ref name="eref"/>
2143
+ <ref name="erefstack"/>
2144
+ </choice>
2145
+ </element>
2146
+ </zeroOrMore>
2147
+ </element>
2148
+ </define>
2149
+ <define name="ul_li">
2150
+ <element name="li">
2151
+ <optional>
2152
+ <attribute name="id">
2153
+ <data type="ID"/>
2154
+ </attribute>
2155
+ </optional>
2156
+ <optional>
2157
+ <attribute name="uncheckedcheckbox">
2158
+ <data type="boolean"/>
2159
+ </attribute>
2160
+ </optional>
2161
+ <optional>
2162
+ <attribute name="checkedcheckbox">
2163
+ <data type="boolean"/>
2164
+ </attribute>
2165
+ </optional>
2166
+ <oneOrMore>
2167
+ <ref name="BasicBlock"/>
2168
+ </oneOrMore>
2169
+ </element>
2170
+ </define>
2171
+ <define name="floating-title">
2172
+ <element name="floating-title">
2173
+ <attribute name="id">
2174
+ <data type="ID"/>
2175
+ </attribute>
2176
+ <attribute name="depth">
2177
+ <data type="int"/>
2178
+ </attribute>
2179
+ <zeroOrMore>
2180
+ <ref name="TextElement"/>
2181
+ </zeroOrMore>
2182
+ </element>
2183
+ </define>
2184
+ <define name="XrefAttributes">
2185
+ <attribute name="target">
2186
+ <data type="string">
2187
+ <param name="pattern">\i\c*|\c+#\c+</param>
2188
+ </data>
2189
+ </attribute>
2190
+ <optional>
2191
+ <attribute name="to">
2192
+ <data type="string">
2193
+ <param name="pattern">\i\c*|\c+#\c+</param>
2194
+ </data>
2195
+ </attribute>
2196
+ </optional>
2197
+ <optional>
2198
+ <attribute name="type">
2199
+ <ref name="ReferenceFormat"/>
2200
+ </attribute>
2201
+ </optional>
2202
+ <optional>
2203
+ <attribute name="alt"/>
2204
+ </optional>
2205
+ <optional>
2206
+ <attribute name="case">
2207
+ <choice>
2208
+ <value>capital</value>
2209
+ <value>lowercase</value>
2210
+ </choice>
2211
+ </attribute>
2212
+ </optional>
2213
+ <optional>
2214
+ <attribute name="droploc">
2215
+ <data type="boolean"/>
2216
+ </attribute>
2217
+ </optional>
2218
+ <optional>
2219
+ <attribute name="style">
2220
+ <ref name="XrefStyleType"/>
2221
+ </attribute>
2222
+ </optional>
2223
+ <optional>
2224
+ <attribute name="label"/>
2225
+ </optional>
2226
+ </define>
2227
+ <define name="XrefBody">
2228
+ <zeroOrMore>
2229
+ <ref name="XrefTarget"/>
2230
+ </zeroOrMore>
2231
+ <oneOrMore>
2232
+ <ref name="PureTextElement"/>
2233
+ </oneOrMore>
2234
+ </define>
2235
+ <define name="XrefConnectiveType">
2236
+ <choice>
2237
+ <value>and</value>
2238
+ <value>or</value>
2239
+ <value>from</value>
2240
+ <value>to</value>
2241
+ <value/>
2242
+ </choice>
2243
+ </define>
2244
+ <define name="XrefTarget">
2245
+ <element name="location">
2246
+ <attribute name="target">
2247
+ <data type="string">
2248
+ <param name="pattern">\i\c*|\c+#\c+</param>
2249
+ </data>
2250
+ </attribute>
2251
+ <attribute name="connective">
2252
+ <ref name="XrefConnectiveType"/>
2253
+ </attribute>
2254
+ </element>
2255
+ </define>
2256
+ <define name="XrefStyleType">
2257
+ <choice>
2258
+ <value>basic</value>
2259
+ <value>full</value>
2260
+ <value>short</value>
2261
+ <value>id</value>
2262
+ <text/>
2263
+ </choice>
2264
+ </define>
2265
+ <define name="erefTypeWithConnective">
2266
+ <optional>
2267
+ <attribute name="connective">
2268
+ <ref name="XrefConnectiveType"/>
2269
+ </attribute>
2270
+ </optional>
2271
+ <ref name="erefType"/>
2272
+ </define>
2273
+ <define name="erefstack">
2274
+ <element name="erefstack">
2275
+ <oneOrMore>
2276
+ <element name="eref">
2277
+ <ref name="erefTypeWithConnective"/>
2278
+ </element>
2279
+ </oneOrMore>
2280
+ </element>
2281
+ </define>
2282
+ <define name="BlockAttributes">
2283
+ <optional>
2284
+ <attribute name="keep-with-next">
2285
+ <data type="boolean"/>
2286
+ </attribute>
2287
+ </optional>
2288
+ <optional>
2289
+ <attribute name="keep-lines-together">
2290
+ <data type="boolean"/>
2291
+ </attribute>
2292
+ </optional>
2293
+ <optional>
2294
+ <attribute name="tag"/>
2295
+ </optional>
2296
+ <optional>
2297
+ <attribute name="multilingual-rendering">
2298
+ <ref name="MultilingualRenderingType"/>
2299
+ </attribute>
2300
+ </optional>
2301
+ <optional>
2302
+ <attribute name="columns"/>
2303
+ </optional>
2304
+ </define>
2305
+ <start>
2306
+ <ref name="standard-document"/>
2307
+ </start>
2308
+ </grammar>