metanorma-mpfa 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/mpfa/isodoc.rng +0 -1
- data/lib/isodoc/mpfa/html/htmlstyle.css +1 -1
- data/lib/isodoc/mpfa/mpfd.circular.xsl +261 -45
- data/lib/isodoc/mpfa/mpfd.compliance-standards-for-mpf-trustees.xsl +261 -45
- data/lib/isodoc/mpfa/mpfd.guidelines.xsl +261 -45
- data/lib/isodoc/mpfa/mpfd.standards.xsl +261 -45
- data/lib/isodoc/mpfa/mpfd.supervision-of-mpf-intermediaries.xsl +261 -45
- data/lib/metanorma/mpfa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62a96f1d5d303059e7dc8a29e7d3bd18b23b543ca007fbae6ca366a40b740bb0
|
4
|
+
data.tar.gz: 6d7cb703ff990f04ebe42a6920979b56350c15319e6489ffdd7ecfa991b57a59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2b4bdc8f4ca796605864b7ca351aab6a52536723841309841c25230378a274514245461c126ea4c967c6b7e8b066cd8c556e8ef2ca287091737f71b8763a594
|
7
|
+
data.tar.gz: 94139ffd2306c52d8f8c4ac4f0f2797b51575bbc15da80eada6e4765d310f30b9dd4be9ff85a4e892aac4ec41c261df2ba1706e25cb5391d6eced04030c5efc5
|
@@ -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,
|
19
|
+
menu, output, ruby, section, summary,
|
20
20
|
time, mark, audio, video {
|
21
21
|
margin: 0;
|
22
22
|
padding: 0; }
|
@@ -810,7 +810,12 @@
|
|
810
810
|
|
811
811
|
|
812
812
|
</title-toc>
|
813
|
-
<title-toc lang="fr">
|
813
|
+
<title-toc lang="fr">
|
814
|
+
|
815
|
+
<xsl:text>Sommaire</xsl:text>
|
816
|
+
|
817
|
+
|
818
|
+
</title-toc>
|
814
819
|
|
815
820
|
|
816
821
|
|
@@ -896,10 +901,19 @@
|
|
896
901
|
|
897
902
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
898
903
|
<xsl:param name="name"/>
|
899
|
-
<xsl:
|
900
|
-
|
904
|
+
<xsl:param name="lang"/>
|
905
|
+
<xsl:variable name="lang_">
|
906
|
+
<xsl:choose>
|
907
|
+
<xsl:when test="$lang != ''">
|
908
|
+
<xsl:value-of select="$lang"/>
|
909
|
+
</xsl:when>
|
910
|
+
<xsl:otherwise>
|
911
|
+
<xsl:call-template name="getLang"/>
|
912
|
+
</xsl:otherwise>
|
913
|
+
</xsl:choose>
|
901
914
|
</xsl:variable>
|
902
|
-
<xsl:variable name="
|
915
|
+
<xsl:variable name="language" select="normalize-space($lang_)"/>
|
916
|
+
<xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $language]"/>
|
903
917
|
<xsl:choose>
|
904
918
|
<xsl:when test="normalize-space($title_) != ''">
|
905
919
|
<xsl:value-of select="$title_"/>
|
@@ -1036,11 +1050,12 @@
|
|
1036
1050
|
|
1037
1051
|
|
1038
1052
|
|
1039
|
-
|
1053
|
+
|
1040
1054
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
1041
1055
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1042
1056
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1043
1057
|
|
1058
|
+
|
1044
1059
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1045
1060
|
|
1046
1061
|
|
@@ -1261,6 +1276,8 @@
|
|
1261
1276
|
|
1262
1277
|
|
1263
1278
|
|
1279
|
+
|
1280
|
+
|
1264
1281
|
<!-- $namespace = 'iso' or -->
|
1265
1282
|
|
1266
1283
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
@@ -1298,6 +1315,7 @@
|
|
1298
1315
|
<xsl:with-param name="table" select="$simple-table"/>
|
1299
1316
|
</xsl:call-template>
|
1300
1317
|
</xsl:variable>
|
1318
|
+
<!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
|
1301
1319
|
|
1302
1320
|
<!-- <xsl:variable name="colwidths2">
|
1303
1321
|
<xsl:call-template name="calculate-column-widths">
|
@@ -1319,10 +1337,13 @@
|
|
1319
1337
|
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
1320
1338
|
|
1321
1339
|
|
1340
|
+
|
1341
|
+
|
1342
|
+
|
1322
1343
|
|
1323
1344
|
|
1345
|
+
|
1324
1346
|
|
1325
|
-
|
1326
1347
|
|
1327
1348
|
|
1328
1349
|
|
@@ -1330,23 +1351,42 @@
|
|
1330
1351
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1331
1352
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1332
1353
|
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1354
|
+
|
1355
|
+
|
1356
|
+
|
1357
|
+
<xsl:variable name="table_attributes">
|
1358
|
+
<attribute name="table-layout">fixed</attribute>
|
1359
|
+
<attribute name="width">100%</attribute>
|
1360
|
+
<attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
|
1361
|
+
<attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
|
1339
1362
|
|
1340
1363
|
|
1341
1364
|
|
1342
1365
|
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1343
1369
|
|
1344
1370
|
|
1371
|
+
<attribute name="border-top">2pt solid black</attribute>
|
1372
|
+
<attribute name="border-bottom">2pt solid black</attribute>
|
1373
|
+
|
1345
1374
|
|
1375
|
+
</xsl:variable>
|
1376
|
+
|
1377
|
+
|
1378
|
+
<fo:table id="{@id}" table-omit-footer-at-break="true">
|
1346
1379
|
|
1347
|
-
|
1348
|
-
<xsl:attribute name="
|
1380
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
|
1381
|
+
<xsl:attribute name="{@name}">
|
1382
|
+
<xsl:value-of select="."/>
|
1383
|
+
</xsl:attribute>
|
1384
|
+
</xsl:for-each>
|
1349
1385
|
|
1386
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
|
1387
|
+
<xsl:if test="$isNoteOrFnExist = 'true'">
|
1388
|
+
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
1389
|
+
</xsl:if>
|
1350
1390
|
|
1351
1391
|
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1352
1392
|
<xsl:choose>
|
@@ -1370,6 +1410,33 @@
|
|
1370
1410
|
|
1371
1411
|
</fo:table>
|
1372
1412
|
|
1413
|
+
<xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
|
1414
|
+
<xsl:call-template name="insertTableFooterInSeparateTable">
|
1415
|
+
<xsl:with-param name="table_attributes" select="$table_attributes"/>
|
1416
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
1417
|
+
</xsl:call-template>
|
1418
|
+
</xsl:for-each>
|
1419
|
+
|
1420
|
+
<!-- insert footer as table -->
|
1421
|
+
<!-- <fo:table>
|
1422
|
+
<xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
|
1423
|
+
<xsl:attribute name="{@name}">
|
1424
|
+
<xsl:value-of select="."/>
|
1425
|
+
</xsl:attribute>
|
1426
|
+
</xsl:for-each>
|
1427
|
+
|
1428
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1429
|
+
<xsl:choose>
|
1430
|
+
<xsl:when test=". = 1 or . = 0">
|
1431
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
1432
|
+
</xsl:when>
|
1433
|
+
<xsl:otherwise>
|
1434
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
1435
|
+
</xsl:otherwise>
|
1436
|
+
</xsl:choose>
|
1437
|
+
</xsl:for-each>
|
1438
|
+
</fo:table>-->
|
1439
|
+
|
1373
1440
|
|
1374
1441
|
|
1375
1442
|
|
@@ -1434,6 +1501,13 @@
|
|
1434
1501
|
<xsl:for-each select="xalan:nodeset($table)//tr">
|
1435
1502
|
<xsl:variable name="td_text">
|
1436
1503
|
<xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
|
1504
|
+
|
1505
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
1506
|
+
<xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
|
1507
|
+
<word><xsl:value-of select="normalize-space(.)"/></word>
|
1508
|
+
</xsl:for-each>
|
1509
|
+
</xsl:if> -->
|
1510
|
+
|
1437
1511
|
</xsl:variable>
|
1438
1512
|
<xsl:variable name="words">
|
1439
1513
|
<xsl:variable name="string_with_added_zerospaces">
|
@@ -1493,11 +1567,14 @@
|
|
1493
1567
|
<xsl:value-of select="*[local-name()='origin']/@citeas"/>
|
1494
1568
|
</xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
|
1495
1569
|
<xsl:value-of select="@target"/>
|
1570
|
+
</xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
|
1571
|
+
<xsl:variable name="math_text" select="normalize-space(.)"/>
|
1572
|
+
<xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
|
1496
1573
|
</xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
|
1497
1574
|
<xsl:param name="cols-count"/>
|
1498
1575
|
<!-- font-weight="bold" -->
|
1499
1576
|
<fo:table-header>
|
1500
|
-
|
1577
|
+
|
1501
1578
|
<xsl:apply-templates/>
|
1502
1579
|
</fo:table-header>
|
1503
1580
|
</xsl:template><xsl:template name="table-header-title">
|
@@ -1522,6 +1599,13 @@
|
|
1522
1599
|
</xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
|
1523
1600
|
<xsl:apply-templates/>
|
1524
1601
|
</xsl:template><xsl:template name="insertTableFooter">
|
1602
|
+
<xsl:param name="cols-count"/>
|
1603
|
+
<xsl:if test="../*[local-name()='tfoot']">
|
1604
|
+
<fo:table-footer>
|
1605
|
+
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
1606
|
+
</fo:table-footer>
|
1607
|
+
</xsl:if>
|
1608
|
+
</xsl:template><xsl:template name="insertTableFooter2">
|
1525
1609
|
<xsl:param name="cols-count"/>
|
1526
1610
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
1527
1611
|
<xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
|
@@ -1543,11 +1627,15 @@
|
|
1543
1627
|
<!-- fn will be processed inside 'note' processing -->
|
1544
1628
|
|
1545
1629
|
|
1546
|
-
|
1630
|
+
|
1631
|
+
<!-- except gb and bipm -->
|
1547
1632
|
|
1548
1633
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
1549
1634
|
|
1550
1635
|
|
1636
|
+
|
1637
|
+
|
1638
|
+
|
1551
1639
|
<!-- horizontal row separator -->
|
1552
1640
|
|
1553
1641
|
|
@@ -1561,6 +1649,84 @@
|
|
1561
1649
|
</fo:table-footer>
|
1562
1650
|
|
1563
1651
|
</xsl:if>
|
1652
|
+
</xsl:template><xsl:template name="insertTableFooterInSeparateTable">
|
1653
|
+
<xsl:param name="table_attributes"/>
|
1654
|
+
<xsl:param name="colwidths"/>
|
1655
|
+
|
1656
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
1657
|
+
|
1658
|
+
<xsl:if test="$isNoteOrFnExist = 'true'">
|
1659
|
+
|
1660
|
+
<xsl:variable name="cols-count" select="count(xalan:nodeset($colwidths)//column)"/>
|
1661
|
+
|
1662
|
+
<fo:table keep-with-previous="always">
|
1663
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
|
1664
|
+
<xsl:choose>
|
1665
|
+
<xsl:when test="@name = 'border-top'">
|
1666
|
+
<xsl:attribute name="{@name}">0pt solid black</xsl:attribute>
|
1667
|
+
</xsl:when>
|
1668
|
+
<xsl:when test="@name = 'border'">
|
1669
|
+
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
1670
|
+
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
1671
|
+
</xsl:when>
|
1672
|
+
<xsl:otherwise>
|
1673
|
+
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
1674
|
+
</xsl:otherwise>
|
1675
|
+
</xsl:choose>
|
1676
|
+
</xsl:for-each>
|
1677
|
+
|
1678
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1679
|
+
<xsl:choose>
|
1680
|
+
<xsl:when test=". = 1 or . = 0">
|
1681
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
1682
|
+
</xsl:when>
|
1683
|
+
<xsl:otherwise>
|
1684
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
1685
|
+
</xsl:otherwise>
|
1686
|
+
</xsl:choose>
|
1687
|
+
</xsl:for-each>
|
1688
|
+
|
1689
|
+
<fo:table-body>
|
1690
|
+
<fo:table-row>
|
1691
|
+
<fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
|
1692
|
+
|
1693
|
+
|
1694
|
+
|
1695
|
+
<!-- fn will be processed inside 'note' processing -->
|
1696
|
+
|
1697
|
+
|
1698
|
+
|
1699
|
+
<!-- except gb and bipm -->
|
1700
|
+
|
1701
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
1702
|
+
|
1703
|
+
|
1704
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
1705
|
+
<xsl:choose>
|
1706
|
+
<xsl:when test="ancestor::*[local-name()='preface']">
|
1707
|
+
show Note under table in preface (ex. abstract) sections
|
1708
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
1709
|
+
</xsl:when>
|
1710
|
+
<xsl:otherwise>
|
1711
|
+
empty, because notes show at page side in main sections
|
1712
|
+
<fo:block/>
|
1713
|
+
</xsl:otherwise>
|
1714
|
+
</xsl:choose>
|
1715
|
+
</xsl:if> -->
|
1716
|
+
|
1717
|
+
|
1718
|
+
<!-- horizontal row separator -->
|
1719
|
+
|
1720
|
+
|
1721
|
+
<!-- fn processing -->
|
1722
|
+
<xsl:call-template name="fn_display"/>
|
1723
|
+
|
1724
|
+
</fo:table-cell>
|
1725
|
+
</fo:table-row>
|
1726
|
+
</fo:table-body>
|
1727
|
+
|
1728
|
+
</fo:table>
|
1729
|
+
</xsl:if>
|
1564
1730
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
1565
1731
|
|
1566
1732
|
<xsl:variable name="cols-count">
|
@@ -1613,8 +1779,8 @@
|
|
1613
1779
|
|
1614
1780
|
</xsl:if>
|
1615
1781
|
|
1616
|
-
|
1617
|
-
|
1782
|
+
|
1783
|
+
|
1618
1784
|
|
1619
1785
|
<xsl:apply-templates/>
|
1620
1786
|
</fo:table-row>
|
@@ -1639,7 +1805,8 @@
|
|
1639
1805
|
|
1640
1806
|
|
1641
1807
|
<xsl:attribute name="border-top">solid black 2pt</xsl:attribute>
|
1642
|
-
<xsl:attribute name="border-bottom">solid black 2pt</xsl:attribute>
|
1808
|
+
<xsl:attribute name="border-bottom">solid black 2pt</xsl:attribute>
|
1809
|
+
|
1643
1810
|
|
1644
1811
|
<xsl:if test="@colspan">
|
1645
1812
|
<xsl:attribute name="number-columns-spanned">
|
@@ -1680,7 +1847,8 @@
|
|
1680
1847
|
|
1681
1848
|
|
1682
1849
|
|
1683
|
-
|
1850
|
+
|
1851
|
+
|
1684
1852
|
|
1685
1853
|
|
1686
1854
|
|
@@ -1710,14 +1878,17 @@
|
|
1710
1878
|
|
1711
1879
|
|
1712
1880
|
|
1881
|
+
|
1882
|
+
|
1713
1883
|
<fo:inline padding-right="2mm">
|
1714
1884
|
|
1715
1885
|
|
1716
1886
|
|
1717
|
-
|
1887
|
+
|
1718
1888
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
1719
1889
|
|
1720
1890
|
</fo:inline>
|
1891
|
+
|
1721
1892
|
<xsl:apply-templates mode="process"/>
|
1722
1893
|
</fo:block>
|
1723
1894
|
|
@@ -1741,6 +1912,7 @@
|
|
1741
1912
|
|
1742
1913
|
|
1743
1914
|
|
1915
|
+
|
1744
1916
|
<fo:inline font-size="80%" padding-right="5mm" id="{@id}">
|
1745
1917
|
|
1746
1918
|
|
@@ -1748,12 +1920,15 @@
|
|
1748
1920
|
|
1749
1921
|
|
1750
1922
|
|
1923
|
+
|
1751
1924
|
<xsl:value-of select="@reference"/>
|
1752
1925
|
|
1926
|
+
|
1753
1927
|
</fo:inline>
|
1754
1928
|
<fo:inline>
|
1755
1929
|
|
1756
|
-
<xsl:apply-templates/>
|
1930
|
+
<!-- <xsl:apply-templates /> -->
|
1931
|
+
<xsl:copy-of select="./node()"/>
|
1757
1932
|
</fo:inline>
|
1758
1933
|
</fo:block>
|
1759
1934
|
</xsl:if>
|
@@ -1790,7 +1965,20 @@
|
|
1790
1965
|
<xsl:variable name="following_dl_colwidths">
|
1791
1966
|
<xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
|
1792
1967
|
<xsl:variable name="html-table">
|
1793
|
-
<xsl:variable name="
|
1968
|
+
<xsl:variable name="doc_ns">
|
1969
|
+
|
1970
|
+
</xsl:variable>
|
1971
|
+
<xsl:variable name="ns">
|
1972
|
+
<xsl:choose>
|
1973
|
+
<xsl:when test="normalize-space($doc_ns) != ''">
|
1974
|
+
<xsl:value-of select="normalize-space($doc_ns)"/>
|
1975
|
+
</xsl:when>
|
1976
|
+
<xsl:otherwise>
|
1977
|
+
<xsl:value-of select="substring-before(name(/*), '-')"/>
|
1978
|
+
</xsl:otherwise>
|
1979
|
+
</xsl:choose>
|
1980
|
+
</xsl:variable>
|
1981
|
+
<!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
|
1794
1982
|
<xsl:element name="{$ns}:table">
|
1795
1983
|
<xsl:for-each select="*[local-name() = 'dl'][1]">
|
1796
1984
|
<tbody>
|
@@ -1855,7 +2043,8 @@
|
|
1855
2043
|
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
1856
2044
|
</xsl:if>
|
1857
2045
|
|
1858
|
-
<xsl:apply-templates/>
|
2046
|
+
<!-- <xsl:apply-templates /> -->
|
2047
|
+
<xsl:copy-of select="./node()"/>
|
1859
2048
|
</fo:block>
|
1860
2049
|
</fo:table-cell>
|
1861
2050
|
</fo:table-row>
|
@@ -1874,9 +2063,12 @@
|
|
1874
2063
|
|
1875
2064
|
|
1876
2065
|
|
2066
|
+
|
1877
2067
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
1878
2068
|
|
2069
|
+
|
1879
2070
|
<xsl:value-of select="@reference"/>
|
2071
|
+
|
1880
2072
|
</fo:basic-link>
|
1881
2073
|
</fo:inline>
|
1882
2074
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -1974,7 +2166,20 @@
|
|
1974
2166
|
</xsl:choose>
|
1975
2167
|
<!-- create virtual html table for dl/[dt and dd] -->
|
1976
2168
|
<xsl:variable name="html-table">
|
1977
|
-
<xsl:variable name="
|
2169
|
+
<xsl:variable name="doc_ns">
|
2170
|
+
|
2171
|
+
</xsl:variable>
|
2172
|
+
<xsl:variable name="ns">
|
2173
|
+
<xsl:choose>
|
2174
|
+
<xsl:when test="normalize-space($doc_ns) != ''">
|
2175
|
+
<xsl:value-of select="normalize-space($doc_ns)"/>
|
2176
|
+
</xsl:when>
|
2177
|
+
<xsl:otherwise>
|
2178
|
+
<xsl:value-of select="substring-before(name(/*), '-')"/>
|
2179
|
+
</xsl:otherwise>
|
2180
|
+
</xsl:choose>
|
2181
|
+
</xsl:variable>
|
2182
|
+
<!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
|
1978
2183
|
<xsl:element name="{$ns}:table">
|
1979
2184
|
<tbody>
|
1980
2185
|
<xsl:apply-templates mode="dl"/>
|
@@ -2118,6 +2323,7 @@
|
|
2118
2323
|
|
2119
2324
|
|
2120
2325
|
|
2326
|
+
|
2121
2327
|
<xsl:apply-templates/>
|
2122
2328
|
<!-- <xsl:if test="$namespace = 'gb'">
|
2123
2329
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
@@ -2184,18 +2390,18 @@
|
|
2184
2390
|
</xsl:template><xsl:template match="*[local-name()='tt']">
|
2185
2391
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
2186
2392
|
<xsl:variable name="_font-size">
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
2393
|
|
2191
2394
|
|
2192
2395
|
|
2193
2396
|
|
2194
2397
|
|
2195
2398
|
|
2196
|
-
|
2197
2399
|
|
2198
|
-
|
2400
|
+
|
2401
|
+
|
2402
|
+
|
2403
|
+
|
2404
|
+
|
2199
2405
|
|
2200
2406
|
|
2201
2407
|
</xsl:variable>
|
@@ -2533,7 +2739,7 @@
|
|
2533
2739
|
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
|
2534
2740
|
<xsl:value-of select="substring($str, 2)"/>
|
2535
2741
|
</xsl:template><xsl:template match="mathml:math">
|
2536
|
-
<fo:inline font-family="
|
2742
|
+
<fo:inline font-family="STIX Two Math"> <!-- -->
|
2537
2743
|
<xsl:variable name="mathml">
|
2538
2744
|
<xsl:apply-templates select="." mode="mathml"/>
|
2539
2745
|
</xsl:variable>
|
@@ -2627,7 +2833,7 @@
|
|
2627
2833
|
<xsl:apply-templates/>
|
2628
2834
|
</xsl:template><xsl:template match="*[local-name() = 'xref']">
|
2629
2835
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
2630
|
-
|
2836
|
+
|
2631
2837
|
<xsl:apply-templates/>
|
2632
2838
|
</fo:basic-link>
|
2633
2839
|
</xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
|
@@ -2833,18 +3039,9 @@
|
|
2833
3039
|
<fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
|
2834
3040
|
<fo:bookmark-title>
|
2835
3041
|
<xsl:variable name="bookmark-title_">
|
2836
|
-
<xsl:
|
2837
|
-
<xsl:
|
2838
|
-
|
2839
|
-
|
2840
|
-
</xsl:when>
|
2841
|
-
<xsl:when test="@lang = 'fr'">
|
2842
|
-
|
2843
|
-
|
2844
|
-
</xsl:when>
|
2845
|
-
<xsl:when test="@lang = 'de'">Deutsche</xsl:when>
|
2846
|
-
<xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
|
2847
|
-
</xsl:choose>
|
3042
|
+
<xsl:call-template name="getLangVersion">
|
3043
|
+
<xsl:with-param name="lang" select="@lang"/>
|
3044
|
+
</xsl:call-template>
|
2848
3045
|
</xsl:variable>
|
2849
3046
|
<xsl:choose>
|
2850
3047
|
<xsl:when test="normalize-space($bookmark-title_) != ''">
|
@@ -2886,6 +3083,20 @@
|
|
2886
3083
|
|
2887
3084
|
</fo:bookmark-tree>
|
2888
3085
|
</xsl:if>
|
3086
|
+
</xsl:template><xsl:template name="getLangVersion">
|
3087
|
+
<xsl:param name="lang"/>
|
3088
|
+
<xsl:choose>
|
3089
|
+
<xsl:when test="$lang = 'en'">
|
3090
|
+
|
3091
|
+
|
3092
|
+
</xsl:when>
|
3093
|
+
<xsl:when test="$lang = 'fr'">
|
3094
|
+
|
3095
|
+
|
3096
|
+
</xsl:when>
|
3097
|
+
<xsl:when test="$lang = 'de'">Deutsche</xsl:when>
|
3098
|
+
<xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
|
3099
|
+
</xsl:choose>
|
2889
3100
|
</xsl:template><xsl:template match="item" mode="bookmark">
|
2890
3101
|
<fo:bookmark internal-destination="{@id}" starting-state="hide">
|
2891
3102
|
<fo:bookmark-title>
|
@@ -2900,7 +3111,7 @@
|
|
2900
3111
|
</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">
|
2901
3112
|
<xsl:if test="normalize-space() != ''">
|
2902
3113
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
2903
|
-
|
3114
|
+
|
2904
3115
|
<xsl:apply-templates/>
|
2905
3116
|
</fo:block>
|
2906
3117
|
</xsl:if>
|
@@ -3526,6 +3737,7 @@
|
|
3526
3737
|
</xsl:template><xsl:template match="*[local-name() = 'clause']">
|
3527
3738
|
<fo:block>
|
3528
3739
|
<xsl:call-template name="setId"/>
|
3740
|
+
|
3529
3741
|
<xsl:apply-templates/>
|
3530
3742
|
</fo:block>
|
3531
3743
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
@@ -3561,6 +3773,7 @@
|
|
3561
3773
|
</xsl:choose>
|
3562
3774
|
</xsl:attribute>
|
3563
3775
|
|
3776
|
+
|
3564
3777
|
<fo:block-container margin-left="0mm">
|
3565
3778
|
<fo:block>
|
3566
3779
|
<xsl:apply-templates select="." mode="ul_ol"/>
|
@@ -3742,6 +3955,7 @@
|
|
3742
3955
|
<dc:title>
|
3743
3956
|
<xsl:variable name="title">
|
3744
3957
|
|
3958
|
+
|
3745
3959
|
|
3746
3960
|
<xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en']"/>
|
3747
3961
|
|
@@ -3760,6 +3974,7 @@
|
|
3760
3974
|
<dc:creator>
|
3761
3975
|
|
3762
3976
|
|
3977
|
+
|
3763
3978
|
</dc:creator>
|
3764
3979
|
<dc:description>
|
3765
3980
|
<xsl:variable name="abstract">
|
@@ -3767,6 +3982,7 @@
|
|
3767
3982
|
|
3768
3983
|
|
3769
3984
|
|
3985
|
+
|
3770
3986
|
</xsl:variable>
|
3771
3987
|
<xsl:value-of select="normalize-space($abstract)"/>
|
3772
3988
|
</dc:description>
|