metanorma-iso 1.9.0.1 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ad1b23ba99cb087c9e257a7bb0bd4d0245bfdc2a2d00c881cc700db7e5c8c42
4
- data.tar.gz: bc6b4e4d61c32fe3b01cb64a8d0cefc33410814dfa740e140e74a1b2ad4f686f
3
+ metadata.gz: 8557db1b500f1f756f6f4c755f1adffd884529b0aa77bdce9dc47cdf38288948
4
+ data.tar.gz: 4d7f35c2b6ab91853e06d225d9ec679b2696e9392b2695d6002ff9c2fdb9fd90
5
5
  SHA512:
6
- metadata.gz: 84dc22c62dc17b3d93b1ec601de1b6662762be8963b830ebe305171d1955e3c0cab44e459ad65600752d8de2d97d6caa003e88daed3e6175527fd8feb4f5ea6a
7
- data.tar.gz: 7ee4889948da20e6db0a534396dd4946cf890b87c67e1cec8a7c2a0eaa4cf85d0d72443fe2535e8b93223c2a66dcadaf42402a8ad786f90bcded7cc9d2a7a1dc
6
+ metadata.gz: 0c40cff218ad2aacbeaf1ca44f315398115c9e9fc13e8fa2a845456328e94b743b0c08ede991ff12204ba4da67ce5cc541369082265c4580b0fd23addec64fa8
7
+ data.tar.gz: 06f917f6556624e961dfb33f59be02c88440b8a842909d280e1c41bbe3540e783931bd309f6f99af8d7f15caf4af42c1de55634270c471889a239f418ec267f4
@@ -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">
@@ -2443,7 +2443,9 @@
2443
2443
 
2444
2444
 
2445
2445
 
2446
- </xsl:attribute-set><xsl:attribute-set name="table-name-style">
2446
+ </xsl:attribute-set><xsl:variable name="table-border_">
2447
+
2448
+ </xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-name-style">
2447
2449
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2448
2450
 
2449
2451
 
@@ -2771,6 +2773,8 @@
2771
2773
  <fo:block>&#xA0;</fo:block>
2772
2774
  </xsl:if> -->
2773
2775
 
2776
+
2777
+ <!-- Display table's name before table as standalone block -->
2774
2778
  <!-- $namespace = 'iso' or -->
2775
2779
 
2776
2780
 
@@ -2849,6 +2853,12 @@
2849
2853
 
2850
2854
 
2851
2855
 
2856
+
2857
+
2858
+
2859
+ <!-- display table's name before table for PAS inside block-container (2-columnn layout) -->
2860
+
2861
+
2852
2862
  <xsl:variable name="table_width">
2853
2863
  <!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
2854
2864
  100%
@@ -2869,6 +2879,7 @@
2869
2879
  </xsl:if>
2870
2880
 
2871
2881
 
2882
+
2872
2883
  <xsl:if test="ancestor::*[local-name() = 'table']">
2873
2884
  <!-- for internal table in table cell -->
2874
2885
  <attribute name="border">0.5pt solid black</attribute>
@@ -3318,6 +3329,8 @@
3318
3329
  </xsl:choose>
3319
3330
  </xsl:for-each>
3320
3331
 
3332
+
3333
+
3321
3334
  <xsl:choose>
3322
3335
  <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
3323
3336
  <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
@@ -3356,6 +3369,7 @@
3356
3369
 
3357
3370
 
3358
3371
 
3372
+
3359
3373
  <!-- for BSI (not PAS) display Notes before footnotes -->
3360
3374
 
3361
3375
 
@@ -3432,12 +3446,17 @@
3432
3446
 
3433
3447
  <fo:table-body>
3434
3448
 
3435
- <xsl:variable name="title_continued">
3449
+ <xsl:variable name="title_continued_">
3436
3450
  <xsl:call-template name="getTitle">
3437
3451
  <xsl:with-param name="name" select="'title-continued'"/>
3438
3452
  </xsl:call-template>
3439
3453
  </xsl:variable>
3440
3454
 
3455
+ <xsl:variable name="title_continued">
3456
+ <xsl:value-of select="$title_continued_"/>
3457
+
3458
+ </xsl:variable>
3459
+
3441
3460
  <xsl:variable name="title_start" select="ancestor::*[local-name()='table'][1]/*[local-name()='name']/node()[1][self::text()]"/>
3442
3461
  <xsl:variable name="table_number" select="substring-before($title_start, '—')"/>
3443
3462
 
@@ -3493,6 +3512,8 @@
3493
3512
 
3494
3513
 
3495
3514
 
3515
+
3516
+
3496
3517
  </xsl:if>
3497
3518
  <xsl:if test="$parent-name = 'tfoot'">
3498
3519
 
@@ -3511,6 +3532,8 @@
3511
3532
 
3512
3533
 
3513
3534
 
3535
+
3536
+
3514
3537
  <!-- <xsl:if test="$namespace = 'bipm'">
3515
3538
  <xsl:attribute name="height">8mm</xsl:attribute>
3516
3539
  </xsl:if> -->
@@ -5058,7 +5081,24 @@
5058
5081
  </fo:instream-foreign-object>
5059
5082
  </xsl:when>
5060
5083
  <xsl:otherwise>
5061
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
5084
+ <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
5085
+ <xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
5086
+
5087
+ <xsl:variable name="img_src">
5088
+ <xsl:choose>
5089
+ <xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
5090
+ <xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
5091
+ </xsl:choose>
5092
+ </xsl:variable>
5093
+
5094
+ <xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $width_effective, $height_effective)"/>
5095
+ <xsl:if test="number($scale) &lt; 100">
5096
+ <xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
5097
+ </xsl:if>
5098
+
5099
+ </xsl:if>
5100
+
5101
+ </fo:external-graphic>
5062
5102
  </xsl:otherwise>
5063
5103
  </xsl:choose>
5064
5104
 
@@ -5229,11 +5269,13 @@
5229
5269
  <xsl:attribute name="width">100%</xsl:attribute>
5230
5270
  <xsl:attribute name="content-height">100%</xsl:attribute>
5231
5271
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5272
+ <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
5273
+ <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
5232
5274
  <!-- effective height 297 - 27.4 - 13 = 256.6 -->
5233
5275
  <!-- effective width 210 - 12.5 - 25 = 172.5 -->
5234
5276
  <!-- effective height / width = 1.48, 1.4 - with title -->
5235
- <xsl:if test="@height &gt; (@width * 1.4)"> <!-- for images with big height -->
5236
- <xsl:variable name="width" select="((@width * 1.4) div @height) * 100"/>
5277
+ <xsl:if test="$svg_height &gt; ($svg_width * 1.4)"> <!-- for images with big height -->
5278
+ <xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
5237
5279
  <xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
5238
5280
  </xsl:if>
5239
5281
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -5250,6 +5292,23 @@
5250
5292
  <xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
5251
5293
  <xsl:value-of select="."/>
5252
5294
  </xsl:attribute>
5295
+ </xsl:template><xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
5296
+ <xsl:copy>
5297
+ <xsl:apply-templates select="@*" mode="svg_update"/>
5298
+ <xsl:variable name="viewbox">
5299
+ <xsl:call-template name="split">
5300
+ <xsl:with-param name="pText" select="@viewBox"/>
5301
+ <xsl:with-param name="sep" select="' '"/>
5302
+ </xsl:call-template>
5303
+ </xsl:variable>
5304
+ <xsl:attribute name="width">
5305
+ <xsl:value-of select="round(xalan:nodeset($viewbox)//item[3])"/>
5306
+ </xsl:attribute>
5307
+ <xsl:attribute name="height">
5308
+ <xsl:value-of select="round(xalan:nodeset($viewbox)//item[4])"/>
5309
+ </xsl:attribute>
5310
+ <xsl:apply-templates mode="svg_update"/>
5311
+ </xsl:copy>
5253
5312
  </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
5254
5313
  <xsl:variable name="svg_content" select="document(@src)"/>
5255
5314
  <xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
@@ -6972,20 +7031,40 @@
6972
7031
  </xsl:call-template>
6973
7032
  </xsl:if>
6974
7033
  </xsl:template><xsl:template name="getLocalizedString">
6975
- <xsl:param name="key"/>
7034
+ <xsl:param name="key"/>
7035
+ <xsl:param name="formatted">false</xsl:param>
6976
7036
 
6977
7037
  <xsl:variable name="curr_lang">
6978
7038
  <xsl:call-template name="getLang"/>
6979
7039
  </xsl:variable>
6980
7040
 
6981
- <xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
7041
+ <xsl:variable name="data_value">
7042
+ <xsl:choose>
7043
+ <xsl:when test="$formatted = 'true'">
7044
+ <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7045
+ </xsl:when>
7046
+ <xsl:otherwise>
7047
+ <xsl:value-of select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
7048
+ </xsl:otherwise>
7049
+ </xsl:choose>
7050
+ </xsl:variable>
6982
7051
 
6983
7052
  <xsl:choose>
6984
- <xsl:when test="$data_value != ''">
6985
- <xsl:value-of select="$data_value"/>
7053
+ <xsl:when test="normalize-space($data_value) != ''">
7054
+ <xsl:choose>
7055
+ <xsl:when test="$formatted = 'true'"><xsl:copy-of select="$data_value"/></xsl:when>
7056
+ <xsl:otherwise><xsl:value-of select="$data_value"/></xsl:otherwise>
7057
+ </xsl:choose>
6986
7058
  </xsl:when>
6987
7059
  <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
6988
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7060
+ <xsl:choose>
7061
+ <xsl:when test="$formatted = 'true'">
7062
+ <xsl:apply-templates select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7063
+ </xsl:when>
7064
+ <xsl:otherwise>
7065
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7066
+ </xsl:otherwise>
7067
+ </xsl:choose>
6989
7068
  </xsl:when>
6990
7069
  <xsl:otherwise>
6991
7070
  <xsl:variable name="key_">
@@ -6996,7 +7075,7 @@
6996
7075
  <xsl:value-of select="$key_"/>
6997
7076
  </xsl:otherwise>
6998
7077
  </xsl:choose>
6999
-
7078
+
7000
7079
  </xsl:template><xsl:template name="setTrackChangesStyles">
7001
7080
  <xsl:param name="isAdded"/>
7002
7081
  <xsl:param name="isDeleted"/>
@@ -2443,7 +2443,9 @@
2443
2443
 
2444
2444
 
2445
2445
 
2446
- </xsl:attribute-set><xsl:attribute-set name="table-name-style">
2446
+ </xsl:attribute-set><xsl:variable name="table-border_">
2447
+
2448
+ </xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-name-style">
2447
2449
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2448
2450
 
2449
2451
 
@@ -2771,6 +2773,8 @@
2771
2773
  <fo:block>&#xA0;</fo:block>
2772
2774
  </xsl:if> -->
2773
2775
 
2776
+
2777
+ <!-- Display table's name before table as standalone block -->
2774
2778
  <!-- $namespace = 'iso' or -->
2775
2779
 
2776
2780
 
@@ -2849,6 +2853,12 @@
2849
2853
 
2850
2854
 
2851
2855
 
2856
+
2857
+
2858
+
2859
+ <!-- display table's name before table for PAS inside block-container (2-columnn layout) -->
2860
+
2861
+
2852
2862
  <xsl:variable name="table_width">
2853
2863
  <!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
2854
2864
  100%
@@ -2869,6 +2879,7 @@
2869
2879
  </xsl:if>
2870
2880
 
2871
2881
 
2882
+
2872
2883
  <xsl:if test="ancestor::*[local-name() = 'table']">
2873
2884
  <!-- for internal table in table cell -->
2874
2885
  <attribute name="border">0.5pt solid black</attribute>
@@ -3318,6 +3329,8 @@
3318
3329
  </xsl:choose>
3319
3330
  </xsl:for-each>
3320
3331
 
3332
+
3333
+
3321
3334
  <xsl:choose>
3322
3335
  <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
3323
3336
  <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
@@ -3356,6 +3369,7 @@
3356
3369
 
3357
3370
 
3358
3371
 
3372
+
3359
3373
  <!-- for BSI (not PAS) display Notes before footnotes -->
3360
3374
 
3361
3375
 
@@ -3432,12 +3446,17 @@
3432
3446
 
3433
3447
  <fo:table-body>
3434
3448
 
3435
- <xsl:variable name="title_continued">
3449
+ <xsl:variable name="title_continued_">
3436
3450
  <xsl:call-template name="getTitle">
3437
3451
  <xsl:with-param name="name" select="'title-continued'"/>
3438
3452
  </xsl:call-template>
3439
3453
  </xsl:variable>
3440
3454
 
3455
+ <xsl:variable name="title_continued">
3456
+ <xsl:value-of select="$title_continued_"/>
3457
+
3458
+ </xsl:variable>
3459
+
3441
3460
  <xsl:variable name="title_start" select="ancestor::*[local-name()='table'][1]/*[local-name()='name']/node()[1][self::text()]"/>
3442
3461
  <xsl:variable name="table_number" select="substring-before($title_start, '—')"/>
3443
3462
 
@@ -3493,6 +3512,8 @@
3493
3512
 
3494
3513
 
3495
3514
 
3515
+
3516
+
3496
3517
  </xsl:if>
3497
3518
  <xsl:if test="$parent-name = 'tfoot'">
3498
3519
 
@@ -3511,6 +3532,8 @@
3511
3532
 
3512
3533
 
3513
3534
 
3535
+
3536
+
3514
3537
  <!-- <xsl:if test="$namespace = 'bipm'">
3515
3538
  <xsl:attribute name="height">8mm</xsl:attribute>
3516
3539
  </xsl:if> -->
@@ -5058,7 +5081,24 @@
5058
5081
  </fo:instream-foreign-object>
5059
5082
  </xsl:when>
5060
5083
  <xsl:otherwise>
5061
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
5084
+ <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
5085
+ <xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
5086
+
5087
+ <xsl:variable name="img_src">
5088
+ <xsl:choose>
5089
+ <xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
5090
+ <xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
5091
+ </xsl:choose>
5092
+ </xsl:variable>
5093
+
5094
+ <xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $width_effective, $height_effective)"/>
5095
+ <xsl:if test="number($scale) &lt; 100">
5096
+ <xsl:attribute name="content-width"><xsl:value-of select="$scale"/>%</xsl:attribute>
5097
+ </xsl:if>
5098
+
5099
+ </xsl:if>
5100
+
5101
+ </fo:external-graphic>
5062
5102
  </xsl:otherwise>
5063
5103
  </xsl:choose>
5064
5104
 
@@ -5229,11 +5269,13 @@
5229
5269
  <xsl:attribute name="width">100%</xsl:attribute>
5230
5270
  <xsl:attribute name="content-height">100%</xsl:attribute>
5231
5271
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
5272
+ <xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
5273
+ <xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
5232
5274
  <!-- effective height 297 - 27.4 - 13 = 256.6 -->
5233
5275
  <!-- effective width 210 - 12.5 - 25 = 172.5 -->
5234
5276
  <!-- effective height / width = 1.48, 1.4 - with title -->
5235
- <xsl:if test="@height &gt; (@width * 1.4)"> <!-- for images with big height -->
5236
- <xsl:variable name="width" select="((@width * 1.4) div @height) * 100"/>
5277
+ <xsl:if test="$svg_height &gt; ($svg_width * 1.4)"> <!-- for images with big height -->
5278
+ <xsl:variable name="width" select="(($svg_width * 1.4) div $svg_height) * 100"/>
5237
5279
  <xsl:attribute name="width"><xsl:value-of select="$width"/>%</xsl:attribute>
5238
5280
  </xsl:if>
5239
5281
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -5250,6 +5292,23 @@
5250
5292
  <xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
5251
5293
  <xsl:value-of select="."/>
5252
5294
  </xsl:attribute>
5295
+ </xsl:template><xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
5296
+ <xsl:copy>
5297
+ <xsl:apply-templates select="@*" mode="svg_update"/>
5298
+ <xsl:variable name="viewbox">
5299
+ <xsl:call-template name="split">
5300
+ <xsl:with-param name="pText" select="@viewBox"/>
5301
+ <xsl:with-param name="sep" select="' '"/>
5302
+ </xsl:call-template>
5303
+ </xsl:variable>
5304
+ <xsl:attribute name="width">
5305
+ <xsl:value-of select="round(xalan:nodeset($viewbox)//item[3])"/>
5306
+ </xsl:attribute>
5307
+ <xsl:attribute name="height">
5308
+ <xsl:value-of select="round(xalan:nodeset($viewbox)//item[4])"/>
5309
+ </xsl:attribute>
5310
+ <xsl:apply-templates mode="svg_update"/>
5311
+ </xsl:copy>
5253
5312
  </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
5254
5313
  <xsl:variable name="svg_content" select="document(@src)"/>
5255
5314
  <xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
@@ -6972,20 +7031,40 @@
6972
7031
  </xsl:call-template>
6973
7032
  </xsl:if>
6974
7033
  </xsl:template><xsl:template name="getLocalizedString">
6975
- <xsl:param name="key"/>
7034
+ <xsl:param name="key"/>
7035
+ <xsl:param name="formatted">false</xsl:param>
6976
7036
 
6977
7037
  <xsl:variable name="curr_lang">
6978
7038
  <xsl:call-template name="getLang"/>
6979
7039
  </xsl:variable>
6980
7040
 
6981
- <xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
7041
+ <xsl:variable name="data_value">
7042
+ <xsl:choose>
7043
+ <xsl:when test="$formatted = 'true'">
7044
+ <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7045
+ </xsl:when>
7046
+ <xsl:otherwise>
7047
+ <xsl:value-of select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
7048
+ </xsl:otherwise>
7049
+ </xsl:choose>
7050
+ </xsl:variable>
6982
7051
 
6983
7052
  <xsl:choose>
6984
- <xsl:when test="$data_value != ''">
6985
- <xsl:value-of select="$data_value"/>
7053
+ <xsl:when test="normalize-space($data_value) != ''">
7054
+ <xsl:choose>
7055
+ <xsl:when test="$formatted = 'true'"><xsl:copy-of select="$data_value"/></xsl:when>
7056
+ <xsl:otherwise><xsl:value-of select="$data_value"/></xsl:otherwise>
7057
+ </xsl:choose>
6986
7058
  </xsl:when>
6987
7059
  <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
6988
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7060
+ <xsl:choose>
7061
+ <xsl:when test="$formatted = 'true'">
7062
+ <xsl:apply-templates select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7063
+ </xsl:when>
7064
+ <xsl:otherwise>
7065
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
7066
+ </xsl:otherwise>
7067
+ </xsl:choose>
6989
7068
  </xsl:when>
6990
7069
  <xsl:otherwise>
6991
7070
  <xsl:variable name="key_">
@@ -6996,7 +7075,7 @@
6996
7075
  <xsl:value-of select="$key_"/>
6997
7076
  </xsl:otherwise>
6998
7077
  </xsl:choose>
6999
-
7078
+
7000
7079
  </xsl:template><xsl:template name="setTrackChangesStyles">
7001
7080
  <xsl:param name="isAdded"/>
7002
7081
  <xsl:param name="isDeleted"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.9.0.1".freeze
3
+ VERSION = "1.9.1".freeze
4
4
  end
5
5
  end
@@ -48,11 +48,11 @@ RSpec.describe Asciidoctor::ISO do
48
48
  <mi>r</mi>
49
49
  <mo>=</mo>
50
50
  <mn>1</mn>
51
- <mi>%</mi>
51
+ <mo>%</mo>
52
52
  <mi>r</mi>
53
53
  <mo>=</mo>
54
54
  <mn>1</mn>
55
- <mi>%</mi>
55
+ <mo>%</mo>
56
56
  </math>
57
57
  </stem>
58
58
  </formula>
@@ -230,11 +230,11 @@ RSpec.describe Asciidoctor::ISO do
230
230
  <mi>r</mi>
231
231
  <mo>=</mo>
232
232
  <mn>1</mn>
233
- <mi>%</mi>
233
+ <mo>%</mo>
234
234
  <mi>r</mi>
235
235
  <mo>=</mo>
236
236
  <mn>1</mn>
237
- <mi>%</mi>
237
+ <mo>%</mo>
238
238
  </math>
239
239
  </stem>
240
240
  <note id="_">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0.1
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-19 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: isodoc