metanorma-m3aawg 1.7.7 → 1.7.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/m3aawg/isodoc.rng +12 -0
- data/lib/isodoc/m3aawg/m3aawg.policy.xsl +84 -10
- data/lib/isodoc/m3aawg/m3aawg.report.xsl +84 -10
- data/lib/metanorma/m3aawg/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: 195a7ff8c331cdb5bad720dce725123e327b2ce2ec8f41d8fd6ae1ce29f23e1f
|
4
|
+
data.tar.gz: 1da335095bb891af26d258c52244cc4963230b41bbe3b0152c70d7f0809fe020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02dd3cc4e5b4fe3106cd4258005d5659947e224ec04b0436fe1dbcea75ec345c17cc914d7c99fe07534b98fdb3b9086e018b5afcce66243e52a6694edb87e76d
|
7
|
+
data.tar.gz: c24ff0bacf14436fd4a31f9d5cf4a4a5822b56db8e3f7f0b47ed5fef75a2f0ea1a3bd5e5272f90c3c115e552346412e976bb886edae3a44d71310679bd1271bd
|
@@ -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">
|
@@ -1179,7 +1179,9 @@
|
|
1179
1179
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1180
1180
|
|
1181
1181
|
|
1182
|
-
</xsl:attribute-set><xsl:
|
1182
|
+
</xsl:attribute-set><xsl:variable name="table-border_">
|
1183
|
+
|
1184
|
+
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-name-style">
|
1183
1185
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1184
1186
|
|
1185
1187
|
|
@@ -1494,6 +1496,8 @@
|
|
1494
1496
|
<fo:block> </fo:block>
|
1495
1497
|
</xsl:if> -->
|
1496
1498
|
|
1499
|
+
|
1500
|
+
<!-- Display table's name before table as standalone block -->
|
1497
1501
|
<!-- $namespace = 'iso' or -->
|
1498
1502
|
|
1499
1503
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
@@ -1569,6 +1573,12 @@
|
|
1569
1573
|
|
1570
1574
|
|
1571
1575
|
|
1576
|
+
|
1577
|
+
|
1578
|
+
|
1579
|
+
<!-- display table's name before table for PAS inside block-container (2-columnn layout) -->
|
1580
|
+
|
1581
|
+
|
1572
1582
|
<xsl:variable name="table_width">
|
1573
1583
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
1574
1584
|
100%
|
@@ -1587,6 +1597,7 @@
|
|
1587
1597
|
|
1588
1598
|
|
1589
1599
|
|
1600
|
+
|
1590
1601
|
|
1591
1602
|
|
1592
1603
|
|
@@ -2010,6 +2021,8 @@
|
|
2010
2021
|
</xsl:choose>
|
2011
2022
|
</xsl:for-each>
|
2012
2023
|
|
2024
|
+
|
2025
|
+
|
2013
2026
|
<xsl:choose>
|
2014
2027
|
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
2015
2028
|
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
@@ -2046,6 +2059,7 @@
|
|
2046
2059
|
|
2047
2060
|
|
2048
2061
|
|
2062
|
+
|
2049
2063
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
2050
2064
|
|
2051
2065
|
|
@@ -2131,6 +2145,8 @@
|
|
2131
2145
|
|
2132
2146
|
|
2133
2147
|
|
2148
|
+
|
2149
|
+
|
2134
2150
|
</xsl:if>
|
2135
2151
|
<xsl:if test="$parent-name = 'tfoot'">
|
2136
2152
|
|
@@ -2145,6 +2161,8 @@
|
|
2145
2161
|
|
2146
2162
|
|
2147
2163
|
|
2164
|
+
|
2165
|
+
|
2148
2166
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
2149
2167
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
2150
2168
|
</xsl:if> -->
|
@@ -3658,7 +3676,24 @@
|
|
3658
3676
|
</fo:instream-foreign-object>
|
3659
3677
|
</xsl:when>
|
3660
3678
|
<xsl:otherwise>
|
3661
|
-
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"
|
3679
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
3680
|
+
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
3681
|
+
|
3682
|
+
<xsl:variable name="img_src">
|
3683
|
+
<xsl:choose>
|
3684
|
+
<xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
|
3685
|
+
<xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
|
3686
|
+
</xsl:choose>
|
3687
|
+
</xsl:variable>
|
3688
|
+
|
3689
|
+
<xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $width_effective, $height_effective)"/>
|
3690
|
+
<xsl:if test="number($scale) < 100">
|
3691
|
+
<xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
|
3692
|
+
</xsl:if>
|
3693
|
+
|
3694
|
+
</xsl:if>
|
3695
|
+
|
3696
|
+
</fo:external-graphic>
|
3662
3697
|
</xsl:otherwise>
|
3663
3698
|
</xsl:choose>
|
3664
3699
|
|
@@ -3829,11 +3864,13 @@
|
|
3829
3864
|
<xsl:attribute name="width">100%</xsl:attribute>
|
3830
3865
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
3831
3866
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
3867
|
+
<xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
|
3868
|
+
<xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
|
3832
3869
|
<!-- effective height 297 - 27.4 - 13 = 256.6 -->
|
3833
3870
|
<!-- effective width 210 - 12.5 - 25 = 172.5 -->
|
3834
3871
|
<!-- effective height / width = 1.48, 1.4 - with title -->
|
3835
|
-
<xsl:if test="
|
3836
|
-
<xsl:variable name="width" select="((
|
3872
|
+
<xsl:if test="$svg_height > ($svg_width * 1.4)"> <!-- for images with big height -->
|
3873
|
+
<xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
|
3837
3874
|
<xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
|
3838
3875
|
</xsl:if>
|
3839
3876
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -3850,6 +3887,23 @@
|
|
3850
3887
|
<xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
|
3851
3888
|
<xsl:value-of select="."/>
|
3852
3889
|
</xsl:attribute>
|
3890
|
+
</xsl:template><xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
|
3891
|
+
<xsl:copy>
|
3892
|
+
<xsl:apply-templates select="@*" mode="svg_update"/>
|
3893
|
+
<xsl:variable name="viewbox">
|
3894
|
+
<xsl:call-template name="split">
|
3895
|
+
<xsl:with-param name="pText" select="@viewBox"/>
|
3896
|
+
<xsl:with-param name="sep" select="' '"/>
|
3897
|
+
</xsl:call-template>
|
3898
|
+
</xsl:variable>
|
3899
|
+
<xsl:attribute name="width">
|
3900
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[3])"/>
|
3901
|
+
</xsl:attribute>
|
3902
|
+
<xsl:attribute name="height">
|
3903
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[4])"/>
|
3904
|
+
</xsl:attribute>
|
3905
|
+
<xsl:apply-templates mode="svg_update"/>
|
3906
|
+
</xsl:copy>
|
3853
3907
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
|
3854
3908
|
<xsl:variable name="svg_content" select="document(@src)"/>
|
3855
3909
|
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
|
@@ -5533,20 +5587,40 @@
|
|
5533
5587
|
</xsl:call-template>
|
5534
5588
|
</xsl:if>
|
5535
5589
|
</xsl:template><xsl:template name="getLocalizedString">
|
5536
|
-
<xsl:param name="key"/>
|
5590
|
+
<xsl:param name="key"/>
|
5591
|
+
<xsl:param name="formatted">false</xsl:param>
|
5537
5592
|
|
5538
5593
|
<xsl:variable name="curr_lang">
|
5539
5594
|
<xsl:call-template name="getLang"/>
|
5540
5595
|
</xsl:variable>
|
5541
5596
|
|
5542
|
-
<xsl:variable name="data_value"
|
5597
|
+
<xsl:variable name="data_value">
|
5598
|
+
<xsl:choose>
|
5599
|
+
<xsl:when test="$formatted = 'true'">
|
5600
|
+
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5601
|
+
</xsl:when>
|
5602
|
+
<xsl:otherwise>
|
5603
|
+
<xsl:value-of select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5604
|
+
</xsl:otherwise>
|
5605
|
+
</xsl:choose>
|
5606
|
+
</xsl:variable>
|
5543
5607
|
|
5544
5608
|
<xsl:choose>
|
5545
|
-
<xsl:when test="$data_value != ''">
|
5546
|
-
<xsl:
|
5609
|
+
<xsl:when test="normalize-space($data_value) != ''">
|
5610
|
+
<xsl:choose>
|
5611
|
+
<xsl:when test="$formatted = 'true'"><xsl:copy-of select="$data_value"/></xsl:when>
|
5612
|
+
<xsl:otherwise><xsl:value-of select="$data_value"/></xsl:otherwise>
|
5613
|
+
</xsl:choose>
|
5547
5614
|
</xsl:when>
|
5548
5615
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
5549
|
-
<xsl:
|
5616
|
+
<xsl:choose>
|
5617
|
+
<xsl:when test="$formatted = 'true'">
|
5618
|
+
<xsl:apply-templates select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5619
|
+
</xsl:when>
|
5620
|
+
<xsl:otherwise>
|
5621
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5622
|
+
</xsl:otherwise>
|
5623
|
+
</xsl:choose>
|
5550
5624
|
</xsl:when>
|
5551
5625
|
<xsl:otherwise>
|
5552
5626
|
<xsl:variable name="key_">
|
@@ -5557,7 +5631,7 @@
|
|
5557
5631
|
<xsl:value-of select="$key_"/>
|
5558
5632
|
</xsl:otherwise>
|
5559
5633
|
</xsl:choose>
|
5560
|
-
|
5634
|
+
|
5561
5635
|
</xsl:template><xsl:template name="setTrackChangesStyles">
|
5562
5636
|
<xsl:param name="isAdded"/>
|
5563
5637
|
<xsl:param name="isDeleted"/>
|
@@ -1179,7 +1179,9 @@
|
|
1179
1179
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1180
1180
|
|
1181
1181
|
|
1182
|
-
</xsl:attribute-set><xsl:
|
1182
|
+
</xsl:attribute-set><xsl:variable name="table-border_">
|
1183
|
+
|
1184
|
+
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-name-style">
|
1183
1185
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1184
1186
|
|
1185
1187
|
|
@@ -1494,6 +1496,8 @@
|
|
1494
1496
|
<fo:block> </fo:block>
|
1495
1497
|
</xsl:if> -->
|
1496
1498
|
|
1499
|
+
|
1500
|
+
<!-- Display table's name before table as standalone block -->
|
1497
1501
|
<!-- $namespace = 'iso' or -->
|
1498
1502
|
|
1499
1503
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
@@ -1569,6 +1573,12 @@
|
|
1569
1573
|
|
1570
1574
|
|
1571
1575
|
|
1576
|
+
|
1577
|
+
|
1578
|
+
|
1579
|
+
<!-- display table's name before table for PAS inside block-container (2-columnn layout) -->
|
1580
|
+
|
1581
|
+
|
1572
1582
|
<xsl:variable name="table_width">
|
1573
1583
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
1574
1584
|
100%
|
@@ -1587,6 +1597,7 @@
|
|
1587
1597
|
|
1588
1598
|
|
1589
1599
|
|
1600
|
+
|
1590
1601
|
|
1591
1602
|
|
1592
1603
|
|
@@ -2010,6 +2021,8 @@
|
|
2010
2021
|
</xsl:choose>
|
2011
2022
|
</xsl:for-each>
|
2012
2023
|
|
2024
|
+
|
2025
|
+
|
2013
2026
|
<xsl:choose>
|
2014
2027
|
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
2015
2028
|
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
@@ -2046,6 +2059,7 @@
|
|
2046
2059
|
|
2047
2060
|
|
2048
2061
|
|
2062
|
+
|
2049
2063
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
2050
2064
|
|
2051
2065
|
|
@@ -2131,6 +2145,8 @@
|
|
2131
2145
|
|
2132
2146
|
|
2133
2147
|
|
2148
|
+
|
2149
|
+
|
2134
2150
|
</xsl:if>
|
2135
2151
|
<xsl:if test="$parent-name = 'tfoot'">
|
2136
2152
|
|
@@ -2145,6 +2161,8 @@
|
|
2145
2161
|
|
2146
2162
|
|
2147
2163
|
|
2164
|
+
|
2165
|
+
|
2148
2166
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
2149
2167
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
2150
2168
|
</xsl:if> -->
|
@@ -3658,7 +3676,24 @@
|
|
3658
3676
|
</fo:instream-foreign-object>
|
3659
3677
|
</xsl:when>
|
3660
3678
|
<xsl:otherwise>
|
3661
|
-
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"
|
3679
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
3680
|
+
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
3681
|
+
|
3682
|
+
<xsl:variable name="img_src">
|
3683
|
+
<xsl:choose>
|
3684
|
+
<xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
|
3685
|
+
<xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
|
3686
|
+
</xsl:choose>
|
3687
|
+
</xsl:variable>
|
3688
|
+
|
3689
|
+
<xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $width_effective, $height_effective)"/>
|
3690
|
+
<xsl:if test="number($scale) < 100">
|
3691
|
+
<xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
|
3692
|
+
</xsl:if>
|
3693
|
+
|
3694
|
+
</xsl:if>
|
3695
|
+
|
3696
|
+
</fo:external-graphic>
|
3662
3697
|
</xsl:otherwise>
|
3663
3698
|
</xsl:choose>
|
3664
3699
|
|
@@ -3829,11 +3864,13 @@
|
|
3829
3864
|
<xsl:attribute name="width">100%</xsl:attribute>
|
3830
3865
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
3831
3866
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
3867
|
+
<xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
|
3868
|
+
<xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
|
3832
3869
|
<!-- effective height 297 - 27.4 - 13 = 256.6 -->
|
3833
3870
|
<!-- effective width 210 - 12.5 - 25 = 172.5 -->
|
3834
3871
|
<!-- effective height / width = 1.48, 1.4 - with title -->
|
3835
|
-
<xsl:if test="
|
3836
|
-
<xsl:variable name="width" select="((
|
3872
|
+
<xsl:if test="$svg_height > ($svg_width * 1.4)"> <!-- for images with big height -->
|
3873
|
+
<xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
|
3837
3874
|
<xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
|
3838
3875
|
</xsl:if>
|
3839
3876
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -3850,6 +3887,23 @@
|
|
3850
3887
|
<xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
|
3851
3888
|
<xsl:value-of select="."/>
|
3852
3889
|
</xsl:attribute>
|
3890
|
+
</xsl:template><xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
|
3891
|
+
<xsl:copy>
|
3892
|
+
<xsl:apply-templates select="@*" mode="svg_update"/>
|
3893
|
+
<xsl:variable name="viewbox">
|
3894
|
+
<xsl:call-template name="split">
|
3895
|
+
<xsl:with-param name="pText" select="@viewBox"/>
|
3896
|
+
<xsl:with-param name="sep" select="' '"/>
|
3897
|
+
</xsl:call-template>
|
3898
|
+
</xsl:variable>
|
3899
|
+
<xsl:attribute name="width">
|
3900
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[3])"/>
|
3901
|
+
</xsl:attribute>
|
3902
|
+
<xsl:attribute name="height">
|
3903
|
+
<xsl:value-of select="round(xalan:nodeset($viewbox)//item[4])"/>
|
3904
|
+
</xsl:attribute>
|
3905
|
+
<xsl:apply-templates mode="svg_update"/>
|
3906
|
+
</xsl:copy>
|
3853
3907
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
|
3854
3908
|
<xsl:variable name="svg_content" select="document(@src)"/>
|
3855
3909
|
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
|
@@ -5533,20 +5587,40 @@
|
|
5533
5587
|
</xsl:call-template>
|
5534
5588
|
</xsl:if>
|
5535
5589
|
</xsl:template><xsl:template name="getLocalizedString">
|
5536
|
-
<xsl:param name="key"/>
|
5590
|
+
<xsl:param name="key"/>
|
5591
|
+
<xsl:param name="formatted">false</xsl:param>
|
5537
5592
|
|
5538
5593
|
<xsl:variable name="curr_lang">
|
5539
5594
|
<xsl:call-template name="getLang"/>
|
5540
5595
|
</xsl:variable>
|
5541
5596
|
|
5542
|
-
<xsl:variable name="data_value"
|
5597
|
+
<xsl:variable name="data_value">
|
5598
|
+
<xsl:choose>
|
5599
|
+
<xsl:when test="$formatted = 'true'">
|
5600
|
+
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5601
|
+
</xsl:when>
|
5602
|
+
<xsl:otherwise>
|
5603
|
+
<xsl:value-of select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5604
|
+
</xsl:otherwise>
|
5605
|
+
</xsl:choose>
|
5606
|
+
</xsl:variable>
|
5543
5607
|
|
5544
5608
|
<xsl:choose>
|
5545
|
-
<xsl:when test="$data_value != ''">
|
5546
|
-
<xsl:
|
5609
|
+
<xsl:when test="normalize-space($data_value) != ''">
|
5610
|
+
<xsl:choose>
|
5611
|
+
<xsl:when test="$formatted = 'true'"><xsl:copy-of select="$data_value"/></xsl:when>
|
5612
|
+
<xsl:otherwise><xsl:value-of select="$data_value"/></xsl:otherwise>
|
5613
|
+
</xsl:choose>
|
5547
5614
|
</xsl:when>
|
5548
5615
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
5549
|
-
<xsl:
|
5616
|
+
<xsl:choose>
|
5617
|
+
<xsl:when test="$formatted = 'true'">
|
5618
|
+
<xsl:apply-templates select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5619
|
+
</xsl:when>
|
5620
|
+
<xsl:otherwise>
|
5621
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5622
|
+
</xsl:otherwise>
|
5623
|
+
</xsl:choose>
|
5550
5624
|
</xsl:when>
|
5551
5625
|
<xsl:otherwise>
|
5552
5626
|
<xsl:variable name="key_">
|
@@ -5557,7 +5631,7 @@
|
|
5557
5631
|
<xsl:value-of select="$key_"/>
|
5558
5632
|
</xsl:otherwise>
|
5559
5633
|
</xsl:choose>
|
5560
|
-
|
5634
|
+
|
5561
5635
|
</xsl:template><xsl:template name="setTrackChangesStyles">
|
5562
5636
|
<xsl:param name="isAdded"/>
|
5563
5637
|
<xsl:param name="isDeleted"/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-m3aawg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.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
|