metanorma-csa 1.9.0 → 1.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/csa/converter.rb +1 -1
- data/lib/asciidoctor/csa/isodoc.rng +68 -18
- data/lib/isodoc/csa/csa.standard.xsl +303 -98
- data/lib/isodoc/csa/html/csa.css +0 -1
- data/lib/isodoc/csa/html/csa.scss +0 -1
- data/lib/isodoc/csa/html/scripts.html +0 -1
- data/lib/metanorma/csa/version.rb +1 -1
- data/metanorma-csa.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52b62cc7064b035d413c88f8a3de6d094eced063f016624b43f44bce1e5bf3e3
|
4
|
+
data.tar.gz: f4740d1004f59307a4c5280ba6c538cbeb7e891ee03c725f4753afad4349efee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f63606c5204e50d7e53133dfaa6bde5131ff34d9f5e3626699b2a32c847f5754048bbbf358d719f94d7a2a8813f33aa1f8e0f0c67f90d7e5f4d63e2a8321b54
|
7
|
+
data.tar.gz: 33d553fb0447c97833a2fd77c6b65bc0fbcbc9c102220037f2967418581ff6ee4d520d6a92dc128a2f283800b54279574e4fdad758edcda40bae63b13553da45
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<attribute name="alt"/>
|
59
59
|
</optional>
|
60
60
|
<optional>
|
61
|
-
<attribute name="
|
61
|
+
<attribute name="update-type">
|
62
62
|
<data type="boolean"/>
|
63
63
|
</attribute>
|
64
64
|
</optional>
|
@@ -1796,6 +1796,20 @@
|
|
1796
1796
|
<data type="ID"/>
|
1797
1797
|
</attribute>
|
1798
1798
|
</optional>
|
1799
|
+
<optional>
|
1800
|
+
<attribute name="language"/>
|
1801
|
+
</optional>
|
1802
|
+
<optional>
|
1803
|
+
<attribute name="script"/>
|
1804
|
+
</optional>
|
1805
|
+
<optional>
|
1806
|
+
<attribute name="tag"/>
|
1807
|
+
</optional>
|
1808
|
+
<optional>
|
1809
|
+
<attribute name="multilingual-rendering">
|
1810
|
+
<ref name="MultilingualRenderingType"/>
|
1811
|
+
</attribute>
|
1812
|
+
</optional>
|
1799
1813
|
<oneOrMore>
|
1800
1814
|
<ref name="preferred"/>
|
1801
1815
|
</oneOrMore>
|
@@ -1814,9 +1828,6 @@
|
|
1814
1828
|
<optional>
|
1815
1829
|
<ref name="termsubject"/>
|
1816
1830
|
</optional>
|
1817
|
-
<optional>
|
1818
|
-
<ref name="termusage"/>
|
1819
|
-
</optional>
|
1820
1831
|
<oneOrMore>
|
1821
1832
|
<ref name="termdefinition"/>
|
1822
1833
|
</oneOrMore>
|
@@ -1880,17 +1891,37 @@
|
|
1880
1891
|
</attribute>
|
1881
1892
|
</optional>
|
1882
1893
|
<optional>
|
1883
|
-
<attribute name="
|
1894
|
+
<attribute name="geographic-area"/>
|
1884
1895
|
</optional>
|
1885
1896
|
<choice>
|
1886
1897
|
<ref name="expression_designation"/>
|
1887
1898
|
<ref name="letter_symbol_designation"/>
|
1888
1899
|
<ref name="graphical_symbol_designation"/>
|
1889
1900
|
</choice>
|
1901
|
+
<optional>
|
1902
|
+
<ref name="fieldofapplication"/>
|
1903
|
+
</optional>
|
1904
|
+
<optional>
|
1905
|
+
<ref name="usageinfo"/>
|
1906
|
+
</optional>
|
1890
1907
|
<zeroOrMore>
|
1891
1908
|
<ref name="termsource"/>
|
1892
1909
|
</zeroOrMore>
|
1893
1910
|
</define>
|
1911
|
+
<define name="fieldofapplication">
|
1912
|
+
<element name="field-of-application">
|
1913
|
+
<oneOrMore>
|
1914
|
+
<ref name="PureTextElement"/>
|
1915
|
+
</oneOrMore>
|
1916
|
+
</element>
|
1917
|
+
</define>
|
1918
|
+
<define name="usageinfo">
|
1919
|
+
<element name="usage-info">
|
1920
|
+
<oneOrMore>
|
1921
|
+
<ref name="PureTextElement"/>
|
1922
|
+
</oneOrMore>
|
1923
|
+
</element>
|
1924
|
+
</define>
|
1894
1925
|
<define name="letter_symbol_designation">
|
1895
1926
|
<element name="letter-symbol">
|
1896
1927
|
<optional>
|
@@ -1946,7 +1977,7 @@
|
|
1946
1977
|
</zeroOrMore>
|
1947
1978
|
</element>
|
1948
1979
|
<optional>
|
1949
|
-
<element name="
|
1980
|
+
<element name="abbreviation-type">
|
1950
1981
|
<ref name="AbbreviationType"/>
|
1951
1982
|
</element>
|
1952
1983
|
</optional>
|
@@ -1956,7 +1987,7 @@
|
|
1956
1987
|
</element>
|
1957
1988
|
</optional>
|
1958
1989
|
<optional>
|
1959
|
-
<element name="
|
1990
|
+
<element name="grammar-info">
|
1960
1991
|
<ref name="Grammar"/>
|
1961
1992
|
</element>
|
1962
1993
|
</optional>
|
@@ -1983,6 +2014,11 @@
|
|
1983
2014
|
<ref name="GrammarGender"/>
|
1984
2015
|
</element>
|
1985
2016
|
</zeroOrMore>
|
2017
|
+
<zeroOrMore>
|
2018
|
+
<element name="number">
|
2019
|
+
<ref name="GrammarNumber"/>
|
2020
|
+
</element>
|
2021
|
+
</zeroOrMore>
|
1986
2022
|
<optional>
|
1987
2023
|
<element name="isPreposition">
|
1988
2024
|
<data type="boolean"/>
|
@@ -2014,7 +2050,7 @@
|
|
2014
2050
|
</element>
|
2015
2051
|
</optional>
|
2016
2052
|
<zeroOrMore>
|
2017
|
-
<element name="
|
2053
|
+
<element name="grammar-value">
|
2018
2054
|
<text/>
|
2019
2055
|
</element>
|
2020
2056
|
</zeroOrMore>
|
@@ -2027,6 +2063,13 @@
|
|
2027
2063
|
<value>common</value>
|
2028
2064
|
</choice>
|
2029
2065
|
</define>
|
2066
|
+
<define name="GrammarNumber">
|
2067
|
+
<choice>
|
2068
|
+
<value>singular</value>
|
2069
|
+
<value>dual</value>
|
2070
|
+
<value>plural</value>
|
2071
|
+
</choice>
|
2072
|
+
</define>
|
2030
2073
|
<define name="termdomain">
|
2031
2074
|
<element name="domain">
|
2032
2075
|
<oneOrMore>
|
@@ -2041,13 +2084,6 @@
|
|
2041
2084
|
</oneOrMore>
|
2042
2085
|
</element>
|
2043
2086
|
</define>
|
2044
|
-
<define name="termusage">
|
2045
|
-
<element name="usageinfo">
|
2046
|
-
<oneOrMore>
|
2047
|
-
<ref name="BasicBlock"/>
|
2048
|
-
</oneOrMore>
|
2049
|
-
</element>
|
2050
|
-
</define>
|
2051
2087
|
<define name="termdefinition">
|
2052
2088
|
<element name="definition">
|
2053
2089
|
<choice>
|
@@ -2061,9 +2097,17 @@
|
|
2061
2097
|
</element>
|
2062
2098
|
</define>
|
2063
2099
|
<define name="verbaldefinition">
|
2064
|
-
<element name="
|
2100
|
+
<element name="verbal-definition">
|
2065
2101
|
<oneOrMore>
|
2066
|
-
<
|
2102
|
+
<choice>
|
2103
|
+
<ref name="paragraph"/>
|
2104
|
+
<ref name="dl"/>
|
2105
|
+
<ref name="ol"/>
|
2106
|
+
<ref name="ul"/>
|
2107
|
+
<ref name="table"/>
|
2108
|
+
<ref name="figure"/>
|
2109
|
+
<ref name="formula"/>
|
2110
|
+
</choice>
|
2067
2111
|
</oneOrMore>
|
2068
2112
|
<zeroOrMore>
|
2069
2113
|
<ref name="termsource"/>
|
@@ -2071,7 +2115,7 @@
|
|
2071
2115
|
</element>
|
2072
2116
|
</define>
|
2073
2117
|
<define name="nonverbalrep">
|
2074
|
-
<element name="
|
2118
|
+
<element name="non-verbal-representation">
|
2075
2119
|
<oneOrMore>
|
2076
2120
|
<choice>
|
2077
2121
|
<ref name="table"/>
|
@@ -2163,6 +2207,12 @@
|
|
2163
2207
|
<value>modified</value>
|
2164
2208
|
</choice>
|
2165
2209
|
</attribute>
|
2210
|
+
<attribute name="type">
|
2211
|
+
<choice>
|
2212
|
+
<value>authoritative</value>
|
2213
|
+
<value>lineage</value>
|
2214
|
+
</choice>
|
2215
|
+
</attribute>
|
2166
2216
|
<ref name="origin"/>
|
2167
2217
|
<optional>
|
2168
2218
|
<ref name="modification"/>
|
@@ -6,6 +6,8 @@
|
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
8
|
<xsl:param name="basepath"/>
|
9
|
+
|
10
|
+
<xsl:key name="kfn" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" use="@reference"/>
|
9
11
|
|
10
12
|
<xsl:variable name="pageWidth" select="215.9"/>
|
11
13
|
<xsl:variable name="pageHeight" select="279.4"/>
|
@@ -214,7 +216,7 @@
|
|
214
216
|
<fo:list-block>
|
215
217
|
<xsl:attribute name="provisional-distance-between-starts">
|
216
218
|
<xsl:choose>
|
217
|
-
<xsl:when test="@level
|
219
|
+
<xsl:when test="@level >= 2"><xsl:value-of select="(@level - 1) * 10"/>mm</xsl:when>
|
218
220
|
<xsl:otherwise>3mm</xsl:otherwise>
|
219
221
|
</xsl:choose>
|
220
222
|
</xsl:attribute>
|
@@ -278,7 +280,7 @@
|
|
278
280
|
|
279
281
|
<xsl:variable name="display">
|
280
282
|
<xsl:choose>
|
281
|
-
<xsl:when test="$level >
|
283
|
+
<xsl:when test="$level > $toc_level">false</xsl:when>
|
282
284
|
<xsl:otherwise>true</xsl:otherwise>
|
283
285
|
</xsl:choose>
|
284
286
|
</xsl:variable>
|
@@ -525,32 +527,6 @@
|
|
525
527
|
</xsl:if>
|
526
528
|
</xsl:template>
|
527
529
|
|
528
|
-
<!--
|
529
|
-
<fn reference="1">
|
530
|
-
<p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
|
531
|
-
</fn>
|
532
|
-
-->
|
533
|
-
<xsl:template match="csa:title/csa:fn | csa:p/csa:fn[not(ancestor::csa:table)]" priority="2">
|
534
|
-
<fo:footnote keep-with-previous.within-line="always">
|
535
|
-
<xsl:variable name="number" select="@reference"/>
|
536
|
-
|
537
|
-
<fo:inline font-size="65%" keep-with-previous.within-line="always" vertical-align="super">
|
538
|
-
<fo:basic-link internal-destination="footnote_{@reference}" fox:alt-text="footnote {@reference}">
|
539
|
-
<xsl:value-of select="$number"/><!-- + count(//csa:bibitem/csa:note) -->
|
540
|
-
</fo:basic-link>
|
541
|
-
</fo:inline>
|
542
|
-
<fo:footnote-body>
|
543
|
-
<fo:block font-family="Azo Sans Lt" font-size="10pt" margin-bottom="12pt" font-weight="normal" text-indent="0" start-indent="0" color="rgb(168, 170, 173)" text-align="left">
|
544
|
-
<fo:inline id="footnote_{@reference}" keep-with-next.within-line="always" font-size="60%" vertical-align="super">
|
545
|
-
<xsl:value-of select="$number "/><!-- + count(//csa:bibitem/csa:note) -->
|
546
|
-
</fo:inline>
|
547
|
-
<xsl:for-each select="csa:p">
|
548
|
-
<xsl:apply-templates/>
|
549
|
-
</xsl:for-each>
|
550
|
-
</fo:block>
|
551
|
-
</fo:footnote-body>
|
552
|
-
</fo:footnote>
|
553
|
-
</xsl:template>
|
554
530
|
|
555
531
|
<xsl:template match="csa:fn/csa:p">
|
556
532
|
<fo:block>
|
@@ -735,9 +711,10 @@
|
|
735
711
|
</xsl:variable>
|
736
712
|
<fo:block font-size="{$font-size}" role="H{$levelTerm}">
|
737
713
|
<fo:block font-weight="bold" keep-with-next="always">
|
738
|
-
<xsl:apply-templates select="ancestor::csa:term/csa:name" mode="presentation"/>
|
714
|
+
<xsl:apply-templates select="ancestor::csa:term[1]/csa:name" mode="presentation"/>
|
739
715
|
</fo:block>
|
740
716
|
<fo:block font-weight="bold" keep-with-next="always" line-height="1">
|
717
|
+
<xsl:call-template name="setStyle_preferred"/>
|
741
718
|
<xsl:apply-templates/>
|
742
719
|
</fo:block>
|
743
720
|
</fo:block>
|
@@ -1458,6 +1435,80 @@
|
|
1458
1435
|
|
1459
1436
|
</xsl:attribute-set><xsl:attribute-set name="toc-style">
|
1460
1437
|
<xsl:attribute name="line-height">135%</xsl:attribute>
|
1438
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-style">
|
1439
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1440
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-num-style">
|
1441
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1442
|
+
|
1443
|
+
|
1444
|
+
|
1445
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
1446
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1447
|
+
|
1448
|
+
|
1449
|
+
|
1450
|
+
|
1451
|
+
|
1452
|
+
|
1453
|
+
|
1454
|
+
|
1455
|
+
|
1456
|
+
|
1457
|
+
|
1458
|
+
|
1459
|
+
|
1460
|
+
|
1461
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-body-style">
|
1462
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1463
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
1464
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
1465
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
1466
|
+
|
1467
|
+
|
1468
|
+
|
1469
|
+
<xsl:attribute name="font-family">Azo Sans Lt</xsl:attribute>
|
1470
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1471
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1472
|
+
<xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
|
1473
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
1474
|
+
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
1478
|
+
|
1479
|
+
|
1480
|
+
|
1481
|
+
|
1482
|
+
|
1483
|
+
|
1484
|
+
|
1485
|
+
|
1486
|
+
|
1487
|
+
|
1488
|
+
|
1489
|
+
|
1490
|
+
</xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
|
1491
|
+
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
1492
|
+
|
1493
|
+
|
1494
|
+
|
1495
|
+
<xsl:attribute name="font-size">60%</xsl:attribute>
|
1496
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
|
1501
|
+
|
1502
|
+
|
1503
|
+
|
1504
|
+
|
1505
|
+
|
1506
|
+
|
1507
|
+
|
1508
|
+
|
1509
|
+
|
1510
|
+
|
1511
|
+
|
1461
1512
|
</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="OLD_processPrefaceSectionsDefault_Contents">
|
1462
1513
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1463
1514
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -1483,7 +1534,8 @@
|
|
1483
1534
|
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]" mode="contents"/>
|
1484
1535
|
|
1485
1536
|
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
1486
|
-
|
1537
|
+
|
1538
|
+
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true'] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][@normative='true']]">
|
1487
1539
|
<xsl:sort select="@displayorder" data-type="number"/>
|
1488
1540
|
<xsl:apply-templates select="." mode="contents"/>
|
1489
1541
|
</xsl:for-each>
|
@@ -1493,7 +1545,7 @@
|
|
1493
1545
|
<xsl:apply-templates select="." mode="contents"/>
|
1494
1546
|
</xsl:for-each>
|
1495
1547
|
|
1496
|
-
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
|
1548
|
+
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
|
1497
1549
|
<xsl:sort select="@displayorder" data-type="number"/>
|
1498
1550
|
<xsl:apply-templates select="." mode="contents"/>
|
1499
1551
|
</xsl:for-each>
|
@@ -2385,6 +2437,102 @@
|
|
2385
2437
|
|
2386
2438
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
|
2387
2439
|
<xsl:apply-templates/>
|
2440
|
+
</xsl:template><xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" priority="2" name="fn">
|
2441
|
+
|
2442
|
+
<!-- list of footnotes to calculate actual footnotes number -->
|
2443
|
+
<xsl:variable name="p_fn_">
|
2444
|
+
<xsl:choose>
|
2445
|
+
<xsl:when test="@current_fn_number"> <!-- for BSI, footnote reference number calculated already -->
|
2446
|
+
<fn gen_id="{generate-id(.)}">
|
2447
|
+
<xsl:copy-of select="@*"/>
|
2448
|
+
<xsl:copy-of select="node()"/>
|
2449
|
+
</fn>
|
2450
|
+
</xsl:when>
|
2451
|
+
<xsl:otherwise>
|
2452
|
+
<!-- itetation for:
|
2453
|
+
footnotes in bibdata/title
|
2454
|
+
footnotes in bibliography
|
2455
|
+
footnotes in document's body (except table's head/body/foot and figure text)
|
2456
|
+
-->
|
2457
|
+
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']/*[local-name() = 'note'][@type='title-footnote']">
|
2458
|
+
<fn gen_id="{generate-id(.)}">
|
2459
|
+
<xsl:copy-of select="@*"/>
|
2460
|
+
<xsl:copy-of select="node()"/>
|
2461
|
+
</fn>
|
2462
|
+
</xsl:for-each>
|
2463
|
+
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
|
2464
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
2465
|
+
<xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
|
2466
|
+
<!-- copy unique fn -->
|
2467
|
+
<fn gen_id="{generate-id(.)}">
|
2468
|
+
<xsl:copy-of select="@*"/>
|
2469
|
+
<xsl:copy-of select="node()"/>
|
2470
|
+
</fn>
|
2471
|
+
</xsl:for-each>
|
2472
|
+
</xsl:for-each>
|
2473
|
+
</xsl:otherwise>
|
2474
|
+
</xsl:choose>
|
2475
|
+
</xsl:variable>
|
2476
|
+
<xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
|
2477
|
+
|
2478
|
+
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
2479
|
+
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
2480
|
+
<xsl:variable name="reference" select="@reference"/>
|
2481
|
+
<!-- fn sequence number in document -->
|
2482
|
+
<xsl:variable name="current_fn_number">
|
2483
|
+
<xsl:choose>
|
2484
|
+
<xsl:when test="@current_fn_number"><xsl:value-of select="@current_fn_number"/></xsl:when> <!-- for BSI -->
|
2485
|
+
<xsl:otherwise>
|
2486
|
+
<xsl:value-of select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
|
2487
|
+
</xsl:otherwise>
|
2488
|
+
</xsl:choose>
|
2489
|
+
</xsl:variable>
|
2490
|
+
<xsl:variable name="current_fn_number_text">
|
2491
|
+
<xsl:value-of select="$current_fn_number"/>
|
2492
|
+
|
2493
|
+
|
2494
|
+
</xsl:variable>
|
2495
|
+
|
2496
|
+
<xsl:variable name="ref_id" select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
|
2497
|
+
<xsl:variable name="footnote_inline">
|
2498
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
2499
|
+
|
2500
|
+
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
2501
|
+
<xsl:value-of select="$current_fn_number_text"/>
|
2502
|
+
</fo:basic-link>
|
2503
|
+
</fo:inline>
|
2504
|
+
</xsl:variable>
|
2505
|
+
<!-- DEBUG: p_fn=<xsl:copy-of select="$p_fn"/>
|
2506
|
+
gen_id=<xsl:value-of select="$gen_id"/> -->
|
2507
|
+
<xsl:choose>
|
2508
|
+
<xsl:when test="normalize-space(@skip_footnote_body) = 'true'">
|
2509
|
+
<xsl:copy-of select="$footnote_inline"/>
|
2510
|
+
</xsl:when>
|
2511
|
+
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
|
2512
|
+
<fo:footnote xsl:use-attribute-sets="fn-style">
|
2513
|
+
<xsl:copy-of select="$footnote_inline"/>
|
2514
|
+
<fo:footnote-body>
|
2515
|
+
|
2516
|
+
<fo:block-container text-indent="0" start-indent="0">
|
2517
|
+
|
2518
|
+
|
2519
|
+
<fo:block xsl:use-attribute-sets="fn-body-style">
|
2520
|
+
|
2521
|
+
|
2522
|
+
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
2523
|
+
|
2524
|
+
<xsl:value-of select="$current_fn_number_text"/>
|
2525
|
+
</fo:inline>
|
2526
|
+
<xsl:apply-templates/>
|
2527
|
+
</fo:block>
|
2528
|
+
</fo:block-container>
|
2529
|
+
</fo:footnote-body>
|
2530
|
+
</fo:footnote>
|
2531
|
+
</xsl:when>
|
2532
|
+
<xsl:otherwise>
|
2533
|
+
<xsl:copy-of select="$footnote_inline"/>
|
2534
|
+
</xsl:otherwise>
|
2535
|
+
</xsl:choose>
|
2388
2536
|
</xsl:template><xsl:template name="fn_display">
|
2389
2537
|
<xsl:variable name="references">
|
2390
2538
|
|
@@ -2575,6 +2723,8 @@
|
|
2575
2723
|
|
2576
2724
|
</fo:basic-link>
|
2577
2725
|
</fo:inline>
|
2726
|
+
</xsl:template><xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
|
2727
|
+
<fo:inline><xsl:value-of select="."/></fo:inline>
|
2578
2728
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
2579
2729
|
<fo:inline>
|
2580
2730
|
<xsl:apply-templates/>
|
@@ -2874,6 +3024,7 @@
|
|
2874
3024
|
<fo:table-cell>
|
2875
3025
|
|
2876
3026
|
<fo:block margin-top="6pt">
|
3027
|
+
<xsl:copy-of select="@id"/>
|
2877
3028
|
|
2878
3029
|
|
2879
3030
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -3564,22 +3715,6 @@
|
|
3564
3715
|
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
|
3565
3716
|
<xsl:apply-templates/>
|
3566
3717
|
</fo:inline>
|
3567
|
-
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
3568
|
-
<xsl:variable name="title-modified">
|
3569
|
-
|
3570
|
-
|
3571
|
-
<xsl:call-template name="getTitle">
|
3572
|
-
<xsl:with-param name="name" select="'title-modified'"/>
|
3573
|
-
</xsl:call-template>
|
3574
|
-
|
3575
|
-
</xsl:variable>
|
3576
|
-
|
3577
|
-
<xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
|
3578
|
-
<xsl:choose>
|
3579
|
-
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
|
3580
|
-
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
|
3581
|
-
</xsl:choose>
|
3582
|
-
<xsl:apply-templates/>
|
3583
3718
|
</xsl:template><xsl:template match="*[local-name() = 'xref']">
|
3584
3719
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
3585
3720
|
|
@@ -3713,14 +3848,18 @@
|
|
3713
3848
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
3714
3849
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
3715
3850
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3851
|
+
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
3716
3852
|
<fo:block id="{@id}">
|
3717
3853
|
<xsl:apply-templates/>
|
3718
3854
|
</fo:block>
|
3719
3855
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3856
|
+
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
3720
3857
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3721
3858
|
|
3722
3859
|
|
3723
|
-
|
3860
|
+
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
3861
|
+
|
3862
|
+
</xsl:if>
|
3724
3863
|
<xsl:apply-templates/>
|
3725
3864
|
</fo:block>
|
3726
3865
|
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
@@ -4144,12 +4283,12 @@
|
|
4144
4283
|
</xsl:template><xsl:template match="*[local-name() = 'emf']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4145
4284
|
<xsl:apply-templates mode="contents"/>
|
4146
4285
|
<xsl:text> </xsl:text>
|
4147
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
|
4286
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name'] | *[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="bookmarks">
|
4148
4287
|
<xsl:apply-templates mode="bookmarks"/>
|
4149
4288
|
<xsl:text> </xsl:text>
|
4150
4289
|
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
|
4151
4290
|
<xsl:value-of select="."/>
|
4152
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
|
4291
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement' or local-name() = 'sourcecode']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
|
4153
4292
|
<xsl:value-of select="."/>
|
4154
4293
|
</xsl:template><xsl:template match="node()" mode="contents">
|
4155
4294
|
<xsl:apply-templates mode="contents"/>
|
@@ -4419,6 +4558,8 @@
|
|
4419
4558
|
|
4420
4559
|
|
4421
4560
|
|
4561
|
+
|
4562
|
+
|
4422
4563
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
4423
4564
|
<xsl:variable name="_font-size">
|
4424
4565
|
10
|
@@ -4452,13 +4593,17 @@
|
|
4452
4593
|
|
4453
4594
|
|
4454
4595
|
|
4596
|
+
|
4597
|
+
|
4455
4598
|
<xsl:apply-templates/>
|
4456
4599
|
</fo:block>
|
4457
|
-
|
4600
|
+
|
4458
4601
|
|
4459
4602
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
4460
4603
|
|
4461
4604
|
|
4605
|
+
|
4606
|
+
|
4462
4607
|
</fo:block-container>
|
4463
4608
|
</fo:block-container>
|
4464
4609
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
|
@@ -4694,7 +4839,8 @@
|
|
4694
4839
|
</fo:block>
|
4695
4840
|
</fo:table-cell>
|
4696
4841
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
4697
|
-
<fo:block font-size="11pt"
|
4842
|
+
<fo:block font-size="11pt">
|
4843
|
+
|
4698
4844
|
<xsl:apply-templates/>
|
4699
4845
|
</fo:block>
|
4700
4846
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
@@ -4804,60 +4950,69 @@
|
|
4804
4950
|
<xsl:variable name="termsource_text">
|
4805
4951
|
<xsl:apply-templates/>
|
4806
4952
|
</xsl:variable>
|
4807
|
-
|
4808
|
-
<xsl:choose>
|
4953
|
+
<xsl:copy-of select="$termsource_text"/>
|
4954
|
+
<!-- <xsl:choose>
|
4809
4955
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
4810
|
-
<!-- <xsl:apply-templates /> -->
|
4811
4956
|
<xsl:copy-of select="$termsource_text"/>
|
4812
4957
|
</xsl:when>
|
4813
|
-
<xsl:otherwise>
|
4814
|
-
|
4958
|
+
<xsl:otherwise>
|
4959
|
+
<xsl:if test="$namespace = 'bsi'">
|
4960
|
+
<xsl:choose>
|
4961
|
+
<xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>{</xsl:text></xsl:when>
|
4962
|
+
<xsl:otherwise><xsl:text>[</xsl:text></xsl:otherwise>
|
4963
|
+
</xsl:choose>
|
4964
|
+
</xsl:if>
|
4965
|
+
<xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
|
4815
4966
|
<xsl:text>[</xsl:text>
|
4816
|
-
|
4817
|
-
<!-- <xsl:apply-templates /> -->
|
4967
|
+
</xsl:if>
|
4818
4968
|
<xsl:copy-of select="$termsource_text"/>
|
4819
|
-
|
4969
|
+
<xsl:if test="$namespace = 'bsi'">
|
4970
|
+
<xsl:choose>
|
4971
|
+
<xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>}</xsl:text></xsl:when>
|
4972
|
+
<xsl:otherwise><xsl:text>]</xsl:text></xsl:otherwise>
|
4973
|
+
</xsl:choose>
|
4974
|
+
</xsl:if>
|
4975
|
+
<xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
|
4820
4976
|
<xsl:text>]</xsl:text>
|
4821
|
-
|
4977
|
+
</xsl:if>
|
4822
4978
|
</xsl:otherwise>
|
4823
|
-
</xsl:choose>
|
4979
|
+
</xsl:choose> -->
|
4824
4980
|
</fo:block>
|
4825
4981
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
|
4826
4982
|
<xsl:if test="normalize-space() != ''">
|
4827
4983
|
<xsl:value-of select="."/>
|
4828
4984
|
</xsl:if>
|
4829
|
-
</xsl:template><xsl:
|
4830
|
-
<
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4985
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
|
4986
|
+
<fo:inline>
|
4987
|
+
|
4988
|
+
|
4989
|
+
<xsl:value-of select="."/>
|
4990
|
+
</fo:inline>
|
4991
|
+
</xsl:template><xsl:template match="*[local-name() = 'origin']">
|
4834
4992
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4835
4993
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4836
4994
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4837
4995
|
</xsl:if>
|
4838
|
-
|
4839
|
-
|
4840
|
-
<fo:inline>
|
4841
|
-
|
4842
|
-
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4848
|
-
<xsl:call-template name="getTitle">
|
4849
|
-
<xsl:with-param name="name" select="'title-source'"/>
|
4850
|
-
</xsl:call-template>
|
4851
|
-
<xsl:text>: </xsl:text>
|
4852
|
-
|
4853
|
-
|
4854
|
-
</fo:inline>
|
4855
|
-
|
4856
4996
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
4857
4997
|
<xsl:apply-templates/>
|
4858
4998
|
</fo:inline>
|
4999
|
+
</fo:basic-link>
|
5000
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
5001
|
+
<xsl:variable name="title-modified">
|
4859
5002
|
|
4860
|
-
|
5003
|
+
|
5004
|
+
<xsl:call-template name="getTitle">
|
5005
|
+
<xsl:with-param name="name" select="'title-modified'"/>
|
5006
|
+
</xsl:call-template>
|
5007
|
+
|
5008
|
+
</xsl:variable>
|
5009
|
+
|
5010
|
+
<xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
|
5011
|
+
<xsl:choose>
|
5012
|
+
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
|
5013
|
+
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
|
5014
|
+
</xsl:choose>
|
5015
|
+
<xsl:apply-templates/>
|
4861
5016
|
</xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
|
4862
5017
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
4863
5018
|
</xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
|
@@ -4900,12 +5055,20 @@
|
|
4900
5055
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
4901
5056
|
<xsl:text>— </xsl:text>
|
4902
5057
|
<xsl:apply-templates/>
|
4903
|
-
</xsl:template><xsl:
|
5058
|
+
</xsl:template><xsl:variable name="bibitem_hidden_">
|
5059
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
5060
|
+
<xsl:copy-of select="."/>
|
5061
|
+
</xsl:for-each>
|
5062
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
|
5063
|
+
<xsl:copy-of select="."/>
|
5064
|
+
</xsl:for-each>
|
5065
|
+
</xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
4904
5066
|
|
4905
5067
|
<xsl:variable name="bibitemid">
|
4906
5068
|
<xsl:choose>
|
4907
|
-
<xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"
|
4908
|
-
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"
|
5069
|
+
<!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
|
5070
|
+
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
|
5071
|
+
<xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
|
4909
5072
|
<xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
|
4910
5073
|
</xsl:choose>
|
4911
5074
|
</xsl:variable>
|
@@ -4989,10 +5152,10 @@
|
|
4989
5152
|
</xsl:choose>
|
4990
5153
|
</xsl:variable>
|
4991
5154
|
|
4992
|
-
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
5155
|
+
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
4993
5156
|
|
4994
5157
|
<xsl:choose>
|
4995
|
-
<xsl:when test="$
|
5158
|
+
<xsl:when test="$lang = 'zh'">
|
4996
5159
|
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
4997
5160
|
</xsl:when>
|
4998
5161
|
<xsl:when test="../../@inline-header = 'true'">
|
@@ -5026,24 +5189,29 @@
|
|
5026
5189
|
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
5027
5190
|
<xsl:variable name="title-deprecated">
|
5028
5191
|
|
5029
|
-
|
5030
|
-
|
5031
|
-
<xsl:with-param name="name" select="'title-deprecated'"/>
|
5192
|
+
<xsl:call-template name="getLocalizedString">
|
5193
|
+
<xsl:with-param name="key">deprecated</xsl:with-param>
|
5032
5194
|
</xsl:call-template>
|
5033
5195
|
|
5196
|
+
|
5034
5197
|
</xsl:variable>
|
5035
5198
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5036
5199
|
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
5037
5200
|
</fo:block>
|
5201
|
+
</xsl:template><xsl:template name="setStyle_preferred">
|
5202
|
+
<xsl:if test="*[local-name() = 'strong']">
|
5203
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5204
|
+
</xsl:if>
|
5038
5205
|
</xsl:template><xsl:template match="*[local-name() = 'definition']">
|
5039
5206
|
<fo:block xsl:use-attribute-sets="definition-style">
|
5040
5207
|
<xsl:apply-templates/>
|
5041
5208
|
</fo:block>
|
5042
5209
|
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
|
5043
5210
|
<xsl:apply-templates/>
|
5044
|
-
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
|
5211
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
|
5045
5212
|
<fo:inline> <xsl:apply-templates/></fo:inline>
|
5046
|
-
<fo:block
|
5213
|
+
<!-- <fo:block> </fo:block> -->
|
5214
|
+
<fo:block/>
|
5047
5215
|
</xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
|
5048
5216
|
|
5049
5217
|
<fo:block>
|
@@ -5442,7 +5610,31 @@
|
|
5442
5610
|
<fo:block-container border="1pt solid black" width="50%">
|
5443
5611
|
<fo:block> </fo:block>
|
5444
5612
|
</fo:block-container>
|
5445
|
-
</xsl:template><xsl:
|
5613
|
+
</xsl:template><xsl:variable name="toc_level">
|
5614
|
+
<xsl:choose>
|
5615
|
+
<xsl:when test="1 = 2"/> <!-- to do https://github.com/metanorma/mn-native-pdf/issues/337: if there is value in xml -->
|
5616
|
+
<xsl:otherwise><!-- default value -->
|
5617
|
+
|
5618
|
+
|
5619
|
+
2
|
5620
|
+
|
5621
|
+
|
5622
|
+
|
5623
|
+
|
5624
|
+
|
5625
|
+
|
5626
|
+
|
5627
|
+
|
5628
|
+
|
5629
|
+
|
5630
|
+
|
5631
|
+
|
5632
|
+
|
5633
|
+
|
5634
|
+
|
5635
|
+
</xsl:otherwise>
|
5636
|
+
</xsl:choose>
|
5637
|
+
</xsl:variable><xsl:template match="*[local-name() = 'toc']">
|
5446
5638
|
<xsl:param name="colwidths"/>
|
5447
5639
|
<xsl:variable name="colwidths_">
|
5448
5640
|
<xsl:choose>
|
@@ -5977,12 +6169,15 @@
|
|
5977
6169
|
<xsl:param name="default">left</xsl:param>
|
5978
6170
|
<xsl:attribute name="text-align">
|
5979
6171
|
<xsl:choose>
|
5980
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
6172
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
5981
6173
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
5982
6174
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
5983
6175
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5984
6176
|
</xsl:choose>
|
5985
6177
|
</xsl:attribute>
|
6178
|
+
<xsl:if test="@align = 'indent'">
|
6179
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
6180
|
+
</xsl:if>
|
5986
6181
|
</xsl:template><xsl:template name="number-to-words">
|
5987
6182
|
<xsl:param name="number"/>
|
5988
6183
|
<xsl:param name="first"/>
|
@@ -6079,4 +6274,14 @@
|
|
6079
6274
|
</xsl:otherwise>
|
6080
6275
|
</xsl:choose>
|
6081
6276
|
</xsl:if>
|
6277
|
+
</xsl:template><xsl:template name="setAltText">
|
6278
|
+
<xsl:param name="value"/>
|
6279
|
+
<xsl:attribute name="fox:alt-text">
|
6280
|
+
<xsl:choose>
|
6281
|
+
<xsl:when test="normalize-space($value) != ''">
|
6282
|
+
<xsl:value-of select="$value"/>
|
6283
|
+
</xsl:when>
|
6284
|
+
<xsl:otherwise>_</xsl:otherwise>
|
6285
|
+
</xsl:choose>
|
6286
|
+
</xsl:attribute>
|
6082
6287
|
</xsl:template></xsl:stylesheet>
|
data/lib/isodoc/csa/html/csa.css
CHANGED
@@ -309,7 +309,6 @@ p.Terms, li.Terms, div.Terms {
|
|
309
309
|
mso-fareast-font-family: {{headerfont}};
|
310
310
|
mso-bidi-font-family: {{headerfont}};
|
311
311
|
mso-ansi-language: EN-GB;
|
312
|
-
font-weight: bold;
|
313
312
|
mso-bidi-font-weight: normal; }
|
314
313
|
|
315
314
|
p.AltTerms, li.AltTerms, div.AltTerms {
|
@@ -296,7 +296,6 @@ p.Terms, li.Terms, div.Terms
|
|
296
296
|
mso-fareast-font-family:$headerfont;
|
297
297
|
mso-bidi-font-family:$headerfont;
|
298
298
|
mso-ansi-language:EN-GB;
|
299
|
-
font-weight:bold;
|
300
299
|
mso-bidi-font-weight:normal;}
|
301
300
|
p.AltTerms, li.AltTerms, div.AltTerms
|
302
301
|
{mso-style-name:"AltTerm\(s\)";
|
data/metanorma-csa.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
|
31
31
|
spec.add_dependency "metanorma-generic", "~> 1.11.0"
|
32
32
|
|
33
|
-
spec.add_development_dependency "
|
33
|
+
spec.add_development_dependency "debug"
|
34
34
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
35
35
|
spec.add_development_dependency "guard", "~> 2.14"
|
36
36
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.4
|
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-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: equivalent-xml
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
- !ruby/object:Gem::Version
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
|
-
rubygems_version: 3.2.
|
251
|
+
rubygems_version: 3.2.32
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: metanorma-csa lets you write CSA Normal Documents (CSAND) in AsciiDoc.
|