metanorma-ogc 2.3.12 → 2.3.13
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/ogc.abstract-specification-topic.xsl +167 -56
- data/lib/isodoc/ogc/ogc.best-practice.xsl +167 -56
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +167 -56
- data/lib/isodoc/ogc/ogc.community-practice.xsl +167 -56
- data/lib/isodoc/ogc/ogc.community-standard.xsl +167 -56
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +167 -56
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +167 -56
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +167 -56
- data/lib/isodoc/ogc/ogc.other.xsl +167 -56
- data/lib/isodoc/ogc/ogc.policy.xsl +167 -56
- data/lib/isodoc/ogc/ogc.reference-model.xsl +167 -56
- data/lib/isodoc/ogc/ogc.release-notes.xsl +167 -56
- data/lib/isodoc/ogc/ogc.standard.xsl +167 -56
- data/lib/isodoc/ogc/ogc.test-suite.xsl +167 -56
- data/lib/isodoc/ogc/ogc.user-guide.xsl +167 -56
- data/lib/isodoc/ogc/ogc.white-paper.xsl +167 -56
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
|
@@ -1664,6 +1664,7 @@
|
|
|
1664
1664
|
</xsl:attribute-set>
|
|
1665
1665
|
|
|
1666
1666
|
<xsl:attribute-set name="figure-block-style">
|
|
1667
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
1667
1668
|
|
|
1668
1669
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
1669
1670
|
|
|
@@ -1674,6 +1675,7 @@
|
|
|
1674
1675
|
</xsl:attribute-set>
|
|
1675
1676
|
|
|
1676
1677
|
<xsl:attribute-set name="figure-name-style">
|
|
1678
|
+
<xsl:attribute name="role">Caption</xsl:attribute>
|
|
1677
1679
|
|
|
1678
1680
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
1679
1681
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
@@ -1724,6 +1726,7 @@
|
|
|
1724
1726
|
</xsl:template>
|
|
1725
1727
|
|
|
1726
1728
|
<xsl:attribute-set name="image-style">
|
|
1729
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
1727
1730
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
1728
1731
|
|
|
1729
1732
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
|
@@ -2009,6 +2012,11 @@
|
|
|
2009
2012
|
|
|
2010
2013
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
|
2011
2014
|
|
|
2015
|
+
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
|
2016
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
2017
|
+
|
|
2018
|
+
</xsl:attribute-set>
|
|
2019
|
+
|
|
2012
2020
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
|
2013
2021
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
|
2014
2022
|
|
|
@@ -2402,14 +2410,14 @@
|
|
|
2402
2410
|
<xsl:value-of select="$sep"/><xsl:value-of select="$zero_width_space"/>
|
|
2403
2411
|
</xsl:when>
|
|
2404
2412
|
<xsl:otherwise>
|
|
2405
|
-
<fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
|
|
2413
|
+
<fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
|
|
2406
2414
|
</xsl:otherwise>
|
|
2407
2415
|
</xsl:choose>
|
|
2408
2416
|
</xsl:for-each>
|
|
2409
2417
|
</xsl:when>
|
|
2410
2418
|
|
|
2411
2419
|
<xsl:otherwise>
|
|
2412
|
-
<fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
|
|
2420
|
+
<fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
|
|
2413
2421
|
</xsl:otherwise>
|
|
2414
2422
|
|
|
2415
2423
|
</xsl:choose>
|
|
@@ -2419,7 +2427,7 @@
|
|
|
2419
2427
|
<!-- Preface boilerplate sections processing -->
|
|
2420
2428
|
<!-- ================================= -->
|
|
2421
2429
|
<xsl:template match="*[local-name()='copyright-statement']">
|
|
2422
|
-
<fo:block xsl:use-attribute-sets="copyright-statement-style">
|
|
2430
|
+
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
|
|
2423
2431
|
<xsl:apply-templates/>
|
|
2424
2432
|
</fo:block>
|
|
2425
2433
|
</xsl:template> <!-- copyright-statement -->
|
|
@@ -2621,7 +2629,7 @@
|
|
|
2621
2629
|
</xsl:choose>
|
|
2622
2630
|
</xsl:variable>
|
|
2623
2631
|
|
|
2624
|
-
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
|
2632
|
+
<fo:block-container xsl:use-attribute-sets="table-container-style" role="SKIP">
|
|
2625
2633
|
|
|
2626
2634
|
<xsl:call-template name="refine_table-container-style">
|
|
2627
2635
|
<xsl:with-param name="margin-side" select="$margin-side"/>
|
|
@@ -3659,7 +3667,7 @@
|
|
|
3659
3667
|
</xsl:choose>
|
|
3660
3668
|
</xsl:variable>
|
|
3661
3669
|
<xsl:variable name="footnote_inline">
|
|
3662
|
-
<fo:inline>
|
|
3670
|
+
<fo:inline role="Reference">
|
|
3663
3671
|
|
|
3664
3672
|
<xsl:variable name="fn_styles">
|
|
3665
3673
|
<xsl:choose>
|
|
@@ -3682,7 +3690,7 @@
|
|
|
3682
3690
|
|
|
3683
3691
|
<xsl:call-template name="insert_basic_link">
|
|
3684
3692
|
<xsl:with-param name="element">
|
|
3685
|
-
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
|
3693
|
+
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}" role="Lbl">
|
|
3686
3694
|
<xsl:copy-of select="$current_fn_number_text"/>
|
|
3687
3695
|
</fo:basic-link>
|
|
3688
3696
|
</xsl:with-param>
|
|
@@ -3695,17 +3703,17 @@
|
|
|
3695
3703
|
<xsl:copy-of select="$footnote_inline"/>
|
|
3696
3704
|
</xsl:when>
|
|
3697
3705
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
|
|
3698
|
-
<fo:footnote xsl:use-attribute-sets="fn-style">
|
|
3706
|
+
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
|
3699
3707
|
<xsl:copy-of select="$footnote_inline"/>
|
|
3700
|
-
<fo:footnote-body>
|
|
3708
|
+
<fo:footnote-body role="Note">
|
|
3701
3709
|
|
|
3702
|
-
<fo:block-container xsl:use-attribute-sets="fn-container-body-style">
|
|
3710
|
+
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
|
3703
3711
|
|
|
3704
|
-
<fo:block xsl:use-attribute-sets="fn-body-style">
|
|
3712
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
|
3705
3713
|
|
|
3706
3714
|
<xsl:call-template name="refine_fn-body-style"/>
|
|
3707
3715
|
|
|
3708
|
-
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
|
3716
|
+
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
|
3709
3717
|
|
|
3710
3718
|
<xsl:call-template name="refine_fn-body-num-style"/>
|
|
3711
3719
|
|
|
@@ -3978,11 +3986,11 @@
|
|
|
3978
3986
|
</xsl:template>
|
|
3979
3987
|
|
|
3980
3988
|
<xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
|
|
3981
|
-
<fo:inline><xsl:value-of select="."/></fo:inline>
|
|
3989
|
+
<fo:inline role="SKIP"><xsl:value-of select="."/></fo:inline>
|
|
3982
3990
|
</xsl:template>
|
|
3983
3991
|
|
|
3984
3992
|
<xsl:template match="*[local-name()='fn']//*[local-name()='p']">
|
|
3985
|
-
<fo:inline>
|
|
3993
|
+
<fo:inline role="P">
|
|
3986
3994
|
<xsl:apply-templates/>
|
|
3987
3995
|
</fo:inline>
|
|
3988
3996
|
</xsl:template>
|
|
@@ -3997,7 +4005,7 @@
|
|
|
3997
4005
|
<xsl:variable name="isAdded" select="@added"/>
|
|
3998
4006
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
3999
4007
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
4000
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
4008
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
|
4001
4009
|
|
|
4002
4010
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
4003
4011
|
|
|
@@ -4032,7 +4040,7 @@
|
|
|
4032
4040
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
|
4033
4041
|
</xsl:call-template>
|
|
4034
4042
|
|
|
4035
|
-
<fo:block-container margin-left="0mm">
|
|
4043
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
4036
4044
|
|
|
4037
4045
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
4038
4046
|
|
|
@@ -4097,7 +4105,7 @@
|
|
|
4097
4105
|
|
|
4098
4106
|
<!-- a few components -->
|
|
4099
4107
|
<xsl:if test="$onlyOneComponent = 'false'">
|
|
4100
|
-
<fo:block>
|
|
4108
|
+
<fo:block role="SKIP">
|
|
4101
4109
|
|
|
4102
4110
|
<xsl:call-template name="refine_multicomponent_style"/>
|
|
4103
4111
|
|
|
@@ -4105,7 +4113,7 @@
|
|
|
4105
4113
|
<xsl:attribute name="margin-top">0</xsl:attribute>
|
|
4106
4114
|
</xsl:if>
|
|
4107
4115
|
|
|
4108
|
-
<fo:block>
|
|
4116
|
+
<fo:block role="SKIP">
|
|
4109
4117
|
|
|
4110
4118
|
<xsl:call-template name="refine_multicomponent_block_style"/>
|
|
4111
4119
|
|
|
@@ -4700,6 +4708,9 @@
|
|
|
4700
4708
|
|
|
4701
4709
|
<xsl:template name="refine_strong_style">
|
|
4702
4710
|
|
|
4711
|
+
<xsl:if test="ancestor::*['preferred']">
|
|
4712
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
4713
|
+
</xsl:if>
|
|
4703
4714
|
</xsl:template>
|
|
4704
4715
|
|
|
4705
4716
|
<xsl:template match="*[local-name()='padding']">
|
|
@@ -5636,6 +5647,18 @@
|
|
|
5636
5647
|
</xsl:copy>
|
|
5637
5648
|
</xsl:template>
|
|
5638
5649
|
|
|
5650
|
+
<xsl:variable name="font_main_root_style">
|
|
5651
|
+
<root-style xsl:use-attribute-sets="root-style">
|
|
5652
|
+
</root-style>
|
|
5653
|
+
</xsl:variable>
|
|
5654
|
+
<xsl:variable name="font_main_root_style_font_family" select="xalan:nodeset($font_main_root_style)/root-style/@font-family"/>
|
|
5655
|
+
<xsl:variable name="font_main">
|
|
5656
|
+
<xsl:choose>
|
|
5657
|
+
<xsl:when test="contains($font_main_root_style_font_family, ',')"><xsl:value-of select="substring-before($font_main_root_style_font_family, ',')"/></xsl:when>
|
|
5658
|
+
<xsl:otherwise><xsl:value-of select="$font_main_root_style_font_family"/></xsl:otherwise>
|
|
5659
|
+
</xsl:choose>
|
|
5660
|
+
</xsl:variable>
|
|
5661
|
+
|
|
5639
5662
|
<xsl:template match="*[local-name()='th' or local-name()='td']" mode="simple-table-id">
|
|
5640
5663
|
<xsl:param name="id"/>
|
|
5641
5664
|
<xsl:copy>
|
|
@@ -5674,6 +5697,33 @@
|
|
|
5674
5697
|
|
|
5675
5698
|
<!-- td_text='<xsl:copy-of select="$td_text"/>' -->
|
|
5676
5699
|
|
|
5700
|
+
<xsl:variable name="words_with_width">
|
|
5701
|
+
<!-- calculate width for 'word' which contain text only (without formatting tags inside) -->
|
|
5702
|
+
<xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][not(*)]">
|
|
5703
|
+
<xsl:copy>
|
|
5704
|
+
<xsl:copy-of select="@*"/>
|
|
5705
|
+
<xsl:attribute name="width">
|
|
5706
|
+
<xsl:value-of select="java:org.metanorma.fop.Util.getStringWidth(., $font_main)"/> <!-- Example: 'Times New Roman' -->
|
|
5707
|
+
</xsl:attribute>
|
|
5708
|
+
<xsl:copy-of select="node()"/>
|
|
5709
|
+
</xsl:copy>
|
|
5710
|
+
</xsl:for-each>
|
|
5711
|
+
</xsl:variable>
|
|
5712
|
+
|
|
5713
|
+
<xsl:variable name="words_with_width_sorted">
|
|
5714
|
+
<xsl:for-each select="xalan:nodeset($words_with_width)//*[local-name() = 'word']">
|
|
5715
|
+
<xsl:sort select="@width" data-type="number" order="descending"/>
|
|
5716
|
+
<!-- select word maximal width only -->
|
|
5717
|
+
<xsl:if test="position() = 1">
|
|
5718
|
+
<xsl:copy-of select="."/>
|
|
5719
|
+
</xsl:if>
|
|
5720
|
+
</xsl:for-each>
|
|
5721
|
+
<!-- add 'word' with formatting tags inside -->
|
|
5722
|
+
<xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][*]">
|
|
5723
|
+
<xsl:copy-of select="."/>
|
|
5724
|
+
</xsl:for-each>
|
|
5725
|
+
</xsl:variable>
|
|
5726
|
+
|
|
5677
5727
|
<xsl:variable name="words">
|
|
5678
5728
|
<xsl:for-each select=".//*[local-name() = 'image' or local-name() = 'stem']">
|
|
5679
5729
|
<word>
|
|
@@ -5681,9 +5731,12 @@
|
|
|
5681
5731
|
</word>
|
|
5682
5732
|
</xsl:for-each>
|
|
5683
5733
|
|
|
5684
|
-
<xsl:for-each select="xalan:nodeset($
|
|
5734
|
+
<xsl:for-each select="xalan:nodeset($words_with_width_sorted)//*[local-name() = 'word'][normalize-space() != '']">
|
|
5685
5735
|
<xsl:copy-of select="."/>
|
|
5686
5736
|
</xsl:for-each>
|
|
5737
|
+
<!-- <xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != '']">
|
|
5738
|
+
<xsl:copy-of select="."/>
|
|
5739
|
+
</xsl:for-each> -->
|
|
5687
5740
|
|
|
5688
5741
|
</xsl:variable>
|
|
5689
5742
|
|
|
@@ -6144,10 +6197,10 @@
|
|
|
6144
6197
|
<xsl:copy>
|
|
6145
6198
|
<xsl:apply-templates select="@*" mode="mathml"/>
|
|
6146
6199
|
<xsl:if test="not(@lspace)">
|
|
6147
|
-
<xsl:attribute name="lspace">0.
|
|
6200
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
|
6148
6201
|
</xsl:if>
|
|
6149
|
-
<xsl:if test="not(@rspace)">
|
|
6150
|
-
<xsl:attribute name="rspace">0.
|
|
6202
|
+
<xsl:if test="not(@rspace) and not(following-sibling::*[1][self::mathml:mo and normalize-space(text()) = '|'])">
|
|
6203
|
+
<xsl:attribute name="rspace">0.2em</xsl:attribute>
|
|
6151
6204
|
</xsl:if>
|
|
6152
6205
|
<xsl:apply-templates mode="mathml"/>
|
|
6153
6206
|
</xsl:copy>
|
|
@@ -6164,6 +6217,27 @@
|
|
|
6164
6217
|
</xsl:copy>
|
|
6165
6218
|
</xsl:template>
|
|
6166
6219
|
|
|
6220
|
+
<!-- increase space before '(' -->
|
|
6221
|
+
<xsl:template match="mathml:mo[normalize-space(text()) = '(']" mode="mathml">
|
|
6222
|
+
<xsl:copy>
|
|
6223
|
+
<xsl:apply-templates select="@*" mode="mathml"/>
|
|
6224
|
+
<xsl:if test="(preceding-sibling::* and not(preceding-sibling::*[1][self::mathml:mo])) or (../preceding-sibling::* and not(../preceding-sibling::*[1][self::mathml:mo]))">
|
|
6225
|
+
<xsl:if test="not(@lspace)">
|
|
6226
|
+
<xsl:attribute name="lspace">0.4em</xsl:attribute>
|
|
6227
|
+
<xsl:choose>
|
|
6228
|
+
<xsl:when test="preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
|
|
6229
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
|
6230
|
+
</xsl:when>
|
|
6231
|
+
<xsl:when test="../preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
|
|
6232
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
|
6233
|
+
</xsl:when>
|
|
6234
|
+
</xsl:choose>
|
|
6235
|
+
</xsl:if>
|
|
6236
|
+
</xsl:if>
|
|
6237
|
+
<xsl:apply-templates mode="mathml"/>
|
|
6238
|
+
</xsl:copy>
|
|
6239
|
+
</xsl:template>
|
|
6240
|
+
|
|
6167
6241
|
<!-- Examples:
|
|
6168
6242
|
<stem type="AsciiMath">x = 1</stem>
|
|
6169
6243
|
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
|
@@ -6323,7 +6397,7 @@
|
|
|
6323
6397
|
<!-- formula -->
|
|
6324
6398
|
<!-- ====== -->
|
|
6325
6399
|
<xsl:template match="*[local-name() = 'formula']" name="formula">
|
|
6326
|
-
<fo:block-container margin-left="0mm">
|
|
6400
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
6327
6401
|
<xsl:if test="parent::*[local-name() = 'note']">
|
|
6328
6402
|
<xsl:attribute name="margin-left">
|
|
6329
6403
|
<xsl:choose>
|
|
@@ -6333,7 +6407,7 @@
|
|
|
6333
6407
|
</xsl:attribute>
|
|
6334
6408
|
|
|
6335
6409
|
</xsl:if>
|
|
6336
|
-
<fo:block-container margin-left="0mm">
|
|
6410
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
6337
6411
|
<fo:block id="{@id}">
|
|
6338
6412
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/> <!-- formula's number will be process in 'stem' template -->
|
|
6339
6413
|
</fo:block>
|
|
@@ -6413,13 +6487,13 @@
|
|
|
6413
6487
|
|
|
6414
6488
|
<xsl:template match="*[local-name() = 'note']" name="note">
|
|
6415
6489
|
|
|
6416
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
|
|
6490
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
|
6417
6491
|
|
|
6418
6492
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
6419
6493
|
|
|
6420
6494
|
<xsl:call-template name="refine_note-style"/>
|
|
6421
6495
|
|
|
6422
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
6496
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
6423
6497
|
|
|
6424
6498
|
<fo:block>
|
|
6425
6499
|
|
|
@@ -6583,12 +6657,13 @@
|
|
|
6583
6657
|
|
|
6584
6658
|
<xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']">
|
|
6585
6659
|
<xsl:if test="normalize-space() != ''">
|
|
6586
|
-
<xsl:variable name="level">
|
|
6660
|
+
<!-- <xsl:variable name="level">
|
|
6587
6661
|
<xsl:call-template name="getLevelTermName"/>
|
|
6588
6662
|
</xsl:variable>
|
|
6589
6663
|
<fo:inline role="H{$level}">
|
|
6590
|
-
<xsl:apply-templates/>
|
|
6591
|
-
</fo:inline>
|
|
6664
|
+
<xsl:apply-templates />
|
|
6665
|
+
</fo:inline> -->
|
|
6666
|
+
<xsl:apply-templates/>
|
|
6592
6667
|
</xsl:if>
|
|
6593
6668
|
</xsl:template>
|
|
6594
6669
|
<!-- ====== -->
|
|
@@ -6612,7 +6687,7 @@
|
|
|
6612
6687
|
<!-- Example: Dimensions in millimeters -->
|
|
6613
6688
|
<xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
|
|
6614
6689
|
|
|
6615
|
-
<fo:block xsl:use-attribute-sets="figure-style">
|
|
6690
|
+
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
|
6616
6691
|
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note' and @type = 'units')]"/>
|
|
6617
6692
|
</fo:block>
|
|
6618
6693
|
<xsl:for-each select="*[local-name() = 'note'][not(@type = 'units')]">
|
|
@@ -7745,7 +7820,7 @@
|
|
|
7745
7820
|
</xsl:when>
|
|
7746
7821
|
|
|
7747
7822
|
<xsl:otherwise>
|
|
7748
|
-
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
|
|
7823
|
+
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
|
7749
7824
|
|
|
7750
7825
|
<xsl:if test="not(ancestor::*[local-name() = 'li']) or ancestor::*[local-name() = 'example']">
|
|
7751
7826
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
@@ -7766,7 +7841,7 @@
|
|
|
7766
7841
|
</xsl:attribute>
|
|
7767
7842
|
|
|
7768
7843
|
</xsl:if>
|
|
7769
|
-
<fo:block-container margin-left="0mm">
|
|
7844
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
7770
7845
|
|
|
7771
7846
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
|
7772
7847
|
|
|
@@ -8320,11 +8395,11 @@
|
|
|
8320
8395
|
<!-- requirement, recommendation, permission table -->
|
|
8321
8396
|
<!-- ========== -->
|
|
8322
8397
|
<xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
|
8323
|
-
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
|
|
8398
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt" role="SKIP">
|
|
8324
8399
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
|
8325
8400
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
8326
8401
|
</xsl:if>
|
|
8327
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
8402
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
8328
8403
|
<fo:table id="{@id}" table-layout="fixed" width="100%"> <!-- border="1pt solid black" -->
|
|
8329
8404
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
|
8330
8405
|
<!-- <xsl:attribute name="border">0.5pt solid black</xsl:attribute> -->
|
|
@@ -8500,7 +8575,7 @@
|
|
|
8500
8575
|
-->
|
|
8501
8576
|
<xsl:template match="*[local-name() = 'example']">
|
|
8502
8577
|
|
|
8503
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style">
|
|
8578
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
|
8504
8579
|
|
|
8505
8580
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
8506
8581
|
|
|
@@ -8511,7 +8586,7 @@
|
|
|
8511
8586
|
block
|
|
8512
8587
|
</xsl:variable>
|
|
8513
8588
|
|
|
8514
|
-
<fo:block-container margin-left="0mm">
|
|
8589
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
8515
8590
|
|
|
8516
8591
|
<xsl:choose>
|
|
8517
8592
|
|
|
@@ -8524,8 +8599,8 @@
|
|
|
8524
8599
|
</xsl:apply-templates>
|
|
8525
8600
|
</fo:block>
|
|
8526
8601
|
|
|
8527
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style">
|
|
8528
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
8602
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
|
8603
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
8529
8604
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
|
8530
8605
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
|
8531
8606
|
</xsl:apply-templates>
|
|
@@ -8578,8 +8653,8 @@
|
|
|
8578
8653
|
|
|
8579
8654
|
<xsl:if test="*[not(local-name() = 'name')][position() > 1]">
|
|
8580
8655
|
<!-- display further elements in blocks -->
|
|
8581
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style">
|
|
8582
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
8656
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
|
8657
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
8583
8658
|
<xsl:apply-templates select="*[not(local-name() = 'name')][position() > 1]">
|
|
8584
8659
|
<xsl:with-param name="fo_element" select="'block'"/>
|
|
8585
8660
|
</xsl:apply-templates>
|
|
@@ -8632,7 +8707,7 @@
|
|
|
8632
8707
|
</xsl:variable>
|
|
8633
8708
|
<xsl:choose>
|
|
8634
8709
|
<xsl:when test="starts-with(normalize-space($element), 'block')">
|
|
8635
|
-
<fo:block-container>
|
|
8710
|
+
<fo:block-container role="SKIP">
|
|
8636
8711
|
<xsl:if test="ancestor::*[local-name() = 'li'] and contains(normalize-space($fo_element), 'block')">
|
|
8637
8712
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
8638
8713
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
@@ -8773,7 +8848,7 @@
|
|
|
8773
8848
|
<!-- author -->
|
|
8774
8849
|
<!-- ====== -->
|
|
8775
8850
|
<xsl:template match="*[local-name() = 'quote']">
|
|
8776
|
-
<fo:block-container margin-left="0mm">
|
|
8851
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
8777
8852
|
|
|
8778
8853
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
8779
8854
|
|
|
@@ -8783,12 +8858,12 @@
|
|
|
8783
8858
|
</xsl:if>
|
|
8784
8859
|
</xsl:if>
|
|
8785
8860
|
|
|
8786
|
-
<fo:block-container margin-left="0mm">
|
|
8787
|
-
<fo:block-container xsl:use-attribute-sets="quote-style">
|
|
8861
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
8862
|
+
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
|
8788
8863
|
|
|
8789
8864
|
<xsl:call-template name="refine_quote-style"/>
|
|
8790
8865
|
|
|
8791
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
8866
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
8792
8867
|
<fo:block role="BlockQuote">
|
|
8793
8868
|
<xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
|
8794
8869
|
</fo:block>
|
|
@@ -8952,10 +9027,10 @@
|
|
|
8952
9027
|
|
|
8953
9028
|
<xsl:choose>
|
|
8954
9029
|
<xsl:when test="$lang = 'zh'">
|
|
8955
|
-
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
|
9030
|
+
<fo:inline role="SKIP"><xsl:value-of select="$tab_zh"/></fo:inline>
|
|
8956
9031
|
</xsl:when>
|
|
8957
9032
|
<xsl:when test="../../@inline-header = 'true'">
|
|
8958
|
-
<fo:inline font-size="90%">
|
|
9033
|
+
<fo:inline font-size="90%" role="SKIP">
|
|
8959
9034
|
<xsl:call-template name="insertNonBreakSpaces">
|
|
8960
9035
|
<xsl:with-param name="count" select="$padding-right"/>
|
|
8961
9036
|
</xsl:call-template>
|
|
@@ -8963,7 +9038,7 @@
|
|
|
8963
9038
|
</xsl:when>
|
|
8964
9039
|
<xsl:otherwise>
|
|
8965
9040
|
<xsl:variable name="direction"><xsl:if test="$lang = 'ar'"><xsl:value-of select="$RLM"/></xsl:if></xsl:variable>
|
|
8966
|
-
<fo:inline padding-right="{$padding-right}mm"><xsl:value-of select="$direction"/></fo:inline>
|
|
9041
|
+
<fo:inline padding-right="{$padding-right}mm" role="SKIP"><xsl:value-of select="$direction"/></fo:inline>
|
|
8967
9042
|
</xsl:otherwise>
|
|
8968
9043
|
</xsl:choose>
|
|
8969
9044
|
|
|
@@ -8998,12 +9073,12 @@
|
|
|
8998
9073
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
|
8999
9074
|
|
|
9000
9075
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'preferred'])"> <!-- if first preffered in term, then display term's name -->
|
|
9001
|
-
<fo:block xsl:use-attribute-sets="term-name-style">
|
|
9076
|
+
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
|
9002
9077
|
<xsl:apply-templates select="ancestor::*[local-name() = 'term'][1]/*[local-name() = 'name']"/>
|
|
9003
9078
|
</fo:block>
|
|
9004
9079
|
</xsl:if>
|
|
9005
9080
|
|
|
9006
|
-
<fo:block xsl:use-attribute-sets="preferred-term-style">
|
|
9081
|
+
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
|
9007
9082
|
<xsl:call-template name="setStyle_preferred"/>
|
|
9008
9083
|
<xsl:apply-templates/>
|
|
9009
9084
|
</fo:block>
|
|
@@ -9044,7 +9119,7 @@
|
|
|
9044
9119
|
<!-- definition -->
|
|
9045
9120
|
<!-- ========== -->
|
|
9046
9121
|
<xsl:template match="*[local-name() = 'definition']">
|
|
9047
|
-
<fo:block xsl:use-attribute-sets="definition-style">
|
|
9122
|
+
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
|
9048
9123
|
<xsl:apply-templates/>
|
|
9049
9124
|
</fo:block>
|
|
9050
9125
|
</xsl:template>
|
|
@@ -9092,6 +9167,10 @@
|
|
|
9092
9167
|
|
|
9093
9168
|
<xsl:template match="*[local-name() = 'clause']">
|
|
9094
9169
|
<fo:block>
|
|
9170
|
+
<xsl:if test="parent::*[local-name() = 'copyright-statement']">
|
|
9171
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
9172
|
+
</xsl:if>
|
|
9173
|
+
|
|
9095
9174
|
<xsl:call-template name="setId"/>
|
|
9096
9175
|
|
|
9097
9176
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
@@ -9328,7 +9407,7 @@
|
|
|
9328
9407
|
<xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
|
9329
9408
|
<xsl:choose>
|
|
9330
9409
|
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
|
9331
|
-
<fo:block-container>
|
|
9410
|
+
<fo:block-container role="SKIP">
|
|
9332
9411
|
<xsl:attribute name="margin-left">
|
|
9333
9412
|
<xsl:choose>
|
|
9334
9413
|
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
|
@@ -9338,7 +9417,7 @@
|
|
|
9338
9417
|
|
|
9339
9418
|
<xsl:call-template name="refine_list_container_style"/>
|
|
9340
9419
|
|
|
9341
|
-
<fo:block-container margin-left="0mm">
|
|
9420
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
9342
9421
|
<fo:block>
|
|
9343
9422
|
<xsl:apply-templates select="." mode="list"/>
|
|
9344
9423
|
</fo:block>
|
|
@@ -9347,7 +9426,7 @@
|
|
|
9347
9426
|
</xsl:when>
|
|
9348
9427
|
<xsl:otherwise>
|
|
9349
9428
|
|
|
9350
|
-
<fo:block>
|
|
9429
|
+
<fo:block role="SKIP">
|
|
9351
9430
|
<xsl:apply-templates select="." mode="list"/>
|
|
9352
9431
|
</fo:block>
|
|
9353
9432
|
|
|
@@ -9765,7 +9844,10 @@
|
|
|
9765
9844
|
<!-- Reference sections (Normative References and Bibliography) -->
|
|
9766
9845
|
<!-- ========================================================== -->
|
|
9767
9846
|
<xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
|
|
9768
|
-
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"
|
|
9847
|
+
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
|
|
9848
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/>
|
|
9849
|
+
|
|
9850
|
+
</xsl:template>
|
|
9769
9851
|
<!-- don't display bibitem with @id starts with '_hidden', that was introduced for references integrity -->
|
|
9770
9852
|
<xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
|
|
9771
9853
|
|
|
@@ -9814,7 +9896,7 @@
|
|
|
9814
9896
|
|
|
9815
9897
|
<!-- Bibliography (non-normative references) -->
|
|
9816
9898
|
<xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
|
9817
|
-
|
|
9899
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
|
9818
9900
|
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
|
9819
9901
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
|
9820
9902
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
|
@@ -9842,6 +9924,35 @@
|
|
|
9842
9924
|
|
|
9843
9925
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
|
9844
9926
|
|
|
9927
|
+
<xsl:template name="insertListItem_Bibitem">
|
|
9928
|
+
<xsl:choose>
|
|
9929
|
+
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
|
9930
|
+
<xsl:otherwise>
|
|
9931
|
+
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
|
9932
|
+
<fo:list-item-label end-indent="label-end()">
|
|
9933
|
+
<fo:block role="SKIP">
|
|
9934
|
+
<fo:inline role="SKIP">
|
|
9935
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
|
9936
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
|
9937
|
+
</xsl:apply-templates>
|
|
9938
|
+
</fo:inline>
|
|
9939
|
+
</fo:block>
|
|
9940
|
+
</fo:list-item-label>
|
|
9941
|
+
<fo:list-item-body start-indent="body-start()">
|
|
9942
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
|
9943
|
+
<xsl:call-template name="processBibitem">
|
|
9944
|
+
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
|
9945
|
+
</xsl:call-template>
|
|
9946
|
+
</fo:block>
|
|
9947
|
+
</fo:list-item-body>
|
|
9948
|
+
</fo:list-item>
|
|
9949
|
+
</xsl:otherwise>
|
|
9950
|
+
</xsl:choose>
|
|
9951
|
+
<xsl:apply-templates select="following-sibling::*[1][local-name() = 'bibitem']">
|
|
9952
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
|
9953
|
+
</xsl:apply-templates>
|
|
9954
|
+
</xsl:template>
|
|
9955
|
+
|
|
9845
9956
|
<xsl:template name="processBibitem">
|
|
9846
9957
|
<xsl:param name="biblio_tag_part">both</xsl:param>
|
|
9847
9958
|
|
|
@@ -10175,7 +10286,7 @@
|
|
|
10175
10286
|
|
|
10176
10287
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
10177
10288
|
|
|
10178
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
10289
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
|
10179
10290
|
|
|
10180
10291
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
10181
10292
|
<xsl:call-template name="displayAdmonitionName"/>
|
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.3.
|
|
4
|
+
version: 2.3.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: iso-639
|