metanorma-jis 0.0.1

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