metanorma-ogc 1.2.4 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +62 -0
- data/README.adoc +3 -4
- data/lib/asciidoctor/ogc/basicdoc.rng +32 -0
- data/lib/asciidoctor/ogc/boilerplate.xml +2 -2
- data/lib/asciidoctor/ogc/converter.rb +25 -1
- data/lib/asciidoctor/ogc/isodoc.rng +29 -44
- data/lib/asciidoctor/ogc/validate.rb +1 -1
- data/lib/isodoc/ogc/base_convert.rb +0 -1
- data/lib/isodoc/ogc/biblio.rb +1 -0
- data/lib/isodoc/ogc/html/_coverpage.css +6 -0
- data/lib/isodoc/ogc/html/_coverpage.scss +8 -0
- data/lib/isodoc/ogc/html/html_ogc_titlepage.html +3 -3
- data/lib/isodoc/ogc/html/htmlstyle.css +211 -201
- data/lib/isodoc/ogc/html/htmlstyle.scss +4 -4
- data/lib/isodoc/ogc/html/ogc.css +21 -21
- data/lib/isodoc/ogc/html/ogc.scss +21 -21
- data/lib/isodoc/ogc/html/ogc_wp.css +35 -35
- data/lib/isodoc/ogc/html/ogc_wp.scss +35 -35
- data/lib/isodoc/ogc/html/word_ogc_titlepage.html +1 -1
- data/lib/isodoc/ogc/html/wordstyle.css +19 -19
- data/lib/isodoc/ogc/html/wordstyle.scss +19 -19
- data/lib/isodoc/ogc/html/wordstyle_wp.css +23 -23
- data/lib/isodoc/ogc/html/wordstyle_wp.scss +23 -23
- data/lib/isodoc/ogc/html_convert.rb +5 -1
- data/lib/isodoc/ogc/i18n-en.yaml +10 -0
- data/lib/isodoc/ogc/init.rb +1 -1
- data/lib/isodoc/ogc/metadata.rb +1 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +521 -109
- data/lib/isodoc/ogc/ogc.best-practice.xsl +521 -109
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +521 -109
- data/lib/isodoc/ogc/ogc.community-practice.xsl +521 -109
- data/lib/isodoc/ogc/ogc.community-standard.xsl +521 -109
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +521 -109
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +521 -109
- data/lib/isodoc/ogc/ogc.other.xsl +521 -109
- data/lib/isodoc/ogc/ogc.policy.xsl +521 -109
- data/lib/isodoc/ogc/ogc.reference-model.xsl +521 -109
- data/lib/isodoc/ogc/ogc.release-notes.xsl +521 -109
- data/lib/isodoc/ogc/ogc.standard.xsl +521 -109
- data/lib/isodoc/ogc/ogc.test-suite.xsl +521 -109
- data/lib/isodoc/ogc/ogc.user-guide.xsl +521 -109
- data/lib/isodoc/ogc/ogc.white-paper.xsl +470 -88
- data/lib/isodoc/ogc/presentation_xml_convert.rb +25 -0
- data/lib/isodoc/ogc/sections.rb +6 -1
- data/lib/isodoc/ogc/word_convert.rb +8 -1
- data/lib/isodoc/ogc/xref.rb +30 -5
- data/lib/metanorma/ogc.rb +7 -0
- data/lib/metanorma/ogc/fonts_manifest.yaml +6 -0
- data/lib/metanorma/ogc/processor.rb +0 -8
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.gemspec +1 -1
- metadata +6 -7
- data/.github/workflows/macos.yml +0 -38
- data/.github/workflows/ubuntu.yml +0 -56
- data/.github/workflows/windows.yml +0 -40
@@ -91,7 +91,7 @@
|
|
91
91
|
|
92
92
|
<xsl:template match="/">
|
93
93
|
<xsl:call-template name="namespaceCheck"/>
|
94
|
-
<fo:root font-family="Arial,
|
94
|
+
<fo:root font-family="Arial, STIX Two Math, Source Han Sans" font-size="11pt" xml:lang="{$lang}">
|
95
95
|
<fo:layout-master-set>
|
96
96
|
|
97
97
|
<!-- Document pages -->
|
@@ -124,7 +124,7 @@
|
|
124
124
|
</fo:block-container>
|
125
125
|
</fo:block-container>
|
126
126
|
|
127
|
-
<fo:block font-family="Lato
|
127
|
+
<fo:block font-family="Lato" font-weight="300" font-size="14pt" font-style="italic" margin-top="6pt" color="rgb(21, 43, 77)">
|
128
128
|
<xsl:text>Additional context, inspirational quote, etc. fits into this subheading area</xsl:text>
|
129
129
|
</fo:block>
|
130
130
|
|
@@ -269,6 +269,25 @@
|
|
269
269
|
</fo:root>
|
270
270
|
</xsl:template>
|
271
271
|
|
272
|
+
|
273
|
+
<xsl:variable name="thinspace" select="' '"/>
|
274
|
+
|
275
|
+
<!-- Lato font doesn't contain 'thin space' glyph -->
|
276
|
+
<xsl:template match="text()" priority="1">
|
277
|
+
<xsl:value-of select="translate(., $thinspace, ' ')"/>
|
278
|
+
</xsl:template>
|
279
|
+
|
280
|
+
<xsl:template match="text()" priority="3" mode="contents">
|
281
|
+
<xsl:value-of select="translate(., $thinspace, ' ')"/>
|
282
|
+
</xsl:template>
|
283
|
+
|
284
|
+
<xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text()" priority="2">
|
285
|
+
<xsl:variable name="content">
|
286
|
+
<xsl:call-template name="add-zero-spaces"/>
|
287
|
+
</xsl:variable>
|
288
|
+
<xsl:value-of select="translate($content, $thinspace, ' ')"/>
|
289
|
+
</xsl:template>
|
290
|
+
|
272
291
|
<xsl:template match="node()">
|
273
292
|
<xsl:apply-templates/>
|
274
293
|
</xsl:template>
|
@@ -632,13 +651,13 @@
|
|
632
651
|
<xsl:otherwise> <!-- for ordered lists -->
|
633
652
|
<xsl:choose>
|
634
653
|
<xsl:when test="../@type = 'arabic'">
|
635
|
-
<xsl:number format="a)"/>
|
654
|
+
<xsl:number format="a)" lang="en"/>
|
636
655
|
</xsl:when>
|
637
656
|
<xsl:when test="../@type = 'alphabet'">
|
638
657
|
<xsl:number format="1)"/>
|
639
658
|
</xsl:when>
|
640
659
|
<xsl:when test="../@type = 'alphabet_upper'">
|
641
|
-
<xsl:number format="A)"/>
|
660
|
+
<xsl:number format="A)" lang="en"/>
|
642
661
|
</xsl:when>
|
643
662
|
|
644
663
|
<xsl:when test="../@type = 'roman'">
|
@@ -864,7 +883,12 @@
|
|
864
883
|
|
865
884
|
|
866
885
|
</title-toc>
|
867
|
-
<title-toc lang="fr">
|
886
|
+
<title-toc lang="fr">
|
887
|
+
|
888
|
+
<xsl:text>Sommaire</xsl:text>
|
889
|
+
|
890
|
+
|
891
|
+
</title-toc>
|
868
892
|
|
869
893
|
<title-toc lang="zh">Contents</title-toc>
|
870
894
|
|
@@ -884,13 +908,22 @@
|
|
884
908
|
<title-part lang="en">
|
885
909
|
|
886
910
|
|
911
|
+
|
887
912
|
</title-part>
|
888
913
|
<title-part lang="fr">
|
889
914
|
|
890
915
|
|
916
|
+
|
891
917
|
</title-part>
|
892
918
|
<title-part lang="zh">第 # 部分:</title-part>
|
893
919
|
|
920
|
+
<title-subpart lang="en">
|
921
|
+
|
922
|
+
</title-subpart>
|
923
|
+
<title-subpart lang="fr">
|
924
|
+
|
925
|
+
</title-subpart>
|
926
|
+
|
894
927
|
<title-modified lang="en">modified</title-modified>
|
895
928
|
<title-modified lang="fr">modifiée</title-modified>
|
896
929
|
|
@@ -952,10 +985,19 @@
|
|
952
985
|
|
953
986
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
954
987
|
<xsl:param name="name"/>
|
955
|
-
<xsl:
|
956
|
-
|
988
|
+
<xsl:param name="lang"/>
|
989
|
+
<xsl:variable name="lang_">
|
990
|
+
<xsl:choose>
|
991
|
+
<xsl:when test="$lang != ''">
|
992
|
+
<xsl:value-of select="$lang"/>
|
993
|
+
</xsl:when>
|
994
|
+
<xsl:otherwise>
|
995
|
+
<xsl:call-template name="getLang"/>
|
996
|
+
</xsl:otherwise>
|
997
|
+
</xsl:choose>
|
957
998
|
</xsl:variable>
|
958
|
-
<xsl:variable name="
|
999
|
+
<xsl:variable name="language" select="normalize-space($lang_)"/>
|
1000
|
+
<xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $language]"/>
|
959
1001
|
<xsl:choose>
|
960
1002
|
<xsl:when test="normalize-space($title_) != ''">
|
961
1003
|
<xsl:value-of select="$title_"/>
|
@@ -1153,6 +1195,7 @@
|
|
1153
1195
|
|
1154
1196
|
|
1155
1197
|
|
1198
|
+
|
1156
1199
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1157
1200
|
|
1158
1201
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
@@ -1204,6 +1247,7 @@
|
|
1204
1247
|
|
1205
1248
|
|
1206
1249
|
|
1250
|
+
|
1207
1251
|
</xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
|
1208
1252
|
|
1209
1253
|
|
@@ -1284,6 +1328,7 @@
|
|
1284
1328
|
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
1285
1329
|
|
1286
1330
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1331
|
+
|
1287
1332
|
|
1288
1333
|
|
1289
1334
|
|
@@ -1414,6 +1459,10 @@
|
|
1414
1459
|
|
1415
1460
|
|
1416
1461
|
|
1462
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
1463
|
+
<fo:block> </fo:block>
|
1464
|
+
</xsl:if> -->
|
1465
|
+
|
1417
1466
|
<!-- $namespace = 'iso' or -->
|
1418
1467
|
|
1419
1468
|
|
@@ -1444,11 +1493,14 @@
|
|
1444
1493
|
|
1445
1494
|
|
1446
1495
|
<xsl:variable name="colwidths">
|
1447
|
-
<xsl:
|
1448
|
-
<xsl:
|
1449
|
-
|
1450
|
-
|
1496
|
+
<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
|
1497
|
+
<xsl:call-template name="calculate-column-widths">
|
1498
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
1499
|
+
<xsl:with-param name="table" select="$simple-table"/>
|
1500
|
+
</xsl:call-template>
|
1501
|
+
</xsl:if>
|
1451
1502
|
</xsl:variable>
|
1503
|
+
<!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
|
1452
1504
|
|
1453
1505
|
<!-- <xsl:variable name="colwidths2">
|
1454
1506
|
<xsl:call-template name="calculate-column-widths">
|
@@ -1469,37 +1521,107 @@
|
|
1469
1521
|
|
1470
1522
|
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
1471
1523
|
|
1524
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1472
1525
|
|
1473
1526
|
|
1527
|
+
|
1528
|
+
|
1529
|
+
|
1474
1530
|
|
1475
1531
|
|
1476
1532
|
|
1477
1533
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1478
1534
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1479
1535
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
1480
|
-
|
1536
|
+
|
1481
1537
|
|
1482
1538
|
|
1483
1539
|
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1540
|
+
|
1541
|
+
|
1542
|
+
|
1543
|
+
|
1544
|
+
<xsl:variable name="table_attributes">
|
1545
|
+
<attribute name="table-layout">fixed</attribute>
|
1546
|
+
<attribute name="width">100%</attribute>
|
1547
|
+
<attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
|
1548
|
+
<attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
|
1488
1549
|
|
1489
1550
|
|
1490
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1491
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1492
1551
|
|
1493
1552
|
|
1494
1553
|
|
1554
|
+
<attribute name="margin-left">0mm</attribute>
|
1555
|
+
<attribute name="margin-right">0mm</attribute>
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
1495
1559
|
|
1560
|
+
|
1496
1561
|
|
1497
|
-
|
1562
|
+
</xsl:variable>
|
1563
|
+
|
1564
|
+
|
1565
|
+
<fo:table id="{@id}" table-omit-footer-at-break="true">
|
1498
1566
|
|
1567
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
|
1568
|
+
<xsl:attribute name="{@name}">
|
1569
|
+
<xsl:value-of select="."/>
|
1570
|
+
</xsl:attribute>
|
1571
|
+
</xsl:for-each>
|
1499
1572
|
|
1573
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
|
1574
|
+
<xsl:if test="$isNoteOrFnExist = 'true'">
|
1575
|
+
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
1576
|
+
</xsl:if>
|
1500
1577
|
|
1578
|
+
<xsl:choose>
|
1579
|
+
<xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
|
1580
|
+
<xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
|
1581
|
+
<fo:table-column column-width="{@width}"/>
|
1582
|
+
</xsl:for-each>
|
1583
|
+
</xsl:when>
|
1584
|
+
<xsl:otherwise>
|
1585
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1586
|
+
<xsl:choose>
|
1587
|
+
<xsl:when test=". = 1 or . = 0">
|
1588
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
1589
|
+
</xsl:when>
|
1590
|
+
<xsl:otherwise>
|
1591
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
1592
|
+
</xsl:otherwise>
|
1593
|
+
</xsl:choose>
|
1594
|
+
</xsl:for-each>
|
1595
|
+
</xsl:otherwise>
|
1596
|
+
</xsl:choose>
|
1501
1597
|
|
1598
|
+
<xsl:choose>
|
1599
|
+
<xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
|
1600
|
+
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
1601
|
+
</xsl:when>
|
1602
|
+
<xsl:otherwise>
|
1603
|
+
<xsl:apply-templates/>
|
1604
|
+
</xsl:otherwise>
|
1605
|
+
</xsl:choose>
|
1502
1606
|
|
1607
|
+
</fo:table>
|
1608
|
+
|
1609
|
+
<xsl:variable name="colgroup" select="*[local-name()='colgroup']"/>
|
1610
|
+
<xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
|
1611
|
+
<xsl:call-template name="insertTableFooterInSeparateTable">
|
1612
|
+
<xsl:with-param name="table_attributes" select="$table_attributes"/>
|
1613
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
1614
|
+
<xsl:with-param name="colgroup" select="$colgroup"/>
|
1615
|
+
</xsl:call-template>
|
1616
|
+
</xsl:for-each>
|
1617
|
+
|
1618
|
+
<!-- insert footer as table -->
|
1619
|
+
<!-- <fo:table>
|
1620
|
+
<xsl:for-each select="xalan::nodeset($table_attributes)/attribute">
|
1621
|
+
<xsl:attribute name="{@name}">
|
1622
|
+
<xsl:value-of select="."/>
|
1623
|
+
</xsl:attribute>
|
1624
|
+
</xsl:for-each>
|
1503
1625
|
|
1504
1626
|
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1505
1627
|
<xsl:choose>
|
@@ -1511,17 +1633,7 @@
|
|
1511
1633
|
</xsl:otherwise>
|
1512
1634
|
</xsl:choose>
|
1513
1635
|
</xsl:for-each>
|
1514
|
-
|
1515
|
-
<xsl:choose>
|
1516
|
-
<xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
|
1517
|
-
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
1518
|
-
</xsl:when>
|
1519
|
-
<xsl:otherwise>
|
1520
|
-
<xsl:apply-templates/>
|
1521
|
-
</xsl:otherwise>
|
1522
|
-
</xsl:choose>
|
1523
|
-
|
1524
|
-
</fo:table>
|
1636
|
+
</fo:table>-->
|
1525
1637
|
|
1526
1638
|
|
1527
1639
|
|
@@ -1534,6 +1646,7 @@
|
|
1534
1646
|
<xsl:if test="normalize-space() != ''">
|
1535
1647
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1536
1648
|
|
1649
|
+
|
1537
1650
|
<xsl:apply-templates/>
|
1538
1651
|
</fo:block>
|
1539
1652
|
</xsl:if>
|
@@ -1589,6 +1702,13 @@
|
|
1589
1702
|
<xsl:for-each select="xalan:nodeset($table)//tr">
|
1590
1703
|
<xsl:variable name="td_text">
|
1591
1704
|
<xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
|
1705
|
+
|
1706
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
1707
|
+
<xsl:for-each select="*[local-name()='td'][$curr-col]//*[local-name()='math']">
|
1708
|
+
<word><xsl:value-of select="normalize-space(.)"/></word>
|
1709
|
+
</xsl:for-each>
|
1710
|
+
</xsl:if> -->
|
1711
|
+
|
1592
1712
|
</xsl:variable>
|
1593
1713
|
<xsl:variable name="words">
|
1594
1714
|
<xsl:variable name="string_with_added_zerospaces">
|
@@ -1648,11 +1768,14 @@
|
|
1648
1768
|
<xsl:value-of select="*[local-name()='origin']/@citeas"/>
|
1649
1769
|
</xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
|
1650
1770
|
<xsl:value-of select="@target"/>
|
1771
|
+
</xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
|
1772
|
+
<xsl:variable name="math_text" select="normalize-space(.)"/>
|
1773
|
+
<xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
|
1651
1774
|
</xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
|
1652
1775
|
<xsl:param name="cols-count"/>
|
1653
1776
|
<!-- font-weight="bold" -->
|
1654
1777
|
<fo:table-header>
|
1655
|
-
|
1778
|
+
|
1656
1779
|
<xsl:apply-templates/>
|
1657
1780
|
</fo:table-header>
|
1658
1781
|
</xsl:template><xsl:template name="table-header-title">
|
@@ -1677,6 +1800,13 @@
|
|
1677
1800
|
</xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
|
1678
1801
|
<xsl:apply-templates/>
|
1679
1802
|
</xsl:template><xsl:template name="insertTableFooter">
|
1803
|
+
<xsl:param name="cols-count"/>
|
1804
|
+
<xsl:if test="../*[local-name()='tfoot']">
|
1805
|
+
<fo:table-footer>
|
1806
|
+
<xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
|
1807
|
+
</fo:table-footer>
|
1808
|
+
</xsl:if>
|
1809
|
+
</xsl:template><xsl:template name="insertTableFooter2">
|
1680
1810
|
<xsl:param name="cols-count"/>
|
1681
1811
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
1682
1812
|
<xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
|
@@ -1698,11 +1828,29 @@
|
|
1698
1828
|
<!-- fn will be processed inside 'note' processing -->
|
1699
1829
|
|
1700
1830
|
|
1831
|
+
|
1832
|
+
|
1833
|
+
|
1834
|
+
|
1701
1835
|
<!-- except gb -->
|
1702
1836
|
|
1703
1837
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
1704
1838
|
|
1705
1839
|
|
1840
|
+
<!-- show Note under table in preface (ex. abstract) sections -->
|
1841
|
+
<!-- empty, because notes show at page side in main sections -->
|
1842
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
1843
|
+
<xsl:choose>
|
1844
|
+
<xsl:when test="ancestor::*[local-name()='preface']">
|
1845
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
1846
|
+
</xsl:when>
|
1847
|
+
<xsl:otherwise>
|
1848
|
+
<fo:block/>
|
1849
|
+
</xsl:otherwise>
|
1850
|
+
</xsl:choose>
|
1851
|
+
</xsl:if> -->
|
1852
|
+
|
1853
|
+
|
1706
1854
|
<!-- horizontal row separator -->
|
1707
1855
|
|
1708
1856
|
|
@@ -1716,6 +1864,107 @@
|
|
1716
1864
|
</fo:table-footer>
|
1717
1865
|
|
1718
1866
|
</xsl:if>
|
1867
|
+
</xsl:template><xsl:template name="insertTableFooterInSeparateTable">
|
1868
|
+
<xsl:param name="table_attributes"/>
|
1869
|
+
<xsl:param name="colwidths"/>
|
1870
|
+
<xsl:param name="colgroup"/>
|
1871
|
+
|
1872
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
1873
|
+
|
1874
|
+
<xsl:if test="$isNoteOrFnExist = 'true'">
|
1875
|
+
|
1876
|
+
<xsl:variable name="cols-count">
|
1877
|
+
<xsl:choose>
|
1878
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
1879
|
+
<xsl:value-of select="count(xalan:nodeset($colgroup)//*[local-name()='col'])"/>
|
1880
|
+
</xsl:when>
|
1881
|
+
<xsl:otherwise>
|
1882
|
+
<xsl:value-of select="count(xalan:nodeset($colwidths)//column)"/>
|
1883
|
+
</xsl:otherwise>
|
1884
|
+
</xsl:choose>
|
1885
|
+
</xsl:variable>
|
1886
|
+
|
1887
|
+
<fo:table keep-with-previous="always">
|
1888
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
|
1889
|
+
<xsl:choose>
|
1890
|
+
<xsl:when test="@name = 'border-top'">
|
1891
|
+
<xsl:attribute name="{@name}">0pt solid black</xsl:attribute>
|
1892
|
+
</xsl:when>
|
1893
|
+
<xsl:when test="@name = 'border'">
|
1894
|
+
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
1895
|
+
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
1896
|
+
</xsl:when>
|
1897
|
+
<xsl:otherwise>
|
1898
|
+
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
1899
|
+
</xsl:otherwise>
|
1900
|
+
</xsl:choose>
|
1901
|
+
</xsl:for-each>
|
1902
|
+
|
1903
|
+
<xsl:choose>
|
1904
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
1905
|
+
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
1906
|
+
<fo:table-column column-width="{@width}"/>
|
1907
|
+
</xsl:for-each>
|
1908
|
+
</xsl:when>
|
1909
|
+
<xsl:otherwise>
|
1910
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1911
|
+
<xsl:choose>
|
1912
|
+
<xsl:when test=". = 1 or . = 0">
|
1913
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
1914
|
+
</xsl:when>
|
1915
|
+
<xsl:otherwise>
|
1916
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
1917
|
+
</xsl:otherwise>
|
1918
|
+
</xsl:choose>
|
1919
|
+
</xsl:for-each>
|
1920
|
+
</xsl:otherwise>
|
1921
|
+
</xsl:choose>
|
1922
|
+
|
1923
|
+
<fo:table-body>
|
1924
|
+
<fo:table-row>
|
1925
|
+
<fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
|
1926
|
+
|
1927
|
+
|
1928
|
+
|
1929
|
+
<!-- fn will be processed inside 'note' processing -->
|
1930
|
+
|
1931
|
+
|
1932
|
+
|
1933
|
+
|
1934
|
+
|
1935
|
+
|
1936
|
+
|
1937
|
+
<!-- except gb -->
|
1938
|
+
|
1939
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
1940
|
+
|
1941
|
+
|
1942
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
1943
|
+
<xsl:choose>
|
1944
|
+
<xsl:when test="ancestor::*[local-name()='preface']">
|
1945
|
+
show Note under table in preface (ex. abstract) sections
|
1946
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
1947
|
+
</xsl:when>
|
1948
|
+
<xsl:otherwise>
|
1949
|
+
empty, because notes show at page side in main sections
|
1950
|
+
<fo:block/>
|
1951
|
+
</xsl:otherwise>
|
1952
|
+
</xsl:choose>
|
1953
|
+
</xsl:if> -->
|
1954
|
+
|
1955
|
+
|
1956
|
+
<!-- horizontal row separator -->
|
1957
|
+
|
1958
|
+
|
1959
|
+
<!-- fn processing -->
|
1960
|
+
<xsl:call-template name="fn_display"/>
|
1961
|
+
|
1962
|
+
</fo:table-cell>
|
1963
|
+
</fo:table-row>
|
1964
|
+
</fo:table-body>
|
1965
|
+
|
1966
|
+
</fo:table>
|
1967
|
+
</xsl:if>
|
1719
1968
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
1720
1969
|
|
1721
1970
|
<xsl:variable name="cols-count">
|
@@ -1768,8 +2017,12 @@
|
|
1768
2017
|
|
1769
2018
|
</xsl:if>
|
1770
2019
|
|
1771
|
-
|
1772
|
-
|
2020
|
+
|
2021
|
+
|
2022
|
+
|
2023
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
2024
|
+
<xsl:attribute name="height">8mm</xsl:attribute>
|
2025
|
+
</xsl:if> -->
|
1773
2026
|
|
1774
2027
|
<xsl:apply-templates/>
|
1775
2028
|
</fo:table-row>
|
@@ -1799,6 +2052,7 @@
|
|
1799
2052
|
|
1800
2053
|
|
1801
2054
|
|
2055
|
+
|
1802
2056
|
<xsl:if test="@colspan">
|
1803
2057
|
<xsl:attribute name="number-columns-spanned">
|
1804
2058
|
<xsl:value-of select="@colspan"/>
|
@@ -1838,7 +2092,7 @@
|
|
1838
2092
|
|
1839
2093
|
|
1840
2094
|
|
1841
|
-
|
2095
|
+
|
1842
2096
|
|
1843
2097
|
|
1844
2098
|
|
@@ -1849,6 +2103,7 @@
|
|
1849
2103
|
|
1850
2104
|
|
1851
2105
|
|
2106
|
+
|
1852
2107
|
<xsl:if test="@colspan">
|
1853
2108
|
<xsl:attribute name="number-columns-spanned">
|
1854
2109
|
<xsl:value-of select="@colspan"/>
|
@@ -1860,7 +2115,8 @@
|
|
1860
2115
|
</xsl:attribute>
|
1861
2116
|
</xsl:if>
|
1862
2117
|
<xsl:call-template name="display-align"/>
|
1863
|
-
<fo:block>
|
2118
|
+
<fo:block>
|
2119
|
+
|
1864
2120
|
<xsl:apply-templates/>
|
1865
2121
|
</fo:block>
|
1866
2122
|
</fo:table-cell>
|
@@ -1872,14 +2128,17 @@
|
|
1872
2128
|
|
1873
2129
|
|
1874
2130
|
|
2131
|
+
|
2132
|
+
|
1875
2133
|
<fo:inline padding-right="2mm">
|
1876
2134
|
|
1877
2135
|
|
1878
2136
|
|
1879
|
-
|
2137
|
+
|
1880
2138
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
1881
2139
|
|
1882
2140
|
</fo:inline>
|
2141
|
+
|
1883
2142
|
<xsl:apply-templates mode="process"/>
|
1884
2143
|
</fo:block>
|
1885
2144
|
|
@@ -1909,6 +2168,7 @@
|
|
1909
2168
|
|
1910
2169
|
|
1911
2170
|
|
2171
|
+
|
1912
2172
|
<fo:inline font-size="80%" padding-right="5mm" id="{@id}">
|
1913
2173
|
|
1914
2174
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
@@ -1918,12 +2178,15 @@
|
|
1918
2178
|
|
1919
2179
|
|
1920
2180
|
|
2181
|
+
|
1921
2182
|
<xsl:value-of select="@reference"/>
|
1922
2183
|
|
2184
|
+
|
1923
2185
|
</fo:inline>
|
1924
2186
|
<fo:inline>
|
1925
2187
|
|
1926
|
-
<xsl:apply-templates/>
|
2188
|
+
<!-- <xsl:apply-templates /> -->
|
2189
|
+
<xsl:copy-of select="./node()"/>
|
1927
2190
|
</fo:inline>
|
1928
2191
|
</fo:block>
|
1929
2192
|
</xsl:if>
|
@@ -1960,7 +2223,20 @@
|
|
1960
2223
|
<xsl:variable name="following_dl_colwidths">
|
1961
2224
|
<xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
|
1962
2225
|
<xsl:variable name="html-table">
|
1963
|
-
<xsl:variable name="
|
2226
|
+
<xsl:variable name="doc_ns">
|
2227
|
+
|
2228
|
+
</xsl:variable>
|
2229
|
+
<xsl:variable name="ns">
|
2230
|
+
<xsl:choose>
|
2231
|
+
<xsl:when test="normalize-space($doc_ns) != ''">
|
2232
|
+
<xsl:value-of select="normalize-space($doc_ns)"/>
|
2233
|
+
</xsl:when>
|
2234
|
+
<xsl:otherwise>
|
2235
|
+
<xsl:value-of select="substring-before(name(/*), '-')"/>
|
2236
|
+
</xsl:otherwise>
|
2237
|
+
</xsl:choose>
|
2238
|
+
</xsl:variable>
|
2239
|
+
<!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
|
1964
2240
|
<xsl:element name="{$ns}:table">
|
1965
2241
|
<xsl:for-each select="*[local-name() = 'dl'][1]">
|
1966
2242
|
<tbody>
|
@@ -2025,7 +2301,8 @@
|
|
2025
2301
|
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
2026
2302
|
</xsl:if>
|
2027
2303
|
|
2028
|
-
<xsl:apply-templates/>
|
2304
|
+
<!-- <xsl:apply-templates /> -->
|
2305
|
+
<xsl:copy-of select="./node()"/>
|
2029
2306
|
</fo:block>
|
2030
2307
|
</fo:table-cell>
|
2031
2308
|
</fo:table-row>
|
@@ -2049,6 +2326,7 @@
|
|
2049
2326
|
|
2050
2327
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2051
2328
|
|
2329
|
+
|
2052
2330
|
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
|
2053
2331
|
|
2054
2332
|
<xsl:attribute name="internal-destination">
|
@@ -2056,7 +2334,9 @@
|
|
2056
2334
|
<xsl:value-of select="ancestor::*[local-name()='table'][1]/@id"/>
|
2057
2335
|
</xsl:attribute>
|
2058
2336
|
|
2337
|
+
|
2059
2338
|
<xsl:value-of select="@reference"/>
|
2339
|
+
|
2060
2340
|
</fo:basic-link>
|
2061
2341
|
</fo:inline>
|
2062
2342
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -2064,7 +2344,11 @@
|
|
2064
2344
|
<xsl:apply-templates/>
|
2065
2345
|
</fo:inline>
|
2066
2346
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
2067
|
-
<fo:block-container
|
2347
|
+
<fo:block-container>
|
2348
|
+
|
2349
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2350
|
+
|
2351
|
+
|
2068
2352
|
<xsl:if test="parent::*[local-name() = 'note']">
|
2069
2353
|
<xsl:attribute name="margin-left">
|
2070
2354
|
<xsl:choose>
|
@@ -2074,8 +2358,11 @@
|
|
2074
2358
|
</xsl:attribute>
|
2075
2359
|
|
2076
2360
|
</xsl:if>
|
2077
|
-
<fo:block-container
|
2078
|
-
|
2361
|
+
<fo:block-container>
|
2362
|
+
|
2363
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2364
|
+
|
2365
|
+
|
2079
2366
|
<xsl:variable name="parent" select="local-name(..)"/>
|
2080
2367
|
|
2081
2368
|
<xsl:variable name="key_iso">
|
@@ -2089,9 +2376,12 @@
|
|
2089
2376
|
<fo:block margin-bottom="12pt" text-align="left">
|
2090
2377
|
|
2091
2378
|
<xsl:variable name="title-where">
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2379
|
+
|
2380
|
+
|
2381
|
+
<xsl:call-template name="getTitle">
|
2382
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
2383
|
+
</xsl:call-template>
|
2384
|
+
|
2095
2385
|
</xsl:variable>
|
2096
2386
|
<xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
2097
2387
|
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
@@ -2107,9 +2397,12 @@
|
|
2107
2397
|
|
2108
2398
|
|
2109
2399
|
<xsl:variable name="title-where">
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2400
|
+
|
2401
|
+
|
2402
|
+
<xsl:call-template name="getTitle">
|
2403
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
2404
|
+
</xsl:call-template>
|
2405
|
+
|
2113
2406
|
</xsl:variable>
|
2114
2407
|
<xsl:value-of select="$title-where"/>
|
2115
2408
|
</fo:block>
|
@@ -2120,9 +2413,12 @@
|
|
2120
2413
|
|
2121
2414
|
|
2122
2415
|
<xsl:variable name="title-key">
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2416
|
+
|
2417
|
+
|
2418
|
+
<xsl:call-template name="getTitle">
|
2419
|
+
<xsl:with-param name="name" select="'title-key'"/>
|
2420
|
+
</xsl:call-template>
|
2421
|
+
|
2126
2422
|
</xsl:variable>
|
2127
2423
|
<xsl:value-of select="$title-key"/>
|
2128
2424
|
</fo:block>
|
@@ -2154,7 +2450,20 @@
|
|
2154
2450
|
</xsl:choose>
|
2155
2451
|
<!-- create virtual html table for dl/[dt and dd] -->
|
2156
2452
|
<xsl:variable name="html-table">
|
2157
|
-
<xsl:variable name="
|
2453
|
+
<xsl:variable name="doc_ns">
|
2454
|
+
|
2455
|
+
</xsl:variable>
|
2456
|
+
<xsl:variable name="ns">
|
2457
|
+
<xsl:choose>
|
2458
|
+
<xsl:when test="normalize-space($doc_ns) != ''">
|
2459
|
+
<xsl:value-of select="normalize-space($doc_ns)"/>
|
2460
|
+
</xsl:when>
|
2461
|
+
<xsl:otherwise>
|
2462
|
+
<xsl:value-of select="substring-before(name(/*), '-')"/>
|
2463
|
+
</xsl:otherwise>
|
2464
|
+
</xsl:choose>
|
2465
|
+
</xsl:variable>
|
2466
|
+
<!-- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/> -->
|
2158
2467
|
<xsl:element name="{$ns}:table">
|
2159
2468
|
<tbody>
|
2160
2469
|
<xsl:apply-templates mode="dl"/>
|
@@ -2301,6 +2610,7 @@
|
|
2301
2610
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
2302
2611
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2303
2612
|
|
2613
|
+
|
2304
2614
|
<xsl:apply-templates/>
|
2305
2615
|
<!-- <xsl:if test="$namespace = 'gb'">
|
2306
2616
|
<xsl:if test="ancestor::*[local-name()='formula']">
|
@@ -2354,6 +2664,7 @@
|
|
2354
2664
|
</fo:inline>
|
2355
2665
|
</xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
2356
2666
|
<fo:inline font-weight="bold">
|
2667
|
+
|
2357
2668
|
<xsl:apply-templates/>
|
2358
2669
|
</fo:inline>
|
2359
2670
|
</xsl:template><xsl:template match="*[local-name()='sup']">
|
@@ -2367,18 +2678,18 @@
|
|
2367
2678
|
</xsl:template><xsl:template match="*[local-name()='tt']">
|
2368
2679
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
2369
2680
|
<xsl:variable name="_font-size">
|
2370
|
-
|
2371
|
-
|
2372
|
-
|
2373
2681
|
|
2374
2682
|
|
2375
2683
|
|
2376
2684
|
|
2377
2685
|
|
2378
2686
|
|
2379
|
-
|
2380
2687
|
|
2381
|
-
|
2688
|
+
|
2689
|
+
|
2690
|
+
|
2691
|
+
|
2692
|
+
10
|
2382
2693
|
|
2383
2694
|
|
2384
2695
|
</xsl:variable>
|
@@ -2682,7 +2993,18 @@
|
|
2682
2993
|
<xsl:with-param name="previousRow" select="$newRow"/>
|
2683
2994
|
</xsl:apply-templates>
|
2684
2995
|
</xsl:template><xsl:template name="getLang">
|
2685
|
-
<xsl:variable name="
|
2996
|
+
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
2997
|
+
<xsl:variable name="language">
|
2998
|
+
<xsl:choose>
|
2999
|
+
<xsl:when test="$language_current != ''">
|
3000
|
+
<xsl:value-of select="$language_current"/>
|
3001
|
+
</xsl:when>
|
3002
|
+
<xsl:otherwise>
|
3003
|
+
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
3004
|
+
</xsl:otherwise>
|
3005
|
+
</xsl:choose>
|
3006
|
+
</xsl:variable>
|
3007
|
+
|
2686
3008
|
<xsl:choose>
|
2687
3009
|
<xsl:when test="$language = 'English'">en</xsl:when>
|
2688
3010
|
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
@@ -2716,7 +3038,8 @@
|
|
2716
3038
|
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
|
2717
3039
|
<xsl:value-of select="substring($str, 2)"/>
|
2718
3040
|
</xsl:template><xsl:template match="mathml:math">
|
2719
|
-
<fo:inline font-family="
|
3041
|
+
<fo:inline font-family="STIX Two Math"> <!-- -->
|
3042
|
+
|
2720
3043
|
<xsl:variable name="mathml">
|
2721
3044
|
<xsl:apply-templates select="." mode="mathml"/>
|
2722
3045
|
</xsl:variable>
|
@@ -2746,6 +3069,7 @@
|
|
2746
3069
|
</xsl:choose>
|
2747
3070
|
</xsl:variable>
|
2748
3071
|
<fo:inline xsl:use-attribute-sets="link-style">
|
3072
|
+
|
2749
3073
|
<xsl:choose>
|
2750
3074
|
<xsl:when test="$target = ''">
|
2751
3075
|
<xsl:apply-templates/>
|
@@ -2799,10 +3123,14 @@
|
|
2799
3123
|
</fo:inline>
|
2800
3124
|
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
2801
3125
|
<xsl:variable name="title-modified">
|
2802
|
-
|
2803
|
-
|
2804
|
-
|
3126
|
+
|
3127
|
+
|
3128
|
+
<xsl:call-template name="getTitle">
|
3129
|
+
<xsl:with-param name="name" select="'title-modified'"/>
|
3130
|
+
</xsl:call-template>
|
3131
|
+
|
2805
3132
|
</xsl:variable>
|
3133
|
+
|
2806
3134
|
<xsl:choose>
|
2807
3135
|
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
|
2808
3136
|
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
|
@@ -2810,7 +3138,7 @@
|
|
2810
3138
|
<xsl:apply-templates/>
|
2811
3139
|
</xsl:template><xsl:template match="*[local-name() = 'xref']">
|
2812
3140
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
2813
|
-
|
3141
|
+
|
2814
3142
|
<xsl:apply-templates/>
|
2815
3143
|
</fo:basic-link>
|
2816
3144
|
</xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
|
@@ -2867,6 +3195,8 @@
|
|
2867
3195
|
|
2868
3196
|
|
2869
3197
|
|
3198
|
+
|
3199
|
+
|
2870
3200
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
2871
3201
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
2872
3202
|
</fo:inline>
|
@@ -2957,7 +3287,8 @@
|
|
2957
3287
|
</fo:inline>
|
2958
3288
|
</xsl:if>
|
2959
3289
|
</xsl:template><xsl:template match="*[local-name() = 'figure']">
|
2960
|
-
<fo:block-container id="{@id}">
|
3290
|
+
<fo:block-container id="{@id}">
|
3291
|
+
|
2961
3292
|
<fo:block>
|
2962
3293
|
<xsl:apply-templates/>
|
2963
3294
|
</fo:block>
|
@@ -3008,7 +3339,7 @@
|
|
3008
3339
|
<xsl:apply-templates mode="bookmarks"/>
|
3009
3340
|
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
3010
3341
|
<xsl:apply-templates select="."/>
|
3011
|
-
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
3342
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
3012
3343
|
<xsl:apply-templates mode="bookmarks"/>
|
3013
3344
|
</xsl:template><xsl:template name="addBookmarks">
|
3014
3345
|
<xsl:param name="contents"/>
|
@@ -3022,18 +3353,9 @@
|
|
3022
3353
|
<fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
|
3023
3354
|
<fo:bookmark-title>
|
3024
3355
|
<xsl:variable name="bookmark-title_">
|
3025
|
-
<xsl:
|
3026
|
-
<xsl:
|
3027
|
-
|
3028
|
-
|
3029
|
-
</xsl:when>
|
3030
|
-
<xsl:when test="@lang = 'fr'">
|
3031
|
-
|
3032
|
-
|
3033
|
-
</xsl:when>
|
3034
|
-
<xsl:when test="@lang = 'de'">Deutsche</xsl:when>
|
3035
|
-
<xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
|
3036
|
-
</xsl:choose>
|
3356
|
+
<xsl:call-template name="getLangVersion">
|
3357
|
+
<xsl:with-param name="lang" select="@lang"/>
|
3358
|
+
</xsl:call-template>
|
3037
3359
|
</xsl:variable>
|
3038
3360
|
<xsl:choose>
|
3039
3361
|
<xsl:when test="normalize-space($bookmark-title_) != ''">
|
@@ -3086,6 +3408,20 @@
|
|
3086
3408
|
|
3087
3409
|
</fo:bookmark-tree>
|
3088
3410
|
</xsl:if>
|
3411
|
+
</xsl:template><xsl:template name="getLangVersion">
|
3412
|
+
<xsl:param name="lang"/>
|
3413
|
+
<xsl:choose>
|
3414
|
+
<xsl:when test="$lang = 'en'">
|
3415
|
+
|
3416
|
+
|
3417
|
+
</xsl:when>
|
3418
|
+
<xsl:when test="$lang = 'fr'">
|
3419
|
+
|
3420
|
+
|
3421
|
+
</xsl:when>
|
3422
|
+
<xsl:when test="$lang = 'de'">Deutsche</xsl:when>
|
3423
|
+
<xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
|
3424
|
+
</xsl:choose>
|
3089
3425
|
</xsl:template><xsl:template match="item" mode="bookmark">
|
3090
3426
|
<fo:bookmark internal-destination="{@id}" starting-state="hide">
|
3091
3427
|
<fo:bookmark-title>
|
@@ -3100,7 +3436,7 @@
|
|
3100
3436
|
</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">
|
3101
3437
|
<xsl:if test="normalize-space() != ''">
|
3102
3438
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
3103
|
-
|
3439
|
+
|
3104
3440
|
<xsl:apply-templates/>
|
3105
3441
|
</fo:block>
|
3106
3442
|
</xsl:if>
|
@@ -3545,9 +3881,14 @@
|
|
3545
3881
|
|
3546
3882
|
<fo:inline>
|
3547
3883
|
|
3548
|
-
|
3549
|
-
|
3550
|
-
|
3884
|
+
|
3885
|
+
|
3886
|
+
|
3887
|
+
<xsl:call-template name="getTitle">
|
3888
|
+
<xsl:with-param name="name" select="'title-source'"/>
|
3889
|
+
</xsl:call-template>
|
3890
|
+
|
3891
|
+
|
3551
3892
|
<xsl:text>: </xsl:text>
|
3552
3893
|
</fo:inline>
|
3553
3894
|
|
@@ -3703,9 +4044,12 @@
|
|
3703
4044
|
</fo:block>
|
3704
4045
|
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
3705
4046
|
<xsl:variable name="title-deprecated">
|
3706
|
-
|
3707
|
-
|
3708
|
-
|
4047
|
+
|
4048
|
+
|
4049
|
+
<xsl:call-template name="getTitle">
|
4050
|
+
<xsl:with-param name="name" select="'title-deprecated'"/>
|
4051
|
+
</xsl:call-template>
|
4052
|
+
|
3709
4053
|
</xsl:variable>
|
3710
4054
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
3711
4055
|
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
@@ -3752,13 +4096,14 @@
|
|
3752
4096
|
</xsl:template><xsl:template match="*[local-name() = 'clause']">
|
3753
4097
|
<fo:block>
|
3754
4098
|
<xsl:call-template name="setId"/>
|
4099
|
+
|
3755
4100
|
<xsl:apply-templates/>
|
3756
4101
|
</fo:block>
|
3757
4102
|
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
3758
4103
|
<fo:block id="{@id}">
|
3759
4104
|
<xsl:apply-templates/>
|
3760
4105
|
</fo:block>
|
3761
|
-
</xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
4106
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/><xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"/><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
3762
4107
|
|
3763
4108
|
<fo:block id="{@id}">
|
3764
4109
|
<xsl:apply-templates/>
|
@@ -3787,6 +4132,7 @@
|
|
3787
4132
|
</xsl:choose>
|
3788
4133
|
</xsl:attribute>
|
3789
4134
|
|
4135
|
+
|
3790
4136
|
<fo:block-container margin-left="0mm">
|
3791
4137
|
<fo:block>
|
3792
4138
|
<xsl:apply-templates select="." mode="ul_ol"/>
|
@@ -3814,7 +4160,8 @@
|
|
3814
4160
|
<fo:table-column column-width="107mm"/>
|
3815
4161
|
<fo:table-column column-width="15mm"/>
|
3816
4162
|
<fo:table-body>
|
3817
|
-
<fo:table-row
|
4163
|
+
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
4164
|
+
|
3818
4165
|
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
3819
4166
|
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
3820
4167
|
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
@@ -3833,6 +4180,10 @@
|
|
3833
4180
|
</fo:table-cell>
|
3834
4181
|
</xsl:template><xsl:template name="processBibitem">
|
3835
4182
|
|
4183
|
+
|
4184
|
+
<!-- end BIPM bibitem processing-->
|
4185
|
+
|
4186
|
+
|
3836
4187
|
<!-- start OGC bibtem processing -->
|
3837
4188
|
<xsl:choose>
|
3838
4189
|
<xsl:when test="*[local-name() = 'formattedref']">
|
@@ -4108,6 +4459,7 @@
|
|
4108
4459
|
<dc:title>
|
4109
4460
|
<xsl:variable name="title">
|
4110
4461
|
|
4462
|
+
|
4111
4463
|
|
4112
4464
|
<xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en']"/>
|
4113
4465
|
|
@@ -4126,6 +4478,7 @@
|
|
4126
4478
|
<dc:creator>
|
4127
4479
|
|
4128
4480
|
|
4481
|
+
|
4129
4482
|
</dc:creator>
|
4130
4483
|
<dc:description>
|
4131
4484
|
<xsl:variable name="abstract">
|
@@ -4135,6 +4488,7 @@
|
|
4135
4488
|
|
4136
4489
|
<xsl:copy-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'abstract']//text()"/>
|
4137
4490
|
|
4491
|
+
|
4138
4492
|
</xsl:variable>
|
4139
4493
|
<xsl:value-of select="normalize-space($abstract)"/>
|
4140
4494
|
</dc:description>
|
@@ -4206,13 +4560,22 @@
|
|
4206
4560
|
</xsl:template><xsl:template name="split">
|
4207
4561
|
<xsl:param name="pText" select="."/>
|
4208
4562
|
<xsl:param name="sep" select="','"/>
|
4563
|
+
<xsl:param name="normalize-space" select="'true'"/>
|
4209
4564
|
<xsl:if test="string-length($pText) >0">
|
4210
4565
|
<item>
|
4211
|
-
<xsl:
|
4566
|
+
<xsl:choose>
|
4567
|
+
<xsl:when test="$normalize-space = 'true'">
|
4568
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
4569
|
+
</xsl:when>
|
4570
|
+
<xsl:otherwise>
|
4571
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
4572
|
+
</xsl:otherwise>
|
4573
|
+
</xsl:choose>
|
4212
4574
|
</item>
|
4213
4575
|
<xsl:call-template name="split">
|
4214
4576
|
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
4215
4577
|
<xsl:with-param name="sep" select="$sep"/>
|
4578
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
4216
4579
|
</xsl:call-template>
|
4217
4580
|
</xsl:if>
|
4218
4581
|
</xsl:template><xsl:template name="getDocumentId">
|
@@ -4278,4 +4641,23 @@
|
|
4278
4641
|
<xsl:with-param name="letter-spacing" select="$letter-spacing"/>
|
4279
4642
|
</xsl:call-template>
|
4280
4643
|
</xsl:if>
|
4644
|
+
</xsl:template><xsl:template name="repeat">
|
4645
|
+
<xsl:param name="char" select="'*'"/>
|
4646
|
+
<xsl:param name="count"/>
|
4647
|
+
<xsl:if test="$count > 0">
|
4648
|
+
<xsl:value-of select="$char"/>
|
4649
|
+
<xsl:call-template name="repeat">
|
4650
|
+
<xsl:with-param name="char" select="$char"/>
|
4651
|
+
<xsl:with-param name="count" select="$count - 1"/>
|
4652
|
+
</xsl:call-template>
|
4653
|
+
</xsl:if>
|
4654
|
+
</xsl:template><xsl:template name="getLocalizedString">
|
4655
|
+
<xsl:param name="key"/>
|
4656
|
+
|
4657
|
+
<xsl:variable name="curr_lang">
|
4658
|
+
<xsl:call-template name="getLang"/>
|
4659
|
+
</xsl:variable>
|
4660
|
+
|
4661
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
4662
|
+
|
4281
4663
|
</xsl:template></xsl:stylesheet>
|