metanorma-cc 2.5.10 → 2.5.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/cc/cc.standard.xsl +155 -11
- data/lib/metanorma/cc/biblio.rng +3 -3
- data/lib/metanorma/cc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0059fd922c7e0fc51d6f739a29f063bb43820a25f6b50450099c6f0211666d6d'
|
4
|
+
data.tar.gz: b25841bdfbabceedbdf6308bf06abffcbdae6f1dc60b9199d9f9ea971d4d7377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a35cf0dad682ccbdb4752ba3c032f9413e18ca3c8834afd64dc54fa90a05747d96db029370364466c780a1861605b25d03a8d23988316246e6ca9552ed498492
|
7
|
+
data.tar.gz: 3b676c48af0d6d118197b5b460857d1597ee7ce258de07c9ce90511e8eefd384a62c335495bc43ee4f40e1233fdde1bcb75e1bfb4473a977385e7672b7f8ad09
|
@@ -1832,6 +1832,9 @@
|
|
1832
1832
|
|
1833
1833
|
</xsl:attribute-set>
|
1834
1834
|
|
1835
|
+
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
1836
|
+
</xsl:attribute-set>
|
1837
|
+
|
1835
1838
|
<xsl:attribute-set name="definition-style">
|
1836
1839
|
|
1837
1840
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
@@ -4051,7 +4054,9 @@
|
|
4051
4054
|
<xsl:with-param name="element">
|
4052
4055
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
|
4053
4056
|
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
|
4057
|
+
|
4054
4058
|
<xsl:copy-of select="$current_fn_number_text"/>
|
4059
|
+
|
4055
4060
|
</fo:inline>
|
4056
4061
|
</fo:basic-link>
|
4057
4062
|
</xsl:with-param>
|
@@ -4070,8 +4075,7 @@
|
|
4070
4075
|
|
4071
4076
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
4072
4077
|
|
4073
|
-
<
|
4074
|
-
|
4078
|
+
<xsl:variable name="fn_block">
|
4075
4079
|
<xsl:call-template name="refine_fn-body-style"/>
|
4076
4080
|
|
4077
4081
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
@@ -4079,9 +4083,15 @@
|
|
4079
4083
|
<xsl:call-template name="refine_fn-body-num-style"/>
|
4080
4084
|
|
4081
4085
|
<xsl:value-of select="$current_fn_number_text"/>
|
4086
|
+
|
4082
4087
|
</fo:inline>
|
4083
4088
|
<xsl:apply-templates/>
|
4084
|
-
</
|
4089
|
+
</xsl:variable>
|
4090
|
+
|
4091
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
4092
|
+
<xsl:copy-of select="$fn_block"/>
|
4093
|
+
</fo:block>
|
4094
|
+
|
4085
4095
|
</fo:block-container>
|
4086
4096
|
</fo:footnote-body>
|
4087
4097
|
</fo:footnote>
|
@@ -10124,14 +10134,17 @@
|
|
10124
10134
|
</fo:block>
|
10125
10135
|
</xsl:template>
|
10126
10136
|
|
10127
|
-
<xsl:template match="*[local-name() = 'domain']">
|
10137
|
+
<!-- <xsl:template match="*[local-name() = 'domain']"> -->
|
10128
10138
|
<!-- https://github.com/metanorma/isodoc/issues/607
|
10129
10139
|
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
10130
10140
|
<xsl:text> </xsl:text> -->
|
10131
|
-
<xsl:if test="not(@hidden = 'true')">
|
10141
|
+
<!-- <xsl:if test="not(@hidden = 'true')">
|
10132
10142
|
<xsl:apply-templates/>
|
10133
10143
|
</xsl:if>
|
10134
|
-
</xsl:template>
|
10144
|
+
</xsl:template> -->
|
10145
|
+
|
10146
|
+
<!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
|
10147
|
+
<xsl:template match="*[local-name() = 'domain']"/>
|
10135
10148
|
|
10136
10149
|
<xsl:template match="*[local-name() = 'admitted']">
|
10137
10150
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
@@ -10146,9 +10159,11 @@
|
|
10146
10159
|
</xsl:template>
|
10147
10160
|
|
10148
10161
|
<xsl:template name="setStyle_preferred">
|
10149
|
-
|
10150
|
-
|
10151
|
-
|
10162
|
+
|
10163
|
+
<xsl:if test="*[local-name() = 'strong']">
|
10164
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
10165
|
+
</xsl:if>
|
10166
|
+
|
10152
10167
|
</xsl:template>
|
10153
10168
|
|
10154
10169
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
@@ -10158,6 +10173,17 @@
|
|
10158
10173
|
</xsl:template>
|
10159
10174
|
<!-- End Preferred, admitted, deprecated -->
|
10160
10175
|
|
10176
|
+
<xsl:template match="*[local-name() = 'fmt-related']">
|
10177
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
10178
|
+
<xsl:apply-templates/>
|
10179
|
+
</fo:block>
|
10180
|
+
</xsl:template>
|
10181
|
+
<xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
|
10182
|
+
<fo:block>
|
10183
|
+
<xsl:apply-templates/>
|
10184
|
+
</fo:block>
|
10185
|
+
</xsl:template>
|
10186
|
+
|
10161
10187
|
<!-- ========== -->
|
10162
10188
|
<!-- definition -->
|
10163
10189
|
<!-- ========== -->
|
@@ -11062,6 +11088,7 @@
|
|
11062
11088
|
|
11063
11089
|
<!-- Normative references -->
|
11064
11090
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
11091
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11065
11092
|
|
11066
11093
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
11067
11094
|
|
@@ -11783,7 +11810,8 @@
|
|
11783
11810
|
<!-- add @id - first element with @id plus '_element_name' -->
|
11784
11811
|
<xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
|
11785
11812
|
<xsl:variable name="prefix_id"><xsl:value-of select="$prefix_id_"/><xsl:if test="normalize-space($prefix_id_) = ''"><xsl:value-of select="generate-id()"/></xsl:if></xsl:variable>
|
11786
|
-
<xsl:
|
11813
|
+
<xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
|
11814
|
+
<xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
|
11787
11815
|
</xsl:if>
|
11788
11816
|
</xsl:template>
|
11789
11817
|
|
@@ -11840,6 +11868,31 @@
|
|
11840
11868
|
<xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
|
11841
11869
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
11842
11870
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
|
11871
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
11872
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
|
11873
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
|
11874
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
|
11875
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
11876
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
|
11877
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
|
11878
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
|
11879
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
|
11880
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
|
11881
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
|
11882
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
|
11883
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
|
11884
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
|
11885
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
|
11886
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
|
11887
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
|
11888
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
|
11889
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
|
11890
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
|
11891
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
|
11892
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
|
11893
|
+
|
11894
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
11895
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
|
11843
11896
|
|
11844
11897
|
<xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
|
11845
11898
|
<xsl:copy>
|
@@ -11884,6 +11937,94 @@
|
|
11884
11937
|
</xsl:element>
|
11885
11938
|
</xsl:template>
|
11886
11939
|
|
11940
|
+
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
11941
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
|
11942
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
11943
|
+
</xsl:template>
|
11944
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
|
11945
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
11946
|
+
<xsl:copy-of select="@*"/>
|
11947
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
11948
|
+
</xsl:element>
|
11949
|
+
</xsl:template>
|
11950
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
|
11951
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11952
|
+
</xsl:template>
|
11953
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
|
11954
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
11955
|
+
<xsl:copy-of select="@*"/>
|
11956
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11957
|
+
</xsl:element>
|
11958
|
+
</xsl:template>
|
11959
|
+
|
11960
|
+
<xsl:template match="*[local-name() = 'fmt-admitted']"/>
|
11961
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
|
11962
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
11963
|
+
</xsl:template>
|
11964
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
|
11965
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
11966
|
+
<xsl:copy-of select="@*"/>
|
11967
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
11968
|
+
</xsl:element>
|
11969
|
+
</xsl:template>
|
11970
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
|
11971
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11972
|
+
</xsl:template>
|
11973
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
|
11974
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
11975
|
+
<xsl:copy-of select="@*"/>
|
11976
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11977
|
+
</xsl:element>
|
11978
|
+
</xsl:template>
|
11979
|
+
|
11980
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates']"/>
|
11981
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
|
11982
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
11983
|
+
</xsl:template>
|
11984
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
|
11985
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
11986
|
+
<xsl:copy-of select="@*"/>
|
11987
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
11988
|
+
</xsl:element>
|
11989
|
+
</xsl:template>
|
11990
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
|
11991
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11992
|
+
</xsl:template>
|
11993
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
|
11994
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
11995
|
+
<xsl:copy-of select="@*"/>
|
11996
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11997
|
+
</xsl:element>
|
11998
|
+
</xsl:template>
|
11999
|
+
|
12000
|
+
<xsl:template match="*[local-name() = 'fmt-definition']"/>
|
12001
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
|
12002
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
12003
|
+
<xsl:copy-of select="@*"/>
|
12004
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12005
|
+
</xsl:element>
|
12006
|
+
</xsl:template>
|
12007
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
|
12008
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
12009
|
+
<xsl:copy-of select="@*"/>
|
12010
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12011
|
+
</xsl:element>
|
12012
|
+
</xsl:template>
|
12013
|
+
|
12014
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']"/>
|
12015
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
|
12016
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
12017
|
+
<xsl:copy-of select="@*"/>
|
12018
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12019
|
+
</xsl:element>
|
12020
|
+
</xsl:template>
|
12021
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
|
12022
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
12023
|
+
<xsl:copy-of select="@*"/>
|
12024
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12025
|
+
</xsl:element>
|
12026
|
+
</xsl:template>
|
12027
|
+
|
11887
12028
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
11888
12029
|
<xsl:apply-templates mode="update_xml_step1"/>
|
11889
12030
|
</xsl:template>
|
@@ -13015,7 +13156,7 @@
|
|
13015
13156
|
</xsl:template>
|
13016
13157
|
|
13017
13158
|
<xsl:template name="namespaceCheck">
|
13018
|
-
<xsl:variable name="documentNS" select="namespace-uri(/*)
|
13159
|
+
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
|
13019
13160
|
<xsl:variable name="XSLNS">
|
13020
13161
|
|
13021
13162
|
<xsl:value-of select="document('')//*/namespace::csd"/>
|
@@ -13105,6 +13246,9 @@
|
|
13105
13246
|
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
|
13106
13247
|
<xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13107
13248
|
</xsl:when>
|
13249
|
+
<xsl:when test="string-length($bibdata_updated) != ''">
|
13250
|
+
<xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13251
|
+
</xsl:when>
|
13108
13252
|
<xsl:when test="$formatted = 'true'">
|
13109
13253
|
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13110
13254
|
</xsl:when>
|
data/lib/metanorma/cc/biblio.rng
CHANGED
@@ -1277,17 +1277,17 @@ for which this claim of validity is made, if applicable</a:documentation>
|
|
1277
1277
|
</define>
|
1278
1278
|
<define name="validityBegins">
|
1279
1279
|
<element name="validityBegins">
|
1280
|
-
<ref name="
|
1280
|
+
<ref name="ISO8601Date"/>
|
1281
1281
|
</element>
|
1282
1282
|
</define>
|
1283
1283
|
<define name="validityEnds">
|
1284
1284
|
<element name="validityEnds">
|
1285
|
-
<ref name="
|
1285
|
+
<ref name="ISO8601Date"/>
|
1286
1286
|
</element>
|
1287
1287
|
</define>
|
1288
1288
|
<define name="validityRevision">
|
1289
1289
|
<element name="revision">
|
1290
|
-
<ref name="
|
1290
|
+
<ref name="ISO8601Date"/>
|
1291
1291
|
</element>
|
1292
1292
|
</define>
|
1293
1293
|
<define name="TypedTitleString">
|
data/lib/metanorma/cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.11
|
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-01-
|
11
|
+
date: 2025-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|