metanorma-ogc 2.8.3 → 2.8.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.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/html/htmlstyle.css +25 -31
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +86 -36
- data/lib/isodoc/ogc/ogc.best-practice.xsl +86 -36
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +86 -36
- data/lib/isodoc/ogc/ogc.community-practice.xsl +86 -36
- data/lib/isodoc/ogc/ogc.community-standard.xsl +86 -36
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +86 -36
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +86 -36
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +86 -36
- data/lib/isodoc/ogc/ogc.other.xsl +86 -36
- data/lib/isodoc/ogc/ogc.policy.xsl +86 -36
- data/lib/isodoc/ogc/ogc.reference-model.xsl +86 -36
- data/lib/isodoc/ogc/ogc.release-notes.xsl +86 -36
- data/lib/isodoc/ogc/ogc.standard.xsl +86 -36
- data/lib/isodoc/ogc/ogc.test-suite.xsl +86 -36
- data/lib/isodoc/ogc/ogc.user-guide.xsl +86 -36
- data/lib/isodoc/ogc/ogc.white-paper.xsl +50 -7
- data/lib/metanorma/ogc/front.rb +3 -4
- data/lib/metanorma/ogc/isodoc.rng +26 -19
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -373,7 +373,9 @@
|
|
373
373
|
|
374
374
|
<xsl:template match="mn:preface//mn:clause[@type = 'toc']" name="toc" priority="4">
|
375
375
|
<fo:block break-after="page"/>
|
376
|
-
<fo:block-container
|
376
|
+
<fo:block-container xsl:use-attribute-sets="toc-style">
|
377
|
+
|
378
|
+
<xsl:call-template name="refine_toc-style"/>
|
377
379
|
|
378
380
|
<xsl:apply-templates select="mn:fmt-title"/>
|
379
381
|
|
@@ -535,7 +537,7 @@
|
|
535
537
|
</xsl:template>
|
536
538
|
|
537
539
|
<xsl:template match="mn:feedback-statement" priority="2">
|
538
|
-
<fo:block
|
540
|
+
<fo:block xsl:use-attribute-sets="feedback-statement-style">
|
539
541
|
<xsl:apply-templates select="mn:clause[1]"/>
|
540
542
|
</fo:block>
|
541
543
|
</xsl:template>
|
@@ -986,6 +988,7 @@
|
|
986
988
|
<xsl:variable name="en_dash">–</xsl:variable>
|
987
989
|
<xsl:variable name="em_dash">—</xsl:variable>
|
988
990
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
991
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
989
992
|
<xsl:variable name="cr"> </xsl:variable>
|
990
993
|
<xsl:variable name="lf">
|
991
994
|
</xsl:variable>
|
@@ -1528,6 +1531,7 @@
|
|
1528
1531
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
1529
1532
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
1530
1533
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
1534
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
1531
1535
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
1532
1536
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
1533
1537
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -1542,10 +1546,10 @@
|
|
1542
1546
|
|
1543
1547
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
1544
1548
|
|
1545
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
1549
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
1546
1550
|
<xsl:copy>
|
1547
1551
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
1548
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
1552
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
1549
1553
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
1550
1554
|
</xsl:copy>
|
1551
1555
|
</xsl:template>
|
@@ -2397,6 +2401,8 @@
|
|
2397
2401
|
</xsl:template>
|
2398
2402
|
|
2399
2403
|
<xsl:attribute-set name="feedback-statement-style">
|
2404
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
2405
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2400
2406
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
2401
2407
|
|
2402
2408
|
<xsl:template name="refine_feedback-statement-style">
|
@@ -2692,6 +2698,12 @@
|
|
2692
2698
|
<xsl:template name="refine_sourcecode-style">
|
2693
2699
|
</xsl:template> <!-- refine_sourcecode-style -->
|
2694
2700
|
|
2701
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
2702
|
+
</xsl:attribute-set>
|
2703
|
+
|
2704
|
+
<xsl:template name="refine_sourcecode-number-style">
|
2705
|
+
</xsl:template>
|
2706
|
+
|
2695
2707
|
<xsl:attribute-set name="sourcecode-name-style">
|
2696
2708
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
2697
2709
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -4132,6 +4144,12 @@
|
|
4132
4144
|
<xsl:template name="refine_term-name-style">
|
4133
4145
|
</xsl:template>
|
4134
4146
|
|
4147
|
+
<xsl:attribute-set name="preferred-style">
|
4148
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
4149
|
+
|
4150
|
+
<xsl:template name="refine_preferred-style">
|
4151
|
+
</xsl:template>
|
4152
|
+
|
4135
4153
|
<xsl:attribute-set name="preferred-block-style">
|
4136
4154
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
4137
4155
|
|
@@ -4775,6 +4793,12 @@
|
|
4775
4793
|
<xsl:call-template name="setBordersTableArray"/>
|
4776
4794
|
</xsl:template> <!-- refine_table-style -->
|
4777
4795
|
|
4796
|
+
<xsl:attribute-set name="table-number-style">
|
4797
|
+
</xsl:attribute-set>
|
4798
|
+
|
4799
|
+
<xsl:template name="refine_table-number-style">
|
4800
|
+
</xsl:template>
|
4801
|
+
|
4778
4802
|
<xsl:attribute-set name="table-name-style">
|
4779
4803
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
4780
4804
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -5230,7 +5254,7 @@
|
|
5230
5254
|
|
5231
5255
|
</fo:block>
|
5232
5256
|
|
5233
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5257
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5234
5258
|
<xsl:if test="$continued = 'true'">
|
5235
5259
|
|
5236
5260
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -8377,6 +8401,12 @@
|
|
8377
8401
|
<xsl:template name="refine_figure-style">
|
8378
8402
|
</xsl:template>
|
8379
8403
|
|
8404
|
+
<xsl:attribute-set name="figure-number-style">
|
8405
|
+
</xsl:attribute-set>
|
8406
|
+
|
8407
|
+
<xsl:template name="refine_figure-number-style">
|
8408
|
+
</xsl:template>
|
8409
|
+
|
8380
8410
|
<xsl:attribute-set name="figure-name-style">
|
8381
8411
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
8382
8412
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -10954,7 +10984,7 @@
|
|
10954
10984
|
|
10955
10985
|
<fo:list-item>
|
10956
10986
|
<fo:list-item-label end-indent="label-end()">
|
10957
|
-
<fo:block role="SKIP">
|
10987
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
10958
10988
|
<fo:inline role="SKIP">
|
10959
10989
|
<xsl:apply-templates select="mn:biblio-tag">
|
10960
10990
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
@@ -11607,6 +11637,8 @@
|
|
11607
11637
|
<!-- =================== -->
|
11608
11638
|
|
11609
11639
|
<xsl:attribute-set name="toc-style">
|
11640
|
+
<xsl:attribute name="line-height">1.08</xsl:attribute>
|
11641
|
+
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
11610
11642
|
</xsl:attribute-set>
|
11611
11643
|
|
11612
11644
|
<xsl:template name="refine_toc-style">
|
@@ -13198,10 +13230,17 @@
|
|
13198
13230
|
</xsl:choose>
|
13199
13231
|
</xsl:template>
|
13200
13232
|
|
13233
|
+
<xsl:attribute-set name="clause-style">
|
13234
|
+
|
13235
|
+
</xsl:attribute-set>
|
13236
|
+
|
13237
|
+
<xsl:template name="refine_clause-style">
|
13238
|
+
</xsl:template>
|
13239
|
+
|
13201
13240
|
<!-- main sections -->
|
13202
13241
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
13203
13242
|
<xsl:call-template name="setNamedDestination"/>
|
13204
|
-
<fo:block>
|
13243
|
+
<fo:block role="Sect">
|
13205
13244
|
<xsl:call-template name="setId"/>
|
13206
13245
|
|
13207
13246
|
<xsl:call-template name="sections_element_style"/>
|
@@ -13329,6 +13368,10 @@
|
|
13329
13368
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
13330
13369
|
</xsl:template>
|
13331
13370
|
|
13371
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
13372
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
13373
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
13374
|
+
|
13332
13375
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
13333
13376
|
<xsl:template name="insert_basic_link">
|
13334
13377
|
<xsl:param name="element"/>
|
data/lib/metanorma/ogc/front.rb
CHANGED
@@ -86,7 +86,7 @@ module Metanorma
|
|
86
86
|
{ "Open Geospatial Consortium" => "OGC" }
|
87
87
|
end
|
88
88
|
|
89
|
-
def metadata_committee_types(
|
89
|
+
def metadata_committee_types(_node)
|
90
90
|
%w(committee subcommittee workgroup)
|
91
91
|
end
|
92
92
|
|
@@ -184,9 +184,8 @@ module Metanorma
|
|
184
184
|
|
185
185
|
def title(node, xml)
|
186
186
|
super
|
187
|
-
|
188
|
-
|
189
|
-
xml.title a, **attr_code(at)
|
187
|
+
content = node.attr("abbrev") and
|
188
|
+
add_title_xml(xml, content, @lang, "abbrev")
|
190
189
|
end
|
191
190
|
end
|
192
191
|
end
|
@@ -1,6 +1,6 @@
|
|
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
|
-
<!-- VERSION v2.1.
|
3
|
+
<!-- VERSION v2.1.3 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -455,14 +455,7 @@ normative or informative references, some split references into sections organiz
|
|
455
455
|
</ref>
|
456
456
|
</zeroOrMore>
|
457
457
|
<zeroOrMore>
|
458
|
-
<ref name="
|
459
|
-
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
460
|
-
</ref>
|
461
|
-
<zeroOrMore>
|
462
|
-
<ref name="note">
|
463
|
-
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
464
|
-
</ref>
|
465
|
-
</zeroOrMore>
|
458
|
+
<ref name="ReferenceEntry"/>
|
466
459
|
</zeroOrMore>
|
467
460
|
<zeroOrMore>
|
468
461
|
<ref name="references">
|
@@ -604,18 +597,21 @@ gives an explicit page orientation</a:documentation>
|
|
604
597
|
</element>
|
605
598
|
</optional>
|
606
599
|
</define>
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
<attribute name="hiddenref">
|
613
|
-
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
600
|
+
<define name="FnAttributes">
|
601
|
+
<ref name="RequiredId"/>
|
602
|
+
<optional>
|
603
|
+
<attribute name="hiddenref">
|
604
|
+
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
614
605
|
This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
|
615
|
-
|
606
|
+
<data type="boolean"/>
|
607
|
+
</attribute>
|
608
|
+
</optional>
|
609
|
+
<attribute name="reference">
|
610
|
+
<a:documentation>The number of the footnote, used to identify it visually</a:documentation>
|
616
611
|
</attribute>
|
617
|
-
</
|
618
|
-
</
|
612
|
+
</define>
|
613
|
+
</include>
|
614
|
+
<!-- end overrides -->
|
619
615
|
<define name="TdAttributes" combine="interleave">
|
620
616
|
<ref name="RequiredId"/>
|
621
617
|
<optional>
|
@@ -853,6 +849,17 @@ titlecase, or lowercase</a:documentation>
|
|
853
849
|
<value>informative</value>
|
854
850
|
</choice>
|
855
851
|
</define>
|
852
|
+
<define name="ReferenceEntry">
|
853
|
+
<a:documentation>Entry in bibliography</a:documentation>
|
854
|
+
<ref name="doc_bibitem">
|
855
|
+
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
856
|
+
</ref>
|
857
|
+
<zeroOrMore>
|
858
|
+
<ref name="note">
|
859
|
+
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
860
|
+
</ref>
|
861
|
+
</zeroOrMore>
|
862
|
+
</define>
|
856
863
|
<define name="doc_bibitem">
|
857
864
|
<a:documentation>Standardisation document representation of bibliographic entry</a:documentation>
|
858
865
|
<element name="bibitem">
|
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.8.
|
4
|
+
version: 2.8.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-09-
|
11
|
+
date: 2025-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|