metanorma-sample 1.0.10 → 1.3.8

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.
@@ -4,39 +4,11 @@
4
4
  <start>
5
5
  <ref name="iso-standard"/>
6
6
  </start>
7
- <define name="language">
8
- <element name="language">
9
- <choice>
10
- <value>en</value>
11
- <value>fr</value>
12
- </choice>
13
- </element>
14
- </define>
15
- <define name="script">
16
- <element name="script">
17
- <value>Latn</value>
18
- </element>
19
- </define>
20
- <!-- add type to docidentifier in isodoc? -->
21
- <define name="docidentifier">
22
- <element name="docidentifier">
23
- <optional>
24
- <attribute name="type"/>
25
- </optional>
26
- <choice>
27
- <text/>
28
- <group>
29
- <ref name="documentnumber"/>
30
- <optional>
31
- <ref name="tc-documentnumber"/>
32
- </optional>
33
- </group>
34
- </choice>
35
- </element>
36
- </define>
37
7
  <define name="organization">
38
8
  <element name="organization">
39
- <ref name="orgname"/>
9
+ <oneOrMore>
10
+ <ref name="orgname"/>
11
+ </oneOrMore>
40
12
  <optional>
41
13
  <ref name="abbreviation"/>
42
14
  </optional>
@@ -63,259 +35,53 @@
63
35
  </optional>
64
36
  </element>
65
37
  </define>
66
- <define name="BibliographicItem">
67
- <optional>
68
- <attribute name="type">
69
- <ref name="BibItemType"/>
70
- </attribute>
71
- </optional>
38
+ <define name="BibDataExtensionType">
72
39
  <optional>
73
- <ref name="fetched"/>
74
- </optional>
75
- <choice>
76
- <oneOrMore>
77
- <ref name="btitle"/>
78
- </oneOrMore>
79
- <ref name="formattedref"/>
80
- </choice>
81
- <zeroOrMore>
82
- <ref name="bsource"/>
83
- </zeroOrMore>
84
- <zeroOrMore>
85
- <ref name="docidentifier"/>
86
- </zeroOrMore>
87
- <optional>
88
- <ref name="docnumber"/>
89
- </optional>
90
- <zeroOrMore>
91
- <ref name="bdate"/>
92
- </zeroOrMore>
93
- <zeroOrMore>
94
- <ref name="contributor"/>
95
- </zeroOrMore>
96
- <optional>
97
- <ref name="edition"/>
98
- </optional>
99
- <zeroOrMore>
100
- <ref name="biblionote"/>
101
- </zeroOrMore>
102
- <zeroOrMore>
103
- <ref name="language"/>
104
- </zeroOrMore>
105
- <zeroOrMore>
106
- <ref name="script"/>
107
- </zeroOrMore>
108
- <zeroOrMore>
109
- <ref name="abstract"/>
110
- </zeroOrMore>
111
- <optional>
112
- <ref name="status"/>
113
- </optional>
114
- <optional>
115
- <ref name="copyright"/>
116
- </optional>
117
- <zeroOrMore>
118
- <ref name="docrelation"/>
119
- </zeroOrMore>
120
- <zeroOrMore>
121
- <ref name="series"/>
122
- </zeroOrMore>
123
- <optional>
124
- <ref name="medium"/>
125
- </optional>
126
- <zeroOrMore>
127
- <ref name="bplace"/>
128
- </zeroOrMore>
129
- <zeroOrMore>
130
- <ref name="extent"/>
131
- </zeroOrMore>
132
- <zeroOrMore>
133
- <ref name="accesslocation"/>
134
- </zeroOrMore>
135
- <optional>
136
- <ref name="bclassification"/>
137
- </optional>
138
- <optional>
139
- <ref name="validity"/>
140
- </optional>
141
- <optional>
142
- <ref name="editorialgroup"/>
143
- </optional>
144
- <zeroOrMore>
145
- <ref name="ics"/>
146
- </zeroOrMore>
147
- <optional>
148
- <ref name="allParts"/>
149
- </optional>
150
- </define>
151
- <define name="BibData">
152
- <optional>
153
- <attribute name="type">
154
- <ref name="BibItemType"/>
155
- </attribute>
156
- </optional>
157
- <oneOrMore>
158
- <ref name="btitle"/>
159
- </oneOrMore>
160
- <optional>
161
- <ref name="formattedref"/>
162
- </optional>
163
- <zeroOrMore>
164
- <ref name="bsource"/>
165
- </zeroOrMore>
166
- <zeroOrMore>
167
- <ref name="docidentifier"/>
168
- </zeroOrMore>
169
- <optional>
170
- <ref name="docnumber"/>
171
- </optional>
172
- <zeroOrMore>
173
- <ref name="bdate"/>
174
- </zeroOrMore>
175
- <zeroOrMore>
176
- <ref name="contributor"/>
177
- </zeroOrMore>
178
- <optional>
179
- <ref name="edition"/>
180
- </optional>
181
- <zeroOrMore>
182
- <ref name="biblionote"/>
183
- </zeroOrMore>
184
- <zeroOrMore>
185
- <ref name="language"/>
186
- </zeroOrMore>
187
- <zeroOrMore>
188
- <ref name="script"/>
189
- </zeroOrMore>
190
- <zeroOrMore>
191
- <ref name="abstract"/>
192
- </zeroOrMore>
193
- <optional>
194
- <ref name="status"/>
195
- </optional>
196
- <ref name="copyright"/>
197
- <zeroOrMore>
198
- <ref name="docrelation"/>
199
- </zeroOrMore>
200
- <zeroOrMore>
201
- <ref name="series"/>
202
- </zeroOrMore>
203
- <optional>
204
- <ref name="medium"/>
205
- </optional>
206
- <zeroOrMore>
207
- <ref name="bplace"/>
208
- </zeroOrMore>
209
- <zeroOrMore>
210
- <ref name="extent"/>
211
- </zeroOrMore>
212
- <zeroOrMore>
213
- <ref name="accesslocation"/>
214
- </zeroOrMore>
215
- <optional>
216
- <ref name="bclassification"/>
217
- </optional>
218
- <optional>
219
- <ref name="validity"/>
40
+ <ref name="doctype"/>
220
41
  </optional>
221
42
  <ref name="editorialgroup"/>
222
43
  <zeroOrMore>
223
44
  <ref name="ics"/>
224
45
  </zeroOrMore>
225
- <optional>
226
- <ref name="allParts"/>
227
- </optional>
46
+ <ref name="structuredidentifier"/>
228
47
  </define>
229
48
  <define name="bdate">
230
49
  <element name="date">
231
50
  <attribute name="type">
232
51
  <choice>
233
- <value>published</value>
234
- <value>accessed</value>
235
- <value>created</value>
236
- <value>implemented</value>
237
- <value>obsoleted</value>
238
- <value>confirmed</value>
239
- <value>updated</value>
240
- <value>issued</value>
52
+ <ref name="BibliographicDateType"/>
53
+ <text/>
241
54
  </choice>
242
55
  </attribute>
243
- <!-- ( ( bfrom, bto? ) | date_on ) -->
244
56
  <choice>
245
57
  <group>
246
58
  <element name="from">
247
- <choice>
248
- <data type="gYear"/>
249
- <data type="date"/>
250
- </choice>
59
+ <ref name="ISO8601Date"/>
251
60
  </element>
252
61
  <optional>
253
62
  <element name="to">
254
- <choice>
255
- <data type="gYear"/>
256
- <data type="date"/>
257
- </choice>
63
+ <ref name="ISO8601Date"/>
258
64
  </element>
259
65
  </optional>
260
66
  </group>
261
67
  <element name="on">
262
68
  <choice>
263
- <data type="gYear"/>
264
- <data type="date"/>
69
+ <ref name="ISO8601Date"/>
265
70
  <value>--</value>
266
71
  </choice>
267
72
  </element>
268
73
  </choice>
269
74
  </element>
270
75
  </define>
271
- <define name="biblionote">
272
- <element name="note">
273
- <optional>
274
- <!-- Biblio date notes can be footnoted -->
275
- <attribute name="reference"/>
276
- </optional>
277
- <ref name="FormattedString"/>
278
- </element>
279
- </define>
280
- <define name="status">
281
- <element name="status">
282
- <choice>
283
- <ref name="FormattedString"/>
284
- <group>
285
- <ref name="stage"/>
286
- <optional>
287
- <ref name="substage"/>
288
- </optional>
289
- <optional>
290
- <ref name="iteration"/>
291
- </optional>
292
- </group>
293
- </choice>
294
- </element>
295
- </define>
296
- <define name="btitle">
297
- <element name="title">
298
- <choice>
299
- <ref name="FormattedString"/>
300
- <group>
301
- <optional>
302
- <ref name="title-intro"/>
303
- </optional>
304
- <ref name="title-main"/>
305
- <optional>
306
- <ref name="title-part"/>
307
- </optional>
308
- </group>
309
- </choice>
310
- </element>
311
- </define>
312
76
  <define name="sections">
313
77
  <element name="sections">
314
78
  <ref name="clause"/>
315
- <choice>
316
- <ref name="term-clause"/>
317
- <ref name="terms"/>
318
- </choice>
79
+ <optional>
80
+ <choice>
81
+ <ref name="term-clause"/>
82
+ <ref name="terms"/>
83
+ </choice>
84
+ </optional>
319
85
  <optional>
320
86
  <ref name="definitions"/>
321
87
  </optional>
@@ -330,6 +96,12 @@
330
96
  <data type="ID"/>
331
97
  </attribute>
332
98
  </optional>
99
+ <optional>
100
+ <attribute name="language"/>
101
+ </optional>
102
+ <optional>
103
+ <attribute name="script"/>
104
+ </optional>
333
105
  <optional>
334
106
  <attribute name="obligation">
335
107
  <choice>
@@ -356,6 +128,12 @@
356
128
  <data type="ID"/>
357
129
  </attribute>
358
130
  </optional>
131
+ <optional>
132
+ <attribute name="language"/>
133
+ </optional>
134
+ <optional>
135
+ <attribute name="script"/>
136
+ </optional>
359
137
  <optional>
360
138
  <attribute name="obligation">
361
139
  <choice>
@@ -387,6 +165,12 @@
387
165
  <data type="ID"/>
388
166
  </attribute>
389
167
  </optional>
168
+ <optional>
169
+ <attribute name="language"/>
170
+ </optional>
171
+ <optional>
172
+ <attribute name="script"/>
173
+ </optional>
390
174
  <optional>
391
175
  <attribute name="inline-header">
392
176
  <data type="boolean"/>
@@ -435,8 +219,14 @@
435
219
  <optional>
436
220
  <ref name="section-title"/>
437
221
  </optional>
222
+ <zeroOrMore>
223
+ <ref name="BasicBlock"/>
224
+ </zeroOrMore>
438
225
  <zeroOrMore>
439
226
  <ref name="bibitem"/>
227
+ <zeroOrMore>
228
+ <ref name="note"/>
229
+ </zeroOrMore>
440
230
  </zeroOrMore>
441
231
  <zeroOrMore>
442
232
  <ref name="references"/>
@@ -450,6 +240,12 @@
450
240
  <data type="ID"/>
451
241
  </attribute>
452
242
  </optional>
243
+ <optional>
244
+ <attribute name="language"/>
245
+ </optional>
246
+ <optional>
247
+ <attribute name="script"/>
248
+ </optional>
453
249
  <optional>
454
250
  <attribute name="obligation">
455
251
  <choice>
@@ -458,6 +254,9 @@
458
254
  </choice>
459
255
  </attribute>
460
256
  </optional>
257
+ <zeroOrMore>
258
+ <ref name="BasicBlock"/>
259
+ </zeroOrMore>
461
260
  <ref name="dl"/>
462
261
  </element>
463
262
  </define>
@@ -468,6 +267,12 @@
468
267
  <data type="ID"/>
469
268
  </attribute>
470
269
  </optional>
270
+ <optional>
271
+ <attribute name="language"/>
272
+ </optional>
273
+ <optional>
274
+ <attribute name="script"/>
275
+ </optional>
471
276
  <optional>
472
277
  <attribute name="obligation">
473
278
  <choice>
@@ -479,6 +284,9 @@
479
284
  <optional>
480
285
  <ref name="section-title"/>
481
286
  </optional>
287
+ <zeroOrMore>
288
+ <ref name="BasicBlock"/>
289
+ </zeroOrMore>
482
290
  <choice>
483
291
  <oneOrMore>
484
292
  <ref name="term"/>
@@ -541,6 +349,12 @@
541
349
  <data type="ID"/>
542
350
  </attribute>
543
351
  </optional>
352
+ <optional>
353
+ <attribute name="language"/>
354
+ </optional>
355
+ <optional>
356
+ <attribute name="script"/>
357
+ </optional>
544
358
  <optional>
545
359
  <attribute name="inline-header">
546
360
  <data type="boolean"/>
@@ -585,6 +399,7 @@
585
399
  </optional>
586
400
  <choice>
587
401
  <ref name="image"/>
402
+ <ref name="pre"/>
588
403
  <oneOrMore>
589
404
  <ref name="subfigure"/>
590
405
  </oneOrMore>
@@ -753,6 +568,39 @@
753
568
  </optional>
754
569
  </element>
755
570
  </define>
571
+ <define name="DocumentType">
572
+ <choice>
573
+ <value>international-standard</value>
574
+ <value>technical-specification</value>
575
+ <value>technical-report</value>
576
+ <value>publicly-available-specification</value>
577
+ <value>international-workshop-agreement</value>
578
+ <value>guide</value>
579
+ </choice>
580
+ </define>
581
+ <define name="structuredidentifier">
582
+ <element name="structuredidentifier">
583
+ <optional>
584
+ <attribute name="type"/>
585
+ </optional>
586
+ <group>
587
+ <ref name="documentnumber"/>
588
+ <optional>
589
+ <ref name="tc-documentnumber"/>
590
+ </optional>
591
+ </group>
592
+ </element>
593
+ </define>
594
+ <define name="foreword">
595
+ <element name="foreword">
596
+ <ref name="Basic-Section"/>
597
+ </element>
598
+ </define>
599
+ <define name="introduction">
600
+ <element name="introduction">
601
+ <ref name="Content-Section"/>
602
+ </element>
603
+ </define>
756
604
  </include>
757
605
  <!-- end overrides -->
758
606
  <!--
@@ -762,12 +610,12 @@
762
610
  <define name="iso-standard">
763
611
  <element name="iso-standard">
764
612
  <ref name="bibdata"/>
765
- <optional>
766
- <ref name="version"/>
767
- </optional>
768
613
  <zeroOrMore>
769
614
  <ref name="termdocsource"/>
770
615
  </zeroOrMore>
616
+ <optional>
617
+ <ref name="boilerplate"/>
618
+ </optional>
771
619
  <ref name="preface"/>
772
620
  <oneOrMore>
773
621
  <ref name="sections"/>
@@ -788,16 +636,6 @@
788
636
  </oneOrMore>
789
637
  </element>
790
638
  </define>
791
- <define name="BibItemType" combine="choice">
792
- <choice>
793
- <value>international-standard</value>
794
- <value>technical-specification</value>
795
- <value>technical-report</value>
796
- <value>publicly-available-specification</value>
797
- <value>international-workshop-agreement</value>
798
- <value>guide</value>
799
- </choice>
800
- </define>
801
639
  <define name="editorialgroup">
802
640
  <element name="editorialgroup">
803
641
  <oneOrMore>
@@ -819,50 +657,6 @@
819
657
  <ref name="Basic-Section"/>
820
658
  </element>
821
659
  </define>
822
- <define name="foreword">
823
- <element name="foreword">
824
- <ref name="Basic-Section"/>
825
- </element>
826
- </define>
827
- <define name="introduction">
828
- <element name="introduction">
829
- <ref name="Content-Section"/>
830
- </element>
831
- </define>
832
- <define name="stage">
833
- <element name="stage">
834
- <choice>
835
- <value>00</value>
836
- <value>10</value>
837
- <value>20</value>
838
- <value>30</value>
839
- <value>40</value>
840
- <value>50</value>
841
- <value>60</value>
842
- <value>90</value>
843
- <value>95</value>
844
- </choice>
845
- </element>
846
- </define>
847
- <define name="substage">
848
- <element name="substage">
849
- <choice>
850
- <value>00</value>
851
- <value>20</value>
852
- <value>60</value>
853
- <value>90</value>
854
- <value>92</value>
855
- <value>93</value>
856
- <value>98</value>
857
- <value>99</value>
858
- </choice>
859
- </element>
860
- </define>
861
- <define name="iteration">
862
- <element name="iteration">
863
- <data type="int"/>
864
- </element>
865
- </define>
866
660
  <define name="documentnumber">
867
661
  <element name="project-number">
868
662
  <optional>
@@ -914,26 +708,6 @@
914
708
  <text/>
915
709
  </element>
916
710
  </define>
917
- <define name="title-intro">
918
- <element name="title-intro">
919
- <ref name="FormattedString"/>
920
- </element>
921
- </define>
922
- <define name="title-main">
923
- <element name="title-main">
924
- <ref name="FormattedString"/>
925
- </element>
926
- </define>
927
- <define name="title-part">
928
- <element name="title-part">
929
- <ref name="FormattedString"/>
930
- </element>
931
- </define>
932
- <define name="allParts">
933
- <element name="allparts">
934
- <data type="boolean"/>
935
- </element>
936
- </define>
937
711
  <define name="clause-hanging-paragraph-with-footnote">
938
712
  <element name="clause">
939
713
  <optional>
@@ -941,6 +715,12 @@
941
715
  <data type="ID"/>
942
716
  </attribute>
943
717
  </optional>
718
+ <optional>
719
+ <attribute name="language"/>
720
+ </optional>
721
+ <optional>
722
+ <attribute name="script"/>
723
+ </optional>
944
724
  <optional>
945
725
  <attribute name="inline-header">
946
726
  <data type="boolean"/>
@@ -1002,6 +782,12 @@
1002
782
  <data type="ID"/>
1003
783
  </attribute>
1004
784
  </optional>
785
+ <optional>
786
+ <attribute name="language"/>
787
+ </optional>
788
+ <optional>
789
+ <attribute name="script"/>
790
+ </optional>
1005
791
  <optional>
1006
792
  <attribute name="inline-header">
1007
793
  <data type="boolean"/>
@@ -1034,6 +820,12 @@
1034
820
  <data type="ID"/>
1035
821
  </attribute>
1036
822
  </optional>
823
+ <optional>
824
+ <attribute name="language"/>
825
+ </optional>
826
+ <optional>
827
+ <attribute name="script"/>
828
+ </optional>
1037
829
  <optional>
1038
830
  <attribute name="inline-header">
1039
831
  <data type="boolean"/>