metanorma-m3aawg 1.5.4 → 1.5.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: 98cdf846b857079130e1681bbfd8954ca38163afbf4b96203f0eff9610ba396e
4
- data.tar.gz: cef14e0686896ed1aa1f09d103c224b14abd45d4165898b08b993d3f23fbb589
3
+ metadata.gz: 1e4609234c251bfd60f7f8db10d5b2bf164086060667e333f3157d98bd09126b
4
+ data.tar.gz: 5cff4ab9b4f71cd267bcbd6246791418a8d0f0c96ff58b385c08bbec9cfffccd
5
5
  SHA512:
6
- metadata.gz: bd0f848d676b1d8ffa7897af520facd064c12c2976733c5e390c9cf9504ddc13f5faeebbe8ef801ad6de303da78fd398fbe5dd6a04611f84056fcea177bea6a7
7
- data.tar.gz: 5c05d7dd3fc2e616cccdf928fb5b32ca059b5e8f33d2af3e2b0f124aaa33182e99f7563fcb1d936cb6d814632219cbb2aa962ed07d62cb0dc347fb53fb93463d
6
+ metadata.gz: e2f4d8ee7faf5754835acc43f0027ce303a60eb942e91d42109a2edce07ae58141364160be689813685f8a696a86028446040a6023faa50b808efc355f520959
7
+ data.tar.gz: 2a6bb8be8bd69a43010f69919736b43d2283bd7a2a0550325fca49f058f6835437c6d629f081c1186556a60e7201e47bd0e58acb03a72b16a5f1f108ef4db785
@@ -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>
@@ -23,7 +23,7 @@ fieldset, form, label, legend,
23
23
  table, caption, tbody, tfoot, thead, tr, th, td,
24
24
  article, aside, canvas, details, embed,
25
25
  figure, figcaption, footer, header, hgroup,
26
- menu, nav, output, ruby, section, summary,
26
+ menu, output, ruby, section, summary,
27
27
  time, mark, audio, video {
28
28
  margin: 0;
29
29
  padding: 0; }
@@ -883,7 +883,12 @@
883
883
 
884
884
 
885
885
  </title-toc>
886
- <title-toc lang="fr">Sommaire</title-toc>
886
+ <title-toc lang="fr">
887
+
888
+ <xsl:text>Sommaire</xsl:text>
889
+
890
+
891
+ </title-toc>
887
892
 
888
893
  <title-toc lang="zh">Contents</title-toc>
889
894
 
@@ -971,10 +976,19 @@
971
976
 
972
977
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
973
978
  <xsl:param name="name"/>
974
- <xsl:variable name="lang">
975
- <xsl:call-template name="getLang"/>
979
+ <xsl:param name="lang"/>
980
+ <xsl:variable name="lang_">
981
+ <xsl:choose>
982
+ <xsl:when test="$lang != ''">
983
+ <xsl:value-of select="$lang"/>
984
+ </xsl:when>
985
+ <xsl:otherwise>
986
+ <xsl:call-template name="getLang"/>
987
+ </xsl:otherwise>
988
+ </xsl:choose>
976
989
  </xsl:variable>
977
- <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
990
+ <xsl:variable name="language" select="normalize-space($lang_)"/>
991
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $language]"/>
978
992
  <xsl:choose>
979
993
  <xsl:when test="normalize-space($title_) != ''">
980
994
  <xsl:value-of select="$title_"/>
@@ -1124,6 +1138,7 @@
1124
1138
 
1125
1139
 
1126
1140
 
1141
+
1127
1142
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1128
1143
 
1129
1144
  <xsl:attribute name="font-size">12pt</xsl:attribute>
@@ -1364,6 +1379,8 @@
1364
1379
 
1365
1380
 
1366
1381
 
1382
+
1383
+
1367
1384
  <!-- $namespace = 'iso' or -->
1368
1385
 
1369
1386
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
@@ -1401,6 +1418,7 @@
1401
1418
  <xsl:with-param name="table" select="$simple-table"/>
1402
1419
  </xsl:call-template>
1403
1420
  </xsl:variable>
1421
+ <!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
1404
1422
 
1405
1423
  <!-- <xsl:variable name="colwidths2">
1406
1424
  <xsl:call-template name="calculate-column-widths">
@@ -1422,27 +1440,49 @@
1422
1440
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
1423
1441
 
1424
1442
 
1443
+
1444
+
1445
+
1425
1446
 
1426
1447
 
1448
+
1427
1449
 
1428
-
1429
1450
 
1430
1451
 
1431
1452
 
1432
- <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">
1433
-
1434
-
1435
-
1436
-
1437
-
1453
+
1454
+
1455
+
1456
+ <xsl:variable name="table_attributes">
1457
+ <attribute name="table-layout">fixed</attribute>
1458
+ <attribute name="width">100%</attribute>
1459
+ <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1460
+ <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1438
1461
 
1439
1462
 
1440
1463
 
1441
1464
 
1465
+
1466
+
1467
+
1442
1468
 
1469
+
1443
1470
 
1471
+ </xsl:variable>
1472
+
1473
+
1474
+ <fo:table id="{@id}" table-omit-footer-at-break="true">
1444
1475
 
1476
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
1477
+ <xsl:attribute name="{@name}">
1478
+ <xsl:value-of select="."/>
1479
+ </xsl:attribute>
1480
+ </xsl:for-each>
1445
1481
 
1482
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
1483
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1484
+ <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
1485
+ </xsl:if>
1446
1486
 
1447
1487
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
1448
1488
  <xsl:choose>
@@ -1466,6 +1506,33 @@
1466
1506
 
1467
1507
  </fo:table>
1468
1508
 
1509
+ <xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
1510
+ <xsl:call-template name="insertTableFooterInSeparateTable">
1511
+ <xsl:with-param name="table_attributes" select="$table_attributes"/>
1512
+ <xsl:with-param name="colwidths" select="$colwidths"/>
1513
+ </xsl:call-template>
1514
+ </xsl:for-each>
1515
+
1516
+ <!-- insert footer as table -->
1517
+ <!-- <fo:table>
1518
+ <xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
1519
+ <xsl:attribute name="{@name}">
1520
+ <xsl:value-of select="."/>
1521
+ </xsl:attribute>
1522
+ </xsl:for-each>
1523
+
1524
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1525
+ <xsl:choose>
1526
+ <xsl:when test=". = 1 or . = 0">
1527
+ <fo:table-column column-width="proportional-column-width(2)"/>
1528
+ </xsl:when>
1529
+ <xsl:otherwise>
1530
+ <fo:table-column column-width="proportional-column-width({.})"/>
1531
+ </xsl:otherwise>
1532
+ </xsl:choose>
1533
+ </xsl:for-each>
1534
+ </fo:table>-->
1535
+
1469
1536
 
1470
1537
 
1471
1538
 
@@ -1530,6 +1597,13 @@
1530
1597
  <xsl:for-each select="xalan:nodeset($table)//tr">
1531
1598
  <xsl:variable name="td_text">
1532
1599
  <xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
1600
+
1601
+ <!-- <xsl:if test="$namespace = 'bipm'">
1602
+ <xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
1603
+ <word><xsl:value-of select="normalize-space(.)"/></word>
1604
+ </xsl:for-each>
1605
+ </xsl:if> -->
1606
+
1533
1607
  </xsl:variable>
1534
1608
  <xsl:variable name="words">
1535
1609
  <xsl:variable name="string_with_added_zerospaces">
@@ -1589,11 +1663,14 @@
1589
1663
  <xsl:value-of select="*[local-name()='origin']/@citeas"/>
1590
1664
  </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
1591
1665
  <xsl:value-of select="@target"/>
1666
+ </xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
1667
+ <xsl:variable name="math_text" select="normalize-space(.)"/>
1668
+ <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
1592
1669
  </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
1593
1670
  <xsl:param name="cols-count"/>
1594
1671
  <!-- font-weight="bold" -->
1595
1672
  <fo:table-header>
1596
-
1673
+
1597
1674
  <xsl:apply-templates/>
1598
1675
  </fo:table-header>
1599
1676
  </xsl:template><xsl:template name="table-header-title">
@@ -1618,6 +1695,13 @@
1618
1695
  </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
1619
1696
  <xsl:apply-templates/>
1620
1697
  </xsl:template><xsl:template name="insertTableFooter">
1698
+ <xsl:param name="cols-count"/>
1699
+ <xsl:if test="../*[local-name()='tfoot']">
1700
+ <fo:table-footer>
1701
+ <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
1702
+ </fo:table-footer>
1703
+ </xsl:if>
1704
+ </xsl:template><xsl:template name="insertTableFooter2">
1621
1705
  <xsl:param name="cols-count"/>
1622
1706
  <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1623
1707
  <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
@@ -1639,11 +1723,15 @@
1639
1723
  <!-- fn will be processed inside 'note' processing -->
1640
1724
 
1641
1725
 
1642
- <!-- except gb -->
1726
+
1727
+ <!-- except gb and bipm -->
1643
1728
 
1644
1729
  <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1645
1730
 
1646
1731
 
1732
+
1733
+
1734
+
1647
1735
  <!-- horizontal row separator -->
1648
1736
 
1649
1737
 
@@ -1657,6 +1745,84 @@
1657
1745
  </fo:table-footer>
1658
1746
 
1659
1747
  </xsl:if>
1748
+ </xsl:template><xsl:template name="insertTableFooterInSeparateTable">
1749
+ <xsl:param name="table_attributes"/>
1750
+ <xsl:param name="colwidths"/>
1751
+
1752
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1753
+
1754
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1755
+
1756
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($colwidths)//column)"/>
1757
+
1758
+ <fo:table keep-with-previous="always">
1759
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
1760
+ <xsl:choose>
1761
+ <xsl:when test="@name = 'border-top'">
1762
+ <xsl:attribute name="{@name}">0pt solid black</xsl:attribute>
1763
+ </xsl:when>
1764
+ <xsl:when test="@name = 'border'">
1765
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
1766
+ <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
1767
+ </xsl:when>
1768
+ <xsl:otherwise>
1769
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
1770
+ </xsl:otherwise>
1771
+ </xsl:choose>
1772
+ </xsl:for-each>
1773
+
1774
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1775
+ <xsl:choose>
1776
+ <xsl:when test=". = 1 or . = 0">
1777
+ <fo:table-column column-width="proportional-column-width(2)"/>
1778
+ </xsl:when>
1779
+ <xsl:otherwise>
1780
+ <fo:table-column column-width="proportional-column-width({.})"/>
1781
+ </xsl:otherwise>
1782
+ </xsl:choose>
1783
+ </xsl:for-each>
1784
+
1785
+ <fo:table-body>
1786
+ <fo:table-row>
1787
+ <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
1788
+
1789
+
1790
+
1791
+ <!-- fn will be processed inside 'note' processing -->
1792
+
1793
+
1794
+
1795
+ <!-- except gb and bipm -->
1796
+
1797
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1798
+
1799
+
1800
+ <!-- <xsl:if test="$namespace = 'bipm'">
1801
+ <xsl:choose>
1802
+ <xsl:when test="ancestor::*[local-name()='preface']">
1803
+ show Note under table in preface (ex. abstract) sections
1804
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1805
+ </xsl:when>
1806
+ <xsl:otherwise>
1807
+ empty, because notes show at page side in main sections
1808
+ <fo:block/>
1809
+ </xsl:otherwise>
1810
+ </xsl:choose>
1811
+ </xsl:if> -->
1812
+
1813
+
1814
+ <!-- horizontal row separator -->
1815
+
1816
+
1817
+ <!-- fn processing -->
1818
+ <xsl:call-template name="fn_display"/>
1819
+
1820
+ </fo:table-cell>
1821
+ </fo:table-row>
1822
+ </fo:table-body>
1823
+
1824
+ </fo:table>
1825
+ </xsl:if>
1660
1826
  </xsl:template><xsl:template match="*[local-name()='tbody']">
1661
1827
 
1662
1828
  <xsl:variable name="cols-count">
@@ -1709,8 +1875,8 @@
1709
1875
 
1710
1876
  </xsl:if>
1711
1877
 
1712
-
1713
-
1878
+
1879
+
1714
1880
 
1715
1881
  <xsl:apply-templates/>
1716
1882
  </fo:table-row>
@@ -1734,6 +1900,7 @@
1734
1900
 
1735
1901
 
1736
1902
 
1903
+
1737
1904
  <xsl:if test="@colspan">
1738
1905
  <xsl:attribute name="number-columns-spanned">
1739
1906
  <xsl:value-of select="@colspan"/>
@@ -1773,7 +1940,8 @@
1773
1940
 
1774
1941
 
1775
1942
 
1776
-
1943
+
1944
+
1777
1945
 
1778
1946
 
1779
1947
 
@@ -1803,14 +1971,17 @@
1803
1971
 
1804
1972
 
1805
1973
 
1974
+
1975
+
1806
1976
  <fo:inline padding-right="2mm">
1807
1977
 
1808
1978
 
1809
1979
 
1810
-
1980
+
1811
1981
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
1812
1982
 
1813
1983
  </fo:inline>
1984
+
1814
1985
  <xsl:apply-templates mode="process"/>
1815
1986
  </fo:block>
1816
1987
 
@@ -1834,6 +2005,7 @@
1834
2005
 
1835
2006
 
1836
2007
 
2008
+
1837
2009
  <fo:inline font-size="80%" padding-right="5mm" id="{@id}">
1838
2010
 
1839
2011
  <xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -1843,12 +2015,15 @@
1843
2015
 
1844
2016
 
1845
2017
 
2018
+
1846
2019
  <xsl:value-of select="@reference"/>
1847
2020
 
2021
+
1848
2022
  </fo:inline>
1849
2023
  <fo:inline>
1850
2024
 
1851
- <xsl:apply-templates/>
2025
+ <!-- <xsl:apply-templates /> -->
2026
+ <xsl:copy-of select="./node()"/>
1852
2027
  </fo:inline>
1853
2028
  </fo:block>
1854
2029
  </xsl:if>
@@ -1885,7 +2060,20 @@
1885
2060
  <xsl:variable name="following_dl_colwidths">
1886
2061
  <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
1887
2062
  <xsl:variable name="html-table">
1888
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2063
+ <xsl:variable name="doc_ns">
2064
+
2065
+ </xsl:variable>
2066
+ <xsl:variable name="ns">
2067
+ <xsl:choose>
2068
+ <xsl:when test="normalize-space($doc_ns) != ''">
2069
+ <xsl:value-of select="normalize-space($doc_ns)"/>
2070
+ </xsl:when>
2071
+ <xsl:otherwise>
2072
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
2073
+ </xsl:otherwise>
2074
+ </xsl:choose>
2075
+ </xsl:variable>
2076
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
1889
2077
  <xsl:element name="{$ns}:table">
1890
2078
  <xsl:for-each select="*[local-name() = 'dl'][1]">
1891
2079
  <tbody>
@@ -1950,7 +2138,8 @@
1950
2138
  <xsl:attribute name="margin-bottom">0</xsl:attribute>
1951
2139
  </xsl:if>
1952
2140
 
1953
- <xsl:apply-templates/>
2141
+ <!-- <xsl:apply-templates /> -->
2142
+ <xsl:copy-of select="./node()"/>
1954
2143
  </fo:block>
1955
2144
  </fo:table-cell>
1956
2145
  </fo:table-row>
@@ -1969,9 +2158,12 @@
1969
2158
 
1970
2159
 
1971
2160
 
2161
+
1972
2162
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
1973
2163
 
2164
+
1974
2165
  <xsl:value-of select="@reference"/>
2166
+
1975
2167
  </fo:basic-link>
1976
2168
  </fo:inline>
1977
2169
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
@@ -2069,7 +2261,20 @@
2069
2261
  </xsl:choose>
2070
2262
  <!-- create virtual html table for dl/[dt and dd] -->
2071
2263
  <xsl:variable name="html-table">
2072
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2264
+ <xsl:variable name="doc_ns">
2265
+
2266
+ </xsl:variable>
2267
+ <xsl:variable name="ns">
2268
+ <xsl:choose>
2269
+ <xsl:when test="normalize-space($doc_ns) != ''">
2270
+ <xsl:value-of select="normalize-space($doc_ns)"/>
2271
+ </xsl:when>
2272
+ <xsl:otherwise>
2273
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
2274
+ </xsl:otherwise>
2275
+ </xsl:choose>
2276
+ </xsl:variable>
2277
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
2073
2278
  <xsl:element name="{$ns}:table">
2074
2279
  <tbody>
2075
2280
  <xsl:apply-templates mode="dl"/>
@@ -2213,6 +2418,7 @@
2213
2418
 
2214
2419
 
2215
2420
 
2421
+
2216
2422
  <xsl:apply-templates/>
2217
2423
  <!-- <xsl:if test="$namespace = 'gb'">
2218
2424
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -2279,9 +2485,9 @@
2279
2485
  </xsl:template><xsl:template match="*[local-name()='tt']">
2280
2486
  <fo:inline xsl:use-attribute-sets="tt-style">
2281
2487
  <xsl:variable name="_font-size">
2282
-
2283
-
2284
-
2488
+
2489
+
2490
+
2285
2491
 
2286
2492
 
2287
2493
 
@@ -2293,9 +2499,9 @@
2293
2499
  </xsl:choose>
2294
2500
 
2295
2501
 
2296
-
2297
2502
 
2298
-
2503
+
2504
+
2299
2505
 
2300
2506
 
2301
2507
  </xsl:variable>
@@ -2633,7 +2839,7 @@
2633
2839
  <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
2634
2840
  <xsl:value-of select="substring($str, 2)"/>
2635
2841
  </xsl:template><xsl:template match="mathml:math">
2636
- <fo:inline font-family="STIX2Math">
2842
+ <fo:inline font-family="STIX Two Math"> <!-- -->
2637
2843
  <xsl:variable name="mathml">
2638
2844
  <xsl:apply-templates select="." mode="mathml"/>
2639
2845
  </xsl:variable>
@@ -2727,7 +2933,7 @@
2727
2933
  <xsl:apply-templates/>
2728
2934
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
2729
2935
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
2730
-
2936
+
2731
2937
  <xsl:apply-templates/>
2732
2938
  </fo:basic-link>
2733
2939
  </xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
@@ -2939,18 +3145,9 @@
2939
3145
  <fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
2940
3146
  <fo:bookmark-title>
2941
3147
  <xsl:variable name="bookmark-title_">
2942
- <xsl:choose>
2943
- <xsl:when test="@lang = 'en'">
2944
-
2945
-
2946
- </xsl:when>
2947
- <xsl:when test="@lang = 'fr'">
2948
-
2949
-
2950
- </xsl:when>
2951
- <xsl:when test="@lang = 'de'">Deutsche</xsl:when>
2952
- <xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
2953
- </xsl:choose>
3148
+ <xsl:call-template name="getLangVersion">
3149
+ <xsl:with-param name="lang" select="@lang"/>
3150
+ </xsl:call-template>
2954
3151
  </xsl:variable>
2955
3152
  <xsl:choose>
2956
3153
  <xsl:when test="normalize-space($bookmark-title_) != ''">
@@ -2992,6 +3189,20 @@
2992
3189
 
2993
3190
  </fo:bookmark-tree>
2994
3191
  </xsl:if>
3192
+ </xsl:template><xsl:template name="getLangVersion">
3193
+ <xsl:param name="lang"/>
3194
+ <xsl:choose>
3195
+ <xsl:when test="$lang = 'en'">
3196
+
3197
+
3198
+ </xsl:when>
3199
+ <xsl:when test="$lang = 'fr'">
3200
+
3201
+
3202
+ </xsl:when>
3203
+ <xsl:when test="$lang = 'de'">Deutsche</xsl:when>
3204
+ <xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
3205
+ </xsl:choose>
2995
3206
  </xsl:template><xsl:template match="item" mode="bookmark">
2996
3207
  <fo:bookmark internal-destination="{@id}" starting-state="hide">
2997
3208
  <fo:bookmark-title>
@@ -3006,7 +3217,7 @@
3006
3217
  </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">
3007
3218
  <xsl:if test="normalize-space() != ''">
3008
3219
  <fo:block xsl:use-attribute-sets="figure-name-style">
3009
-
3220
+
3010
3221
  <xsl:apply-templates/>
3011
3222
  </fo:block>
3012
3223
  </xsl:if>
@@ -3640,6 +3851,7 @@
3640
3851
  </xsl:template><xsl:template match="*[local-name() = 'clause']">
3641
3852
  <fo:block>
3642
3853
  <xsl:call-template name="setId"/>
3854
+
3643
3855
  <xsl:apply-templates/>
3644
3856
  </fo:block>
3645
3857
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -3675,6 +3887,7 @@
3675
3887
  </xsl:choose>
3676
3888
  </xsl:attribute>
3677
3889
 
3890
+
3678
3891
  <fo:block-container margin-left="0mm">
3679
3892
  <fo:block>
3680
3893
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -3858,6 +4071,7 @@
3858
4071
 
3859
4072
 
3860
4073
 
4074
+
3861
4075
  <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title']"/>
3862
4076
 
3863
4077
 
@@ -3876,6 +4090,7 @@
3876
4090
  <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']/*[local-name() = 'organization']/*[local-name() = 'name']"/>
3877
4091
 
3878
4092
 
4093
+
3879
4094
  </dc:creator>
3880
4095
  <dc:description>
3881
4096
  <xsl:variable name="abstract">
@@ -3883,6 +4098,7 @@
3883
4098
 
3884
4099
 
3885
4100
 
4101
+
3886
4102
  </xsl:variable>
3887
4103
  <xsl:value-of select="normalize-space($abstract)"/>
3888
4104
  </dc:description>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module M3AAWG
3
- VERSION = "1.5.4"
3
+ VERSION = "1.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-m3aawg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.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