metanorma-ogc 2.1.0 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/ogc/html/htmlstyle.css +6 -0
  3. data/lib/isodoc/ogc/html/htmlstyle.scss +2 -0
  4. data/lib/isodoc/ogc/html/ogc.css +18 -12
  5. data/lib/isodoc/ogc/html/ogc.scss +16 -9
  6. data/lib/isodoc/ogc/html/ogc_wp.css +18 -12
  7. data/lib/isodoc/ogc/html/ogc_wp.scss +16 -9
  8. data/lib/isodoc/ogc/html/word_ogc_intro.html +2 -3
  9. data/lib/isodoc/ogc/html/word_ogc_intro_wp.html +1 -2
  10. data/lib/isodoc/ogc/html/word_ogc_titlepage.html +17 -17
  11. data/lib/isodoc/ogc/i18n.rb +1 -1
  12. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +1355 -329
  13. data/lib/isodoc/ogc/ogc.best-practice.xsl +1355 -329
  14. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +1355 -329
  15. data/lib/isodoc/ogc/ogc.community-practice.xsl +1355 -329
  16. data/lib/isodoc/ogc/ogc.community-standard.xsl +1355 -329
  17. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +1355 -329
  18. data/lib/isodoc/ogc/ogc.engineering-report.xsl +1355 -329
  19. data/lib/isodoc/ogc/ogc.other.xsl +1355 -329
  20. data/lib/isodoc/ogc/ogc.policy.xsl +1355 -329
  21. data/lib/isodoc/ogc/ogc.reference-model.xsl +1355 -329
  22. data/lib/isodoc/ogc/ogc.release-notes.xsl +1355 -329
  23. data/lib/isodoc/ogc/ogc.standard.xsl +1355 -329
  24. data/lib/isodoc/ogc/ogc.test-suite.xsl +1355 -329
  25. data/lib/isodoc/ogc/ogc.user-guide.xsl +1355 -329
  26. data/lib/isodoc/ogc/ogc.white-paper.xsl +1339 -312
  27. data/lib/isodoc/ogc/presentation_xml_convert.rb +17 -2
  28. data/lib/isodoc/ogc/word_convert.rb +1 -1
  29. data/lib/metanorma/ogc/biblio.rng +134 -39
  30. data/lib/metanorma/ogc/isodoc.rng +16 -0
  31. data/lib/metanorma/ogc/version.rb +1 -1
  32. metadata +3 -3
@@ -98,13 +98,13 @@ module IsoDoc
98
98
 
99
99
  def example1(elem)
100
100
  lbl = @xrefs.anchor(elem["id"], :label, false) or return
101
- prefix_name(elem, " — ", l10n("#{@i18n.example} #{lbl}"),
101
+ prefix_name(elem, block_delim, l10n("#{@i18n.example} #{lbl}"),
102
102
  "name")
103
103
  end
104
104
 
105
105
  def recommendation1(elem, _type)
106
106
  type = recommendation_class_label(elem)
107
- label = elem&.at(ns("./label"))&.text
107
+ label = elem.at(ns("./label"))&.text
108
108
  if inject_crossreference_reqt?(elem, label)
109
109
  n = @xrefs.anchor(@xrefs.reqtlabels[label], :xref, false)
110
110
  lbl = (n.nil? ? type : n)
@@ -234,6 +234,21 @@ module IsoDoc
234
234
  end
235
235
  end
236
236
 
237
+ def display_order(docxml)
238
+ i = 0
239
+ i = display_order_xpath(docxml, "//preface/*", i)
240
+ i = display_order_at(docxml, "//clause[@type = 'scope']", i)
241
+ i = display_order_at(docxml, "//clause[@type = 'conformance']", i)
242
+ i = display_order_at(docxml, @xrefs.klass.norm_ref_xpath, i)
243
+ i = display_order_at(docxml, "//sections/terms | "\
244
+ "//sections/clause[descendant::terms]", i)
245
+ i = display_order_at(docxml, "//sections/definitions", i)
246
+ i = display_order_xpath(docxml, @xrefs.klass.middle_clause(docxml), i)
247
+ i = display_order_xpath(docxml, "//annex", i)
248
+ i = display_order_xpath(docxml, @xrefs.klass.bibliography_xpath, i)
249
+ display_order_xpath(docxml, "//indexsect", i)
250
+ end
251
+
237
252
  include Init
238
253
  end
239
254
  end
@@ -102,7 +102,7 @@ module IsoDoc
102
102
  submitters docxml, div2
103
103
  preface docxml, div2
104
104
  acknowledgements docxml, div2
105
- div2.p { |p| p << "&nbsp;" } # placeholder
105
+ div2.p { |p| p << "&#xA0;" } # placeholder
106
106
  end
107
107
  section_break(body)
108
108
  end
@@ -614,12 +614,103 @@
614
614
  <optional>
615
615
  <ref name="fetched"/>
616
616
  </optional>
617
- <choice>
618
- <oneOrMore>
619
- <ref name="btitle"/>
620
- </oneOrMore>
617
+ <optional>
621
618
  <ref name="formattedref"/>
622
- </choice>
619
+ </optional>
620
+ <oneOrMore>
621
+ <ref name="btitle"/>
622
+ </oneOrMore>
623
+ <zeroOrMore>
624
+ <ref name="bsource"/>
625
+ </zeroOrMore>
626
+ <oneOrMore>
627
+ <ref name="docidentifier"/>
628
+ </oneOrMore>
629
+ <optional>
630
+ <ref name="docnumber"/>
631
+ </optional>
632
+ <zeroOrMore>
633
+ <ref name="bdate"/>
634
+ </zeroOrMore>
635
+ <zeroOrMore>
636
+ <ref name="contributor"/>
637
+ </zeroOrMore>
638
+ <optional>
639
+ <ref name="edition"/>
640
+ </optional>
641
+ <zeroOrMore>
642
+ <ref name="version"/>
643
+ </zeroOrMore>
644
+ <zeroOrMore>
645
+ <ref name="biblionote"/>
646
+ </zeroOrMore>
647
+ <zeroOrMore>
648
+ <ref name="language"/>
649
+ </zeroOrMore>
650
+ <zeroOrMore>
651
+ <ref name="script"/>
652
+ </zeroOrMore>
653
+ <zeroOrMore>
654
+ <ref name="bibabstract"/>
655
+ </zeroOrMore>
656
+ <optional>
657
+ <ref name="status"/>
658
+ </optional>
659
+ <zeroOrMore>
660
+ <ref name="copyright"/>
661
+ </zeroOrMore>
662
+ <zeroOrMore>
663
+ <ref name="docrelation"/>
664
+ </zeroOrMore>
665
+ <zeroOrMore>
666
+ <ref name="series"/>
667
+ </zeroOrMore>
668
+ <optional>
669
+ <ref name="medium"/>
670
+ </optional>
671
+ <zeroOrMore>
672
+ <ref name="bplace"/>
673
+ </zeroOrMore>
674
+ <zeroOrMore>
675
+ <ref name="bprice"/>
676
+ </zeroOrMore>
677
+ <zeroOrMore>
678
+ <ref name="extent"/>
679
+ </zeroOrMore>
680
+ <optional>
681
+ <ref name="bibliographic_size"/>
682
+ </optional>
683
+ <zeroOrMore>
684
+ <ref name="accesslocation"/>
685
+ </zeroOrMore>
686
+ <zeroOrMore>
687
+ <ref name="license"/>
688
+ </zeroOrMore>
689
+ <zeroOrMore>
690
+ <ref name="bclassification"/>
691
+ </zeroOrMore>
692
+ <zeroOrMore>
693
+ <ref name="bkeyword"/>
694
+ </zeroOrMore>
695
+ <optional>
696
+ <ref name="validity"/>
697
+ </optional>
698
+ </define>
699
+ <define name="ReducedBibliographicItem">
700
+ <optional>
701
+ <attribute name="type">
702
+ <ref name="BibItemType"/>
703
+ </attribute>
704
+ </optional>
705
+ <optional>
706
+ <ref name="fetched"/>
707
+ </optional>
708
+ <optional>
709
+ <ref name="formattedref"/>
710
+ </optional>
711
+ <zeroOrMore>
712
+ <ref name="btitle"/>
713
+ </zeroOrMore>
623
714
  <zeroOrMore>
624
715
  <ref name="bsource"/>
625
716
  </zeroOrMore>
@@ -638,9 +729,9 @@
638
729
  <optional>
639
730
  <ref name="edition"/>
640
731
  </optional>
641
- <optional>
732
+ <zeroOrMore>
642
733
  <ref name="version"/>
643
- </optional>
734
+ </zeroOrMore>
644
735
  <zeroOrMore>
645
736
  <ref name="biblionote"/>
646
737
  </zeroOrMore>
@@ -833,6 +924,12 @@
833
924
  <data type="boolean"/>
834
925
  </attribute>
835
926
  </optional>
927
+ <optional>
928
+ <attribute name="language"/>
929
+ </optional>
930
+ <optional>
931
+ <attribute name="script"/>
932
+ </optional>
836
933
  <text/>
837
934
  </element>
838
935
  </define>
@@ -986,36 +1083,34 @@
986
1083
  <ref name="SeriesType"/>
987
1084
  </attribute>
988
1085
  </optional>
989
- <choice>
1086
+ <optional>
990
1087
  <ref name="formattedref"/>
991
- <group>
992
- <ref name="btitle"/>
993
- <optional>
994
- <ref name="bplace"/>
995
- </optional>
996
- <optional>
997
- <ref name="seriesorganization"/>
998
- </optional>
999
- <optional>
1000
- <ref name="abbreviation"/>
1001
- </optional>
1002
- <optional>
1003
- <ref name="seriesfrom"/>
1004
- </optional>
1005
- <optional>
1006
- <ref name="seriesto"/>
1007
- </optional>
1008
- <optional>
1009
- <ref name="seriesnumber"/>
1010
- </optional>
1011
- <optional>
1012
- <ref name="seriespartnumber"/>
1013
- </optional>
1014
- <optional>
1015
- <ref name="seriesrun"/>
1016
- </optional>
1017
- </group>
1018
- </choice>
1088
+ </optional>
1089
+ <ref name="btitle"/>
1090
+ <optional>
1091
+ <ref name="bplace"/>
1092
+ </optional>
1093
+ <optional>
1094
+ <ref name="seriesorganization"/>
1095
+ </optional>
1096
+ <optional>
1097
+ <ref name="abbreviation"/>
1098
+ </optional>
1099
+ <optional>
1100
+ <ref name="seriesfrom"/>
1101
+ </optional>
1102
+ <optional>
1103
+ <ref name="seriesto"/>
1104
+ </optional>
1105
+ <optional>
1106
+ <ref name="seriesnumber"/>
1107
+ </optional>
1108
+ <optional>
1109
+ <ref name="seriespartnumber"/>
1110
+ </optional>
1111
+ <optional>
1112
+ <ref name="seriesrun"/>
1113
+ </optional>
1019
1114
  </element>
1020
1115
  </define>
1021
1116
  <define name="SeriesType">
@@ -1174,7 +1269,7 @@
1174
1269
  </element>
1175
1270
  </optional>
1176
1271
  <element name="bibitem">
1177
- <ref name="BibliographicItem"/>
1272
+ <ref name="ReducedBibliographicItem"/>
1178
1273
  </element>
1179
1274
  <choice>
1180
1275
  <zeroOrMore>
@@ -1199,9 +1294,9 @@
1199
1294
  <optional>
1200
1295
  <ref name="revision-date"/>
1201
1296
  </optional>
1202
- <zeroOrMore>
1297
+ <optional>
1203
1298
  <ref name="draft"/>
1204
- </zeroOrMore>
1299
+ </optional>
1205
1300
  </element>
1206
1301
  </define>
1207
1302
  <define name="vedition">
@@ -282,6 +282,9 @@
282
282
  <ref name="MultilingualRenderingType"/>
283
283
  </attribute>
284
284
  </optional>
285
+ <optional>
286
+ <ref name="tname"/>
287
+ </optional>
285
288
  <oneOrMore>
286
289
  <ref name="ul_li"/>
287
290
  </oneOrMore>
@@ -324,6 +327,9 @@
324
327
  </choice>
325
328
  </attribute>
326
329
  </optional>
330
+ <optional>
331
+ <ref name="tname"/>
332
+ </optional>
327
333
  <oneOrMore>
328
334
  <ref name="li"/>
329
335
  </oneOrMore>
@@ -360,6 +366,9 @@
360
366
  <ref name="MultilingualRenderingType"/>
361
367
  </attribute>
362
368
  </optional>
369
+ <optional>
370
+ <ref name="tname"/>
371
+ </optional>
363
372
  <oneOrMore>
364
373
  <ref name="dt"/>
365
374
  <ref name="dd"/>
@@ -694,6 +703,9 @@
694
703
  <optional>
695
704
  <attribute name="tag"/>
696
705
  </optional>
706
+ <optional>
707
+ <attribute name="type"/>
708
+ </optional>
697
709
  <optional>
698
710
  <attribute name="multilingual-rendering">
699
711
  <ref name="MultilingualRenderingType"/>
@@ -729,6 +741,9 @@
729
741
  <optional>
730
742
  <attribute name="tag"/>
731
743
  </optional>
744
+ <optional>
745
+ <attribute name="type"/>
746
+ </optional>
732
747
  <optional>
733
748
  <attribute name="multilingual-rendering">
734
749
  <ref name="MultilingualRenderingType"/>
@@ -2050,6 +2065,7 @@
2050
2065
  <value>compare</value>
2051
2066
  <value>contrast</value>
2052
2067
  <value>see</value>
2068
+ <value>seealso</value>
2053
2069
  </choice>
2054
2070
  </define>
2055
2071
  <define name="deprecates">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.1.0".freeze
3
+ VERSION = "2.1.3".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.1.0
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-09 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  - !ruby/object:Gem::Version
291
291
  version: '0'
292
292
  requirements: []
293
- rubygems_version: 3.3.9
293
+ rubygems_version: 3.3.16
294
294
  signing_key:
295
295
  specification_version: 4
296
296
  summary: Metanorma for the Open Geospatial Consortium.