relaton-gb 0.12.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
+ <!-- default namespace isostandard = "https://www.metanorma.com/ns/iso" -->
3
4
  <include href="isodoc.rng">
4
5
  <start>
5
6
  <ref name="iso-standard"/>
@@ -36,14 +37,15 @@
36
37
  </element>
37
38
  </define>
38
39
  <define name="BibDataExtensionType">
39
- <optional>
40
- <ref name="doctype"/>
41
- </optional>
40
+ <ref name="doctype"/>
42
41
  <ref name="editorialgroup"/>
43
42
  <zeroOrMore>
44
43
  <ref name="ics"/>
45
44
  </zeroOrMore>
46
45
  <ref name="structuredidentifier"/>
46
+ <optional>
47
+ <ref name="stagename"/>
48
+ </optional>
47
49
  </define>
48
50
  <define name="bdate">
49
51
  <element name="date">
@@ -68,94 +70,47 @@
68
70
  <choice>
69
71
  <ref name="ISO8601Date"/>
70
72
  <value>--</value>
73
+ <value>–</value>
71
74
  </choice>
72
75
  </element>
73
76
  </choice>
74
77
  </element>
75
78
  </define>
76
- <define name="sections">
77
- <element name="sections">
78
- <ref name="clause"/>
79
- <choice>
80
- <ref name="term-clause"/>
81
- <ref name="terms"/>
82
- </choice>
83
- <optional>
84
- <ref name="definitions"/>
85
- </optional>
86
- <oneOrMore>
87
- <ref name="clause"/>
88
- </oneOrMore>
89
- </element>
90
- </define>
91
- <define name="Basic-Section">
92
- <optional>
79
+ <define name="ul">
80
+ <element name="ul">
93
81
  <attribute name="id">
94
82
  <data type="ID"/>
95
83
  </attribute>
96
- </optional>
97
- <optional>
98
- <attribute name="language"/>
99
- </optional>
100
- <optional>
101
- <attribute name="script"/>
102
- </optional>
103
- <optional>
104
- <attribute name="obligation">
105
- <choice>
106
- <value>normative</value>
107
- <value>informative</value>
108
- </choice>
109
- </attribute>
110
- </optional>
111
- <optional>
112
- <ref name="section-title"/>
113
- </optional>
114
- <group>
115
84
  <oneOrMore>
116
- <ref name="BasicBlock"/>
85
+ <ref name="ul_li"/>
117
86
  </oneOrMore>
118
87
  <zeroOrMore>
119
88
  <ref name="note"/>
120
89
  </zeroOrMore>
121
- </group>
90
+ </element>
122
91
  </define>
123
- <define name="Content-Section">
124
- <optional>
125
- <attribute name="id">
126
- <data type="ID"/>
127
- </attribute>
128
- </optional>
129
- <optional>
130
- <attribute name="language"/>
131
- </optional>
132
- <optional>
133
- <attribute name="script"/>
134
- </optional>
135
- <optional>
136
- <attribute name="obligation">
92
+ <define name="sections">
93
+ <element name="sections">
94
+ <zeroOrMore>
137
95
  <choice>
138
- <value>normative</value>
139
- <value>informative</value>
140
- </choice>
141
- </attribute>
142
- </optional>
143
- <optional>
144
- <ref name="section-title"/>
145
- </optional>
146
- <choice>
147
- <group>
148
- <oneOrMore>
149
- <ref name="BasicBlock"/>
150
- </oneOrMore>
151
- <zeroOrMore>
152
96
  <ref name="note"/>
153
- </zeroOrMore>
154
- </group>
97
+ <ref name="admonition"/>
98
+ </choice>
99
+ </zeroOrMore>
100
+ <ref name="clause"/>
101
+ <optional>
102
+ <choice>
103
+ <ref name="term-clause"/>
104
+ <ref name="terms"/>
105
+ </choice>
106
+ </optional>
107
+ <optional>
108
+ <ref name="definitions"/>
109
+ </optional>
155
110
  <oneOrMore>
156
- <ref name="content-subsection"/>
111
+ <ref name="clause"/>
157
112
  </oneOrMore>
158
- </choice>
113
+ </element>
159
114
  </define>
160
115
  <define name="Clause-Section">
161
116
  <optional>
@@ -199,107 +154,6 @@
199
154
  </oneOrMore>
200
155
  </choice>
201
156
  </define>
202
- <define name="references">
203
- <element name="references">
204
- <optional>
205
- <attribute name="id">
206
- <data type="ID"/>
207
- </attribute>
208
- </optional>
209
- <optional>
210
- <attribute name="obligation">
211
- <choice>
212
- <value>normative</value>
213
- <value>informative</value>
214
- </choice>
215
- </attribute>
216
- </optional>
217
- <optional>
218
- <ref name="section-title"/>
219
- </optional>
220
- <zeroOrMore>
221
- <ref name="BasicBlock"/>
222
- </zeroOrMore>
223
- <zeroOrMore>
224
- <ref name="bibitem"/>
225
- <zeroOrMore>
226
- <ref name="note"/>
227
- </zeroOrMore>
228
- </zeroOrMore>
229
- <zeroOrMore>
230
- <ref name="references"/>
231
- </zeroOrMore>
232
- </element>
233
- </define>
234
- <define name="definitions">
235
- <element name="definitions">
236
- <optional>
237
- <attribute name="id">
238
- <data type="ID"/>
239
- </attribute>
240
- </optional>
241
- <optional>
242
- <attribute name="language"/>
243
- </optional>
244
- <optional>
245
- <attribute name="script"/>
246
- </optional>
247
- <optional>
248
- <attribute name="obligation">
249
- <choice>
250
- <value>normative</value>
251
- <value>informative</value>
252
- </choice>
253
- </attribute>
254
- </optional>
255
- <zeroOrMore>
256
- <ref name="BasicBlock"/>
257
- </zeroOrMore>
258
- <ref name="dl"/>
259
- </element>
260
- </define>
261
- <define name="terms">
262
- <element name="terms">
263
- <optional>
264
- <attribute name="id">
265
- <data type="ID"/>
266
- </attribute>
267
- </optional>
268
- <optional>
269
- <attribute name="language"/>
270
- </optional>
271
- <optional>
272
- <attribute name="script"/>
273
- </optional>
274
- <optional>
275
- <attribute name="obligation">
276
- <choice>
277
- <value>normative</value>
278
- <value>informative</value>
279
- </choice>
280
- </attribute>
281
- </optional>
282
- <optional>
283
- <ref name="section-title"/>
284
- </optional>
285
- <zeroOrMore>
286
- <ref name="BasicBlock"/>
287
- </zeroOrMore>
288
- <choice>
289
- <oneOrMore>
290
- <ref name="term"/>
291
- </oneOrMore>
292
- <group>
293
- <zeroOrMore>
294
- <ref name="terms"/>
295
- </zeroOrMore>
296
- <optional>
297
- <ref name="definitions"/>
298
- </optional>
299
- </group>
300
- </choice>
301
- </element>
302
- </define>
303
157
  <define name="term">
304
158
  <element name="term">
305
159
  <optional>
@@ -387,215 +241,160 @@
387
241
  </zeroOrMore>
388
242
  </element>
389
243
  </define>
390
- <define name="figure">
391
- <element name="figure">
392
- <attribute name="id">
393
- <data type="ID"/>
394
- </attribute>
244
+ <define name="AdmonitionType">
245
+ <choice>
246
+ <value>danger</value>
247
+ <value>caution</value>
248
+ <value>warning</value>
249
+ <value>important</value>
250
+ <value>safety precautions</value>
251
+ </choice>
252
+ </define>
253
+ <define name="preface">
254
+ <element name="preface">
395
255
  <optional>
396
- <ref name="tname"/>
256
+ <ref name="preface_abstract"/>
397
257
  </optional>
398
- <choice>
399
- <ref name="image"/>
400
- <oneOrMore>
401
- <ref name="subfigure"/>
402
- </oneOrMore>
403
- </choice>
404
- <zeroOrMore>
405
- <ref name="fn"/>
406
- </zeroOrMore>
258
+ <ref name="foreword"/>
407
259
  <optional>
408
- <ref name="dl"/>
260
+ <ref name="introduction"/>
409
261
  </optional>
410
- <zeroOrMore>
411
- <ref name="note"/>
412
- </zeroOrMore>
413
262
  </element>
414
263
  </define>
415
- <define name="li">
416
- <element name="li">
264
+ <define name="DocumentType">
265
+ <choice>
266
+ <value>international-standard</value>
267
+ <value>technical-specification</value>
268
+ <value>technical-report</value>
269
+ <value>publicly-available-specification</value>
270
+ <value>international-workshop-agreement</value>
271
+ <value>guide</value>
272
+ <value>amendment</value>
273
+ <value>technical-corrigendum</value>
274
+ </choice>
275
+ </define>
276
+ <define name="structuredidentifier">
277
+ <element name="structuredidentifier">
278
+ <optional>
279
+ <attribute name="type"/>
280
+ </optional>
417
281
  <group>
282
+ <ref name="documentnumber"/>
418
283
  <optional>
419
- <!-- ( paragraph-with-footnote | table | note | formula | admonition | ol | ul | dl | quote | sourcecode | review | example )+ -->
420
- <attribute name="id">
421
- <data type="ID"/>
422
- </attribute>
284
+ <ref name="tc-documentnumber"/>
423
285
  </optional>
424
- <oneOrMore>
425
- <ref name="BasicBlock"/>
426
- </oneOrMore>
427
286
  </group>
428
- <!-- exclude figures? -->
429
287
  </element>
430
288
  </define>
431
- <define name="dd">
432
- <element name="dd">
289
+ <define name="foreword">
290
+ <element name="foreword">
291
+ <ref name="Basic-Section"/>
292
+ </element>
293
+ </define>
294
+ <define name="introduction">
295
+ <element name="introduction">
296
+ <ref name="Content-Section"/>
297
+ </element>
298
+ </define>
299
+ <define name="editorialgroup">
300
+ <element name="editorialgroup">
301
+ <oneOrMore>
302
+ <ref name="technical-committee"/>
303
+ </oneOrMore>
433
304
  <zeroOrMore>
434
- <!--
435
- ( paragraph-with-footnote | table | note | formula | admonition | ol | ul | dl | quote | sourcecode | review | example )*
436
- exclude figures?
437
- -->
438
- <ref name="BasicBlock"/>
305
+ <ref name="subcommittee"/>
306
+ </zeroOrMore>
307
+ <zeroOrMore>
308
+ <ref name="workgroup"/>
439
309
  </zeroOrMore>
310
+ <optional>
311
+ <ref name="secretariat"/>
312
+ </optional>
440
313
  </element>
441
314
  </define>
442
- <define name="admonition">
443
- <element name="admonition">
315
+ <define name="Content-Section">
316
+ <optional>
444
317
  <attribute name="id">
445
318
  <data type="ID"/>
446
319
  </attribute>
447
- <attribute name="type">
320
+ </optional>
321
+ <optional>
322
+ <attribute name="language"/>
323
+ </optional>
324
+ <optional>
325
+ <attribute name="script"/>
326
+ </optional>
327
+ <optional>
328
+ <attribute name="obligation">
448
329
  <choice>
449
- <value>danger</value>
450
- <value>caution</value>
451
- <value>warning</value>
452
- <value>important</value>
453
- <value>safety precautions</value>
330
+ <value>normative</value>
331
+ <value>informative</value>
454
332
  </choice>
455
333
  </attribute>
334
+ </optional>
335
+ <optional>
336
+ <ref name="section-title"/>
337
+ </optional>
338
+ <choice>
339
+ <group>
340
+ <zeroOrMore>
341
+ <ref name="BasicBlock"/>
342
+ </zeroOrMore>
343
+ <zeroOrMore>
344
+ <ref name="note"/>
345
+ </zeroOrMore>
346
+ </group>
456
347
  <oneOrMore>
457
- <ref name="paragraph-with-footnote"/>
348
+ <ref name="content-subsection"/>
458
349
  </oneOrMore>
459
- <zeroOrMore>
460
- <ref name="note"/>
461
- </zeroOrMore>
462
- </element>
463
- </define>
464
- <define name="xref">
465
- <element name="xref">
466
- <attribute name="target">
467
- <data type="IDREF"/>
468
- </attribute>
469
- <text/>
470
- </element>
350
+ </choice>
471
351
  </define>
472
- <define name="hyperlink">
473
- <element name="link">
474
- <attribute name="target">
475
- <data type="anyURI"/>
352
+ <define name="table">
353
+ <element name="table">
354
+ <attribute name="id">
355
+ <data type="ID"/>
476
356
  </attribute>
477
- <text/>
478
- </element>
479
- </define>
480
- <define name="thead">
481
- <element name="thead">
482
- <oneOrMore>
483
- <ref name="tr"/>
484
- </oneOrMore>
485
- </element>
486
- </define>
487
- <define name="td">
488
- <element name="td">
489
357
  <optional>
490
- <attribute name="colspan"/>
358
+ <attribute name="width"/>
491
359
  </optional>
492
360
  <optional>
493
- <attribute name="rowspan"/>
361
+ <attribute name="unnumbered">
362
+ <data type="boolean"/>
363
+ </attribute>
494
364
  </optional>
495
365
  <optional>
496
- <attribute name="align">
497
- <choice>
498
- <value>left</value>
499
- <value>right</value>
500
- <value>center</value>
501
- </choice>
502
- </attribute>
366
+ <attribute name="number"/>
503
367
  </optional>
504
- <choice>
505
- <zeroOrMore>
506
- <choice>
507
- <ref name="TextElement"/>
508
- <ref name="fn"/>
509
- </choice>
510
- </zeroOrMore>
511
- <oneOrMore>
512
- <ref name="paragraph-with-footnote"/>
513
- </oneOrMore>
514
- </choice>
515
- </element>
516
- </define>
517
- <define name="th">
518
- <element name="th">
519
368
  <optional>
520
- <attribute name="colspan"/>
369
+ <attribute name="subsequence"/>
521
370
  </optional>
522
371
  <optional>
523
- <attribute name="rowspan"/>
372
+ <attribute name="alt"/>
524
373
  </optional>
525
374
  <optional>
526
- <attribute name="align">
527
- <choice>
528
- <value>left</value>
529
- <value>right</value>
530
- <value>center</value>
531
- </choice>
532
- </attribute>
375
+ <attribute name="summary"/>
533
376
  </optional>
534
- <choice>
535
- <zeroOrMore>
536
- <choice>
537
- <ref name="TextElement"/>
538
- <ref name="fn"/>
539
- </choice>
540
- </zeroOrMore>
541
- <oneOrMore>
542
- <ref name="paragraph-with-footnote"/>
543
- </oneOrMore>
544
- </choice>
545
- </element>
546
- </define>
547
- <define name="table-note">
548
- <element name="note">
549
377
  <optional>
550
- <attribute name="id">
551
- <data type="ID"/>
378
+ <attribute name="uri">
379
+ <data type="anyURI"/>
552
380
  </attribute>
553
381
  </optional>
554
- <ref name="paragraph"/>
555
- </element>
556
- </define>
557
- <define name="preface">
558
- <element name="preface">
559
382
  <optional>
560
- <ref name="preface_abstract"/>
383
+ <ref name="tname"/>
561
384
  </optional>
562
- <ref name="foreword"/>
563
385
  <optional>
564
- <ref name="introduction"/>
386
+ <ref name="thead"/>
565
387
  </optional>
566
- </element>
567
- </define>
568
- <define name="DocumentType">
569
- <choice>
570
- <value>international-standard</value>
571
- <value>technical-specification</value>
572
- <value>technical-report</value>
573
- <value>publicly-available-specification</value>
574
- <value>international-workshop-agreement</value>
575
- <value>guide</value>
576
- </choice>
577
- </define>
578
- <define name="structuredidentifier">
579
- <element name="structuredidentifier">
388
+ <ref name="tbody"/>
580
389
  <optional>
581
- <attribute name="type"/>
390
+ <ref name="tfoot"/>
391
+ </optional>
392
+ <zeroOrMore>
393
+ <ref name="table-note"/>
394
+ </zeroOrMore>
395
+ <optional>
396
+ <ref name="dl"/>
582
397
  </optional>
583
- <group>
584
- <ref name="documentnumber"/>
585
- <optional>
586
- <ref name="tc-documentnumber"/>
587
- </optional>
588
- </group>
589
- </element>
590
- </define>
591
- <define name="foreword">
592
- <element name="foreword">
593
- <ref name="Basic-Section"/>
594
- </element>
595
- </define>
596
- <define name="introduction">
597
- <element name="introduction">
598
- <ref name="Content-Section"/>
599
398
  </element>
600
399
  </define>
601
400
  </include>
@@ -623,37 +422,6 @@
623
422
  <ref name="bibliography"/>
624
423
  </element>
625
424
  </define>
626
- <define name="bibliography">
627
- <element name="bibliography">
628
- <oneOrMore>
629
- <choice>
630
- <ref name="references"/>
631
- <ref name="reference-clause"/>
632
- </choice>
633
- </oneOrMore>
634
- </element>
635
- </define>
636
- <define name="editorialgroup">
637
- <element name="editorialgroup">
638
- <oneOrMore>
639
- <ref name="technical-committee"/>
640
- </oneOrMore>
641
- <zeroOrMore>
642
- <ref name="subcommittee"/>
643
- </zeroOrMore>
644
- <zeroOrMore>
645
- <ref name="workgroup"/>
646
- </zeroOrMore>
647
- <optional>
648
- <ref name="secretariat"/>
649
- </optional>
650
- </element>
651
- </define>
652
- <define name="preface_abstract">
653
- <element name="abstract">
654
- <ref name="Basic-Section"/>
655
- </element>
656
- </define>
657
425
  <define name="documentnumber">
658
426
  <element name="project-number">
659
427
  <optional>
@@ -674,11 +442,6 @@
674
442
  <data type="int"/>
675
443
  </element>
676
444
  </define>
677
- <define name="technical-committee">
678
- <element name="technical-committee">
679
- <ref name="IsoWorkgroup"/>
680
- </element>
681
- </define>
682
445
  <define name="subcommittee">
683
446
  <element name="subcommittee">
684
447
  <ref name="IsoWorkgroup"/>
@@ -689,17 +452,6 @@
689
452
  <ref name="IsoWorkgroup"/>
690
453
  </element>
691
454
  </define>
692
- <define name="IsoWorkgroup">
693
- <optional>
694
- <attribute name="number">
695
- <data type="int"/>
696
- </attribute>
697
- </optional>
698
- <optional>
699
- <attribute name="type"/>
700
- </optional>
701
- <text/>
702
- </define>
703
455
  <define name="secretariat">
704
456
  <element name="secretariat">
705
457
  <text/>
@@ -746,112 +498,36 @@
746
498
  </zeroOrMore>
747
499
  </element>
748
500
  </define>
749
- <define name="subfigure">
750
- <element name="figure">
751
- <attribute name="id">
752
- <data type="ID"/>
753
- </attribute>
754
- <optional>
755
- <ref name="tname"/>
756
- </optional>
757
- <ref name="image"/>
758
- </element>
759
- </define>
760
- <define name="termdocsource">
761
- <element name="termdocsource">
762
- <ref name="CitationType"/>
763
- </element>
764
- </define>
765
- <define name="ics">
766
- <element name="ics">
767
- <element name="code">
768
- <text/>
769
- </element>
770
- <element name="text">
771
- <text/>
772
- </element>
501
+ <define name="annex-appendix">
502
+ <element name="appendix">
503
+ <ref name="Clause-Section"/>
773
504
  </element>
774
505
  </define>
775
- <define name="term-clause">
776
- <element name="clause">
506
+ <define name="ul_li">
507
+ <element name="li">
777
508
  <optional>
778
509
  <attribute name="id">
779
510
  <data type="ID"/>
780
511
  </attribute>
781
512
  </optional>
782
513
  <optional>
783
- <attribute name="language"/>
784
- </optional>
785
- <optional>
786
- <attribute name="script"/>
787
- </optional>
788
- <optional>
789
- <attribute name="inline-header">
514
+ <attribute name="uncheckedcheckbox">
790
515
  <data type="boolean"/>
791
516
  </attribute>
792
517
  </optional>
793
518
  <optional>
794
- <attribute name="obligation">
795
- <choice>
796
- <value>normative</value>
797
- <value>informative</value>
798
- </choice>
799
- </attribute>
800
- </optional>
801
- <optional>
802
- <ref name="section-title"/>
803
- </optional>
804
- <zeroOrMore>
805
- <choice>
806
- <ref name="term-clause"/>
807
- <ref name="terms"/>
808
- <ref name="definitions"/>
809
- </choice>
810
- </zeroOrMore>
811
- </element>
812
- </define>
813
- <define name="reference-clause">
814
- <element name="clause">
815
- <optional>
816
- <attribute name="id">
817
- <data type="ID"/>
818
- </attribute>
819
- </optional>
820
- <optional>
821
- <attribute name="language"/>
822
- </optional>
823
- <optional>
824
- <attribute name="script"/>
825
- </optional>
826
- <optional>
827
- <attribute name="inline-header">
519
+ <attribute name="checkedcheckbox">
828
520
  <data type="boolean"/>
829
521
  </attribute>
830
522
  </optional>
831
- <optional>
832
- <attribute name="obligation">
833
- <choice>
834
- <value>normative</value>
835
- <value>informative</value>
836
- </choice>
837
- </attribute>
838
- </optional>
839
- <optional>
840
- <ref name="section-title"/>
841
- </optional>
842
- <choice>
843
- <oneOrMore>
844
- <ref name="reference-clause"/>
845
- </oneOrMore>
846
- <zeroOrMore>
847
- <ref name="references"/>
848
- </zeroOrMore>
849
- </choice>
523
+ <oneOrMore>
524
+ <ref name="BasicBlock"/>
525
+ </oneOrMore>
850
526
  </element>
851
527
  </define>
852
- <define name="annex-appendix">
853
- <element name="appendix">
854
- <ref name="Clause-Section"/>
528
+ <define name="stagename">
529
+ <element name="stagename">
530
+ <text/>
855
531
  </element>
856
532
  </define>
857
533
  </grammar>