metanorma-ogc 2.7.3 → 2.7.5

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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/ogc/base_convert.rb +4 -17
  3. data/lib/isodoc/ogc/html/htmlstyle.css +1 -1
  4. data/lib/isodoc/ogc/html/htmlstyle.scss +1 -1
  5. data/lib/isodoc/ogc/html/ogc.css +1 -1
  6. data/lib/isodoc/ogc/html/ogc.scss +1 -1
  7. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +354 -82
  8. data/lib/isodoc/ogc/ogc.best-practice.xsl +354 -82
  9. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +354 -82
  10. data/lib/isodoc/ogc/ogc.community-practice.xsl +354 -82
  11. data/lib/isodoc/ogc/ogc.community-standard.xsl +354 -82
  12. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +354 -82
  13. data/lib/isodoc/ogc/ogc.draft-standard.xsl +354 -82
  14. data/lib/isodoc/ogc/ogc.engineering-report.xsl +354 -82
  15. data/lib/isodoc/ogc/ogc.other.xsl +354 -82
  16. data/lib/isodoc/ogc/ogc.policy.xsl +354 -82
  17. data/lib/isodoc/ogc/ogc.reference-model.xsl +354 -82
  18. data/lib/isodoc/ogc/ogc.release-notes.xsl +354 -82
  19. data/lib/isodoc/ogc/ogc.standard.xsl +354 -82
  20. data/lib/isodoc/ogc/ogc.test-suite.xsl +354 -82
  21. data/lib/isodoc/ogc/ogc.user-guide.xsl +354 -82
  22. data/lib/isodoc/ogc/ogc.white-paper.xsl +341 -68
  23. data/lib/isodoc/ogc/presentation_sections.rb +18 -14
  24. data/lib/isodoc/ogc/presentation_xml_convert.rb +18 -8
  25. data/lib/isodoc/ogc/sections.rb +0 -11
  26. data/lib/isodoc/ogc/xref.rb +9 -10
  27. data/lib/metanorma/ogc/basicdoc.rng +14 -8
  28. data/lib/metanorma/ogc/biblio-standoc.rng +37 -7
  29. data/lib/metanorma/ogc/biblio.rng +30 -18
  30. data/lib/metanorma/ogc/cleanup.rb +8 -18
  31. data/lib/metanorma/ogc/converter.rb +12 -12
  32. data/lib/metanorma/ogc/isodoc.rng +130 -96
  33. data/lib/metanorma/ogc/ogc.rng +2 -67
  34. data/lib/metanorma/ogc/relaton-ogc.rng +0 -16
  35. data/lib/metanorma/ogc/reqt.rng +7 -6
  36. data/lib/metanorma/ogc/validate.rb +18 -21
  37. data/lib/metanorma/ogc/version.rb +1 -1
  38. metadata +2 -2
@@ -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.2 -->
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.4 -->
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,20 +417,12 @@ normative or informative references, some split references into sections organiz
423
417
  </oneOrMore>
424
418
  </choice>
425
419
  </define>
426
- <define name="TdAttributes" combine="interleave">
427
- <attribute name="style">
428
- <a:documentation>CSS style: only background-color supported</a:documentation>
429
- </attribute>
430
- </define>
431
- <define name="ThAttributes" combine="interleave">
432
- <attribute name="style">
433
- <a:documentation>CSS style: only background-color supported</a:documentation>
434
- </attribute>
435
- </define>
436
420
  <define name="TrAttributes">
437
- <attribute name="style">
438
- <a:documentation>CSS style: only background-color supported</a:documentation>
439
- </attribute>
421
+ <optional>
422
+ <attribute name="style">
423
+ <a:documentation>CSS style: only background-color supported</a:documentation>
424
+ </attribute>
425
+ </optional>
440
426
  </define>
441
427
  <define name="table-note">
442
428
  <element name="note">
@@ -500,6 +486,22 @@ gives an explicit page orientation</a:documentation>
500
486
  </define>
501
487
  </include>
502
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>
503
505
  <define name="NumberingAttributes" combine="interleave">
504
506
  <optional>
505
507
  <attribute name="number">
@@ -678,6 +680,13 @@ titlecase, or lowercase</a:documentation>
678
680
  </attribute>
679
681
  </optional>
680
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>
681
690
  <define name="ObligationType">
682
691
  <a:documentation>The force of a clause in a standard document: whether it has normative or informative effect</a:documentation>
683
692
  <choice>
@@ -1192,13 +1201,6 @@ numbers</a:documentation>
1192
1201
  </attribute>
1193
1202
  </optional>
1194
1203
  </define>
1195
- <define name="Basic-Section-Attributes" combine="interleave">
1196
- <optional>
1197
- <attribute name="obligation">
1198
- <ref name="ObligationType"/>
1199
- </attribute>
1200
- </optional>
1201
- </define>
1202
1204
  <define name="reference-clause">
1203
1205
  <a:documentation>References clause with recursive nesting</a:documentation>
1204
1206
  <element name="clause">
@@ -1239,7 +1241,7 @@ numbers</a:documentation>
1239
1241
  </choice>
1240
1242
  </attribute>
1241
1243
  <attribute name="flavor">
1242
- <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>
1243
1245
  </attribute>
1244
1246
  </define>
1245
1247
  <define name="standard-document">
@@ -1249,6 +1251,11 @@ numbers</a:documentation>
1249
1251
  <ref name="bibdata">
1250
1252
  <a:documentation>Bibliographic description of the document itself, expressed in the Relaton model</a:documentation>
1251
1253
  </ref>
1254
+ <zeroOrMore>
1255
+ <ref name="termdocsource">
1256
+ <a:documentation>Source for term definitions in the document</a:documentation>
1257
+ </ref>
1258
+ </zeroOrMore>
1252
1259
  <optional>
1253
1260
  <ref name="misccontainer">
1254
1261
  <a:documentation>Extension point for extraneous elements that need to be added to standards document as data</a:documentation>
@@ -1259,34 +1266,7 @@ numbers</a:documentation>
1259
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>
1260
1267
  </ref>
1261
1268
  </optional>
1262
- <optional>
1263
- <ref name="preface">
1264
- <a:documentation>Prefatory sections</a:documentation>
1265
- </ref>
1266
- </optional>
1267
- <ref name="sections">
1268
- <a:documentation>Main body of document</a:documentation>
1269
- </ref>
1270
- <zeroOrMore>
1271
- <ref name="annex">
1272
- <a:documentation>Annex sections</a:documentation>
1273
- </ref>
1274
- </zeroOrMore>
1275
- <optional>
1276
- <ref name="bibliography">
1277
- <a:documentation>Bibliographic sections</a:documentation>
1278
- </ref>
1279
- </optional>
1280
- <zeroOrMore>
1281
- <ref name="indexsect">
1282
- <a:documentation>Index of the document</a:documentation>
1283
- </ref>
1284
- </zeroOrMore>
1285
- <optional>
1286
- <ref name="colophon">
1287
- <a:documentation>Colophon or postface material</a:documentation>
1288
- </ref>
1289
- </optional>
1269
+ <ref name="DocumentBody"/>
1290
1270
  <optional>
1291
1271
  <ref name="review-container">
1292
1272
  <a:documentation>Annotations to the document</a:documentation>
@@ -1294,6 +1274,36 @@ numbers</a:documentation>
1294
1274
  </optional>
1295
1275
  </element>
1296
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>
1297
1307
  <define name="misccontainer">
1298
1308
  <a:documentation>Elements added to metanorma-extension are open-ended, and constitute source data</a:documentation>
1299
1309
  <element name="metanorma-extension">
@@ -1318,6 +1328,7 @@ numbers</a:documentation>
1318
1328
  <ref name="foreword"/>
1319
1329
  <ref name="introduction"/>
1320
1330
  <ref name="acknowledgements"/>
1331
+ <ref name="executivesummary"/>
1321
1332
  </choice>
1322
1333
  </oneOrMore>
1323
1334
  </element>
@@ -1341,6 +1352,11 @@ numbers</a:documentation>
1341
1352
  <ref name="Content-Section"/>
1342
1353
  </element>
1343
1354
  </define>
1355
+ <define name="executivesummary">
1356
+ <element name="executivesummary">
1357
+ <ref name="Content-Section"/>
1358
+ </element>
1359
+ </define>
1344
1360
  <define name="indexsect">
1345
1361
  <element name="indexsect">
1346
1362
  <ref name="Content-Section"/>
@@ -1566,6 +1582,15 @@ used in document amendments</a:documentation>
1566
1582
  <define name="annex">
1567
1583
  <element name="annex">
1568
1584
  <ref name="Annex-Section"/>
1585
+ <zeroOrMore>
1586
+ <ref name="annex-appendix"/>
1587
+ </zeroOrMore>
1588
+ </element>
1589
+ </define>
1590
+ <define name="annex-appendix">
1591
+ <a:documentation>Appendix, distinct subclause type for annexes (annex to annex, rather than subclause to annex)</a:documentation>
1592
+ <element name="appendix">
1593
+ <ref name="Clause-Section"/>
1569
1594
  </element>
1570
1595
  </define>
1571
1596
  <define name="terms">
@@ -1608,9 +1633,7 @@ used in document amendments</a:documentation>
1608
1633
  <define name="term">
1609
1634
  <a:documentation>Terminology entry with its definition</a:documentation>
1610
1635
  <element name="term">
1611
- <ref name="OptionalId"/>
1612
- <ref name="LocalizedStringAttributes"/>
1613
- <ref name="BlockAttributes"/>
1636
+ <ref name="TermAttributes"/>
1614
1637
  <oneOrMore>
1615
1638
  <ref name="preferred">
1616
1639
  <a:documentation>One or more names under which the term being defined is canonically known</a:documentation>
@@ -1662,6 +1685,11 @@ used in document amendments</a:documentation>
1662
1685
  </ref>
1663
1686
  </element>
1664
1687
  </define>
1688
+ <define name="TermAttributes">
1689
+ <ref name="OptionalId"/>
1690
+ <ref name="LocalizedStringAttributes"/>
1691
+ <ref name="BlockAttributes"/>
1692
+ </define>
1665
1693
  <define name="preferred">
1666
1694
  <element name="preferred">
1667
1695
  <ref name="Designation"/>
@@ -2323,26 +2351,32 @@ links within an SVG file, so that the SVG file can hyperlink to anchors within t
2323
2351
  </element>
2324
2352
  </define>
2325
2353
  <define name="ul_li">
2326
- <a:documentation>Unorderd list item for standards documents</a:documentation>
2354
+ <a:documentation>Unordered list item for standards documents</a:documentation>
2327
2355
  <element name="li">
2328
2356
  <ref name="OptionalId"/>
2329
- <optional>
2330
- <attribute name="uncheckedcheckbox">
2331
- <a:documentation>Include a checkbox for the list item</a:documentation>
2332
- <data type="boolean"/>
2333
- </attribute>
2334
- </optional>
2335
- <optional>
2336
- <attribute name="checkedcheckbox">
2337
- <a:documentation>Check the checkbox for the list item</a:documentation>
2338
- <data type="boolean"/>
2339
- </attribute>
2340
- </optional>
2341
- <oneOrMore>
2342
- <ref name="BasicBlock"/>
2343
- </oneOrMore>
2357
+ <ref name="UlLiAttributes"/>
2358
+ <ref name="UlLiBody"/>
2344
2359
  </element>
2345
2360
  </define>
2361
+ <define name="UlLiBody">
2362
+ <oneOrMore>
2363
+ <ref name="BasicBlock"/>
2364
+ </oneOrMore>
2365
+ </define>
2366
+ <define name="UlLiAttributes">
2367
+ <optional>
2368
+ <attribute name="uncheckedcheckbox">
2369
+ <a:documentation>Include a checkbox for the list item</a:documentation>
2370
+ <data type="boolean"/>
2371
+ </attribute>
2372
+ </optional>
2373
+ <optional>
2374
+ <attribute name="checkedcheckbox">
2375
+ <a:documentation>Check the checkbox for the list item</a:documentation>
2376
+ <data type="boolean"/>
2377
+ </attribute>
2378
+ </optional>
2379
+ </define>
2346
2380
  <define name="floating-title">
2347
2381
  <a:documentation>A floating title, outside of the clause hierarchy of the document</a:documentation>
2348
2382
  <element name="floating-title">
@@ -1,71 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0">
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
- -->
9
3
  <include href="relaton-ogc.rng"/>
10
- <include href="isodoc.rng">
11
- <define name="preface">
12
- <element name="preface">
13
- <optional>
14
- <ref name="abstract"/>
15
- </optional>
16
- <ref name="foreword"/>
17
- <optional>
18
- <ref name="submitters"/>
19
- </optional>
20
- </element>
21
- </define>
22
- <define name="standard-document">
23
- <element name="metanorma">
24
- <ref name="Root-Attributes"/>
25
- <ref name="bibdata"/>
26
- <zeroOrMore>
27
- <ref name="termdocsource"/>
28
- </zeroOrMore>
29
- <optional>
30
- <ref name="misccontainer"/>
31
- </optional>
32
- <optional>
33
- <ref name="boilerplate"/>
34
- </optional>
35
- <ref name="preface"/>
36
- <oneOrMore>
37
- <ref name="sections"/>
38
- </oneOrMore>
39
- <zeroOrMore>
40
- <ref name="annex"/>
41
- </zeroOrMore>
42
- <ref name="bibliography"/>
43
- <zeroOrMore>
44
- <ref name="indexsect"/>
45
- </zeroOrMore>
46
- </element>
47
- </define>
48
- </include>
49
- <!-- end overrides -->
50
- <define name="TextElement" combine="choice">
51
- <ref name="hi"/>
52
- </define>
53
- <define name="PureTextElement" combine="choice">
54
- <ref name="hi"/>
55
- </define>
56
- <define name="hi">
57
- <element name="hi">
58
- <zeroOrMore>
59
- <choice>
60
- <ref name="PureTextElement"/>
61
- <ref name="stem"/>
62
- </choice>
63
- </zeroOrMore>
64
- </element>
65
- </define>
66
- <define name="submitters">
67
- <element name="submitters">
68
- <ref name="Basic-Section"/>
69
- </element>
70
- </define>
4
+ <include href="isodoc.rng"/>
71
5
  </grammar>
6
+ <!-- end overrides -->
@@ -45,22 +45,6 @@
45
45
  </optional>
46
46
  </element>
47
47
  </define>
48
- <define name="BibDataExtensionType">
49
- <optional>
50
- <attribute name="schema-version"/>
51
- </optional>
52
- <optional>
53
- <ref name="doctype"/>
54
- </optional>
55
- <optional>
56
- <ref name="docsubtype"/>
57
- </optional>
58
- <ref name="flavor"/>
59
- <ref name="editorialgroup"/>
60
- <zeroOrMore>
61
- <ref name="ics"/>
62
- </zeroOrMore>
63
- </define>
64
48
  <define name="stage">
65
49
  <element name="stage">
66
50
  <ref name="StageType"/>
@@ -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,10 +1,8 @@
1
1
  module Metanorma
2
2
  module Ogc
3
3
  class Converter < Standoc::Converter
4
- def validate(doc)
5
- content_validate(doc)
6
- schema_validate(formattedstr_strip(doc.dup),
7
- File.join(File.dirname(__FILE__), "ogc.rng"))
4
+ def schema_file
5
+ "ogc.rng"
8
6
  end
9
7
 
10
8
  def title_validate(_root)
@@ -32,18 +30,18 @@ module Metanorma
32
30
  end
33
31
 
34
32
  def stage_type_validate(stage, doctype)
35
- err = case doctype
36
- when "standard", "abstract-specification-topic", "draft-standard"
37
- %w(draft work-item-draft).include?(stage)
38
- when "community-standard"
39
- %w(draft swg-draft).include?(stage)
40
- when "best-practice", "community-practice"
41
- %w(draft swg-draft work-item-draft).include?(stage)
42
- else %w(swg-draft oab-review public-rfc tc-vote
43
- work-item-draft deprecated rescinded legacy).include?(stage)
44
- end
45
- err and @log.add("Document Attributes", nil,
46
- "#{stage} is not an allowed status for #{doctype}")
33
+ case doctype
34
+ when "standard", "abstract-specification-topic", "draft-standard"
35
+ %w(draft work-item-draft).include?(stage)
36
+ when "community-standard"
37
+ %w(draft swg-draft).include?(stage)
38
+ when "best-practice", "community-practice"
39
+ %w(draft swg-draft work-item-draft).include?(stage)
40
+ else %w(swg-draft oab-review public-rfc tc-vote work-item-draft
41
+ deprecated rescinded legacy).include?(stage)
42
+ end and
43
+ @log.add("Document Attributes", nil,
44
+ "#{stage} is not an allowed status for #{doctype}")
47
45
  end
48
46
 
49
47
  def version_validate(xmldoc)
@@ -58,7 +56,7 @@ module Metanorma
58
56
  end
59
57
 
60
58
  def execsummary_validate(xmldoc)
61
- sect = xmldoc.at("//clause[@type = 'executivesummary']")
59
+ sect = xmldoc.at("//executivesummary")
62
60
  @doctype == "engineering-report" && sect.nil? and
63
61
  @log.add("Style", nil,
64
62
  "Executive Summary required for Engineering Reports!")
@@ -108,8 +106,7 @@ module Metanorma
108
106
  end
109
107
 
110
108
  def sections_sequence_validate(root)
111
- return unless STANDARDTYPE.include?(@doctype)
112
-
109
+ STANDARDTYPE.include?(@doctype) or return
113
110
  names = root.xpath("//sections/* | //bibliography/*")
114
111
  names = seqcheck(names, SEQ[0][:msg], SEQ[0][:val])
115
112
  names = seqcheck(names, SEQ[1][:msg], SEQ[1][:val])
@@ -139,8 +136,8 @@ module Metanorma
139
136
  root.at("//bibdata/contributor[role/@type = 'author']/organization/" \
140
137
  "name") or
141
138
  @log.add("Style", nil, "Submitting Organizations is missing!")
142
- root.at("//submitters") or @log.add("Style", nil,
143
- "Submitters is missing!")
139
+ root.at("//clause[@type = 'submitters' or @type = 'contributors']") or
140
+ @log.add("Style", nil, "Submitters is missing!")
144
141
  end
145
142
 
146
143
  def norm_ref_validate(doc)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.7.3".freeze
3
+ VERSION = "2.7.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.3
4
+ version: 2.7.5
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-31 00:00:00.000000000 Z
11
+ date: 2025-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639