metanorma-nist 1.2.4 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fccac1954f210d0d2d8c3bc75a3061c258e6845506b8bac3459eedbf5d96081
4
- data.tar.gz: 6e83a19e2381028a6542f3df7d18a44665c3139639125d64f9a08a796a8aee31
3
+ metadata.gz: 6a69082cb58bde5a1305caea0316414723f519a71c550efe43ac3e894f028436
4
+ data.tar.gz: 73b99485a31a90a15e6936d688fc4c677a2d948e95bc1896d822d7b02cda37f6
5
5
  SHA512:
6
- metadata.gz: cd062e38d19de3e2b1661726c3817cddbc83f24bcd4778e407fff66b19d0e6201f430f243ac8b53e831ee8718b62eccb35807620cdfea45991266f312d544d62
7
- data.tar.gz: 35e16075338432c4b5c33568a2f0e474b0a3f7a37f8b18105d4950608f69e90f26d75ab088ce5c0c5a38e40372e836409e41024dd8b37df1489ac0d4337e16c9
6
+ metadata.gz: 59de2efb8bb15621e6479ba749b94228d0c61b0b244da02a6c95dc63668797c890090c49abe386a913ef096664b771a42e99b53d39ed698d4d30e45b2e324393
7
+ data.tar.gz: 108786af3a06da4539acb195f2d42c21b66fb0d7b05543ed800202c117a98531c1cd83ec1f31f3a8249ef7429458407c7d7991fc41052cb3c522ed47762d9afd
@@ -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>
@@ -127,7 +127,6 @@ module IsoDoc
127
127
  def info(isoxml, out)
128
128
  @meta.series isoxml, out
129
129
  @meta.commentperiod isoxml, out
130
- @meta.note isoxml, out
131
130
  super
132
131
  end
133
132
 
@@ -9,7 +9,7 @@ fieldset, form, label, legend,
9
9
  table, caption, tbody, tfoot, thead, tr, th, td,
10
10
  article, aside, canvas, details, embed,
11
11
  figure, figcaption, footer, header, hgroup,
12
- menu, nav, output, ruby, section, summary,
12
+ menu, output, ruby, section, summary,
13
13
  time, mark, audio, video {
14
14
  margin: 0;
15
15
  padding: 0; }
@@ -230,6 +230,7 @@ module IsoDoc
230
230
  note = xml.at(ns("//bibdata/note[@type = "\
231
231
  "'withdrawal-announcement-link']"))&.text and
232
232
  set(:withdrawal_announcement_link, note)
233
+ super
233
234
  end
234
235
  end
235
236
  end
@@ -51,7 +51,7 @@
51
51
 
52
52
  <xsl:template match="/">
53
53
  <xsl:call-template name="namespaceCheck"/>
54
- <fo:root font-family="Times New Roman, STIX2Math" font-size="12pt" xml:lang="{$lang}">
54
+ <fo:root font-family="Times New Roman, STIX Two Math" font-size="12pt" xml:lang="{$lang}">
55
55
  <fo:layout-master-set>
56
56
  <!-- Cover pages -->
57
57
  <fo:simple-page-master master-name="cover-page" page-width="{$pageWidth}" page-height="{$pageHeight}">
@@ -83,6 +83,10 @@
83
83
  </fo:layout-master-set>
84
84
 
85
85
  <xsl:call-template name="addPDFUAmeta"/>
86
+
87
+ <xsl:call-template name="addBookmarks">
88
+ <xsl:with-param name="contents" select="$contents"/>
89
+ </xsl:call-template>
86
90
 
87
91
  <!-- cover page -->
88
92
  <fo:page-sequence master-reference="cover-page" force-page-count="no-force">
@@ -429,9 +433,17 @@
429
433
  <xsl:otherwise>true</xsl:otherwise>
430
434
  </xsl:choose>
431
435
  </xsl:variable>
436
+
437
+
438
+ <xsl:variable name="skip">
439
+ <xsl:choose>
440
+ <xsl:when test="ancestor-or-self::nist:bibitem">true</xsl:when>
441
+ <xsl:when test="ancestor-or-self::nist:term">true</xsl:when>
442
+ <xsl:otherwise>false</xsl:otherwise>
443
+ </xsl:choose>
444
+ </xsl:variable>
432
445
 
433
-
434
- <xsl:if test="$display = 'true'">
446
+ <xsl:if test="$skip = 'false'">
435
447
 
436
448
  <xsl:variable name="section">
437
449
  <xsl:call-template name="getSection"/>
@@ -445,12 +457,13 @@
445
457
  <xsl:value-of select="local-name()"/>
446
458
  </xsl:variable>
447
459
 
448
- <item id="{@id}" level="{$level}" section="{$section}" type="{$type}">
449
- <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
460
+ <item id="{@id}" level="{$level}" section="{$section}" type="{$type}" display="{$display}">
461
+ <title>
462
+ <xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
463
+ </title>
464
+ <xsl:apply-templates mode="contents"/>
450
465
  </item>
451
- <xsl:apply-templates mode="contents"/>
452
- </xsl:if>
453
-
466
+ </xsl:if>
454
467
  </xsl:template>
455
468
 
456
469
 
@@ -1104,7 +1117,12 @@
1104
1117
 
1105
1118
 
1106
1119
  </title-toc>
1107
- <title-toc lang="fr">Sommaire</title-toc>
1120
+ <title-toc lang="fr">
1121
+
1122
+ <xsl:text>Sommaire</xsl:text>
1123
+
1124
+
1125
+ </title-toc>
1108
1126
 
1109
1127
  <title-toc lang="zh">Contents</title-toc>
1110
1128
 
@@ -1192,10 +1210,19 @@
1192
1210
 
1193
1211
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
1194
1212
  <xsl:param name="name"/>
1195
- <xsl:variable name="lang">
1196
- <xsl:call-template name="getLang"/>
1213
+ <xsl:param name="lang"/>
1214
+ <xsl:variable name="lang_">
1215
+ <xsl:choose>
1216
+ <xsl:when test="$lang != ''">
1217
+ <xsl:value-of select="$lang"/>
1218
+ </xsl:when>
1219
+ <xsl:otherwise>
1220
+ <xsl:call-template name="getLang"/>
1221
+ </xsl:otherwise>
1222
+ </xsl:choose>
1197
1223
  </xsl:variable>
1198
- <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
1224
+ <xsl:variable name="language" select="normalize-space($lang_)"/>
1225
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $language]"/>
1199
1226
  <xsl:choose>
1200
1227
  <xsl:when test="normalize-space($title_) != ''">
1201
1228
  <xsl:value-of select="$title_"/>
@@ -1341,6 +1368,7 @@
1341
1368
 
1342
1369
 
1343
1370
 
1371
+
1344
1372
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1345
1373
 
1346
1374
 
@@ -1561,6 +1589,8 @@
1561
1589
 
1562
1590
 
1563
1591
 
1592
+
1593
+
1564
1594
  <!-- $namespace = 'iso' or -->
1565
1595
 
1566
1596
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
@@ -1596,6 +1626,7 @@
1596
1626
  <xsl:with-param name="table" select="$simple-table"/>
1597
1627
  </xsl:call-template>
1598
1628
  </xsl:variable>
1629
+ <!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
1599
1630
 
1600
1631
  <!-- <xsl:variable name="colwidths2">
1601
1632
  <xsl:call-template name="calculate-column-widths">
@@ -1616,40 +1647,62 @@
1616
1647
 
1617
1648
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
1618
1649
 
1650
+
1619
1651
  <xsl:attribute name="space-after">6pt</xsl:attribute>
1620
1652
 
1653
+
1654
+
1655
+
1621
1656
 
1622
1657
 
1658
+ <xsl:if test="ancestor::*[local-name()='annex'] or ancestor::*[local-name()='preface']">
1659
+ <xsl:attribute name="font-family">Times New Roman</xsl:attribute>
1660
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1661
+ </xsl:if>
1662
+ <xsl:if test="not(ancestor::*[local-name()='annex'] or ancestor::*[local-name()='preface'])">
1663
+ <xsl:attribute name="font-family">Times New Roman</xsl:attribute>
1664
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
1665
+ </xsl:if>
1666
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1623
1667
 
1668
+
1624
1669
 
1625
-
1626
1670
 
1627
1671
 
1628
1672
 
1629
- <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">
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
- <xsl:if test="ancestor::*[local-name()='annex'] or ancestor::*[local-name()='preface']">
1637
- <xsl:attribute name="font-family">Times New Roman</xsl:attribute>
1638
- <xsl:attribute name="font-size">10pt</xsl:attribute>
1639
- </xsl:if>
1640
- <xsl:if test="not(ancestor::*[local-name()='annex'] or ancestor::*[local-name()='preface'])">
1641
- <xsl:attribute name="font-family">Times New Roman</xsl:attribute>
1642
- <xsl:attribute name="font-size">12pt</xsl:attribute>
1643
- </xsl:if>
1644
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1673
+
1674
+
1675
+
1676
+ <xsl:variable name="table_attributes">
1677
+ <attribute name="table-layout">fixed</attribute>
1678
+ <attribute name="width">100%</attribute>
1679
+ <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1680
+ <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1645
1681
 
1646
1682
 
1647
1683
 
1648
1684
 
1685
+
1686
+
1687
+
1649
1688
 
1689
+
1650
1690
 
1691
+ </xsl:variable>
1692
+
1693
+
1694
+ <fo:table id="{@id}" table-omit-footer-at-break="true">
1651
1695
 
1696
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
1697
+ <xsl:attribute name="{@name}">
1698
+ <xsl:value-of select="."/>
1699
+ </xsl:attribute>
1700
+ </xsl:for-each>
1652
1701
 
1702
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
1703
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1704
+ <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
1705
+ </xsl:if>
1653
1706
 
1654
1707
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
1655
1708
  <xsl:choose>
@@ -1673,6 +1726,33 @@
1673
1726
 
1674
1727
  </fo:table>
1675
1728
 
1729
+ <xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
1730
+ <xsl:call-template name="insertTableFooterInSeparateTable">
1731
+ <xsl:with-param name="table_attributes" select="$table_attributes"/>
1732
+ <xsl:with-param name="colwidths" select="$colwidths"/>
1733
+ </xsl:call-template>
1734
+ </xsl:for-each>
1735
+
1736
+ <!-- insert footer as table -->
1737
+ <!-- <fo:table>
1738
+ <xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
1739
+ <xsl:attribute name="{@name}">
1740
+ <xsl:value-of select="."/>
1741
+ </xsl:attribute>
1742
+ </xsl:for-each>
1743
+
1744
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1745
+ <xsl:choose>
1746
+ <xsl:when test=". = 1 or . = 0">
1747
+ <fo:table-column column-width="proportional-column-width(2)"/>
1748
+ </xsl:when>
1749
+ <xsl:otherwise>
1750
+ <fo:table-column column-width="proportional-column-width({.})"/>
1751
+ </xsl:otherwise>
1752
+ </xsl:choose>
1753
+ </xsl:for-each>
1754
+ </fo:table>-->
1755
+
1676
1756
 
1677
1757
 
1678
1758
 
@@ -1737,6 +1817,13 @@
1737
1817
  <xsl:for-each select="xalan:nodeset($table)//tr">
1738
1818
  <xsl:variable name="td_text">
1739
1819
  <xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
1820
+
1821
+ <!-- <xsl:if test="$namespace = 'bipm'">
1822
+ <xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
1823
+ <word><xsl:value-of select="normalize-space(.)"/></word>
1824
+ </xsl:for-each>
1825
+ </xsl:if> -->
1826
+
1740
1827
  </xsl:variable>
1741
1828
  <xsl:variable name="words">
1742
1829
  <xsl:variable name="string_with_added_zerospaces">
@@ -1796,11 +1883,14 @@
1796
1883
  <xsl:value-of select="*[local-name()='origin']/@citeas"/>
1797
1884
  </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
1798
1885
  <xsl:value-of select="@target"/>
1886
+ </xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
1887
+ <xsl:variable name="math_text" select="normalize-space(.)"/>
1888
+ <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
1799
1889
  </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
1800
1890
  <xsl:param name="cols-count"/>
1801
1891
  <!-- font-weight="bold" -->
1802
1892
  <fo:table-header>
1803
-
1893
+
1804
1894
  <xsl:apply-templates/>
1805
1895
  </fo:table-header>
1806
1896
  </xsl:template><xsl:template name="table-header-title">
@@ -1825,6 +1915,13 @@
1825
1915
  </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
1826
1916
  <xsl:apply-templates/>
1827
1917
  </xsl:template><xsl:template name="insertTableFooter">
1918
+ <xsl:param name="cols-count"/>
1919
+ <xsl:if test="../*[local-name()='tfoot']">
1920
+ <fo:table-footer>
1921
+ <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
1922
+ </fo:table-footer>
1923
+ </xsl:if>
1924
+ </xsl:template><xsl:template name="insertTableFooter2">
1828
1925
  <xsl:param name="cols-count"/>
1829
1926
  <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1830
1927
  <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
@@ -1846,11 +1943,15 @@
1846
1943
  <!-- fn will be processed inside 'note' processing -->
1847
1944
 
1848
1945
 
1849
- <!-- except gb -->
1946
+
1947
+ <!-- except gb and bipm -->
1850
1948
 
1851
1949
  <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
1852
1950
 
1853
1951
 
1952
+
1953
+
1954
+
1854
1955
  <!-- horizontal row separator -->
1855
1956
 
1856
1957
 
@@ -1864,6 +1965,84 @@
1864
1965
  </fo:table-footer>
1865
1966
 
1866
1967
  </xsl:if>
1968
+ </xsl:template><xsl:template name="insertTableFooterInSeparateTable">
1969
+ <xsl:param name="table_attributes"/>
1970
+ <xsl:param name="colwidths"/>
1971
+
1972
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
1973
+
1974
+ <xsl:if test="$isNoteOrFnExist = 'true'">
1975
+
1976
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($colwidths)//column)"/>
1977
+
1978
+ <fo:table keep-with-previous="always">
1979
+ <xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
1980
+ <xsl:choose>
1981
+ <xsl:when test="@name = 'border-top'">
1982
+ <xsl:attribute name="{@name}">0pt solid black</xsl:attribute>
1983
+ </xsl:when>
1984
+ <xsl:when test="@name = 'border'">
1985
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
1986
+ <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
1987
+ </xsl:when>
1988
+ <xsl:otherwise>
1989
+ <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
1990
+ </xsl:otherwise>
1991
+ </xsl:choose>
1992
+ </xsl:for-each>
1993
+
1994
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
1995
+ <xsl:choose>
1996
+ <xsl:when test=". = 1 or . = 0">
1997
+ <fo:table-column column-width="proportional-column-width(2)"/>
1998
+ </xsl:when>
1999
+ <xsl:otherwise>
2000
+ <fo:table-column column-width="proportional-column-width({.})"/>
2001
+ </xsl:otherwise>
2002
+ </xsl:choose>
2003
+ </xsl:for-each>
2004
+
2005
+ <fo:table-body>
2006
+ <fo:table-row>
2007
+ <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
2008
+
2009
+
2010
+
2011
+ <!-- fn will be processed inside 'note' processing -->
2012
+
2013
+
2014
+
2015
+ <!-- except gb and bipm -->
2016
+
2017
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
2018
+
2019
+
2020
+ <!-- <xsl:if test="$namespace = 'bipm'">
2021
+ <xsl:choose>
2022
+ <xsl:when test="ancestor::*[local-name()='preface']">
2023
+ show Note under table in preface (ex. abstract) sections
2024
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
2025
+ </xsl:when>
2026
+ <xsl:otherwise>
2027
+ empty, because notes show at page side in main sections
2028
+ <fo:block/>
2029
+ </xsl:otherwise>
2030
+ </xsl:choose>
2031
+ </xsl:if> -->
2032
+
2033
+
2034
+ <!-- horizontal row separator -->
2035
+
2036
+
2037
+ <!-- fn processing -->
2038
+ <xsl:call-template name="fn_display"/>
2039
+
2040
+ </fo:table-cell>
2041
+ </fo:table-row>
2042
+ </fo:table-body>
2043
+
2044
+ </fo:table>
2045
+ </xsl:if>
1867
2046
  </xsl:template><xsl:template match="*[local-name()='tbody']">
1868
2047
 
1869
2048
  <xsl:variable name="cols-count">
@@ -1919,8 +2098,8 @@
1919
2098
 
1920
2099
  </xsl:if>
1921
2100
 
1922
-
1923
-
2101
+
2102
+
1924
2103
 
1925
2104
  <xsl:apply-templates/>
1926
2105
  </fo:table-row>
@@ -1948,6 +2127,7 @@
1948
2127
 
1949
2128
 
1950
2129
 
2130
+
1951
2131
  <xsl:if test="@colspan">
1952
2132
  <xsl:attribute name="number-columns-spanned">
1953
2133
  <xsl:value-of select="@colspan"/>
@@ -1987,7 +2167,7 @@
1987
2167
 
1988
2168
 
1989
2169
 
1990
-
2170
+
1991
2171
 
1992
2172
 
1993
2173
 
@@ -1998,6 +2178,7 @@
1998
2178
  <xsl:attribute name="font-weight">normal</xsl:attribute>
1999
2179
  </xsl:if>
2000
2180
 
2181
+
2001
2182
  <xsl:if test="@colspan">
2002
2183
  <xsl:attribute name="number-columns-spanned">
2003
2184
  <xsl:value-of select="@colspan"/>
@@ -2021,14 +2202,17 @@
2021
2202
 
2022
2203
 
2023
2204
 
2205
+
2206
+
2024
2207
  <fo:inline padding-right="2mm">
2025
2208
 
2026
2209
 
2027
2210
 
2028
-
2211
+
2029
2212
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
2030
2213
 
2031
2214
  </fo:inline>
2215
+
2032
2216
  <xsl:apply-templates mode="process"/>
2033
2217
  </fo:block>
2034
2218
 
@@ -2052,6 +2236,7 @@
2052
2236
 
2053
2237
 
2054
2238
 
2239
+
2055
2240
  <fo:inline font-size="80%" padding-right="5mm" id="{@id}">
2056
2241
 
2057
2242
  <xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -2063,14 +2248,17 @@
2063
2248
 
2064
2249
  <xsl:attribute name="font-size">10pt</xsl:attribute>
2065
2250
 
2251
+
2066
2252
  <xsl:value-of select="@reference"/>
2067
2253
 
2254
+
2068
2255
  </fo:inline>
2069
2256
  <fo:inline>
2070
2257
 
2071
2258
  <xsl:attribute name="font-size">10pt</xsl:attribute>
2072
2259
 
2073
- <xsl:apply-templates/>
2260
+ <!-- <xsl:apply-templates /> -->
2261
+ <xsl:copy-of select="./node()"/>
2074
2262
  </fo:inline>
2075
2263
  </fo:block>
2076
2264
  </xsl:if>
@@ -2107,7 +2295,20 @@
2107
2295
  <xsl:variable name="following_dl_colwidths">
2108
2296
  <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
2109
2297
  <xsl:variable name="html-table">
2110
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2298
+ <xsl:variable name="doc_ns">
2299
+
2300
+ </xsl:variable>
2301
+ <xsl:variable name="ns">
2302
+ <xsl:choose>
2303
+ <xsl:when test="normalize-space($doc_ns) != ''">
2304
+ <xsl:value-of select="normalize-space($doc_ns)"/>
2305
+ </xsl:when>
2306
+ <xsl:otherwise>
2307
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
2308
+ </xsl:otherwise>
2309
+ </xsl:choose>
2310
+ </xsl:variable>
2311
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
2111
2312
  <xsl:element name="{$ns}:table">
2112
2313
  <xsl:for-each select="*[local-name() = 'dl'][1]">
2113
2314
  <tbody>
@@ -2172,7 +2373,8 @@
2172
2373
  <xsl:attribute name="margin-bottom">0</xsl:attribute>
2173
2374
  </xsl:if>
2174
2375
 
2175
- <xsl:apply-templates/>
2376
+ <!-- <xsl:apply-templates /> -->
2377
+ <xsl:copy-of select="./node()"/>
2176
2378
  </fo:block>
2177
2379
  </fo:table-cell>
2178
2380
  </fo:table-row>
@@ -2196,9 +2398,12 @@
2196
2398
 
2197
2399
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
2198
2400
 
2401
+
2199
2402
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
2200
2403
 
2404
+
2201
2405
  <xsl:value-of select="@reference"/>
2406
+
2202
2407
  </fo:basic-link>
2203
2408
  </fo:inline>
2204
2409
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
@@ -2304,7 +2509,20 @@
2304
2509
  </xsl:choose>
2305
2510
  <!-- create virtual html table for dl/[dt and dd] -->
2306
2511
  <xsl:variable name="html-table">
2307
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2512
+ <xsl:variable name="doc_ns">
2513
+
2514
+ </xsl:variable>
2515
+ <xsl:variable name="ns">
2516
+ <xsl:choose>
2517
+ <xsl:when test="normalize-space($doc_ns) != ''">
2518
+ <xsl:value-of select="normalize-space($doc_ns)"/>
2519
+ </xsl:when>
2520
+ <xsl:otherwise>
2521
+ <xsl:value-of select="substring-before(name(/*), '-')"/>
2522
+ </xsl:otherwise>
2523
+ </xsl:choose>
2524
+ </xsl:variable>
2525
+ <!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
2308
2526
  <xsl:element name="{$ns}:table">
2309
2527
  <tbody>
2310
2528
  <xsl:apply-templates mode="dl"/>
@@ -2464,6 +2682,7 @@
2464
2682
 
2465
2683
 
2466
2684
 
2685
+
2467
2686
  <xsl:apply-templates/>
2468
2687
  <!-- <xsl:if test="$namespace = 'gb'">
2469
2688
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -2530,18 +2749,18 @@
2530
2749
  </xsl:template><xsl:template match="*[local-name()='tt']">
2531
2750
  <fo:inline xsl:use-attribute-sets="tt-style">
2532
2751
  <xsl:variable name="_font-size">
2533
-
2534
-
2535
-
2536
2752
 
2537
2753
 
2538
2754
 
2539
2755
 
2540
2756
 
2541
2757
 
2542
-
2543
2758
 
2544
-
2759
+
2760
+
2761
+
2762
+
2763
+
2545
2764
 
2546
2765
 
2547
2766
  </xsl:variable>
@@ -2879,7 +3098,7 @@
2879
3098
  <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
2880
3099
  <xsl:value-of select="substring($str, 2)"/>
2881
3100
  </xsl:template><xsl:template match="mathml:math">
2882
- <fo:inline font-family="STIX2Math">
3101
+ <fo:inline font-family="STIX Two Math"> <!-- -->
2883
3102
  <xsl:variable name="mathml">
2884
3103
  <xsl:apply-templates select="." mode="mathml"/>
2885
3104
  </xsl:variable>
@@ -2973,7 +3192,7 @@
2973
3192
  <xsl:apply-templates/>
2974
3193
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
2975
3194
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
2976
-
3195
+
2977
3196
  <xsl:apply-templates/>
2978
3197
  </fo:basic-link>
2979
3198
  </xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
@@ -3183,18 +3402,9 @@
3183
3402
  <fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
3184
3403
  <fo:bookmark-title>
3185
3404
  <xsl:variable name="bookmark-title_">
3186
- <xsl:choose>
3187
- <xsl:when test="@lang = 'en'">
3188
-
3189
-
3190
- </xsl:when>
3191
- <xsl:when test="@lang = 'fr'">
3192
-
3193
-
3194
- </xsl:when>
3195
- <xsl:when test="@lang = 'de'">Deutsche</xsl:when>
3196
- <xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
3197
- </xsl:choose>
3405
+ <xsl:call-template name="getLangVersion">
3406
+ <xsl:with-param name="lang" select="@lang"/>
3407
+ </xsl:call-template>
3198
3408
  </xsl:variable>
3199
3409
  <xsl:choose>
3200
3410
  <xsl:when test="normalize-space($bookmark-title_) != ''">
@@ -3236,6 +3446,20 @@
3236
3446
 
3237
3447
  </fo:bookmark-tree>
3238
3448
  </xsl:if>
3449
+ </xsl:template><xsl:template name="getLangVersion">
3450
+ <xsl:param name="lang"/>
3451
+ <xsl:choose>
3452
+ <xsl:when test="$lang = 'en'">
3453
+
3454
+
3455
+ </xsl:when>
3456
+ <xsl:when test="$lang = 'fr'">
3457
+
3458
+
3459
+ </xsl:when>
3460
+ <xsl:when test="$lang = 'de'">Deutsche</xsl:when>
3461
+ <xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
3462
+ </xsl:choose>
3239
3463
  </xsl:template><xsl:template match="item" mode="bookmark">
3240
3464
  <fo:bookmark internal-destination="{@id}" starting-state="hide">
3241
3465
  <fo:bookmark-title>
@@ -3254,7 +3478,7 @@
3254
3478
  <xsl:if test="nist:dl">
3255
3479
  <xsl:attribute name="space-before">12pt</xsl:attribute>
3256
3480
  </xsl:if>
3257
-
3481
+
3258
3482
  <xsl:apply-templates/>
3259
3483
  </fo:block>
3260
3484
  </xsl:if>
@@ -3889,6 +4113,7 @@
3889
4113
  </xsl:template><xsl:template match="*[local-name() = 'clause']">
3890
4114
  <fo:block>
3891
4115
  <xsl:call-template name="setId"/>
4116
+
3892
4117
  <xsl:apply-templates/>
3893
4118
  </fo:block>
3894
4119
  </xsl:template><xsl:template match="*[local-name() = 'definitions']">
@@ -3926,6 +4151,7 @@
3926
4151
  </xsl:choose>
3927
4152
  </xsl:attribute>
3928
4153
 
4154
+
3929
4155
  <fo:block-container margin-left="0mm">
3930
4156
  <fo:block>
3931
4157
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -4111,6 +4337,7 @@
4111
4337
 
4112
4338
 
4113
4339
 
4340
+
4114
4341
 
4115
4342
  </xsl:variable>
4116
4343
  <xsl:choose>
@@ -4125,6 +4352,7 @@
4125
4352
  <dc:creator>
4126
4353
 
4127
4354
 
4355
+
4128
4356
  <xsl:for-each select="/*/*[local-name() = 'bibdata']/*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
4129
4357
  <xsl:value-of select="*[local-name() = 'person']/*[local-name() = 'name']/*[local-name() = 'completename']"/>
4130
4358
  <xsl:if test="position() != last()">; </xsl:if>
@@ -4139,6 +4367,7 @@
4139
4367
  <xsl:copy-of select="/*/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
4140
4368
 
4141
4369
 
4370
+
4142
4371
  </xsl:variable>
4143
4372
  <xsl:value-of select="normalize-space($abstract)"/>
4144
4373
  </dc:description>