metanorma-un 0.6.4 → 0.6.5
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 +4 -4
- data/.rubocop.yml +1 -1
- data/lib/isodoc/un/un.plenary-attachment.xsl +65 -11
- data/lib/isodoc/un/un.plenary.xsl +65 -11
- data/lib/isodoc/un/un.recommendation.xsl +65 -11
- data/lib/metanorma/un/version.rb +1 -1
- data/metanorma-unece.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24fe47575535e25483251e6ed1b2f278df382c1fe7878560b986a0bf9220eb9b
|
|
4
|
+
data.tar.gz: 2ed7c0507c32d4733ffe26f91a8b9f1f4a019105d5dbd61c3edc1f8fbd7eccc0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2503fe478117ca61d6cf544b59fdacabfa136e8e72faa5cec74867323daa883156f3564579714bb62b8c960580fb419d16f97aa4ab68e998329fd1518e0c8b28
|
|
7
|
+
data.tar.gz: 19b1cda0b57151e0b5c51b8780f72de396e581947450bf7f8b39118d240e3b9d92438139a758e7f14fe4bf843a175ed59f3c536ec179e7ded65c959806a8e3b3
|
data/.rubocop.yml
CHANGED
|
@@ -1406,7 +1406,7 @@
|
|
|
1406
1406
|
|
|
1407
1407
|
|
|
1408
1408
|
|
|
1409
|
-
|
|
1409
|
+
|
|
1410
1410
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
|
1411
1411
|
|
|
1412
1412
|
|
|
@@ -1471,6 +1471,7 @@
|
|
|
1471
1471
|
|
|
1472
1472
|
|
|
1473
1473
|
|
|
1474
|
+
|
|
1474
1475
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
|
1475
1476
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
1476
1477
|
|
|
@@ -1494,6 +1495,8 @@
|
|
|
1494
1495
|
|
|
1495
1496
|
|
|
1496
1497
|
|
|
1498
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
|
1499
|
+
|
|
1497
1500
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
|
1498
1501
|
|
|
1499
1502
|
|
|
@@ -1534,6 +1537,7 @@
|
|
|
1534
1537
|
|
|
1535
1538
|
|
|
1536
1539
|
|
|
1540
|
+
|
|
1537
1541
|
</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">
|
|
1538
1542
|
|
|
1539
1543
|
|
|
@@ -1576,10 +1580,12 @@
|
|
|
1576
1580
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
|
1577
1581
|
|
|
1578
1582
|
|
|
1583
|
+
|
|
1579
1584
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
|
1580
1585
|
|
|
1581
1586
|
|
|
1582
1587
|
|
|
1588
|
+
|
|
1583
1589
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
|
1584
1590
|
|
|
1585
1591
|
|
|
@@ -1623,6 +1629,7 @@
|
|
|
1623
1629
|
|
|
1624
1630
|
|
|
1625
1631
|
|
|
1632
|
+
|
|
1626
1633
|
|
|
1627
1634
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
1628
1635
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -1701,6 +1708,8 @@
|
|
|
1701
1708
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
|
1702
1709
|
|
|
1703
1710
|
|
|
1711
|
+
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
|
1712
|
+
|
|
1704
1713
|
</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">
|
|
1705
1714
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
|
1706
1715
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
|
@@ -1754,11 +1763,11 @@
|
|
|
1754
1763
|
<xsl:variable name="table">
|
|
1755
1764
|
|
|
1756
1765
|
<xsl:variable name="simple-table">
|
|
1757
|
-
<xsl:call-template name="getSimpleTable"/>
|
|
1766
|
+
<xsl:call-template name="getSimpleTable"/>
|
|
1758
1767
|
</xsl:variable>
|
|
1759
1768
|
|
|
1760
1769
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
|
1761
|
-
<fo:block> </fo:block>
|
|
1770
|
+
<fo:block> </fo:block>
|
|
1762
1771
|
</xsl:if> -->
|
|
1763
1772
|
|
|
1764
1773
|
<!-- $namespace = 'iso' or -->
|
|
@@ -1870,6 +1879,7 @@
|
|
|
1870
1879
|
|
|
1871
1880
|
|
|
1872
1881
|
|
|
1882
|
+
|
|
1873
1883
|
</xsl:variable>
|
|
1874
1884
|
|
|
1875
1885
|
|
|
@@ -2008,6 +2018,9 @@
|
|
|
2008
2018
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
|
2009
2019
|
|
|
2010
2020
|
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
|
|
2011
2024
|
<xsl:choose>
|
|
2012
2025
|
<xsl:when test="$continued = 'true'">
|
|
2013
2026
|
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
|
@@ -2155,6 +2168,7 @@
|
|
|
2155
2168
|
<!-- font-weight="bold" -->
|
|
2156
2169
|
<fo:table-header>
|
|
2157
2170
|
|
|
2171
|
+
|
|
2158
2172
|
<xsl:apply-templates/>
|
|
2159
2173
|
</fo:table-header>
|
|
2160
2174
|
</xsl:template><xsl:template name="table-header-title">
|
|
@@ -2404,6 +2418,10 @@
|
|
|
2404
2418
|
|
|
2405
2419
|
|
|
2406
2420
|
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2407
2425
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
|
2408
2426
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
|
2409
2427
|
</xsl:if> -->
|
|
@@ -2507,6 +2525,9 @@
|
|
|
2507
2525
|
|
|
2508
2526
|
|
|
2509
2527
|
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
|
|
2510
2531
|
<xsl:if test=".//*[local-name() = 'table']">
|
|
2511
2532
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
2512
2533
|
</xsl:if>
|
|
@@ -2732,6 +2753,7 @@
|
|
|
2732
2753
|
|
|
2733
2754
|
|
|
2734
2755
|
|
|
2756
|
+
|
|
2735
2757
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
|
2736
2758
|
|
|
2737
2759
|
|
|
@@ -3034,6 +3056,7 @@
|
|
|
3034
3056
|
|
|
3035
3057
|
<fo:table-row>
|
|
3036
3058
|
|
|
3059
|
+
|
|
3037
3060
|
<fo:table-cell>
|
|
3038
3061
|
|
|
3039
3062
|
<fo:block margin-top="6pt">
|
|
@@ -3049,6 +3072,7 @@
|
|
|
3049
3072
|
|
|
3050
3073
|
|
|
3051
3074
|
|
|
3075
|
+
|
|
3052
3076
|
<xsl:apply-templates/>
|
|
3053
3077
|
<!-- <xsl:if test="$namespace = 'gb'">
|
|
3054
3078
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
|
@@ -3596,7 +3620,15 @@
|
|
|
3596
3620
|
<xsl:copy>
|
|
3597
3621
|
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
|
3598
3622
|
</xsl:copy>
|
|
3599
|
-
<
|
|
3623
|
+
<xsl:choose>
|
|
3624
|
+
<!-- if in msub, then don't add space -->
|
|
3625
|
+
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
|
3626
|
+
<!-- if next char in digit, don't add space -->
|
|
3627
|
+
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
|
3628
|
+
<xsl:otherwise>
|
|
3629
|
+
<mathml:mspace width="0.5ex"/>
|
|
3630
|
+
</xsl:otherwise>
|
|
3631
|
+
</xsl:choose>
|
|
3600
3632
|
</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">
|
|
3601
3633
|
<xsl:variable name="target">
|
|
3602
3634
|
<xsl:choose>
|
|
@@ -3620,6 +3652,7 @@
|
|
|
3620
3652
|
</xsl:variable>
|
|
3621
3653
|
<fo:inline xsl:use-attribute-sets="link-style">
|
|
3622
3654
|
|
|
3655
|
+
|
|
3623
3656
|
<xsl:choose>
|
|
3624
3657
|
<xsl:when test="$target_text = ''">
|
|
3625
3658
|
<xsl:apply-templates/>
|
|
@@ -3780,6 +3813,7 @@
|
|
|
3780
3813
|
</xsl:choose>
|
|
3781
3814
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
|
3782
3815
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
|
3816
|
+
|
|
3783
3817
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
|
3784
3818
|
|
|
3785
3819
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
|
@@ -3857,6 +3891,7 @@
|
|
|
3857
3891
|
</xsl:call-template>
|
|
3858
3892
|
|
|
3859
3893
|
<fo:block>
|
|
3894
|
+
|
|
3860
3895
|
<xsl:apply-templates/>
|
|
3861
3896
|
</fo:block>
|
|
3862
3897
|
<xsl:call-template name="fn_display_figure"/>
|
|
@@ -4141,6 +4176,7 @@
|
|
|
4141
4176
|
<xsl:if test="normalize-space() != ''">
|
|
4142
4177
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
|
4143
4178
|
|
|
4179
|
+
|
|
4144
4180
|
<xsl:apply-templates/>
|
|
4145
4181
|
</fo:block>
|
|
4146
4182
|
</xsl:if>
|
|
@@ -4221,6 +4257,7 @@
|
|
|
4221
4257
|
|
|
4222
4258
|
<fo:block-container margin-left="0mm">
|
|
4223
4259
|
<xsl:copy-of select="@id"/>
|
|
4260
|
+
|
|
4224
4261
|
<xsl:if test="parent::*[local-name() = 'note']">
|
|
4225
4262
|
<xsl:attribute name="margin-left">
|
|
4226
4263
|
<xsl:choose>
|
|
@@ -4231,7 +4268,9 @@
|
|
|
4231
4268
|
|
|
4232
4269
|
</xsl:if>
|
|
4233
4270
|
<fo:block-container margin-left="0mm">
|
|
4234
|
-
|
|
4271
|
+
|
|
4272
|
+
|
|
4273
|
+
|
|
4235
4274
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
|
4236
4275
|
<xsl:variable name="_font-size">
|
|
4237
4276
|
|
|
@@ -4260,10 +4299,14 @@
|
|
|
4260
4299
|
</xsl:choose>
|
|
4261
4300
|
</xsl:attribute>
|
|
4262
4301
|
</xsl:if>
|
|
4263
|
-
|
|
4264
|
-
|
|
4302
|
+
|
|
4303
|
+
<xsl:apply-templates/>
|
|
4304
|
+
</fo:block>
|
|
4305
|
+
|
|
4306
|
+
|
|
4265
4307
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
|
4266
4308
|
|
|
4309
|
+
|
|
4267
4310
|
</fo:block-container>
|
|
4268
4311
|
</fo:block-container>
|
|
4269
4312
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
|
@@ -4833,6 +4876,7 @@
|
|
|
4833
4876
|
<xsl:call-template name="setId"/>
|
|
4834
4877
|
|
|
4835
4878
|
|
|
4879
|
+
|
|
4836
4880
|
<xsl:apply-templates/>
|
|
4837
4881
|
</fo:block>
|
|
4838
4882
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
|
@@ -5084,17 +5128,17 @@
|
|
|
5084
5128
|
<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')]"/>
|
|
5085
5129
|
<xsl:choose>
|
|
5086
5130
|
<xsl:when test="normalize-space($_doc_ident) != ''">
|
|
5087
|
-
<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"/>
|
|
5131
|
+
<!-- <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"/>
|
|
5088
5132
|
<xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
|
|
5089
5133
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
|
5090
|
-
</xsl:if>
|
|
5134
|
+
</xsl:if> -->
|
|
5091
5135
|
<xsl:value-of select="$_doc_ident"/>
|
|
5092
5136
|
</xsl:when>
|
|
5093
5137
|
<xsl:otherwise>
|
|
5094
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
|
5138
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
|
5095
5139
|
<xsl:if test="$type != ''">
|
|
5096
5140
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
|
5097
|
-
</xsl:if>
|
|
5141
|
+
</xsl:if> -->
|
|
5098
5142
|
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
|
5099
5143
|
</xsl:otherwise>
|
|
5100
5144
|
</xsl:choose>
|
|
@@ -5600,4 +5644,14 @@
|
|
|
5600
5644
|
<xsl:value-of select="$align"/>
|
|
5601
5645
|
</xsl:when>
|
|
5602
5646
|
</xsl:choose>
|
|
5647
|
+
</xsl:template><xsl:template name="setTextAlignment">
|
|
5648
|
+
<xsl:param name="default">left</xsl:param>
|
|
5649
|
+
<xsl:attribute name="text-align">
|
|
5650
|
+
<xsl:choose>
|
|
5651
|
+
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
|
5652
|
+
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
|
5653
|
+
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
|
5654
|
+
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
|
5655
|
+
</xsl:choose>
|
|
5656
|
+
</xsl:attribute>
|
|
5603
5657
|
</xsl:template></xsl:stylesheet>
|
|
@@ -1406,7 +1406,7 @@
|
|
|
1406
1406
|
|
|
1407
1407
|
|
|
1408
1408
|
|
|
1409
|
-
|
|
1409
|
+
|
|
1410
1410
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
|
1411
1411
|
|
|
1412
1412
|
|
|
@@ -1471,6 +1471,7 @@
|
|
|
1471
1471
|
|
|
1472
1472
|
|
|
1473
1473
|
|
|
1474
|
+
|
|
1474
1475
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
|
1475
1476
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
1476
1477
|
|
|
@@ -1494,6 +1495,8 @@
|
|
|
1494
1495
|
|
|
1495
1496
|
|
|
1496
1497
|
|
|
1498
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
|
1499
|
+
|
|
1497
1500
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
|
1498
1501
|
|
|
1499
1502
|
|
|
@@ -1534,6 +1537,7 @@
|
|
|
1534
1537
|
|
|
1535
1538
|
|
|
1536
1539
|
|
|
1540
|
+
|
|
1537
1541
|
</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">
|
|
1538
1542
|
|
|
1539
1543
|
|
|
@@ -1576,10 +1580,12 @@
|
|
|
1576
1580
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
|
1577
1581
|
|
|
1578
1582
|
|
|
1583
|
+
|
|
1579
1584
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
|
1580
1585
|
|
|
1581
1586
|
|
|
1582
1587
|
|
|
1588
|
+
|
|
1583
1589
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
|
1584
1590
|
|
|
1585
1591
|
|
|
@@ -1623,6 +1629,7 @@
|
|
|
1623
1629
|
|
|
1624
1630
|
|
|
1625
1631
|
|
|
1632
|
+
|
|
1626
1633
|
|
|
1627
1634
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
1628
1635
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -1701,6 +1708,8 @@
|
|
|
1701
1708
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
|
1702
1709
|
|
|
1703
1710
|
|
|
1711
|
+
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
|
1712
|
+
|
|
1704
1713
|
</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">
|
|
1705
1714
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
|
1706
1715
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
|
@@ -1754,11 +1763,11 @@
|
|
|
1754
1763
|
<xsl:variable name="table">
|
|
1755
1764
|
|
|
1756
1765
|
<xsl:variable name="simple-table">
|
|
1757
|
-
<xsl:call-template name="getSimpleTable"/>
|
|
1766
|
+
<xsl:call-template name="getSimpleTable"/>
|
|
1758
1767
|
</xsl:variable>
|
|
1759
1768
|
|
|
1760
1769
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
|
1761
|
-
<fo:block> </fo:block>
|
|
1770
|
+
<fo:block> </fo:block>
|
|
1762
1771
|
</xsl:if> -->
|
|
1763
1772
|
|
|
1764
1773
|
<!-- $namespace = 'iso' or -->
|
|
@@ -1870,6 +1879,7 @@
|
|
|
1870
1879
|
|
|
1871
1880
|
|
|
1872
1881
|
|
|
1882
|
+
|
|
1873
1883
|
</xsl:variable>
|
|
1874
1884
|
|
|
1875
1885
|
|
|
@@ -2008,6 +2018,9 @@
|
|
|
2008
2018
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
|
2009
2019
|
|
|
2010
2020
|
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
|
|
2011
2024
|
<xsl:choose>
|
|
2012
2025
|
<xsl:when test="$continued = 'true'">
|
|
2013
2026
|
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
|
@@ -2155,6 +2168,7 @@
|
|
|
2155
2168
|
<!-- font-weight="bold" -->
|
|
2156
2169
|
<fo:table-header>
|
|
2157
2170
|
|
|
2171
|
+
|
|
2158
2172
|
<xsl:apply-templates/>
|
|
2159
2173
|
</fo:table-header>
|
|
2160
2174
|
</xsl:template><xsl:template name="table-header-title">
|
|
@@ -2404,6 +2418,10 @@
|
|
|
2404
2418
|
|
|
2405
2419
|
|
|
2406
2420
|
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2407
2425
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
|
2408
2426
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
|
2409
2427
|
</xsl:if> -->
|
|
@@ -2507,6 +2525,9 @@
|
|
|
2507
2525
|
|
|
2508
2526
|
|
|
2509
2527
|
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
|
|
2510
2531
|
<xsl:if test=".//*[local-name() = 'table']">
|
|
2511
2532
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
2512
2533
|
</xsl:if>
|
|
@@ -2732,6 +2753,7 @@
|
|
|
2732
2753
|
|
|
2733
2754
|
|
|
2734
2755
|
|
|
2756
|
+
|
|
2735
2757
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
|
2736
2758
|
|
|
2737
2759
|
|
|
@@ -3034,6 +3056,7 @@
|
|
|
3034
3056
|
|
|
3035
3057
|
<fo:table-row>
|
|
3036
3058
|
|
|
3059
|
+
|
|
3037
3060
|
<fo:table-cell>
|
|
3038
3061
|
|
|
3039
3062
|
<fo:block margin-top="6pt">
|
|
@@ -3049,6 +3072,7 @@
|
|
|
3049
3072
|
|
|
3050
3073
|
|
|
3051
3074
|
|
|
3075
|
+
|
|
3052
3076
|
<xsl:apply-templates/>
|
|
3053
3077
|
<!-- <xsl:if test="$namespace = 'gb'">
|
|
3054
3078
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
|
@@ -3596,7 +3620,15 @@
|
|
|
3596
3620
|
<xsl:copy>
|
|
3597
3621
|
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
|
3598
3622
|
</xsl:copy>
|
|
3599
|
-
<
|
|
3623
|
+
<xsl:choose>
|
|
3624
|
+
<!-- if in msub, then don't add space -->
|
|
3625
|
+
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
|
3626
|
+
<!-- if next char in digit, don't add space -->
|
|
3627
|
+
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
|
3628
|
+
<xsl:otherwise>
|
|
3629
|
+
<mathml:mspace width="0.5ex"/>
|
|
3630
|
+
</xsl:otherwise>
|
|
3631
|
+
</xsl:choose>
|
|
3600
3632
|
</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">
|
|
3601
3633
|
<xsl:variable name="target">
|
|
3602
3634
|
<xsl:choose>
|
|
@@ -3620,6 +3652,7 @@
|
|
|
3620
3652
|
</xsl:variable>
|
|
3621
3653
|
<fo:inline xsl:use-attribute-sets="link-style">
|
|
3622
3654
|
|
|
3655
|
+
|
|
3623
3656
|
<xsl:choose>
|
|
3624
3657
|
<xsl:when test="$target_text = ''">
|
|
3625
3658
|
<xsl:apply-templates/>
|
|
@@ -3780,6 +3813,7 @@
|
|
|
3780
3813
|
</xsl:choose>
|
|
3781
3814
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
|
3782
3815
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
|
3816
|
+
|
|
3783
3817
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
|
3784
3818
|
|
|
3785
3819
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
|
@@ -3857,6 +3891,7 @@
|
|
|
3857
3891
|
</xsl:call-template>
|
|
3858
3892
|
|
|
3859
3893
|
<fo:block>
|
|
3894
|
+
|
|
3860
3895
|
<xsl:apply-templates/>
|
|
3861
3896
|
</fo:block>
|
|
3862
3897
|
<xsl:call-template name="fn_display_figure"/>
|
|
@@ -4141,6 +4176,7 @@
|
|
|
4141
4176
|
<xsl:if test="normalize-space() != ''">
|
|
4142
4177
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
|
4143
4178
|
|
|
4179
|
+
|
|
4144
4180
|
<xsl:apply-templates/>
|
|
4145
4181
|
</fo:block>
|
|
4146
4182
|
</xsl:if>
|
|
@@ -4221,6 +4257,7 @@
|
|
|
4221
4257
|
|
|
4222
4258
|
<fo:block-container margin-left="0mm">
|
|
4223
4259
|
<xsl:copy-of select="@id"/>
|
|
4260
|
+
|
|
4224
4261
|
<xsl:if test="parent::*[local-name() = 'note']">
|
|
4225
4262
|
<xsl:attribute name="margin-left">
|
|
4226
4263
|
<xsl:choose>
|
|
@@ -4231,7 +4268,9 @@
|
|
|
4231
4268
|
|
|
4232
4269
|
</xsl:if>
|
|
4233
4270
|
<fo:block-container margin-left="0mm">
|
|
4234
|
-
|
|
4271
|
+
|
|
4272
|
+
|
|
4273
|
+
|
|
4235
4274
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
|
4236
4275
|
<xsl:variable name="_font-size">
|
|
4237
4276
|
|
|
@@ -4260,10 +4299,14 @@
|
|
|
4260
4299
|
</xsl:choose>
|
|
4261
4300
|
</xsl:attribute>
|
|
4262
4301
|
</xsl:if>
|
|
4263
|
-
|
|
4264
|
-
|
|
4302
|
+
|
|
4303
|
+
<xsl:apply-templates/>
|
|
4304
|
+
</fo:block>
|
|
4305
|
+
|
|
4306
|
+
|
|
4265
4307
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
|
4266
4308
|
|
|
4309
|
+
|
|
4267
4310
|
</fo:block-container>
|
|
4268
4311
|
</fo:block-container>
|
|
4269
4312
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
|
@@ -4833,6 +4876,7 @@
|
|
|
4833
4876
|
<xsl:call-template name="setId"/>
|
|
4834
4877
|
|
|
4835
4878
|
|
|
4879
|
+
|
|
4836
4880
|
<xsl:apply-templates/>
|
|
4837
4881
|
</fo:block>
|
|
4838
4882
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
|
@@ -5084,17 +5128,17 @@
|
|
|
5084
5128
|
<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')]"/>
|
|
5085
5129
|
<xsl:choose>
|
|
5086
5130
|
<xsl:when test="normalize-space($_doc_ident) != ''">
|
|
5087
|
-
<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"/>
|
|
5131
|
+
<!-- <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"/>
|
|
5088
5132
|
<xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
|
|
5089
5133
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
|
5090
|
-
</xsl:if>
|
|
5134
|
+
</xsl:if> -->
|
|
5091
5135
|
<xsl:value-of select="$_doc_ident"/>
|
|
5092
5136
|
</xsl:when>
|
|
5093
5137
|
<xsl:otherwise>
|
|
5094
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
|
5138
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
|
5095
5139
|
<xsl:if test="$type != ''">
|
|
5096
5140
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
|
5097
|
-
</xsl:if>
|
|
5141
|
+
</xsl:if> -->
|
|
5098
5142
|
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
|
5099
5143
|
</xsl:otherwise>
|
|
5100
5144
|
</xsl:choose>
|
|
@@ -5600,4 +5644,14 @@
|
|
|
5600
5644
|
<xsl:value-of select="$align"/>
|
|
5601
5645
|
</xsl:when>
|
|
5602
5646
|
</xsl:choose>
|
|
5647
|
+
</xsl:template><xsl:template name="setTextAlignment">
|
|
5648
|
+
<xsl:param name="default">left</xsl:param>
|
|
5649
|
+
<xsl:attribute name="text-align">
|
|
5650
|
+
<xsl:choose>
|
|
5651
|
+
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
|
5652
|
+
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
|
5653
|
+
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
|
5654
|
+
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
|
5655
|
+
</xsl:choose>
|
|
5656
|
+
</xsl:attribute>
|
|
5603
5657
|
</xsl:template></xsl:stylesheet>
|
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
|
|
1266
1266
|
|
|
1267
1267
|
|
|
1268
|
-
|
|
1268
|
+
|
|
1269
1269
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
|
1270
1270
|
|
|
1271
1271
|
|
|
@@ -1330,6 +1330,7 @@
|
|
|
1330
1330
|
|
|
1331
1331
|
|
|
1332
1332
|
|
|
1333
|
+
|
|
1333
1334
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
|
1334
1335
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
1335
1336
|
|
|
@@ -1353,6 +1354,8 @@
|
|
|
1353
1354
|
|
|
1354
1355
|
|
|
1355
1356
|
|
|
1357
|
+
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
|
1358
|
+
|
|
1356
1359
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
|
1357
1360
|
|
|
1358
1361
|
|
|
@@ -1393,6 +1396,7 @@
|
|
|
1393
1396
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
1394
1397
|
|
|
1395
1398
|
|
|
1399
|
+
|
|
1396
1400
|
</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">
|
|
1397
1401
|
|
|
1398
1402
|
|
|
@@ -1436,10 +1440,12 @@
|
|
|
1436
1440
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
|
1437
1441
|
|
|
1438
1442
|
|
|
1443
|
+
|
|
1439
1444
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
|
1440
1445
|
|
|
1441
1446
|
|
|
1442
1447
|
|
|
1448
|
+
|
|
1443
1449
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
|
1444
1450
|
|
|
1445
1451
|
|
|
@@ -1483,6 +1489,7 @@
|
|
|
1483
1489
|
|
|
1484
1490
|
|
|
1485
1491
|
|
|
1492
|
+
|
|
1486
1493
|
|
|
1487
1494
|
|
|
1488
1495
|
|
|
@@ -1561,6 +1568,8 @@
|
|
|
1561
1568
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
|
1562
1569
|
|
|
1563
1570
|
|
|
1571
|
+
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
|
1572
|
+
|
|
1564
1573
|
</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">
|
|
1565
1574
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
|
1566
1575
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
|
@@ -1614,11 +1623,11 @@
|
|
|
1614
1623
|
<xsl:variable name="table">
|
|
1615
1624
|
|
|
1616
1625
|
<xsl:variable name="simple-table">
|
|
1617
|
-
<xsl:call-template name="getSimpleTable"/>
|
|
1626
|
+
<xsl:call-template name="getSimpleTable"/>
|
|
1618
1627
|
</xsl:variable>
|
|
1619
1628
|
|
|
1620
1629
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
|
1621
|
-
<fo:block> </fo:block>
|
|
1630
|
+
<fo:block> </fo:block>
|
|
1622
1631
|
</xsl:if> -->
|
|
1623
1632
|
|
|
1624
1633
|
<!-- $namespace = 'iso' or -->
|
|
@@ -1735,6 +1744,7 @@
|
|
|
1735
1744
|
|
|
1736
1745
|
|
|
1737
1746
|
|
|
1747
|
+
|
|
1738
1748
|
</xsl:variable>
|
|
1739
1749
|
|
|
1740
1750
|
|
|
@@ -1873,6 +1883,9 @@
|
|
|
1873
1883
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
|
1874
1884
|
|
|
1875
1885
|
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1876
1889
|
<xsl:choose>
|
|
1877
1890
|
<xsl:when test="$continued = 'true'">
|
|
1878
1891
|
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
|
@@ -2020,6 +2033,7 @@
|
|
|
2020
2033
|
<!-- font-weight="bold" -->
|
|
2021
2034
|
<fo:table-header>
|
|
2022
2035
|
|
|
2036
|
+
|
|
2023
2037
|
<xsl:apply-templates/>
|
|
2024
2038
|
</fo:table-header>
|
|
2025
2039
|
</xsl:template><xsl:template name="table-header-title">
|
|
@@ -2265,6 +2279,10 @@
|
|
|
2265
2279
|
|
|
2266
2280
|
|
|
2267
2281
|
|
|
2282
|
+
|
|
2283
|
+
|
|
2284
|
+
|
|
2285
|
+
|
|
2268
2286
|
<!-- <xsl:if test="$namespace = 'bipm'">
|
|
2269
2287
|
<xsl:attribute name="height">8mm</xsl:attribute>
|
|
2270
2288
|
</xsl:if> -->
|
|
@@ -2372,6 +2390,9 @@
|
|
|
2372
2390
|
|
|
2373
2391
|
|
|
2374
2392
|
|
|
2393
|
+
|
|
2394
|
+
|
|
2395
|
+
|
|
2375
2396
|
<xsl:if test=".//*[local-name() = 'table']">
|
|
2376
2397
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
2377
2398
|
</xsl:if>
|
|
@@ -2597,6 +2618,7 @@
|
|
|
2597
2618
|
|
|
2598
2619
|
|
|
2599
2620
|
|
|
2621
|
+
|
|
2600
2622
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
|
2601
2623
|
|
|
2602
2624
|
|
|
@@ -2899,6 +2921,7 @@
|
|
|
2899
2921
|
|
|
2900
2922
|
<fo:table-row>
|
|
2901
2923
|
|
|
2924
|
+
|
|
2902
2925
|
<fo:table-cell>
|
|
2903
2926
|
|
|
2904
2927
|
<fo:block margin-top="6pt">
|
|
@@ -2914,6 +2937,7 @@
|
|
|
2914
2937
|
|
|
2915
2938
|
|
|
2916
2939
|
|
|
2940
|
+
|
|
2917
2941
|
<xsl:apply-templates/>
|
|
2918
2942
|
<!-- <xsl:if test="$namespace = 'gb'">
|
|
2919
2943
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
|
@@ -3461,7 +3485,15 @@
|
|
|
3461
3485
|
<xsl:copy>
|
|
3462
3486
|
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
|
3463
3487
|
</xsl:copy>
|
|
3464
|
-
<
|
|
3488
|
+
<xsl:choose>
|
|
3489
|
+
<!-- if in msub, then don't add space -->
|
|
3490
|
+
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
|
3491
|
+
<!-- if next char in digit, don't add space -->
|
|
3492
|
+
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
|
3493
|
+
<xsl:otherwise>
|
|
3494
|
+
<mathml:mspace width="0.5ex"/>
|
|
3495
|
+
</xsl:otherwise>
|
|
3496
|
+
</xsl:choose>
|
|
3465
3497
|
</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">
|
|
3466
3498
|
<xsl:variable name="target">
|
|
3467
3499
|
<xsl:choose>
|
|
@@ -3485,6 +3517,7 @@
|
|
|
3485
3517
|
</xsl:variable>
|
|
3486
3518
|
<fo:inline xsl:use-attribute-sets="link-style">
|
|
3487
3519
|
|
|
3520
|
+
|
|
3488
3521
|
<xsl:choose>
|
|
3489
3522
|
<xsl:when test="$target_text = ''">
|
|
3490
3523
|
<xsl:apply-templates/>
|
|
@@ -3649,6 +3682,7 @@
|
|
|
3649
3682
|
</xsl:choose>
|
|
3650
3683
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
|
3651
3684
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
|
3685
|
+
|
|
3652
3686
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
|
3653
3687
|
|
|
3654
3688
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
|
@@ -3726,6 +3760,7 @@
|
|
|
3726
3760
|
</xsl:call-template>
|
|
3727
3761
|
|
|
3728
3762
|
<fo:block>
|
|
3763
|
+
|
|
3729
3764
|
<xsl:apply-templates/>
|
|
3730
3765
|
</fo:block>
|
|
3731
3766
|
<xsl:call-template name="fn_display_figure"/>
|
|
@@ -4015,6 +4050,7 @@
|
|
|
4015
4050
|
<xsl:if test="normalize-space() != ''">
|
|
4016
4051
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
|
4017
4052
|
|
|
4053
|
+
|
|
4018
4054
|
<xsl:apply-templates/>
|
|
4019
4055
|
</fo:block>
|
|
4020
4056
|
</xsl:if>
|
|
@@ -4095,6 +4131,7 @@
|
|
|
4095
4131
|
|
|
4096
4132
|
<fo:block-container margin-left="0mm">
|
|
4097
4133
|
<xsl:copy-of select="@id"/>
|
|
4134
|
+
|
|
4098
4135
|
<xsl:if test="parent::*[local-name() = 'note']">
|
|
4099
4136
|
<xsl:attribute name="margin-left">
|
|
4100
4137
|
<xsl:choose>
|
|
@@ -4105,7 +4142,9 @@
|
|
|
4105
4142
|
|
|
4106
4143
|
</xsl:if>
|
|
4107
4144
|
<fo:block-container margin-left="0mm">
|
|
4108
|
-
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
|
|
4109
4148
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
|
4110
4149
|
<xsl:variable name="_font-size">
|
|
4111
4150
|
|
|
@@ -4134,10 +4173,14 @@
|
|
|
4134
4173
|
</xsl:choose>
|
|
4135
4174
|
</xsl:attribute>
|
|
4136
4175
|
</xsl:if>
|
|
4137
|
-
|
|
4138
|
-
|
|
4176
|
+
|
|
4177
|
+
<xsl:apply-templates/>
|
|
4178
|
+
</fo:block>
|
|
4179
|
+
|
|
4180
|
+
|
|
4139
4181
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
|
4140
4182
|
|
|
4183
|
+
|
|
4141
4184
|
</fo:block-container>
|
|
4142
4185
|
</fo:block-container>
|
|
4143
4186
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
|
@@ -4707,6 +4750,7 @@
|
|
|
4707
4750
|
<xsl:call-template name="setId"/>
|
|
4708
4751
|
|
|
4709
4752
|
|
|
4753
|
+
|
|
4710
4754
|
<xsl:apply-templates/>
|
|
4711
4755
|
</fo:block>
|
|
4712
4756
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
|
@@ -4958,17 +5002,17 @@
|
|
|
4958
5002
|
<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')]"/>
|
|
4959
5003
|
<xsl:choose>
|
|
4960
5004
|
<xsl:when test="normalize-space($_doc_ident) != ''">
|
|
4961
|
-
<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"/>
|
|
5005
|
+
<!-- <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"/>
|
|
4962
5006
|
<xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
|
|
4963
5007
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
|
4964
|
-
</xsl:if>
|
|
5008
|
+
</xsl:if> -->
|
|
4965
5009
|
<xsl:value-of select="$_doc_ident"/>
|
|
4966
5010
|
</xsl:when>
|
|
4967
5011
|
<xsl:otherwise>
|
|
4968
|
-
<xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
|
5012
|
+
<!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
|
|
4969
5013
|
<xsl:if test="$type != ''">
|
|
4970
5014
|
<xsl:value-of select="$type"/><xsl:text> </xsl:text>
|
|
4971
|
-
</xsl:if>
|
|
5015
|
+
</xsl:if> -->
|
|
4972
5016
|
<xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
|
|
4973
5017
|
</xsl:otherwise>
|
|
4974
5018
|
</xsl:choose>
|
|
@@ -5474,4 +5518,14 @@
|
|
|
5474
5518
|
<xsl:value-of select="$align"/>
|
|
5475
5519
|
</xsl:when>
|
|
5476
5520
|
</xsl:choose>
|
|
5521
|
+
</xsl:template><xsl:template name="setTextAlignment">
|
|
5522
|
+
<xsl:param name="default">left</xsl:param>
|
|
5523
|
+
<xsl:attribute name="text-align">
|
|
5524
|
+
<xsl:choose>
|
|
5525
|
+
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
|
5526
|
+
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
|
5527
|
+
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
|
5528
|
+
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
|
5529
|
+
</xsl:choose>
|
|
5530
|
+
</xsl:attribute>
|
|
5477
5531
|
</xsl:template></xsl:stylesheet>
|
data/lib/metanorma/un/version.rb
CHANGED
data/metanorma-unece.gemspec
CHANGED
|
@@ -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.
|
|
27
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
|
28
28
|
|
|
29
29
|
spec.add_dependency "iso-639"
|
|
30
30
|
spec.add_dependency "roman-numerals"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-un
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.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-
|
|
11
|
+
date: 2021-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: iso-639
|
|
@@ -299,7 +299,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
299
299
|
requirements:
|
|
300
300
|
- - ">="
|
|
301
301
|
- !ruby/object:Gem::Version
|
|
302
|
-
version: 2.
|
|
302
|
+
version: 2.5.0
|
|
303
303
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
304
|
requirements:
|
|
305
305
|
- - ">="
|