metanorma-iho 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iho/isodoc.rng +12 -0
- data/lib/isodoc/iho/iho.specification.xsl +84 -10
- data/lib/isodoc/iho/iho.standard.xsl +84 -10
- data/lib/metanorma/iho/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: 6c062655a6505a149cd6784feb72db8371befad3879589a484fade5789913a55
|
4
|
+
data.tar.gz: 2ca9e9c8bdfa49509ac399d87ce989666315dca3dfb3644478317f791c271475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9552c8aee4fe532b730ae900158ca6d689334bc1914607123ef83d770abe97d0ad0fb384b336460417f6fb9da3769eb790e6441fe3a42ee07441fc5da72017a
|
7
|
+
data.tar.gz: cbaceb84930772012ad0e76d76cc5373ad692ef56952c7d734ca3a743f243767b91607a87fc9c0ec1b2a4a22c3aa4b0d6559c39084eb118ad46d4c92d19ddd83
|
@@ -1011,8 +1011,14 @@
|
|
1011
1011
|
<ref name="imagemap"/>
|
1012
1012
|
<ref name="svgmap"/>
|
1013
1013
|
<ref name="inputform"/>
|
1014
|
+
<ref name="toc"/>
|
1014
1015
|
</choice>
|
1015
1016
|
</define>
|
1017
|
+
<define name="toc">
|
1018
|
+
<element name="toc">
|
1019
|
+
<ref name="ul"/>
|
1020
|
+
</element>
|
1021
|
+
</define>
|
1016
1022
|
<define name="inputform">
|
1017
1023
|
<element name="form">
|
1018
1024
|
<attribute name="id">
|
@@ -1254,6 +1260,12 @@
|
|
1254
1260
|
<optional>
|
1255
1261
|
<attribute name="type"/>
|
1256
1262
|
</optional>
|
1263
|
+
<optional>
|
1264
|
+
<attribute name="identifier"/>
|
1265
|
+
</optional>
|
1266
|
+
<optional>
|
1267
|
+
<attribute name="prefix"/>
|
1268
|
+
</optional>
|
1257
1269
|
<text/>
|
1258
1270
|
</define>
|
1259
1271
|
<define name="ics">
|
@@ -1247,7 +1247,9 @@
|
|
1247
1247
|
|
1248
1248
|
|
1249
1249
|
|
1250
|
-
</xsl:attribute-set><xsl:
|
1250
|
+
</xsl:attribute-set><xsl:variable name="table-border_">
|
1251
|
+
|
1252
|
+
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-name-style">
|
1251
1253
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1252
1254
|
|
1253
1255
|
|
@@ -1567,6 +1569,8 @@
|
|
1567
1569
|
<fo:block> </fo:block>
|
1568
1570
|
</xsl:if> -->
|
1569
1571
|
|
1572
|
+
|
1573
|
+
<!-- Display table's name before table as standalone block -->
|
1570
1574
|
<!-- $namespace = 'iso' or -->
|
1571
1575
|
|
1572
1576
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
@@ -1646,6 +1650,12 @@
|
|
1646
1650
|
|
1647
1651
|
|
1648
1652
|
|
1653
|
+
|
1654
|
+
|
1655
|
+
|
1656
|
+
<!-- display table's name before table for PAS inside block-container (2-columnn layout) -->
|
1657
|
+
|
1658
|
+
|
1649
1659
|
<xsl:variable name="table_width">
|
1650
1660
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
1651
1661
|
100%
|
@@ -1664,6 +1674,7 @@
|
|
1664
1674
|
|
1665
1675
|
|
1666
1676
|
|
1677
|
+
|
1667
1678
|
|
1668
1679
|
|
1669
1680
|
|
@@ -2090,6 +2101,8 @@
|
|
2090
2101
|
</xsl:choose>
|
2091
2102
|
</xsl:for-each>
|
2092
2103
|
|
2104
|
+
|
2105
|
+
|
2093
2106
|
<xsl:choose>
|
2094
2107
|
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
2095
2108
|
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
@@ -2126,6 +2139,7 @@
|
|
2126
2139
|
|
2127
2140
|
|
2128
2141
|
|
2142
|
+
|
2129
2143
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
2130
2144
|
|
2131
2145
|
|
@@ -2211,6 +2225,8 @@
|
|
2211
2225
|
|
2212
2226
|
|
2213
2227
|
|
2228
|
+
|
2229
|
+
|
2214
2230
|
</xsl:if>
|
2215
2231
|
<xsl:if test="$parent-name = 'tfoot'">
|
2216
2232
|
|
@@ -2225,6 +2241,8 @@
|
|
2225
2241
|
|
2226
2242
|
|
2227
2243
|
|
2244
|
+
|
2245
|
+
|
2228
2246
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
2229
2247
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
2230
2248
|
</xsl:if> -->
|
@@ -3745,7 +3763,24 @@
|
|
3745
3763
|
</fo:instream-foreign-object>
|
3746
3764
|
</xsl:when>
|
3747
3765
|
<xsl:otherwise>
|
3748
|
-
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"
|
3766
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
3767
|
+
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
3768
|
+
|
3769
|
+
<xsl:variable name="img_src">
|
3770
|
+
<xsl:choose>
|
3771
|
+
<xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
|
3772
|
+
<xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
|
3773
|
+
</xsl:choose>
|
3774
|
+
</xsl:variable>
|
3775
|
+
|
3776
|
+
<xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $width_effective, $height_effective)"/>
|
3777
|
+
<xsl:if test="number($scale) < 100">
|
3778
|
+
<xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
|
3779
|
+
</xsl:if>
|
3780
|
+
|
3781
|
+
</xsl:if>
|
3782
|
+
|
3783
|
+
</fo:external-graphic>
|
3749
3784
|
</xsl:otherwise>
|
3750
3785
|
</xsl:choose>
|
3751
3786
|
|
@@ -3916,11 +3951,13 @@
|
|
3916
3951
|
<xsl:attribute name="width">100%</xsl:attribute>
|
3917
3952
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
3918
3953
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
3954
|
+
<xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
|
3955
|
+
<xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
|
3919
3956
|
<!-- effective height 297 - 27.4 - 13 = 256.6 -->
|
3920
3957
|
<!-- effective width 210 - 12.5 - 25 = 172.5 -->
|
3921
3958
|
<!-- effective height / width = 1.48, 1.4 - with title -->
|
3922
|
-
<xsl:if test="
|
3923
|
-
<xsl:variable name="width" select="((
|
3959
|
+
<xsl:if test="$svg_height > ($svg_width * 1.4)"> <!-- for images with big height -->
|
3960
|
+
<xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
|
3924
3961
|
<xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
|
3925
3962
|
</xsl:if>
|
3926
3963
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -3937,6 +3974,23 @@
|
|
3937
3974
|
<xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
|
3938
3975
|
<xsl:value-of select="."/>
|
3939
3976
|
</xsl:attribute>
|
3977
|
+
</xsl:template><xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
|
3978
|
+
<xsl:copy>
|
3979
|
+
<xsl:apply-templates select="@*" mode="svg_update"/>
|
3980
|
+
<xsl:variable name="viewbox">
|
3981
|
+
<xsl:call-template name="split">
|
3982
|
+
<xsl:with-param name="pText" select="@viewBox"/>
|
3983
|
+
<xsl:with-param name="sep" select="' '"/>
|
3984
|
+
</xsl:call-template>
|
3985
|
+
</xsl:variable>
|
3986
|
+
<xsl:attribute name="width">
|
3987
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[3])"/>
|
3988
|
+
</xsl:attribute>
|
3989
|
+
<xsl:attribute name="height">
|
3990
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[4])"/>
|
3991
|
+
</xsl:attribute>
|
3992
|
+
<xsl:apply-templates mode="svg_update"/>
|
3993
|
+
</xsl:copy>
|
3940
3994
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
|
3941
3995
|
<xsl:variable name="svg_content" select="document(@src)"/>
|
3942
3996
|
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
|
@@ -5728,20 +5782,40 @@
|
|
5728
5782
|
</xsl:call-template>
|
5729
5783
|
</xsl:if>
|
5730
5784
|
</xsl:template><xsl:template name="getLocalizedString">
|
5731
|
-
<xsl:param name="key"/>
|
5785
|
+
<xsl:param name="key"/>
|
5786
|
+
<xsl:param name="formatted">false</xsl:param>
|
5732
5787
|
|
5733
5788
|
<xsl:variable name="curr_lang">
|
5734
5789
|
<xsl:call-template name="getLang"/>
|
5735
5790
|
</xsl:variable>
|
5736
5791
|
|
5737
|
-
<xsl:variable name="data_value"
|
5792
|
+
<xsl:variable name="data_value">
|
5793
|
+
<xsl:choose>
|
5794
|
+
<xsl:when test="$formatted = 'true'">
|
5795
|
+
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5796
|
+
</xsl:when>
|
5797
|
+
<xsl:otherwise>
|
5798
|
+
<xsl:value-of select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5799
|
+
</xsl:otherwise>
|
5800
|
+
</xsl:choose>
|
5801
|
+
</xsl:variable>
|
5738
5802
|
|
5739
5803
|
<xsl:choose>
|
5740
|
-
<xsl:when test="$data_value != ''">
|
5741
|
-
<xsl:
|
5804
|
+
<xsl:when test="normalize-space($data_value) != ''">
|
5805
|
+
<xsl:choose>
|
5806
|
+
<xsl:when test="$formatted = 'true'"><xsl:copy-of select="$data_value"/></xsl:when>
|
5807
|
+
<xsl:otherwise><xsl:value-of select="$data_value"/></xsl:otherwise>
|
5808
|
+
</xsl:choose>
|
5742
5809
|
</xsl:when>
|
5743
5810
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
5744
|
-
<xsl:
|
5811
|
+
<xsl:choose>
|
5812
|
+
<xsl:when test="$formatted = 'true'">
|
5813
|
+
<xsl:apply-templates select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5814
|
+
</xsl:when>
|
5815
|
+
<xsl:otherwise>
|
5816
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5817
|
+
</xsl:otherwise>
|
5818
|
+
</xsl:choose>
|
5745
5819
|
</xsl:when>
|
5746
5820
|
<xsl:otherwise>
|
5747
5821
|
<xsl:variable name="key_">
|
@@ -5752,7 +5826,7 @@
|
|
5752
5826
|
<xsl:value-of select="$key_"/>
|
5753
5827
|
</xsl:otherwise>
|
5754
5828
|
</xsl:choose>
|
5755
|
-
|
5829
|
+
|
5756
5830
|
</xsl:template><xsl:template name="setTrackChangesStyles">
|
5757
5831
|
<xsl:param name="isAdded"/>
|
5758
5832
|
<xsl:param name="isDeleted"/>
|
@@ -1247,7 +1247,9 @@
|
|
1247
1247
|
|
1248
1248
|
|
1249
1249
|
|
1250
|
-
</xsl:attribute-set><xsl:
|
1250
|
+
</xsl:attribute-set><xsl:variable name="table-border_">
|
1251
|
+
|
1252
|
+
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-name-style">
|
1251
1253
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1252
1254
|
|
1253
1255
|
|
@@ -1567,6 +1569,8 @@
|
|
1567
1569
|
<fo:block> </fo:block>
|
1568
1570
|
</xsl:if> -->
|
1569
1571
|
|
1572
|
+
|
1573
|
+
<!-- Display table's name before table as standalone block -->
|
1570
1574
|
<!-- $namespace = 'iso' or -->
|
1571
1575
|
|
1572
1576
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
@@ -1646,6 +1650,12 @@
|
|
1646
1650
|
|
1647
1651
|
|
1648
1652
|
|
1653
|
+
|
1654
|
+
|
1655
|
+
|
1656
|
+
<!-- display table's name before table for PAS inside block-container (2-columnn layout) -->
|
1657
|
+
|
1658
|
+
|
1649
1659
|
<xsl:variable name="table_width">
|
1650
1660
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
1651
1661
|
100%
|
@@ -1664,6 +1674,7 @@
|
|
1664
1674
|
|
1665
1675
|
|
1666
1676
|
|
1677
|
+
|
1667
1678
|
|
1668
1679
|
|
1669
1680
|
|
@@ -2090,6 +2101,8 @@
|
|
2090
2101
|
</xsl:choose>
|
2091
2102
|
</xsl:for-each>
|
2092
2103
|
|
2104
|
+
|
2105
|
+
|
2093
2106
|
<xsl:choose>
|
2094
2107
|
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
2095
2108
|
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
@@ -2126,6 +2139,7 @@
|
|
2126
2139
|
|
2127
2140
|
|
2128
2141
|
|
2142
|
+
|
2129
2143
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
2130
2144
|
|
2131
2145
|
|
@@ -2211,6 +2225,8 @@
|
|
2211
2225
|
|
2212
2226
|
|
2213
2227
|
|
2228
|
+
|
2229
|
+
|
2214
2230
|
</xsl:if>
|
2215
2231
|
<xsl:if test="$parent-name = 'tfoot'">
|
2216
2232
|
|
@@ -2225,6 +2241,8 @@
|
|
2225
2241
|
|
2226
2242
|
|
2227
2243
|
|
2244
|
+
|
2245
|
+
|
2228
2246
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
2229
2247
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
2230
2248
|
</xsl:if> -->
|
@@ -3745,7 +3763,24 @@
|
|
3745
3763
|
</fo:instream-foreign-object>
|
3746
3764
|
</xsl:when>
|
3747
3765
|
<xsl:otherwise>
|
3748
|
-
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"
|
3766
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
3767
|
+
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
3768
|
+
|
3769
|
+
<xsl:variable name="img_src">
|
3770
|
+
<xsl:choose>
|
3771
|
+
<xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
|
3772
|
+
<xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
|
3773
|
+
</xsl:choose>
|
3774
|
+
</xsl:variable>
|
3775
|
+
|
3776
|
+
<xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $width_effective, $height_effective)"/>
|
3777
|
+
<xsl:if test="number($scale) < 100">
|
3778
|
+
<xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
|
3779
|
+
</xsl:if>
|
3780
|
+
|
3781
|
+
</xsl:if>
|
3782
|
+
|
3783
|
+
</fo:external-graphic>
|
3749
3784
|
</xsl:otherwise>
|
3750
3785
|
</xsl:choose>
|
3751
3786
|
|
@@ -3916,11 +3951,13 @@
|
|
3916
3951
|
<xsl:attribute name="width">100%</xsl:attribute>
|
3917
3952
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
3918
3953
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
3954
|
+
<xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
|
3955
|
+
<xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
|
3919
3956
|
<!-- effective height 297 - 27.4 - 13 = 256.6 -->
|
3920
3957
|
<!-- effective width 210 - 12.5 - 25 = 172.5 -->
|
3921
3958
|
<!-- effective height / width = 1.48, 1.4 - with title -->
|
3922
|
-
<xsl:if test="
|
3923
|
-
<xsl:variable name="width" select="((
|
3959
|
+
<xsl:if test="$svg_height > ($svg_width * 1.4)"> <!-- for images with big height -->
|
3960
|
+
<xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
|
3924
3961
|
<xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
|
3925
3962
|
</xsl:if>
|
3926
3963
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -3937,6 +3974,23 @@
|
|
3937
3974
|
<xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
|
3938
3975
|
<xsl:value-of select="."/>
|
3939
3976
|
</xsl:attribute>
|
3977
|
+
</xsl:template><xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
|
3978
|
+
<xsl:copy>
|
3979
|
+
<xsl:apply-templates select="@*" mode="svg_update"/>
|
3980
|
+
<xsl:variable name="viewbox">
|
3981
|
+
<xsl:call-template name="split">
|
3982
|
+
<xsl:with-param name="pText" select="@viewBox"/>
|
3983
|
+
<xsl:with-param name="sep" select="' '"/>
|
3984
|
+
</xsl:call-template>
|
3985
|
+
</xsl:variable>
|
3986
|
+
<xsl:attribute name="width">
|
3987
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[3])"/>
|
3988
|
+
</xsl:attribute>
|
3989
|
+
<xsl:attribute name="height">
|
3990
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[4])"/>
|
3991
|
+
</xsl:attribute>
|
3992
|
+
<xsl:apply-templates mode="svg_update"/>
|
3993
|
+
</xsl:copy>
|
3940
3994
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
|
3941
3995
|
<xsl:variable name="svg_content" select="document(@src)"/>
|
3942
3996
|
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
|
@@ -5728,20 +5782,40 @@
|
|
5728
5782
|
</xsl:call-template>
|
5729
5783
|
</xsl:if>
|
5730
5784
|
</xsl:template><xsl:template name="getLocalizedString">
|
5731
|
-
<xsl:param name="key"/>
|
5785
|
+
<xsl:param name="key"/>
|
5786
|
+
<xsl:param name="formatted">false</xsl:param>
|
5732
5787
|
|
5733
5788
|
<xsl:variable name="curr_lang">
|
5734
5789
|
<xsl:call-template name="getLang"/>
|
5735
5790
|
</xsl:variable>
|
5736
5791
|
|
5737
|
-
<xsl:variable name="data_value"
|
5792
|
+
<xsl:variable name="data_value">
|
5793
|
+
<xsl:choose>
|
5794
|
+
<xsl:when test="$formatted = 'true'">
|
5795
|
+
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5796
|
+
</xsl:when>
|
5797
|
+
<xsl:otherwise>
|
5798
|
+
<xsl:value-of select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5799
|
+
</xsl:otherwise>
|
5800
|
+
</xsl:choose>
|
5801
|
+
</xsl:variable>
|
5738
5802
|
|
5739
5803
|
<xsl:choose>
|
5740
|
-
<xsl:when test="$data_value != ''">
|
5741
|
-
<xsl:
|
5804
|
+
<xsl:when test="normalize-space($data_value) != ''">
|
5805
|
+
<xsl:choose>
|
5806
|
+
<xsl:when test="$formatted = 'true'"><xsl:copy-of select="$data_value"/></xsl:when>
|
5807
|
+
<xsl:otherwise><xsl:value-of select="$data_value"/></xsl:otherwise>
|
5808
|
+
</xsl:choose>
|
5742
5809
|
</xsl:when>
|
5743
5810
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
5744
|
-
<xsl:
|
5811
|
+
<xsl:choose>
|
5812
|
+
<xsl:when test="$formatted = 'true'">
|
5813
|
+
<xsl:apply-templates select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5814
|
+
</xsl:when>
|
5815
|
+
<xsl:otherwise>
|
5816
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5817
|
+
</xsl:otherwise>
|
5818
|
+
</xsl:choose>
|
5745
5819
|
</xsl:when>
|
5746
5820
|
<xsl:otherwise>
|
5747
5821
|
<xsl:variable name="key_">
|
@@ -5752,7 +5826,7 @@
|
|
5752
5826
|
<xsl:value-of select="$key_"/>
|
5753
5827
|
</xsl:otherwise>
|
5754
5828
|
</xsl:choose>
|
5755
|
-
|
5829
|
+
|
5756
5830
|
</xsl:template><xsl:template name="setTrackChangesStyles">
|
5757
5831
|
<xsl:param name="isAdded"/>
|
5758
5832
|
<xsl:param name="isDeleted"/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|