metanorma-itu 2.6.2 → 2.6.4

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,24 +1,27 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- instantiations of this grammar may replace leaf strings
4
- with more elaborated types; e.g. title (text) replaced with
5
- title-main, title-intro, title-part; type replaced with
6
- enum.
7
-
8
- some renaming at leaf nodes is permissible
9
-
10
- obligations can change both from optional to mandatory,
11
- and from mandatory to optional; optional elements may
12
- be omitted; freely positioned alternatives may be replaced
13
- with strict ordering
14
-
15
- DO NOT introduce a namespace here. We do not want a distinct namespace
16
- for these elements, and a distinct namespace for any grammar inheriting
17
- these elements; we just want one namespace for any child grammars
18
- of this.
19
- -->
20
- <!-- VERSION v2.0.0 -->
21
2
  <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">
3
+ <!-- VERSION v2.0.3 -->
4
+
5
+ <!--
6
+ ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
7
+
8
+ instantiations of this grammar may replace leaf strings
9
+ with more elaborated types; e.g. title (text) replaced with
10
+ title-main, title-intro, title-part; type replaced with
11
+ enum.
12
+
13
+ some renaming at leaf nodes is permissible
14
+
15
+ obligations can change both from optional to mandatory,
16
+ and from mandatory to optional; optional elements may
17
+ be omitted; freely positioned alternatives may be replaced
18
+ with strict ordering
19
+
20
+ DO NOT introduce a namespace here. We do not want a distinct namespace
21
+ for these elements, and a distinct namespace for any grammar inheriting
22
+ these elements; we just want one namespace for any child grammars
23
+ of this.
24
+ -->
22
25
  <include href="reqt.rng"/>
23
26
  <include href="basicdoc.rng">
24
27
  <define name="amend">
@@ -33,15 +36,6 @@
33
36
  </zeroOrMore>
34
37
  </element>
35
38
  </define>
36
- <define name="fn" combine="interleave">
37
- <optional>
38
- <attribute name="hiddenref">
39
- <a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
40
- This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
41
- <data type="boolean"/>
42
- </attribute>
43
- </optional>
44
- </define>
45
39
  <define name="index-primary">
46
40
  <element name="primary">
47
41
  <oneOrMore>
@@ -423,6 +417,13 @@ normative or informative references, some split references into sections organiz
423
417
  </oneOrMore>
424
418
  </choice>
425
419
  </define>
420
+ <define name="TrAttributes">
421
+ <optional>
422
+ <attribute name="style">
423
+ <a:documentation>CSS style: only background-color supported</a:documentation>
424
+ </attribute>
425
+ </optional>
426
+ </define>
426
427
  <define name="table-note">
427
428
  <element name="note">
428
429
  <ref name="OptionalId"/>
@@ -485,6 +486,22 @@ gives an explicit page orientation</a:documentation>
485
486
  </define>
486
487
  </include>
487
488
  <!-- end overrides -->
489
+ <define name="FnAttributes" combine="interleave">
490
+ <optional>
491
+ <attribute name="hiddenref">
492
+ <a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
493
+ This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
494
+ <data type="boolean"/>
495
+ </attribute>
496
+ </optional>
497
+ </define>
498
+ <define name="TdAttributes" combine="interleave">
499
+ <optional>
500
+ <attribute name="style">
501
+ <a:documentation>CSS style: only background-color supported</a:documentation>
502
+ </attribute>
503
+ </optional>
504
+ </define>
488
505
  <define name="NumberingAttributes" combine="interleave">
489
506
  <optional>
490
507
  <attribute name="number">
@@ -663,6 +680,13 @@ titlecase, or lowercase</a:documentation>
663
680
  </attribute>
664
681
  </optional>
665
682
  </define>
683
+ <define name="Basic-Section-Attributes" combine="interleave">
684
+ <optional>
685
+ <attribute name="obligation">
686
+ <ref name="ObligationType"/>
687
+ </attribute>
688
+ </optional>
689
+ </define>
666
690
  <define name="ObligationType">
667
691
  <a:documentation>The force of a clause in a standard document: whether it has normative or informative effect</a:documentation>
668
692
  <choice>
@@ -1177,13 +1201,6 @@ numbers</a:documentation>
1177
1201
  </attribute>
1178
1202
  </optional>
1179
1203
  </define>
1180
- <define name="Basic-Section-Attributes" combine="interleave">
1181
- <optional>
1182
- <attribute name="obligation">
1183
- <ref name="ObligationType"/>
1184
- </attribute>
1185
- </optional>
1186
- </define>
1187
1204
  <define name="reference-clause">
1188
1205
  <a:documentation>References clause with recursive nesting</a:documentation>
1189
1206
  <element name="clause">
@@ -1224,7 +1241,7 @@ numbers</a:documentation>
1224
1241
  </choice>
1225
1242
  </attribute>
1226
1243
  <attribute name="flavor">
1227
- <a:documentation>Metanorma flavor, indicating SDO whose requiremnts the realisation aligns to</a:documentation>
1244
+ <a:documentation>Metanorma flavor, indicating SDO whose requirements the realisation aligns to</a:documentation>
1228
1245
  </attribute>
1229
1246
  </define>
1230
1247
  <define name="standard-document">
@@ -1234,6 +1251,11 @@ numbers</a:documentation>
1234
1251
  <ref name="bibdata">
1235
1252
  <a:documentation>Bibliographic description of the document itself, expressed in the Relaton model</a:documentation>
1236
1253
  </ref>
1254
+ <zeroOrMore>
1255
+ <ref name="termdocsource">
1256
+ <a:documentation>Source for term definitions in the document</a:documentation>
1257
+ </ref>
1258
+ </zeroOrMore>
1237
1259
  <optional>
1238
1260
  <ref name="misccontainer">
1239
1261
  <a:documentation>Extension point for extraneous elements that need to be added to standards document as data</a:documentation>
@@ -1244,36 +1266,44 @@ numbers</a:documentation>
1244
1266
  <a:documentation>Front matter that is repeated at the start of documents issued from an SDO, with content not specific to the document</a:documentation>
1245
1267
  </ref>
1246
1268
  </optional>
1269
+ <ref name="DocumentBody"/>
1247
1270
  <optional>
1248
- <ref name="preface">
1249
- <a:documentation>Prefatory sections</a:documentation>
1250
- </ref>
1251
- </optional>
1252
- <ref name="sections">
1253
- <a:documentation>Main body of document</a:documentation>
1254
- </ref>
1255
- <zeroOrMore>
1256
- <ref name="annex">
1257
- <a:documentation>Annex sections</a:documentation>
1258
- </ref>
1259
- </zeroOrMore>
1260
- <optional>
1261
- <ref name="bibliography">
1262
- <a:documentation>Bibliographic sections</a:documentation>
1263
- </ref>
1264
- </optional>
1265
- <zeroOrMore>
1266
- <ref name="indexsect">
1267
- <a:documentation>Index of the document</a:documentation>
1268
- </ref>
1269
- </zeroOrMore>
1270
- <optional>
1271
- <ref name="colophon">
1272
- <a:documentation>Colophon or postface material</a:documentation>
1271
+ <ref name="review-container">
1272
+ <a:documentation>Annotations to the document</a:documentation>
1273
1273
  </ref>
1274
1274
  </optional>
1275
1275
  </element>
1276
1276
  </define>
1277
+ <define name="DocumentBody">
1278
+ <optional>
1279
+ <ref name="preface">
1280
+ <a:documentation>Prefatory sections</a:documentation>
1281
+ </ref>
1282
+ </optional>
1283
+ <ref name="sections">
1284
+ <a:documentation>Main body of document</a:documentation>
1285
+ </ref>
1286
+ <zeroOrMore>
1287
+ <ref name="annex">
1288
+ <a:documentation>Annex sections</a:documentation>
1289
+ </ref>
1290
+ </zeroOrMore>
1291
+ <optional>
1292
+ <ref name="bibliography">
1293
+ <a:documentation>Bibliographic sections</a:documentation>
1294
+ </ref>
1295
+ </optional>
1296
+ <zeroOrMore>
1297
+ <ref name="indexsect">
1298
+ <a:documentation>Index of the document</a:documentation>
1299
+ </ref>
1300
+ </zeroOrMore>
1301
+ <optional>
1302
+ <ref name="colophon">
1303
+ <a:documentation>Colophon or postface material</a:documentation>
1304
+ </ref>
1305
+ </optional>
1306
+ </define>
1277
1307
  <define name="misccontainer">
1278
1308
  <a:documentation>Elements added to metanorma-extension are open-ended, and constitute source data</a:documentation>
1279
1309
  <element name="metanorma-extension">
@@ -1282,6 +1312,13 @@ numbers</a:documentation>
1282
1312
  </oneOrMore>
1283
1313
  </element>
1284
1314
  </define>
1315
+ <define name="review-container">
1316
+ <element name="review-container">
1317
+ <oneOrMore>
1318
+ <ref name="review"/>
1319
+ </oneOrMore>
1320
+ </element>
1321
+ </define>
1285
1322
  <define name="preface">
1286
1323
  <element name="preface">
1287
1324
  <oneOrMore>
@@ -1581,9 +1618,7 @@ used in document amendments</a:documentation>
1581
1618
  <define name="term">
1582
1619
  <a:documentation>Terminology entry with its definition</a:documentation>
1583
1620
  <element name="term">
1584
- <ref name="OptionalId"/>
1585
- <ref name="LocalizedStringAttributes"/>
1586
- <ref name="BlockAttributes"/>
1621
+ <ref name="TermAttributes"/>
1587
1622
  <oneOrMore>
1588
1623
  <ref name="preferred">
1589
1624
  <a:documentation>One or more names under which the term being defined is canonically known</a:documentation>
@@ -1635,6 +1670,11 @@ used in document amendments</a:documentation>
1635
1670
  </ref>
1636
1671
  </element>
1637
1672
  </define>
1673
+ <define name="TermAttributes">
1674
+ <ref name="OptionalId"/>
1675
+ <ref name="LocalizedStringAttributes"/>
1676
+ <ref name="BlockAttributes"/>
1677
+ </define>
1638
1678
  <define name="preferred">
1639
1679
  <element name="preferred">
1640
1680
  <ref name="Designation"/>
@@ -2296,26 +2336,32 @@ links within an SVG file, so that the SVG file can hyperlink to anchors within t
2296
2336
  </element>
2297
2337
  </define>
2298
2338
  <define name="ul_li">
2299
- <a:documentation>Unorderd list item for standards documents</a:documentation>
2339
+ <a:documentation>Unordered list item for standards documents</a:documentation>
2300
2340
  <element name="li">
2301
2341
  <ref name="OptionalId"/>
2302
- <optional>
2303
- <attribute name="uncheckedcheckbox">
2304
- <a:documentation>Include a checkbox for the list item</a:documentation>
2305
- <data type="boolean"/>
2306
- </attribute>
2307
- </optional>
2308
- <optional>
2309
- <attribute name="checkedcheckbox">
2310
- <a:documentation>Check the checkbox for the list item</a:documentation>
2311
- <data type="boolean"/>
2312
- </attribute>
2313
- </optional>
2314
- <oneOrMore>
2315
- <ref name="BasicBlock"/>
2316
- </oneOrMore>
2342
+ <ref name="UlLiAttributes"/>
2343
+ <ref name="UlLiBody"/>
2317
2344
  </element>
2318
2345
  </define>
2346
+ <define name="UlLiBody">
2347
+ <oneOrMore>
2348
+ <ref name="BasicBlock"/>
2349
+ </oneOrMore>
2350
+ </define>
2351
+ <define name="UlLiAttributes">
2352
+ <optional>
2353
+ <attribute name="uncheckedcheckbox">
2354
+ <a:documentation>Include a checkbox for the list item</a:documentation>
2355
+ <data type="boolean"/>
2356
+ </attribute>
2357
+ </optional>
2358
+ <optional>
2359
+ <attribute name="checkedcheckbox">
2360
+ <a:documentation>Check the checkbox for the list item</a:documentation>
2361
+ <data type="boolean"/>
2362
+ </attribute>
2363
+ </optional>
2364
+ </define>
2319
2365
  <define name="floating-title">
2320
2366
  <a:documentation>A floating title, outside of the clause hierarchy of the document</a:documentation>
2321
2367
  <element name="floating-title">
@@ -1,14 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <!--
4
- VERSION v1.2.1
5
- Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
6
- we cannot have a new default namespace: we will end up with a grammar with two different
7
- namespaces, one for isostandard and one for csand additions. And we do not want that.
8
- -->
2
+ <grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0">
9
3
  <include href="relaton-itu.rng"/>
10
4
  <include href="isodoc.rng">
11
- <define name="OlAttr" combine="interleave">
5
+ <define name="OlAttributes" combine="interleave">
12
6
  <optional>
13
7
  <attribute name="class">
14
8
  <value>steps</value>
@@ -30,38 +24,10 @@
30
24
  </element>
31
25
  </define>
32
26
  <define name="Clause-Section">
33
- <optional>
34
- <attribute name="id">
35
- <data type="ID"/>
36
- </attribute>
37
- </optional>
38
- <optional>
39
- <attribute name="language"/>
40
- </optional>
41
- <optional>
42
- <attribute name="script"/>
43
- </optional>
44
- <optional>
45
- <attribute name="inline-header">
46
- <data type="boolean"/>
47
- </attribute>
48
- </optional>
49
- <optional>
50
- <attribute name="obligation">
51
- <choice>
52
- <value>normative</value>
53
- <value>informative</value>
54
- </choice>
55
- </attribute>
56
- </optional>
27
+ <ref name="Section-Attributes"/>
57
28
  <optional>
58
29
  <attribute name="type"/>
59
30
  </optional>
60
- <optional>
61
- <attribute name="unnumbered">
62
- <data type="boolean"/>
63
- </attribute>
64
- </optional>
65
31
  <optional>
66
32
  <ref name="section-title"/>
67
33
  </optional>
@@ -82,31 +48,5 @@
82
48
  </zeroOrMore>
83
49
  </group>
84
50
  </define>
85
- <define name="standard-document">
86
- <element name="metanorma">
87
- <ref name="Root-Attributes"/>
88
- <ref name="bibdata"/>
89
- <zeroOrMore>
90
- <ref name="termdocsource"/>
91
- </zeroOrMore>
92
- <optional>
93
- <ref name="misccontainer"/>
94
- </optional>
95
- <optional>
96
- <ref name="boilerplate"/>
97
- </optional>
98
- <ref name="preface"/>
99
- <oneOrMore>
100
- <ref name="sections"/>
101
- </oneOrMore>
102
- <zeroOrMore>
103
- <ref name="annex"/>
104
- </zeroOrMore>
105
- <ref name="bibliography"/>
106
- <zeroOrMore>
107
- <ref name="indexsect"/>
108
- </zeroOrMore>
109
- </element>
110
- </define>
111
51
  </include>
112
52
  </grammar>
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
2
+ <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">
3
3
  <include href="biblio-standoc.rng">
4
4
  <define name="DocumentType">
5
5
  <choice>
@@ -61,52 +61,49 @@
61
61
  </optional>
62
62
  </element>
63
63
  </define>
64
- <define name="BibDataExtensionType">
65
- <optional>
66
- <attribute name="schema-version"/>
67
- </optional>
68
- <optional>
69
- <ref name="doctype"/>
70
- </optional>
71
- <optional>
72
- <ref name="docsubtype"/>
73
- </optional>
74
- <ref name="flavor"/>
75
- <oneOrMore>
76
- <ref name="editorialgroup"/>
77
- </oneOrMore>
78
- <zeroOrMore>
79
- <ref name="question"/>
80
- </zeroOrMore>
81
- <zeroOrMore>
82
- <ref name="ics"/>
83
- </zeroOrMore>
84
- <optional>
85
- <ref name="recommendationstatus"/>
86
- </optional>
87
- <optional>
88
- <ref name="ipnoticereceived"/>
89
- </optional>
90
- <optional>
91
- <ref name="meeting"/>
92
- </optional>
93
- <optional>
94
- <ref name="meeting-place"/>
95
- </optional>
96
- <optional>
97
- <ref name="meeting-date"/>
98
- </optional>
99
- <optional>
100
- <ref name="intended-type"/>
101
- </optional>
102
- <optional>
103
- <ref name="ext_source"/>
104
- </optional>
105
- <optional>
106
- <ref name="structuredidentifier"/>
107
- </optional>
108
- </define>
109
64
  </include>
65
+ <define name="BibDataExtensionType" combine="interleave">
66
+ <zeroOrMore>
67
+ <ref name="question">
68
+ <a:documentation>The Questions that the document addresses. A document can address multiple questions</a:documentation>
69
+ </ref>
70
+ </zeroOrMore>
71
+ <optional>
72
+ <ref name="recommendationstatus">
73
+ <a:documentation>Status of approval of Recommendation status</a:documentation>
74
+ </ref>
75
+ </optional>
76
+ <optional>
77
+ <ref name="ipnoticereceived">
78
+ <a:documentation>ITU has received a notice of intellectual property, protected by patents, which may be required to implement this Recommendation</a:documentation>
79
+ </ref>
80
+ </optional>
81
+ <optional>
82
+ <ref name="meeting">
83
+ <a:documentation>Name of meeting that generated this document (for resolutions, technical reports, technical papers, implementers guides) </a:documentation>
84
+ </ref>
85
+ </optional>
86
+ <optional>
87
+ <ref name="meeting-place">
88
+ <a:documentation>Place of meeting that generated this document (for resolutions, technical reports, technical papers, implementers guides)</a:documentation>
89
+ </ref>
90
+ </optional>
91
+ <optional>
92
+ <ref name="meeting-date">
93
+ <a:documentation>Date of meeting that generated this document (for resolutions, technical reports, technical papers, implementers guides)</a:documentation>
94
+ </ref>
95
+ </optional>
96
+ <optional>
97
+ <ref name="intended-type">
98
+ <a:documentation>Intended type for this document (for technical reports) (`R`, `C`, `TD`) </a:documentation>
99
+ </ref>
100
+ </optional>
101
+ <optional>
102
+ <ref name="ext_source">
103
+ <a:documentation>Source for this document (for technical reports, technical papers, implementers guides) </a:documentation>
104
+ </ref>
105
+ </optional>
106
+ </define>
110
107
  <define name="meeting">
111
108
  <element name="meeting">
112
109
  <optional>
@@ -1,5 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <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">
3
+ <define name="requirement">
4
+ <element name="requirement">
5
+ <ref name="RequirementType"/>
6
+ </element>
7
+ </define>
8
+ <!-- ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437 -->
3
9
  <!--
4
10
  Presupposes isodoc.rnc, is included in it
5
11
  include "isodoc.rnc" { }
@@ -7,14 +13,9 @@
7
13
  This is the Metanorma default provisions model; it is overridden by other provisions models,
8
14
  such as Modspec
9
15
  -->
10
- <define name="requirement">
16
+ <define name="recommendation">
11
17
  <a:documentation>Specification of an attribute of a subject that is required.
12
18
  NOTE: A requirement can contain other requirements</a:documentation>
13
- <element name="requirement">
14
- <ref name="RequirementType"/>
15
- </element>
16
- </define>
17
- <define name="recommendation">
18
19
  <a:documentation>Specification of an attribute of a subject that is recommended</a:documentation>
19
20
  <element name="recommendation">
20
21
  <ref name="RequirementType"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Itu
3
- VERSION = "2.6.2".freeze
3
+ VERSION = "2.6.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-17 00:00:00.000000000 Z
11
+ date: 2025-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc