metanorma-csa 1.6.4 → 1.6.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: 6f6554bb3c5f2ab94940474101e4c14e70610c7fce4ac503125b1a79622533f3
4
- data.tar.gz: 7c797d8ace953937dc1db93f74b79fbfb865d51ad4809b6626117d206dae4c25
3
+ metadata.gz: b39b8dc480981f588fa326b12c646f7ed4e40967f18a5614e23032dde195fccb
4
+ data.tar.gz: 41e2d38150cb17f451786e0f753b51094097c43694c847ddcd9f193e7881b8a2
5
5
  SHA512:
6
- metadata.gz: dba96aed6028863827afbe8a50dd2a8e11dedb41aa750f8a5dc0e58f73ff37a736a9eb0218248e44dc5fe0138e16d2d7e0ac2dc2eb2625f8983e36145c2e9dd0
7
- data.tar.gz: 3de7d046326e4a8398c48c4acd73d2d68660d841aee136a8950b52baec9078d05a7186a7c615a54b5365bb117cc3723dd40ce93e10f4bd9be0f1625f8b9f7cf3
6
+ metadata.gz: f08298b4edade5b2ec79b7ba3a711ebf47707671f0b31cfda119cb3689c6b092264196535694b04946d59464b32edef2be13405009292c1d4b193ed45f4ff3dd
7
+ data.tar.gz: 9007cbedf8e94f4cbd5e65163e8dfefe4659539b5aafd76306fe66a01c8401c5f88fffcae2a1e158f13b9e0e169ab6bfdd3b7f1aaa3744cff46f62e38398c0a6
@@ -42,7 +42,6 @@
42
42
  </define>
43
43
  <define name="xref">
44
44
  <element name="xref">
45
- <!-- attribute target { xsd:IDREF }, -->
46
45
  <attribute name="target">
47
46
  <data type="string">
48
47
  <param name="pattern">\i\c*|\c+#\c+</param>
@@ -33,7 +33,7 @@
33
33
 
34
34
  <xsl:template match="/">
35
35
  <xsl:call-template name="namespaceCheck"/>
36
- <fo:root font-family="AzoSans, STIX2Math" font-size="10pt" xml:lang="{$lang}">
36
+ <fo:root font-family="AzoSans, STIX Two Math" font-size="10pt" xml:lang="{$lang}">
37
37
  <fo:layout-master-set>
38
38
  <!-- Cover page -->
39
39
  <fo:simple-page-master master-name="cover-page" page-width="{$pageWidth}" page-height="{$pageHeight}">
@@ -903,7 +903,12 @@
903
903
 
904
904
 
905
905
  </title-toc>
906
- <title-toc lang="fr">Sommaire</title-toc>
906
+ <title-toc lang="fr">
907
+
908
+ <xsl:text>Sommaire</xsl:text>
909
+
910
+
911
+ </title-toc>
907
912
 
908
913
  <title-toc lang="zh">Contents</title-toc>
909
914
 
@@ -991,10 +996,19 @@
991
996
 
992
997
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
993
998
  <xsl:param name="name"/>
994
- <xsl:variable name="lang">
995
- <xsl:call-template name="getLang"/>
999
+ <xsl:param name="lang"/>
1000
+ <xsl:variable name="lang_">
1001
+ <xsl:choose>
1002
+ <xsl:when test="$lang != ''">
1003
+ <xsl:value-of select="$lang"/>
1004
+ </xsl:when>
1005
+ <xsl:otherwise>
1006
+ <xsl:call-template name="getLang"/>
1007
+ </xsl:otherwise>
1008
+ </xsl:choose>
996
1009
  </xsl:variable>
997
- <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
1010
+ <xsl:variable name="language" select="normalize-space($lang_)"/>
1011
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $language]"/>
998
1012
  <xsl:choose>
999
1013
  <xsl:when test="normalize-space($title_) != ''">
1000
1014
  <xsl:value-of select="$title_"/>
@@ -1143,6 +1157,7 @@
1143
1157
 
1144
1158
 
1145
1159
 
1160
+
1146
1161
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1147
1162
 
1148
1163
 
@@ -1387,6 +1402,8 @@
1387
1402
 
1388
1403
 
1389
1404
 
1405
+
1406
+
1390
1407
  <!-- $namespace = 'iso' or -->
1391
1408
 
1392
1409
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
@@ -1422,6 +1439,7 @@
1422
1439
  <xsl:with-param name="table" select="$simple-table"/>
1423
1440
  </xsl:call-template>
1424
1441
  </xsl:variable>
1442
+ <!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
1425
1443
 
1426
1444
  <!-- <xsl:variable name="colwidths2">
1427
1445
  <xsl:call-template name="calculate-column-widths">
@@ -1443,27 +1461,49 @@
1443
1461
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
1444
1462
 
1445
1463
 
1464
+
1465
+
1466
+
1446
1467
 
1447
1468
 
1469
+
1448
1470
 
1449
-
1450
1471
 
1451
1472
 
1452
1473
 
1453
- <fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
1454
-
1455
-
1456
-
1457
-
1458
-
1474
+
1475
+
1476
+
1477
+ <xsl:variable name="table_attributes">
1478
+ <attribute name="table-layout">fixed</attribute>
1479
+ <attribute name="width">100%</attribute>
1480
+ <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1481
+ <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1459
1482
 
1460
1483
 
1461
1484
 
1462
1485
 
1486
+
1487
+
1488
+
1463
1489
 
1490
+
1464
1491
 
1492
+ </xsl:variable>
1493
+
1494
+
1495
+ <fo:table id="{@id}" table-omit-footer-at-break="true">
1465
1496
 
1497
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
1498
+ <xsl:attribute name="{@name}">
1499
+ <xsl:value-of select="."/>
1500
+ </xsl:attribute>
1501
+ </xsl:for-each>
1466
1502
 
1503
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
1504
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1505
+ <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
1506
+ </xsl:if>
1467
1507
 
1468
1508
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
1469
1509
  <xsl:choose>
@@ -1487,6 +1527,33 @@
1487
1527
 
1488
1528
  </fo:table>
1489
1529
 
1530
+ <xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
1531
+ <xsl:call-template name="insertTableFooterInSeparateTable">
1532
+ <xsl:with-param name="table_attributes" select="$table_attributes"/>
1533
+ <xsl:with-param name="colwidths" select="$colwidths"/>
1534
+ </xsl:call-template>
1535
+ </xsl:for-each>
1536
+
1537
+ <!-- insert footer as table -->
1538
+ <!-- <fo:table>
1539
+ <xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
1540
+ <xsl:attribute name="{@name}">
1541
+ <xsl:value-of select="."/>
1542
+ </xsl:attribute>
1543
+ </xsl:for-each>
1544
+
1545
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1546
+ <xsl:choose>
1547
+ <xsl:when test=". = 1 or . = 0">
1548
+ <fo:table-column column-width="proportional-column-width(2)"/>
1549
+ </xsl:when>
1550
+ <xsl:otherwise>
1551
+ <fo:table-column column-width="proportional-column-width({.})"/>
1552
+ </xsl:otherwise>
1553
+ </xsl:choose>
1554
+ </xsl:for-each>
1555
+ </fo:table>-->
1556
+
1490
1557
 
1491
1558
 
1492
1559
 
@@ -1551,6 +1618,13 @@
1551
1618
  <xsl:for-each select="xalan:nodeset($table)//tr">
1552
1619
  <xsl:variable name="td_text">
1553
1620
  <xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
1621
+
1622
+ <!-- <xsl:if test="$namespace = 'bipm'">
1623
+ <xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
1624
+ <word><xsl:value-of select="normalize-space(.)"/></word>
1625
+ </xsl:for-each>
1626
+ </xsl:if> -->
1627
+
1554
1628
  </xsl:variable>
1555
1629
  <xsl:variable name="words">
1556
1630
  <xsl:variable name="string_with_added_zerospaces">
@@ -1610,11 +1684,14 @@
1610
1684
  <xsl:value-of select="*[local-name()='origin']/@citeas"/>
1611
1685
  </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
1612
1686
  <xsl:value-of select="@target"/>
1687
+ </xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
1688
+ <xsl:variable name="math_text" select="normalize-space(.)"/>
1689
+ <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
1613
1690
  </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
1614
1691
  <xsl:param name="cols-count"/>
1615
1692
  <!-- font-weight="bold" -->
1616
1693
  <fo:table-header>
1617
-
1694
+
1618
1695
  <xsl:apply-templates/>
1619
1696
  </fo:table-header>
1620
1697
  </xsl:template><xsl:template name="table-header-title">
@@ -1639,6 +1716,13 @@
1639
1716
  </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
1640
1717
  <xsl:apply-templates/>
1641
1718
  </xsl:template><xsl:template name="insertTableFooter">
1719
+ <xsl:param name="cols-count"/>
1720
+ <xsl:if test="../*[local-name()='tfoot']">
1721
+ <fo:table-footer>
1722
+ <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
1723
+ </fo:table-footer>
1724
+ </xsl:if>
1725
+ </xsl:template><xsl:template name="insertTableFooter2">
1642
1726
  <xsl:param name="cols-count"/>
1643
1727
  <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1644
1728
  <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
@@ -1660,11 +1744,15 @@
1660
1744
  <!-- fn will be processed inside 'note' processing -->
1661
1745
 
1662
1746
 
1663
- <!-- except gb -->
1747
+
1748
+ <!-- except gb and bipm -->
1664
1749
 
1665
1750
  <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1666
1751
 
1667
1752
 
1753
+
1754
+
1755
+
1668
1756
  <!-- horizontal row separator -->
1669
1757
 
1670
1758
 
@@ -1678,6 +1766,84 @@
1678
1766
  </fo:table-footer>
1679
1767
 
1680
1768
  </xsl:if>
1769
+ </xsl:template><xsl:template name="insertTableFooterInSeparateTable">
1770
+ <xsl:param name="table_attributes"/>
1771
+ <xsl:param name="colwidths"/>
1772
+
1773
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1774
+
1775
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1776
+
1777
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($colwidths)//column)"/>
1778
+
1779
+ <fo:table keep-with-previous="always">
1780
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
1781
+ <xsl:choose>
1782
+ <xsl:when test="@name = 'border-top'">
1783
+ <xsl:attribute name="{@name}">0pt solid black</xsl:attribute>
1784
+ </xsl:when>
1785
+ <xsl:when test="@name = 'border'">
1786
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
1787
+ <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
1788
+ </xsl:when>
1789
+ <xsl:otherwise>
1790
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
1791
+ </xsl:otherwise>
1792
+ </xsl:choose>
1793
+ </xsl:for-each>
1794
+
1795
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1796
+ <xsl:choose>
1797
+ <xsl:when test=". = 1 or . = 0">
1798
+ <fo:table-column column-width="proportional-column-width(2)"/>
1799
+ </xsl:when>
1800
+ <xsl:otherwise>
1801
+ <fo:table-column column-width="proportional-column-width({.})"/>
1802
+ </xsl:otherwise>
1803
+ </xsl:choose>
1804
+ </xsl:for-each>
1805
+
1806
+ <fo:table-body>
1807
+ <fo:table-row>
1808
+ <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
1809
+
1810
+
1811
+
1812
+ <!-- fn will be processed inside 'note' processing -->
1813
+
1814
+
1815
+
1816
+ <!-- except gb and bipm -->
1817
+
1818
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1819
+
1820
+
1821
+ <!-- <xsl:if test="$namespace = 'bipm'">
1822
+ <xsl:choose>
1823
+ <xsl:when test="ancestor::*[local-name()='preface']">
1824
+ show Note under table in preface (ex. abstract) sections
1825
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1826
+ </xsl:when>
1827
+ <xsl:otherwise>
1828
+ empty, because notes show at page side in main sections
1829
+ <fo:block/>
1830
+ </xsl:otherwise>
1831
+ </xsl:choose>
1832
+ </xsl:if> -->
1833
+
1834
+
1835
+ <!-- horizontal row separator -->
1836
+
1837
+
1838
+ <!-- fn processing -->
1839
+ <xsl:call-template name="fn_display"/>
1840
+
1841
+ </fo:table-cell>
1842
+ </fo:table-row>
1843
+ </fo:table-body>
1844
+
1845
+ </fo:table>
1846
+ </xsl:if>
1681
1847
  </xsl:template><xsl:template match="*[local-name()='tbody']">
1682
1848
 
1683
1849
  <xsl:variable name="cols-count">
@@ -1730,8 +1896,8 @@
1730
1896
 
1731
1897
  </xsl:if>
1732
1898
 
1733
-
1734
-
1899
+
1900
+
1735
1901
 
1736
1902
  <xsl:apply-templates/>
1737
1903
  </fo:table-row>
@@ -1755,6 +1921,7 @@
1755
1921
 
1756
1922
 
1757
1923
 
1924
+
1758
1925
  <xsl:if test="@colspan">
1759
1926
  <xsl:attribute name="number-columns-spanned">
1760
1927
  <xsl:value-of select="@colspan"/>
@@ -1794,7 +1961,8 @@
1794
1961
 
1795
1962
 
1796
1963
 
1797
-
1964
+
1965
+
1798
1966
 
1799
1967
 
1800
1968
 
@@ -1824,14 +1992,17 @@
1824
1992
 
1825
1993
 
1826
1994
 
1995
+
1996
+
1827
1997
  <fo:inline padding-right="2mm">
1828
1998
 
1829
1999
 
1830
2000
 
1831
-
2001
+
1832
2002
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
1833
2003
 
1834
2004
  </fo:inline>
2005
+
1835
2006
  <xsl:apply-templates mode="process"/>
1836
2007
  </fo:block>
1837
2008
 
@@ -1855,6 +2026,7 @@
1855
2026
 
1856
2027
 
1857
2028
 
2029
+
1858
2030
  <fo:inline font-size="80%" padding-right="5mm" id="{@id}">
1859
2031
 
1860
2032
 
@@ -1862,12 +2034,15 @@
1862
2034
 
1863
2035
 
1864
2036
 
2037
+
1865
2038
  <xsl:value-of select="@reference"/>
1866
2039
 
2040
+
1867
2041
  </fo:inline>
1868
2042
  <fo:inline>
1869
2043
 
1870
- <xsl:apply-templates/>
2044
+ <!-- <xsl:apply-templates /> -->
2045
+ <xsl:copy-of select="./node()"/>
1871
2046
  </fo:inline>
1872
2047
  </fo:block>
1873
2048
  </xsl:if>
@@ -1904,7 +2079,20 @@
1904
2079
  <xsl:variable name="following_dl_colwidths">
1905
2080
  <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
1906
2081
  <xsl:variable name="html-table">
1907
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2082
+ <xsl:variable name="doc_ns">
2083
+
2084
+ </xsl:variable>
2085
+ <xsl:variable name="ns">
2086
+ <xsl:choose>
2087
+ <xsl:when test="normalize-space($doc_ns) != ''">
2088
+ <xsl:value-of select="normalize-space($doc_ns)"/>
2089
+ </xsl:when>
2090
+ <xsl:otherwise>
2091
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
2092
+ </xsl:otherwise>
2093
+ </xsl:choose>
2094
+ </xsl:variable>
2095
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
1908
2096
  <xsl:element name="{$ns}:table">
1909
2097
  <xsl:for-each select="*[local-name() = 'dl'][1]">
1910
2098
  <tbody>
@@ -1969,7 +2157,8 @@
1969
2157
  <xsl:attribute name="margin-bottom">0</xsl:attribute>
1970
2158
  </xsl:if>
1971
2159
 
1972
- <xsl:apply-templates/>
2160
+ <!-- <xsl:apply-templates /> -->
2161
+ <xsl:copy-of select="./node()"/>
1973
2162
  </fo:block>
1974
2163
  </fo:table-cell>
1975
2164
  </fo:table-row>
@@ -1988,9 +2177,12 @@
1988
2177
 
1989
2178
 
1990
2179
 
2180
+
1991
2181
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
1992
2182
 
2183
+
1993
2184
  <xsl:value-of select="@reference"/>
2185
+
1994
2186
  </fo:basic-link>
1995
2187
  </fo:inline>
1996
2188
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
@@ -2088,7 +2280,20 @@
2088
2280
  </xsl:choose>
2089
2281
  <!-- create virtual html table for dl/[dt and dd] -->
2090
2282
  <xsl:variable name="html-table">
2091
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2283
+ <xsl:variable name="doc_ns">
2284
+
2285
+ </xsl:variable>
2286
+ <xsl:variable name="ns">
2287
+ <xsl:choose>
2288
+ <xsl:when test="normalize-space($doc_ns) != ''">
2289
+ <xsl:value-of select="normalize-space($doc_ns)"/>
2290
+ </xsl:when>
2291
+ <xsl:otherwise>
2292
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
2293
+ </xsl:otherwise>
2294
+ </xsl:choose>
2295
+ </xsl:variable>
2296
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
2092
2297
  <xsl:element name="{$ns}:table">
2093
2298
  <tbody>
2094
2299
  <xsl:apply-templates mode="dl"/>
@@ -2232,6 +2437,7 @@
2232
2437
 
2233
2438
 
2234
2439
 
2440
+
2235
2441
  <xsl:apply-templates/>
2236
2442
  <!-- <xsl:if test="$namespace = 'gb'">
2237
2443
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -2298,18 +2504,18 @@
2298
2504
  </xsl:template><xsl:template match="*[local-name()='tt']">
2299
2505
  <fo:inline xsl:use-attribute-sets="tt-style">
2300
2506
  <xsl:variable name="_font-size">
2301
- 10
2302
-
2303
-
2507
+ 10
2508
+
2509
+
2510
+
2511
+
2304
2512
 
2305
2513
 
2306
2514
 
2307
2515
 
2308
2516
 
2309
2517
 
2310
-
2311
2518
 
2312
-
2313
2519
 
2314
2520
 
2315
2521
  </xsl:variable>
@@ -2647,7 +2853,7 @@
2647
2853
  <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
2648
2854
  <xsl:value-of select="substring($str, 2)"/>
2649
2855
  </xsl:template><xsl:template match="mathml:math">
2650
- <fo:inline font-family="STIX2Math">
2856
+ <fo:inline font-family="STIX Two Math"> <!-- -->
2651
2857
  <xsl:variable name="mathml">
2652
2858
  <xsl:apply-templates select="." mode="mathml"/>
2653
2859
  </xsl:variable>
@@ -2741,7 +2947,7 @@
2741
2947
  <xsl:apply-templates/>
2742
2948
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
2743
2949
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
2744
-
2950
+
2745
2951
  <xsl:apply-templates/>
2746
2952
  </fo:basic-link>
2747
2953
  </xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
@@ -2951,18 +3157,9 @@
2951
3157
  <fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
2952
3158
  <fo:bookmark-title>
2953
3159
  <xsl:variable name="bookmark-title_">
2954
- <xsl:choose>
2955
- <xsl:when test="@lang = 'en'">
2956
-
2957
-
2958
- </xsl:when>
2959
- <xsl:when test="@lang = 'fr'">
2960
-
2961
-
2962
- </xsl:when>
2963
- <xsl:when test="@lang = 'de'">Deutsche</xsl:when>
2964
- <xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
2965
- </xsl:choose>
3160
+ <xsl:call-template name="getLangVersion">
3161
+ <xsl:with-param name="lang" select="@lang"/>
3162
+ </xsl:call-template>
2966
3163
  </xsl:variable>
2967
3164
  <xsl:choose>
2968
3165
  <xsl:when test="normalize-space($bookmark-title_) != ''">
@@ -3004,6 +3201,20 @@
3004
3201
 
3005
3202
  </fo:bookmark-tree>
3006
3203
  </xsl:if>
3204
+ </xsl:template><xsl:template name="getLangVersion">
3205
+ <xsl:param name="lang"/>
3206
+ <xsl:choose>
3207
+ <xsl:when test="$lang = 'en'">
3208
+
3209
+
3210
+ </xsl:when>
3211
+ <xsl:when test="$lang = 'fr'">
3212
+
3213
+
3214
+ </xsl:when>
3215
+ <xsl:when test="$lang = 'de'">Deutsche</xsl:when>
3216
+ <xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
3217
+ </xsl:choose>
3007
3218
  </xsl:template><xsl:template match="item" mode="bookmark">
3008
3219
  <fo:bookmark internal-destination="{@id}" starting-state="hide">
3009
3220
  <fo:bookmark-title>
@@ -3018,7 +3229,7 @@
3018
3229
  </xsl:template><xsl:template match="title" mode="bookmark"/><xsl:template match="text()" mode="bookmark"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']" mode="presentation">
3019
3230
  <xsl:if test="normalize-space() != ''">
3020
3231
  <fo:block xsl:use-attribute-sets="figure-name-style">
3021
-
3232
+
3022
3233
  <xsl:apply-templates/>
3023
3234
  </fo:block>
3024
3235
  </xsl:if>
@@ -3650,6 +3861,7 @@
3650
3861
  </xsl:template><xsl:template match="*[local-name() = 'clause']">
3651
3862
  <fo:block>
3652
3863
  <xsl:call-template name="setId"/>
3864
+
3653
3865
  <xsl:apply-templates/>
3654
3866
  </fo:block>
3655
3867
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -3685,6 +3897,7 @@
3685
3897
  </xsl:choose>
3686
3898
  </xsl:attribute>
3687
3899
 
3900
+
3688
3901
  <fo:block-container margin-left="0mm">
3689
3902
  <fo:block>
3690
3903
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -3866,6 +4079,7 @@
3866
4079
  <dc:title>
3867
4080
  <xsl:variable name="title">
3868
4081
 
4082
+
3869
4083
 
3870
4084
  <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en']"/>
3871
4085
 
@@ -3884,6 +4098,7 @@
3884
4098
  <dc:creator>
3885
4099
 
3886
4100
 
4101
+
3887
4102
  </dc:creator>
3888
4103
  <dc:description>
3889
4104
  <xsl:variable name="abstract">
@@ -3893,6 +4108,7 @@
3893
4108
 
3894
4109
  <xsl:copy-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'abstract']//text()"/>
3895
4110
 
4111
+
3896
4112
  </xsl:variable>
3897
4113
  <xsl:value-of select="normalize-space($abstract)"/>
3898
4114
  </dc:description>
@@ -16,7 +16,7 @@ fieldset, form, label, legend,
16
16
  table, caption, tbody, tfoot, thead, tr, th, td,
17
17
  article, aside, canvas, details, embed,
18
18
  figure, figcaption, footer, header, hgroup,
19
- menu, nav, output, ruby, section, summary,
19
+ menu, output, ruby, section, summary,
20
20
  time, mark, audio, video {
21
21
  margin: 0;
22
22
  padding: 0; }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Csa
5
- VERSION = '1.6.4'
5
+ VERSION = '1.6.5'
6
6
  end
7
7
  end
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.6.4
4
+ version: 1.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: 2020-09-26 00:00:00.000000000 Z
11
+ date: 2020-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities