metanorma-csa 2.5.10 → 2.5.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8ea0778b4e68a55bead6274e7e3cf36b91b2a16d964f6b840d472f9adb468ce
4
- data.tar.gz: 70b4227e4c3eccd950766dd67c90a5cef44a6873f6f868faa86ebf39ba074db5
3
+ metadata.gz: e22479808f488e5e47aad508c2f3f6e3262c23949030d10000fb32676291eb65
4
+ data.tar.gz: b18e578f24e458b3097d66a90da182db4e8cb52a5b4b15aa1d277c2f29fba6e8
5
5
  SHA512:
6
- metadata.gz: a4e409b698b17b4d9120965528538ff949a93092b75c5bcbda2ddc6b1d5ac924d3f6d761d3fc374b3db80bb8564c8970e38a454d0d1be7ebc1fe1dc4270565f7
7
- data.tar.gz: f12c7ab8f68ba003001c74bca76774baa5c3609a94b85986a264b494586408c4f172527ead3e263c2109d50de78767d1ed299c1629ae9f7f6e932792487ee8dd
6
+ metadata.gz: 20927137854d610c5b783c10fae6a1cc59b84b662e373501de441780b8a63f104cb702ac5ae51e9f421aa5efcafc4f73ea53540d01e092d33e71e0b3876c3d40
7
+ data.tar.gz: 50b3dfa90ca3f0e6ad9d9c42b05fae11c000257df2f178c719c2db367ec7602f56a605e0232ba1812613a317fa393c15d370848fd0c604a26333fcd4a433340a
@@ -1819,6 +1819,9 @@
1819
1819
 
1820
1820
  </xsl:attribute-set>
1821
1821
 
1822
+ <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
1823
+ </xsl:attribute-set>
1824
+
1822
1825
  <xsl:attribute-set name="definition-style">
1823
1826
 
1824
1827
  <xsl:attribute name="space-after">6pt</xsl:attribute>
@@ -4060,7 +4063,9 @@
4060
4063
  <xsl:with-param name="element">
4061
4064
  <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 -->
4062
4065
  <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
4066
+
4063
4067
  <xsl:copy-of select="$current_fn_number_text"/>
4068
+
4064
4069
  </fo:inline>
4065
4070
  </fo:basic-link>
4066
4071
  </xsl:with-param>
@@ -4079,8 +4084,7 @@
4079
4084
 
4080
4085
  <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
4081
4086
 
4082
- <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
4083
-
4087
+ <xsl:variable name="fn_block">
4084
4088
  <xsl:call-template name="refine_fn-body-style"/>
4085
4089
 
4086
4090
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
@@ -4088,9 +4092,15 @@
4088
4092
  <xsl:call-template name="refine_fn-body-num-style"/>
4089
4093
 
4090
4094
  <xsl:value-of select="$current_fn_number_text"/>
4095
+
4091
4096
  </fo:inline>
4092
4097
  <xsl:apply-templates/>
4093
- </fo:block>
4098
+ </xsl:variable>
4099
+
4100
+ <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
4101
+ <xsl:copy-of select="$fn_block"/>
4102
+ </fo:block>
4103
+
4094
4104
  </fo:block-container>
4095
4105
  </fo:footnote-body>
4096
4106
  </fo:footnote>
@@ -10128,14 +10138,17 @@
10128
10138
  </fo:block>
10129
10139
  </xsl:template>
10130
10140
 
10131
- <xsl:template match="*[local-name() = 'domain']">
10141
+ <!-- <xsl:template match="*[local-name() = 'domain']"> -->
10132
10142
  <!-- https://github.com/metanorma/isodoc/issues/607
10133
10143
  <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
10134
10144
  <xsl:text> </xsl:text> -->
10135
- <xsl:if test="not(@hidden = 'true')">
10145
+ <!-- <xsl:if test="not(@hidden = 'true')">
10136
10146
  <xsl:apply-templates/>
10137
10147
  </xsl:if>
10138
- </xsl:template>
10148
+ </xsl:template> -->
10149
+
10150
+ <!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
10151
+ <xsl:template match="*[local-name() = 'domain']"/>
10139
10152
 
10140
10153
  <xsl:template match="*[local-name() = 'admitted']">
10141
10154
  <fo:block xsl:use-attribute-sets="admitted-style">
@@ -10150,9 +10163,11 @@
10150
10163
  </xsl:template>
10151
10164
 
10152
10165
  <xsl:template name="setStyle_preferred">
10153
- <xsl:if test="*[local-name() = 'strong']">
10154
- <xsl:attribute name="font-weight">normal</xsl:attribute>
10155
- </xsl:if>
10166
+
10167
+ <xsl:if test="*[local-name() = 'strong']">
10168
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
10169
+ </xsl:if>
10170
+
10156
10171
  </xsl:template>
10157
10172
 
10158
10173
  <!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
@@ -10162,6 +10177,17 @@
10162
10177
  </xsl:template>
10163
10178
  <!-- End Preferred, admitted, deprecated -->
10164
10179
 
10180
+ <xsl:template match="*[local-name() = 'fmt-related']">
10181
+ <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
10182
+ <xsl:apply-templates/>
10183
+ </fo:block>
10184
+ </xsl:template>
10185
+ <xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
10186
+ <fo:block>
10187
+ <xsl:apply-templates/>
10188
+ </fo:block>
10189
+ </xsl:template>
10190
+
10165
10191
  <!-- ========== -->
10166
10192
  <!-- definition -->
10167
10193
  <!-- ========== -->
@@ -11068,6 +11094,7 @@
11068
11094
 
11069
11095
  <!-- Normative references -->
11070
11096
  <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
11097
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
11071
11098
 
11072
11099
  <fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
11073
11100
 
@@ -11763,7 +11790,8 @@
11763
11790
  <!-- add @id - first element with @id plus '_element_name' -->
11764
11791
  <xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
11765
11792
  <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>
11766
- <xsl:attribute name="id"><xsl:value-of select="$prefix_id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
11793
+ <xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
11794
+ <xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
11767
11795
  </xsl:if>
11768
11796
  </xsl:template>
11769
11797
 
@@ -11820,6 +11848,31 @@
11820
11848
  <xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
11821
11849
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
11822
11850
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
11851
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
11852
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
11853
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
11854
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
11855
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
11856
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
11857
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
11858
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
11859
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
11860
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
11861
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
11862
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
11863
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
11864
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
11865
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
11866
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
11867
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
11868
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
11869
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
11870
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
11871
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
11872
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
11873
+
11874
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
11875
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
11823
11876
 
11824
11877
  <xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
11825
11878
  <xsl:copy>
@@ -11864,6 +11917,94 @@
11864
11917
  </xsl:element>
11865
11918
  </xsl:template>
11866
11919
 
11920
+ <xsl:template match="*[local-name() = 'fmt-preferred']"/>
11921
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
11922
+ <xsl:apply-templates mode="update_xml_step1"/>
11923
+ </xsl:template>
11924
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
11925
+ <xsl:element name="preferred" namespace="{$namespace_full}">
11926
+ <xsl:copy-of select="@*"/>
11927
+ <xsl:apply-templates mode="update_xml_step1"/>
11928
+ </xsl:element>
11929
+ </xsl:template>
11930
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
11931
+ <xsl:apply-templates mode="update_xml_pres"/>
11932
+ </xsl:template>
11933
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
11934
+ <xsl:element name="preferred" namespace="{$namespace_full}">
11935
+ <xsl:copy-of select="@*"/>
11936
+ <xsl:apply-templates mode="update_xml_pres"/>
11937
+ </xsl:element>
11938
+ </xsl:template>
11939
+
11940
+ <xsl:template match="*[local-name() = 'fmt-admitted']"/>
11941
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[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-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
11945
+ <xsl:element name="admitted" 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-admitted'][*[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-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
11954
+ <xsl:element name="admitted" 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-deprecates']"/>
11961
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[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-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
11965
+ <xsl:element name="deprecates" 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-deprecates'][*[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-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
11974
+ <xsl:element name="deprecates" 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-definition']"/>
11981
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
11982
+ <xsl:element name="definition" namespace="{$namespace_full}">
11983
+ <xsl:copy-of select="@*"/>
11984
+ <xsl:apply-templates mode="update_xml_step1"/>
11985
+ </xsl:element>
11986
+ </xsl:template>
11987
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
11988
+ <xsl:element name="definition" namespace="{$namespace_full}">
11989
+ <xsl:copy-of select="@*"/>
11990
+ <xsl:apply-templates mode="update_xml_pres"/>
11991
+ </xsl:element>
11992
+ </xsl:template>
11993
+
11994
+ <xsl:template match="*[local-name() = 'fmt-termsource']"/>
11995
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
11996
+ <xsl:element name="termsource" namespace="{$namespace_full}">
11997
+ <xsl:copy-of select="@*"/>
11998
+ <xsl:apply-templates mode="update_xml_step1"/>
11999
+ </xsl:element>
12000
+ </xsl:template>
12001
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
12002
+ <xsl:element name="termsource" namespace="{$namespace_full}">
12003
+ <xsl:copy-of select="@*"/>
12004
+ <xsl:apply-templates mode="update_xml_pres"/>
12005
+ </xsl:element>
12006
+ </xsl:template>
12007
+
11867
12008
  <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">
11868
12009
  <xsl:apply-templates mode="update_xml_step1"/>
11869
12010
  </xsl:template>
@@ -12995,7 +13136,7 @@
12995
13136
  </xsl:template>
12996
13137
 
12997
13138
  <xsl:template name="namespaceCheck">
12998
- <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
13139
+ <xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
12999
13140
  <xsl:variable name="XSLNS">
13000
13141
 
13001
13142
  <xsl:value-of select="document('')//*/namespace::csa"/>
@@ -13085,6 +13226,9 @@
13085
13226
  <xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
13086
13227
  <xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13087
13228
  </xsl:when>
13229
+ <xsl:when test="string-length($bibdata_updated) != ''">
13230
+ <xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13231
+ </xsl:when>
13088
13232
  <xsl:when test="$formatted = 'true'">
13089
13233
  <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13090
13234
  </xsl:when>
@@ -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="ISO8601DateTime"/>
1280
+ <ref name="ISO8601Date"/>
1281
1281
  </element>
1282
1282
  </define>
1283
1283
  <define name="validityEnds">
1284
1284
  <element name="validityEnds">
1285
- <ref name="ISO8601DateTime"/>
1285
+ <ref name="ISO8601Date"/>
1286
1286
  </element>
1287
1287
  </define>
1288
1288
  <define name="validityRevision">
1289
1289
  <element name="revision">
1290
- <ref name="ISO8601DateTime"/>
1290
+ <ref name="ISO8601Date"/>
1291
1291
  </element>
1292
1292
  </define>
1293
1293
  <define name="TypedTitleString">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csa
3
- VERSION = "2.5.10".freeze
3
+ VERSION = "2.5.11".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.10
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-07 00:00:00.000000000 Z
11
+ date: 2025-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic