metanorma-ogc 2.6.12 → 2.7.1

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/ogc/html/_coverpage.css +132 -91
  3. data/lib/isodoc/ogc/html/_coverpage.scss +2 -0
  4. data/lib/isodoc/ogc/html/htmlstyle.css +772 -580
  5. data/lib/isodoc/ogc/html/htmlstyle.scss +3 -3
  6. data/lib/isodoc/ogc/html/ogc.css +272 -205
  7. data/lib/isodoc/ogc/html/ogc_wp.css +244 -181
  8. data/lib/isodoc/ogc/html/wordstyle.css +480 -411
  9. data/lib/isodoc/ogc/html/wordstyle_wp.css +404 -344
  10. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +369 -101
  11. data/lib/isodoc/ogc/ogc.best-practice.xsl +369 -101
  12. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +369 -101
  13. data/lib/isodoc/ogc/ogc.community-practice.xsl +369 -101
  14. data/lib/isodoc/ogc/ogc.community-standard.xsl +369 -101
  15. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +369 -101
  16. data/lib/isodoc/ogc/ogc.draft-standard.xsl +369 -101
  17. data/lib/isodoc/ogc/ogc.engineering-report.xsl +369 -101
  18. data/lib/isodoc/ogc/ogc.other.xsl +369 -101
  19. data/lib/isodoc/ogc/ogc.policy.xsl +369 -101
  20. data/lib/isodoc/ogc/ogc.reference-model.xsl +369 -101
  21. data/lib/isodoc/ogc/ogc.release-notes.xsl +369 -101
  22. data/lib/isodoc/ogc/ogc.standard.xsl +369 -101
  23. data/lib/isodoc/ogc/ogc.test-suite.xsl +369 -101
  24. data/lib/isodoc/ogc/ogc.user-guide.xsl +369 -101
  25. data/lib/isodoc/ogc/ogc.white-paper.xsl +346 -78
  26. data/lib/isodoc/ogc/presentation_xml_convert.rb +1 -0
  27. data/lib/isodoc/ogc/sections.rb +4 -0
  28. data/lib/metanorma/ogc/basicdoc.rng +37 -32
  29. data/lib/metanorma/ogc/converter.rb +2 -2
  30. data/lib/metanorma/ogc/isodoc.rng +35 -23
  31. data/lib/metanorma/ogc/ogc.rng +28 -30
  32. data/lib/metanorma/ogc/version.rb +1 -1
  33. data/metanorma-ogc.gemspec +4 -3
  34. metadata +26 -12
@@ -167,6 +167,7 @@ module IsoDoc
167
167
 
168
168
  def bibrender_formattedref(formattedref, xml); end
169
169
 
170
+ # KILL
170
171
  def bibrender_relaton(xml, renderings)
171
172
  f = renderings[xml["id"]][:formattedref]
172
173
  f &&= "<formattedref>#{f}</formattedref>"
@@ -17,6 +17,10 @@ module IsoDoc
17
17
  end
18
18
  end
19
19
 
20
+ def sections_names
21
+ super + %w[submitters]
22
+ end
23
+
20
24
  def intro_clause(elem, out)
21
25
  out.div class: "Section3", id: elem["id"] do |div|
22
26
  clause_name(elem, elem&.at(ns("./fmt-title")), div,
@@ -599,17 +599,9 @@ It is included for convenience, in case processing the citation to extract the a
599
599
  <a:documentation>The caption of the block</a:documentation>
600
600
  </ref>
601
601
  </optional>
602
- <oneOrMore>
603
- <choice>
604
- <text>
605
- <a:documentation>The computer code or other such text presented in the block, as a single unformatted string.
606
- (The string should be treated as pre-formatted text, with whitespace treated as significant)</a:documentation>
607
- </text>
608
- <ref name="callout">
609
- <a:documentation>Zero or more cross-references; these are intended to be embedded within the content string, and link to annotations</a:documentation>
610
- </ref>
611
- </choice>
612
- </oneOrMore>
602
+ <ref name="sourcecodebody">
603
+ <a:documentation>The sourcecode content</a:documentation>
604
+ </ref>
613
605
  <zeroOrMore>
614
606
  <ref name="annotation">
615
607
  <a:documentation>Annotations to the source code; each annotation consists of zero or more paragraphs,
@@ -628,17 +620,9 @@ and is intended to be referenced by a callout within the source code</a:document
628
620
  <a:documentation>The caption of the block</a:documentation>
629
621
  </ref>
630
622
  </optional>
631
- <oneOrMore>
632
- <choice>
633
- <text>
634
- <a:documentation>The computer code or other such text presented in the block, as a single unformatted string.
635
- (The string should be treated as pre-formatted text, with whitespace treated as significant)</a:documentation>
636
- </text>
637
- <ref name="callout">
638
- <a:documentation>Zero or more cross-references; these are intended to be embedded within the content string, and link to annotations</a:documentation>
639
- </ref>
640
- </choice>
641
- </oneOrMore>
623
+ <ref name="sourcecodebody">
624
+ <a:documentation>The sourcecode content</a:documentation>
625
+ </ref>
642
626
  <zeroOrMore>
643
627
  <ref name="annotation">
644
628
  <a:documentation>Annotations to the source code; each annotation consists of zero or more paragraphs,
@@ -651,6 +635,20 @@ and is intended to be referenced by a callout within the source code</a:document
651
635
  </ref>
652
636
  </zeroOrMore>
653
637
  </define>
638
+ <define name="sourcecodebody">
639
+ <a:documentation>The computer code or other such text presented in the block, as a single unformatted string.
640
+ (The string should be treated as pre-formatted text, with whitespace treated as significant)</a:documentation>
641
+ <element name="body">
642
+ <oneOrMore>
643
+ <choice>
644
+ <text/>
645
+ <ref name="callout">
646
+ <a:documentation>Zero or more cross-references; these are intended to be embedded within the content string, and link to annotations</a:documentation>
647
+ </ref>
648
+ </choice>
649
+ </oneOrMore>
650
+ </element>
651
+ </define>
654
652
  <define name="pre">
655
653
  <a:documentation>Pre-formatted block. Wrapper for text to be rendered with fixed-width typeface, and preserving spaces including line breaks.
656
654
  They are intended for a restricted number of functions, most typically ASCII Art (which is still in prominent use in some
@@ -1672,18 +1670,25 @@ which can be bookmarks as well as block or section references</a:documentation>
1672
1670
  </optional>
1673
1671
  </define>
1674
1672
  <define name="XrefBody">
1675
- <oneOrMore>
1676
- <ref name="PureTextElement">
1677
- <a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
1678
- </ref>
1679
- </oneOrMore>
1673
+ <a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
1674
+ <optional>
1675
+ <element name="display-text">
1676
+ <oneOrMore>
1677
+ <ref name="PureTextElement"/>
1678
+ </oneOrMore>
1679
+ </element>
1680
+ </optional>
1680
1681
  </define>
1681
1682
  <define name="ErefBody">
1682
- <oneOrMore>
1683
- <ref name="PureTextElement">
1684
- <a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
1685
- </ref>
1686
- </oneOrMore>
1683
+ <optional>
1684
+ <element name="display-text">
1685
+ <oneOrMore>
1686
+ <ref name="PureTextElement">
1687
+ <a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
1688
+ </ref>
1689
+ </oneOrMore>
1690
+ </element>
1691
+ </optional>
1687
1692
  </define>
1688
1693
  <define name="fn">
1689
1694
  <a:documentation>Inline reference to a paragraph or paragraphs, appearing as a footnote.
@@ -11,8 +11,8 @@ module Metanorma
11
11
  # schema encapsulation of the document for validation
12
12
  #
13
13
  class Converter < Standoc::Converter
14
- XML_ROOT_TAG = "ogc-standard".freeze
15
- XML_NAMESPACE = "https://www.metanorma.org/ns/ogc".freeze
14
+ #XML_ROOT_TAG = "ogc-standard".freeze
15
+ #XML_NAMESPACE = "https://www.metanorma.org/ns/ogc".freeze
16
16
 
17
17
  register_for "ogc"
18
18
 
@@ -17,7 +17,7 @@
17
17
  these elements; we just want one namespace for any child grammars
18
18
  of this.
19
19
  -->
20
- <!-- VERSION v1.4.1 -->
20
+ <!-- VERSION v2.0.0 -->
21
21
  <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">
22
22
  <include href="reqt.rng"/>
23
23
  <include href="basicdoc.rng">
@@ -245,23 +245,9 @@
245
245
  <a:documentation>The caption of the block</a:documentation>
246
246
  </ref>
247
247
  </optional>
248
- <oneOrMore>
249
- <choice>
250
- <text>
251
- <a:documentation>The computer code or other such text presented in the block, as a single unformatted string.
252
- (The string should be treated as pre-formatted text, with whitespace treated as significant)</a:documentation>
253
- </text>
254
- <ref name="callout">
255
- <a:documentation>Zero or more cross-references; these are intended to be embedded within the content string, and link to annotations</a:documentation>
256
- </ref>
257
- <ref name="xref">
258
- <a:documentation>Hyperlink of code segment to another part of the document</a:documentation>
259
- </ref>
260
- <ref name="eref">
261
- <a:documentation>Hyperlink of code segment to external bibliographic resource</a:documentation>
262
- </ref>
263
- </choice>
264
- </oneOrMore>
248
+ <ref name="sourcecodebody">
249
+ <a:documentation>The sourcecode content</a:documentation>
250
+ </ref>
265
251
  <zeroOrMore>
266
252
  <ref name="annotation">
267
253
  <a:documentation>Annotations to the source code; each annotation consists of zero or more paragraphs,
@@ -277,6 +263,26 @@ and is intended to be referenced by a callout within the source code</a:document
277
263
  <a:documentation>A source for the block</a:documentation>
278
264
  </ref>
279
265
  </define>
266
+ <define name="sourcecodebody">
267
+ <a:documentation>The computer code or other such text presented in the block, as a single unformatted string.
268
+ (The string should be treated as pre-formatted text, with whitespace treated as significant)</a:documentation>
269
+ <element name="body">
270
+ <oneOrMore>
271
+ <choice>
272
+ <text/>
273
+ <ref name="callout">
274
+ <a:documentation>Zero or more cross-references; these are intended to be embedded within the content string, and link to annotations</a:documentation>
275
+ </ref>
276
+ <ref name="xref">
277
+ <a:documentation>Hyperlink of code segment to another part of the document</a:documentation>
278
+ </ref>
279
+ <ref name="eref">
280
+ <a:documentation>Hyperlink of code segment to external bibliographic resource</a:documentation>
281
+ </ref>
282
+ </choice>
283
+ </oneOrMore>
284
+ </element>
285
+ </define>
280
286
  <define name="sections">
281
287
  <element name="sections">
282
288
  <oneOrMore>
@@ -459,11 +465,14 @@ gives an explicit page orientation</a:documentation>
459
465
  <a:documentation>Description of location in a reference, which can be combined with other locations in a single citation</a:documentation>
460
466
  </ref>
461
467
  </zeroOrMore>
462
- <zeroOrMore>
463
- <ref name="PureTextElement">
468
+ <optional>
469
+ <element name="display-text">
464
470
  <a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
465
- </ref>
466
- </zeroOrMore>
471
+ <oneOrMore>
472
+ <ref name="PureTextElement"/>
473
+ </oneOrMore>
474
+ </element>
475
+ </optional>
467
476
  </define>
468
477
  </include>
469
478
  <!-- end overrides -->
@@ -1205,10 +1214,13 @@ numbers</a:documentation>
1205
1214
  <value>presentation</value>
1206
1215
  </choice>
1207
1216
  </attribute>
1217
+ <attribute name="flavor">
1218
+ <a:documentation>Metanorma flavor, indicating SDO whose requiremnts the realisation aligns to</a:documentation>
1219
+ </attribute>
1208
1220
  </define>
1209
1221
  <define name="standard-document">
1210
1222
  <a:documentation>Representation of a standardisation document</a:documentation>
1211
- <element name="standard-document">
1223
+ <element name="metanorma">
1212
1224
  <ref name="Root-Attributes"/>
1213
1225
  <ref name="bibdata">
1214
1226
  <a:documentation>Bibliographic description of the document itself, expressed in the Relaton model</a:documentation>
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar ns='https://www.metanorma.org/ns/ogc' xmlns="http://relaxng.org/ns/structure/1.0">
2
+ <grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0">
3
3
  <!--
4
4
  VERSION v1.2.1
5
5
  Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
@@ -8,9 +8,6 @@
8
8
  -->
9
9
  <include href="relaton-ogc.rng"/>
10
10
  <include href="isodoc.rng">
11
- <start>
12
- <ref name="ogc-standard"/>
13
- </start>
14
11
  <define name="preface">
15
12
  <element name="preface">
16
13
  <optional>
@@ -22,7 +19,34 @@
22
19
  </optional>
23
20
  </element>
24
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>
25
48
  </include>
49
+ <!-- end overrides -->
26
50
  <define name="TextElement" combine="choice">
27
51
  <ref name="hi"/>
28
52
  </define>
@@ -44,30 +68,4 @@
44
68
  <ref name="Basic-Section"/>
45
69
  </element>
46
70
  </define>
47
- <define name="ogc-standard">
48
- <element name="ogc-standard">
49
- <ref name="Root-Attributes"/>
50
- <ref name="bibdata"/>
51
- <zeroOrMore>
52
- <ref name="termdocsource"/>
53
- </zeroOrMore>
54
- <optional>
55
- <ref name="misccontainer"/>
56
- </optional>
57
- <optional>
58
- <ref name="boilerplate"/>
59
- </optional>
60
- <ref name="preface"/>
61
- <oneOrMore>
62
- <ref name="sections"/>
63
- </oneOrMore>
64
- <zeroOrMore>
65
- <ref name="annex"/>
66
- </zeroOrMore>
67
- <ref name="bibliography"/>
68
- <zeroOrMore>
69
- <ref name="indexsect"/>
70
- </zeroOrMore>
71
- </element>
72
- </define>
73
71
  </grammar>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.6.12".freeze
3
+ VERSION = "2.7.1".freeze
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
27
27
 
28
28
  spec.add_dependency "iso-639"
29
- spec.add_dependency "metanorma-standoc", "~> 2.10.2"
29
+ spec.add_dependency "metanorma-standoc", "~> 3.0.0"
30
30
 
31
31
  spec.add_development_dependency "debug"
32
32
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
@@ -34,8 +34,9 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "guard-rspec", "~> 4.7"
35
35
  spec.add_development_dependency "rake", "~> 13.0"
36
36
  spec.add_development_dependency "rspec", "~> 3.6"
37
- spec.add_development_dependency "rubocop", "~> 1.5.2"
38
- spec.add_development_dependency "sassc", "2.4.0"
37
+ spec.add_development_dependency "rubocop", "~> 1"
38
+ spec.add_development_dependency "rubocop-performance"
39
+ spec.add_development_dependency "sassc-embedded", "~> 1"
39
40
  spec.add_development_dependency "simplecov", "~> 0.15"
40
41
  spec.add_development_dependency "timecop", "~> 0.9"
41
42
  spec.add_development_dependency "vcr", "~> 6.1.0"
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.6.12
4
+ version: 2.7.1
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-02-03 00:00:00.000000000 Z
11
+ date: 2025-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.10.2
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.10.2
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: debug
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,28 +128,42 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.5.2
131
+ version: '1'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.5.2
138
+ version: '1'
139
139
  - !ruby/object:Gem::Dependency
140
- name: sassc
140
+ name: rubocop-performance
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 2.4.0
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '='
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: sassc-embedded
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: 2.4.0
166
+ version: '1'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: simplecov
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -330,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
344
  - !ruby/object:Gem::Version
331
345
  version: '0'
332
346
  requirements: []
333
- rubygems_version: 3.3.27
347
+ rubygems_version: 3.5.22
334
348
  signing_key:
335
349
  specification_version: 4
336
350
  summary: Metanorma for the Open Geospatial Consortium.