metanorma-iho 0.3.4 → 0.3.5

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: aaadb9f1a37db3c3b5aff92d2a593b365194c6d4e1435d06a7334766511adb1c
4
- data.tar.gz: fb552d20da927d65e91ad726ef7926fc7a1617cdee4cc71cfab8807d64a79888
3
+ metadata.gz: 74009f28ae0e8d7d53ae1ba871d3d343cb343e2c907455d50507de29ef3824d9
4
+ data.tar.gz: 25ec650bf51cdcbb5fab99d9ba8716dcd25b2b301f05f384daf55efa19aa3e1d
5
5
  SHA512:
6
- metadata.gz: 664a4bdc46f48822c6eb58ad3e258498dd8ff33da546168b905a4c5299643a1f0e3b7928167457139b7db70c2572f37305318f31f78ffb74824f6f78e9c7d2e0
7
- data.tar.gz: 475f2b786a53d4641fc6ebc0d8ab08c142d6c3dacf3053d5046497d7d8e63b2125b0104729d390b6d88097adace7536c061d269bc06f2374483b26015dcd85a6
6
+ metadata.gz: 7aa71c58b70bf5a1cf8f3c3b5f6c4a6606f2fafbb5683719b3601e3485a81ce297f7f1f1bcfc551b867999636824825ba8e2d357360e8019e3d1b73eaae17482
7
+ data.tar.gz: 5551240737a8d2ec9f765fcf4db38b33916c81ae0a3f8ca977f6418fa29793d1cda0ec3e943c5aea94337760bc5e6b0fca29a8b86929a062fde7302f551062ed
data/.rubocop.yml CHANGED
@@ -7,4 +7,4 @@ inherit_from:
7
7
  # ...
8
8
 
9
9
  AllCops:
10
- TargetRubyVersion: 2.4
10
+ TargetRubyVersion: 2.5
@@ -1174,7 +1174,7 @@
1174
1174
 
1175
1175
 
1176
1176
 
1177
-
1177
+
1178
1178
  </xsl:attribute-set><xsl:attribute-set name="example-style">
1179
1179
 
1180
1180
 
@@ -1241,6 +1241,7 @@
1241
1241
  <xsl:attribute name="padding-right">5mm</xsl:attribute>
1242
1242
 
1243
1243
 
1244
+
1244
1245
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1245
1246
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1246
1247
 
@@ -1262,6 +1263,8 @@
1262
1263
 
1263
1264
 
1264
1265
 
1266
+ </xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
1267
+
1265
1268
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1266
1269
 
1267
1270
 
@@ -1306,6 +1309,7 @@
1306
1309
 
1307
1310
 
1308
1311
 
1312
+
1309
1313
  </xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
1310
1314
 
1311
1315
 
@@ -1352,10 +1356,12 @@
1352
1356
 
1353
1357
 
1354
1358
 
1359
+
1355
1360
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1356
1361
 
1357
1362
 
1358
1363
 
1364
+
1359
1365
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
1360
1366
 
1361
1367
 
@@ -1418,6 +1424,7 @@
1418
1424
 
1419
1425
 
1420
1426
 
1427
+
1421
1428
 
1422
1429
 
1423
1430
 
@@ -1491,6 +1498,8 @@
1491
1498
  <xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
1492
1499
 
1493
1500
 
1501
+ </xsl:attribute-set><xsl:attribute-set name="list-style">
1502
+
1494
1503
  </xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:template name="processPrefaceSectionsDefault_Contents">
1495
1504
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
1496
1505
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -1544,11 +1553,11 @@
1544
1553
  <xsl:variable name="table">
1545
1554
 
1546
1555
  <xsl:variable name="simple-table">
1547
- <xsl:call-template name="getSimpleTable"/>
1556
+ <xsl:call-template name="getSimpleTable"/>
1548
1557
  </xsl:variable>
1549
1558
 
1550
1559
  <!-- <xsl:if test="$namespace = 'bipm'">
1551
- <fo:block>&#xA0;</fo:block>
1560
+ <fo:block>&#xA0;</fo:block>
1552
1561
  </xsl:if> -->
1553
1562
 
1554
1563
  <!-- $namespace = 'iso' or -->
@@ -1657,6 +1666,7 @@
1657
1666
 
1658
1667
 
1659
1668
 
1669
+
1660
1670
  </xsl:variable>
1661
1671
 
1662
1672
 
@@ -1798,6 +1808,9 @@
1798
1808
  <fo:block xsl:use-attribute-sets="table-name-style">
1799
1809
 
1800
1810
 
1811
+
1812
+
1813
+
1801
1814
  <xsl:choose>
1802
1815
  <xsl:when test="$continued = 'true'">
1803
1816
  <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
@@ -1945,6 +1958,7 @@
1945
1958
  <!-- font-weight="bold" -->
1946
1959
  <fo:table-header>
1947
1960
 
1961
+
1948
1962
  <xsl:apply-templates/>
1949
1963
  </fo:table-header>
1950
1964
  </xsl:template><xsl:template name="table-header-title">
@@ -2190,6 +2204,10 @@
2190
2204
 
2191
2205
 
2192
2206
 
2207
+
2208
+
2209
+
2210
+
2193
2211
  <!-- <xsl:if test="$namespace = 'bipm'">
2194
2212
  <xsl:attribute name="height">8mm</xsl:attribute>
2195
2213
  </xsl:if> -->
@@ -2277,6 +2295,9 @@
2277
2295
 
2278
2296
 
2279
2297
 
2298
+
2299
+
2300
+
2280
2301
  <xsl:if test=".//*[local-name() = 'table']">
2281
2302
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
2282
2303
  </xsl:if>
@@ -2497,6 +2518,7 @@
2497
2518
 
2498
2519
 
2499
2520
 
2521
+
2500
2522
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
2501
2523
 
2502
2524
 
@@ -2803,6 +2825,7 @@
2803
2825
 
2804
2826
  <fo:table-row>
2805
2827
 
2828
+
2806
2829
  <fo:table-cell>
2807
2830
 
2808
2831
  <fo:block margin-top="6pt">
@@ -2821,6 +2844,7 @@
2821
2844
 
2822
2845
 
2823
2846
 
2847
+
2824
2848
  <xsl:apply-templates/>
2825
2849
  <!-- <xsl:if test="$namespace = 'gb'">
2826
2850
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -3368,7 +3392,15 @@
3368
3392
  <xsl:copy>
3369
3393
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
3370
3394
  </xsl:copy>
3371
- <mathml:mspace width="0.5ex"/>
3395
+ <xsl:choose>
3396
+ <!-- if in msub, then don't add space -->
3397
+ <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
3398
+ <!-- if next char in digit, don't add space -->
3399
+ <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
3400
+ <xsl:otherwise>
3401
+ <mathml:mspace width="0.5ex"/>
3402
+ </xsl:otherwise>
3403
+ </xsl:choose>
3372
3404
  </xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
3373
3405
  <xsl:variable name="target">
3374
3406
  <xsl:choose>
@@ -3392,6 +3424,7 @@
3392
3424
  </xsl:variable>
3393
3425
  <fo:inline xsl:use-attribute-sets="link-style">
3394
3426
 
3427
+
3395
3428
  <xsl:choose>
3396
3429
  <xsl:when test="$target_text = ''">
3397
3430
  <xsl:apply-templates/>
@@ -3547,6 +3580,7 @@
3547
3580
  </xsl:choose>
3548
3581
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
3549
3582
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
3583
+
3550
3584
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
3551
3585
 
3552
3586
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
@@ -3620,6 +3654,7 @@
3620
3654
  </xsl:call-template>
3621
3655
 
3622
3656
  <fo:block>
3657
+
3623
3658
  <xsl:apply-templates/>
3624
3659
  </fo:block>
3625
3660
  <xsl:call-template name="fn_display_figure"/>
@@ -3904,6 +3939,7 @@
3904
3939
  <xsl:if test="normalize-space() != ''">
3905
3940
  <fo:block xsl:use-attribute-sets="figure-name-style">
3906
3941
 
3942
+
3907
3943
  <xsl:apply-templates/>
3908
3944
  </fo:block>
3909
3945
  </xsl:if>
@@ -3984,6 +4020,7 @@
3984
4020
 
3985
4021
  <fo:block-container margin-left="0mm">
3986
4022
  <xsl:copy-of select="@id"/>
4023
+
3987
4024
  <xsl:if test="parent::*[local-name() = 'note']">
3988
4025
  <xsl:attribute name="margin-left">
3989
4026
  <xsl:choose>
@@ -3994,7 +4031,9 @@
3994
4031
 
3995
4032
  </xsl:if>
3996
4033
  <fo:block-container margin-left="0mm">
3997
-
4034
+
4035
+
4036
+
3998
4037
  <fo:block xsl:use-attribute-sets="sourcecode-style">
3999
4038
  <xsl:variable name="_font-size">
4000
4039
 
@@ -4023,10 +4062,14 @@
4023
4062
  </xsl:choose>
4024
4063
  </xsl:attribute>
4025
4064
  </xsl:if>
4026
- <xsl:apply-templates/>
4027
- </fo:block>
4065
+
4066
+ <xsl:apply-templates/>
4067
+ </fo:block>
4068
+
4069
+
4028
4070
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
4029
4071
 
4072
+
4030
4073
  </fo:block-container>
4031
4074
  </fo:block-container>
4032
4075
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -4372,6 +4415,8 @@
4372
4415
 
4373
4416
 
4374
4417
 
4418
+
4419
+
4375
4420
  <xsl:call-template name="getTitle">
4376
4421
  <xsl:with-param name="name" select="'title-source'"/>
4377
4422
  </xsl:call-template>
@@ -4601,6 +4646,7 @@
4601
4646
  <xsl:call-template name="setId"/>
4602
4647
 
4603
4648
 
4649
+
4604
4650
  <xsl:apply-templates/>
4605
4651
  </fo:block>
4606
4652
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -4946,17 +4992,17 @@
4946
4992
  <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
4947
4993
  <xsl:choose>
4948
4994
  <xsl:when test="normalize-space($_doc_ident) != ''">
4949
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
4995
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
4950
4996
  <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
4951
4997
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
4952
- </xsl:if>
4998
+ </xsl:if> -->
4953
4999
  <xsl:value-of select="$_doc_ident"/>
4954
5000
  </xsl:when>
4955
5001
  <xsl:otherwise>
4956
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
5002
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
4957
5003
  <xsl:if test="$type != ''">
4958
5004
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
4959
- </xsl:if>
5005
+ </xsl:if> -->
4960
5006
  <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
4961
5007
  </xsl:otherwise>
4962
5008
  </xsl:choose>
@@ -5462,4 +5508,14 @@
5462
5508
  <xsl:value-of select="$align"/>
5463
5509
  </xsl:when>
5464
5510
  </xsl:choose>
5511
+ </xsl:template><xsl:template name="setTextAlignment">
5512
+ <xsl:param name="default">left</xsl:param>
5513
+ <xsl:attribute name="text-align">
5514
+ <xsl:choose>
5515
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
5516
+ <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
5517
+ <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
5518
+ <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
5519
+ </xsl:choose>
5520
+ </xsl:attribute>
5465
5521
  </xsl:template></xsl:stylesheet>
@@ -1174,7 +1174,7 @@
1174
1174
 
1175
1175
 
1176
1176
 
1177
-
1177
+
1178
1178
  </xsl:attribute-set><xsl:attribute-set name="example-style">
1179
1179
 
1180
1180
 
@@ -1241,6 +1241,7 @@
1241
1241
  <xsl:attribute name="padding-right">5mm</xsl:attribute>
1242
1242
 
1243
1243
 
1244
+
1244
1245
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1245
1246
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1246
1247
 
@@ -1262,6 +1263,8 @@
1262
1263
 
1263
1264
 
1264
1265
 
1266
+ </xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
1267
+
1265
1268
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1266
1269
 
1267
1270
 
@@ -1306,6 +1309,7 @@
1306
1309
 
1307
1310
 
1308
1311
 
1312
+
1309
1313
  </xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
1310
1314
 
1311
1315
 
@@ -1352,10 +1356,12 @@
1352
1356
 
1353
1357
 
1354
1358
 
1359
+
1355
1360
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1356
1361
 
1357
1362
 
1358
1363
 
1364
+
1359
1365
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
1360
1366
 
1361
1367
 
@@ -1418,6 +1424,7 @@
1418
1424
 
1419
1425
 
1420
1426
 
1427
+
1421
1428
 
1422
1429
 
1423
1430
 
@@ -1491,6 +1498,8 @@
1491
1498
  <xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
1492
1499
 
1493
1500
 
1501
+ </xsl:attribute-set><xsl:attribute-set name="list-style">
1502
+
1494
1503
  </xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:template name="processPrefaceSectionsDefault_Contents">
1495
1504
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
1496
1505
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -1544,11 +1553,11 @@
1544
1553
  <xsl:variable name="table">
1545
1554
 
1546
1555
  <xsl:variable name="simple-table">
1547
- <xsl:call-template name="getSimpleTable"/>
1556
+ <xsl:call-template name="getSimpleTable"/>
1548
1557
  </xsl:variable>
1549
1558
 
1550
1559
  <!-- <xsl:if test="$namespace = 'bipm'">
1551
- <fo:block>&#xA0;</fo:block>
1560
+ <fo:block>&#xA0;</fo:block>
1552
1561
  </xsl:if> -->
1553
1562
 
1554
1563
  <!-- $namespace = 'iso' or -->
@@ -1657,6 +1666,7 @@
1657
1666
 
1658
1667
 
1659
1668
 
1669
+
1660
1670
  </xsl:variable>
1661
1671
 
1662
1672
 
@@ -1798,6 +1808,9 @@
1798
1808
  <fo:block xsl:use-attribute-sets="table-name-style">
1799
1809
 
1800
1810
 
1811
+
1812
+
1813
+
1801
1814
  <xsl:choose>
1802
1815
  <xsl:when test="$continued = 'true'">
1803
1816
  <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
@@ -1945,6 +1958,7 @@
1945
1958
  <!-- font-weight="bold" -->
1946
1959
  <fo:table-header>
1947
1960
 
1961
+
1948
1962
  <xsl:apply-templates/>
1949
1963
  </fo:table-header>
1950
1964
  </xsl:template><xsl:template name="table-header-title">
@@ -2190,6 +2204,10 @@
2190
2204
 
2191
2205
 
2192
2206
 
2207
+
2208
+
2209
+
2210
+
2193
2211
  <!-- <xsl:if test="$namespace = 'bipm'">
2194
2212
  <xsl:attribute name="height">8mm</xsl:attribute>
2195
2213
  </xsl:if> -->
@@ -2277,6 +2295,9 @@
2277
2295
 
2278
2296
 
2279
2297
 
2298
+
2299
+
2300
+
2280
2301
  <xsl:if test=".//*[local-name() = 'table']">
2281
2302
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
2282
2303
  </xsl:if>
@@ -2497,6 +2518,7 @@
2497
2518
 
2498
2519
 
2499
2520
 
2521
+
2500
2522
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
2501
2523
 
2502
2524
 
@@ -2803,6 +2825,7 @@
2803
2825
 
2804
2826
  <fo:table-row>
2805
2827
 
2828
+
2806
2829
  <fo:table-cell>
2807
2830
 
2808
2831
  <fo:block margin-top="6pt">
@@ -2821,6 +2844,7 @@
2821
2844
 
2822
2845
 
2823
2846
 
2847
+
2824
2848
  <xsl:apply-templates/>
2825
2849
  <!-- <xsl:if test="$namespace = 'gb'">
2826
2850
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -3368,7 +3392,15 @@
3368
3392
  <xsl:copy>
3369
3393
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
3370
3394
  </xsl:copy>
3371
- <mathml:mspace width="0.5ex"/>
3395
+ <xsl:choose>
3396
+ <!-- if in msub, then don't add space -->
3397
+ <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
3398
+ <!-- if next char in digit, don't add space -->
3399
+ <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
3400
+ <xsl:otherwise>
3401
+ <mathml:mspace width="0.5ex"/>
3402
+ </xsl:otherwise>
3403
+ </xsl:choose>
3372
3404
  </xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
3373
3405
  <xsl:variable name="target">
3374
3406
  <xsl:choose>
@@ -3392,6 +3424,7 @@
3392
3424
  </xsl:variable>
3393
3425
  <fo:inline xsl:use-attribute-sets="link-style">
3394
3426
 
3427
+
3395
3428
  <xsl:choose>
3396
3429
  <xsl:when test="$target_text = ''">
3397
3430
  <xsl:apply-templates/>
@@ -3547,6 +3580,7 @@
3547
3580
  </xsl:choose>
3548
3581
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
3549
3582
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
3583
+
3550
3584
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
3551
3585
 
3552
3586
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
@@ -3620,6 +3654,7 @@
3620
3654
  </xsl:call-template>
3621
3655
 
3622
3656
  <fo:block>
3657
+
3623
3658
  <xsl:apply-templates/>
3624
3659
  </fo:block>
3625
3660
  <xsl:call-template name="fn_display_figure"/>
@@ -3904,6 +3939,7 @@
3904
3939
  <xsl:if test="normalize-space() != ''">
3905
3940
  <fo:block xsl:use-attribute-sets="figure-name-style">
3906
3941
 
3942
+
3907
3943
  <xsl:apply-templates/>
3908
3944
  </fo:block>
3909
3945
  </xsl:if>
@@ -3984,6 +4020,7 @@
3984
4020
 
3985
4021
  <fo:block-container margin-left="0mm">
3986
4022
  <xsl:copy-of select="@id"/>
4023
+
3987
4024
  <xsl:if test="parent::*[local-name() = 'note']">
3988
4025
  <xsl:attribute name="margin-left">
3989
4026
  <xsl:choose>
@@ -3994,7 +4031,9 @@
3994
4031
 
3995
4032
  </xsl:if>
3996
4033
  <fo:block-container margin-left="0mm">
3997
-
4034
+
4035
+
4036
+
3998
4037
  <fo:block xsl:use-attribute-sets="sourcecode-style">
3999
4038
  <xsl:variable name="_font-size">
4000
4039
 
@@ -4023,10 +4062,14 @@
4023
4062
  </xsl:choose>
4024
4063
  </xsl:attribute>
4025
4064
  </xsl:if>
4026
- <xsl:apply-templates/>
4027
- </fo:block>
4065
+
4066
+ <xsl:apply-templates/>
4067
+ </fo:block>
4068
+
4069
+
4028
4070
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
4029
4071
 
4072
+
4030
4073
  </fo:block-container>
4031
4074
  </fo:block-container>
4032
4075
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -4372,6 +4415,8 @@
4372
4415
 
4373
4416
 
4374
4417
 
4418
+
4419
+
4375
4420
  <xsl:call-template name="getTitle">
4376
4421
  <xsl:with-param name="name" select="'title-source'"/>
4377
4422
  </xsl:call-template>
@@ -4601,6 +4646,7 @@
4601
4646
  <xsl:call-template name="setId"/>
4602
4647
 
4603
4648
 
4649
+
4604
4650
  <xsl:apply-templates/>
4605
4651
  </fo:block>
4606
4652
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -4946,17 +4992,17 @@
4946
4992
  <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
4947
4993
  <xsl:choose>
4948
4994
  <xsl:when test="normalize-space($_doc_ident) != ''">
4949
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
4995
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
4950
4996
  <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
4951
4997
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
4952
- </xsl:if>
4998
+ </xsl:if> -->
4953
4999
  <xsl:value-of select="$_doc_ident"/>
4954
5000
  </xsl:when>
4955
5001
  <xsl:otherwise>
4956
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
5002
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
4957
5003
  <xsl:if test="$type != ''">
4958
5004
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
4959
- </xsl:if>
5005
+ </xsl:if> -->
4960
5006
  <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
4961
5007
  </xsl:otherwise>
4962
5008
  </xsl:choose>
@@ -5462,4 +5508,14 @@
5462
5508
  <xsl:value-of select="$align"/>
5463
5509
  </xsl:when>
5464
5510
  </xsl:choose>
5511
+ </xsl:template><xsl:template name="setTextAlignment">
5512
+ <xsl:param name="default">left</xsl:param>
5513
+ <xsl:attribute name="text-align">
5514
+ <xsl:choose>
5515
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
5516
+ <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
5517
+ <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
5518
+ <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
5519
+ </xsl:choose>
5520
+ </xsl:attribute>
5465
5521
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IHO
3
- VERSION = "0.3.4".freeze
3
+ VERSION = "0.3.5".freeze
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.bindir = "exe"
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
27
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
28
28
 
29
29
  spec.add_dependency "htmlentities", "~> 4.3.4"
30
30
  spec.add_dependency "metanorma-generic", "~> 1.10.0"
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
4
+ version: 0.3.5
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-06-07 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -254,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - ">="
256
256
  - !ruby/object:Gem::Version
257
- version: 2.4.0
257
+ version: 2.5.0
258
258
  required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  requirements:
260
260
  - - ">="