metanorma-ribose 2.1.2 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ribose/ribose.standard.xsl +313 -104
- data/lib/metanorma/ribose/biblio.rng +102 -5
- data/lib/metanorma/ribose/isodoc.rng +33 -0
- data/lib/metanorma/ribose/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3e5554339ef88a5781f72eb9fdb0fc37295921717a71249663cdd19cc89a48f
|
4
|
+
data.tar.gz: e1ab4186e913e210eb445dce3491c2275181fb8ac7d9bd86e3302eb434e96023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9e5a586734f48a2df50c877c25d15cb32bda1399d8548b160668edcebc1793d9f06dc7205099ce3d9946adf8e45464577fc27a75b44e1c713b63b6efb6c1334
|
7
|
+
data.tar.gz: '096ce1ad16fdaccb5f5baf20a7ab29def8fc748d95c5bad53a65d8c6ba17c3b3ca074847904c74ee6a243847d72a4aa4de38c7035a7c96d3673b54c7aeb1ad19'
|
@@ -1359,7 +1359,7 @@
|
|
1359
1359
|
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
|
1360
1360
|
</xsl:otherwise>
|
1361
1361
|
</xsl:choose>
|
1362
|
-
</xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:attribute-set name="root-style">
|
1362
|
+
</xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable><xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable><xsl:variable name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable><xsl:attribute-set name="root-style">
|
1363
1363
|
|
1364
1364
|
|
1365
1365
|
|
@@ -1375,7 +1375,9 @@
|
|
1375
1375
|
|
1376
1376
|
|
1377
1377
|
|
1378
|
-
|
1378
|
+
|
1379
|
+
<xsl:attribute name="font-family">OpenSans, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
1380
|
+
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
1379
1381
|
<xsl:attribute name="font-weight">300</xsl:attribute>
|
1380
1382
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1381
1383
|
<xsl:attribute name="color">rgb(88, 88, 90)</xsl:attribute>
|
@@ -1392,17 +1394,60 @@
|
|
1392
1394
|
</xsl:variable>
|
1393
1395
|
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
|
1394
1396
|
|
1397
|
+
<xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
|
1398
|
+
|
1395
1399
|
<xsl:for-each select="$root-style_/root-style/@*">
|
1400
|
+
|
1396
1401
|
<xsl:choose>
|
1397
|
-
<xsl:when test="local-name() = 'font-family'
|
1402
|
+
<xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
|
1403
|
+
<xsl:when test="local-name() = 'font-family'">
|
1404
|
+
|
1405
|
+
<xsl:variable name="font_regional_prefix">
|
1406
|
+
<xsl:choose>
|
1407
|
+
<xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
|
1408
|
+
<xsl:otherwise>Noto Serif</xsl:otherwise>
|
1409
|
+
</xsl:choose>
|
1410
|
+
</xsl:variable>
|
1411
|
+
|
1398
1412
|
<xsl:attribute name="{local-name()}">
|
1399
|
-
|
1413
|
+
|
1414
|
+
<xsl:variable name="font_extended">
|
1415
|
+
<xsl:choose>
|
1416
|
+
<xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
1417
|
+
<xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
|
1418
|
+
<xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
|
1419
|
+
<xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
|
1420
|
+
<xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
1421
|
+
<xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
|
1422
|
+
</xsl:choose>
|
1423
|
+
</xsl:variable>
|
1424
|
+
<xsl:if test="normalize-space($font_extended) != ''">
|
1425
|
+
<xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
|
1426
|
+
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1427
|
+
</xsl:if>
|
1428
|
+
|
1429
|
+
<xsl:value-of select="."/>
|
1430
|
+
|
1431
|
+
<xsl:if test="$additional_fonts != ''">
|
1432
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1433
|
+
</xsl:if>
|
1400
1434
|
</xsl:attribute>
|
1401
1435
|
</xsl:when>
|
1402
1436
|
<xsl:otherwise>
|
1403
1437
|
<xsl:copy-of select="."/>
|
1404
1438
|
</xsl:otherwise>
|
1405
1439
|
</xsl:choose>
|
1440
|
+
|
1441
|
+
<!-- <xsl:choose>
|
1442
|
+
<xsl:when test="local-name() = 'font-family'">
|
1443
|
+
<xsl:attribute name="{local-name()}">
|
1444
|
+
<xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
|
1445
|
+
</xsl:attribute>
|
1446
|
+
</xsl:when>
|
1447
|
+
<xsl:otherwise>
|
1448
|
+
<xsl:copy-of select="."/>
|
1449
|
+
</xsl:otherwise>
|
1450
|
+
</xsl:choose> -->
|
1406
1451
|
</xsl:for-each>
|
1407
1452
|
</xsl:template><xsl:attribute-set name="copyright-statement-style">
|
1408
1453
|
|
@@ -1483,11 +1528,12 @@
|
|
1483
1528
|
|
1484
1529
|
|
1485
1530
|
|
1531
|
+
|
1486
1532
|
|
1487
1533
|
|
1488
1534
|
|
1489
1535
|
|
1490
|
-
<xsl:attribute name="font-family"
|
1536
|
+
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
1491
1537
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1492
1538
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1493
1539
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
@@ -1502,7 +1548,10 @@
|
|
1502
1548
|
|
1503
1549
|
</xsl:attribute-set><xsl:attribute-set name="requirement-style">
|
1504
1550
|
|
1551
|
+
|
1505
1552
|
</xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
|
1553
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1554
|
+
|
1506
1555
|
|
1507
1556
|
</xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
|
1508
1557
|
|
@@ -1528,6 +1577,7 @@
|
|
1528
1577
|
|
1529
1578
|
|
1530
1579
|
|
1580
|
+
|
1531
1581
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1532
1582
|
|
1533
1583
|
|
@@ -1545,6 +1595,7 @@
|
|
1545
1595
|
|
1546
1596
|
|
1547
1597
|
|
1598
|
+
|
1548
1599
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1549
1600
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1550
1601
|
|
@@ -1568,6 +1619,7 @@
|
|
1568
1619
|
|
1569
1620
|
|
1570
1621
|
|
1622
|
+
|
1571
1623
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1572
1624
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
1573
1625
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
@@ -1599,6 +1651,7 @@
|
|
1599
1651
|
|
1600
1652
|
|
1601
1653
|
|
1654
|
+
|
1602
1655
|
|
1603
1656
|
|
1604
1657
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -1607,6 +1660,7 @@
|
|
1607
1660
|
|
1608
1661
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
1609
1662
|
|
1663
|
+
|
1610
1664
|
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
|
1611
1665
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1612
1666
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1628,6 +1682,7 @@
|
|
1628
1682
|
|
1629
1683
|
|
1630
1684
|
|
1685
|
+
|
1631
1686
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1632
1687
|
|
1633
1688
|
|
@@ -1656,6 +1711,7 @@
|
|
1656
1711
|
|
1657
1712
|
|
1658
1713
|
|
1714
|
+
|
1659
1715
|
<xsl:attribute name="border">0pt solid black</xsl:attribute>
|
1660
1716
|
<xsl:attribute name="font-size">9.5pt</xsl:attribute> <!-- 8pt -->
|
1661
1717
|
|
@@ -1667,6 +1723,7 @@
|
|
1667
1723
|
|
1668
1724
|
|
1669
1725
|
|
1726
|
+
|
1670
1727
|
|
1671
1728
|
|
1672
1729
|
|
@@ -1751,6 +1808,7 @@
|
|
1751
1808
|
|
1752
1809
|
|
1753
1810
|
|
1811
|
+
|
1754
1812
|
<xsl:attribute name="border">0pt solid black</xsl:attribute>
|
1755
1813
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
1756
1814
|
|
@@ -1768,7 +1826,7 @@
|
|
1768
1826
|
|
1769
1827
|
|
1770
1828
|
|
1771
|
-
|
1829
|
+
|
1772
1830
|
|
1773
1831
|
|
1774
1832
|
|
@@ -1785,6 +1843,7 @@
|
|
1785
1843
|
|
1786
1844
|
|
1787
1845
|
|
1846
|
+
|
1788
1847
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
1789
1848
|
|
1790
1849
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-style">
|
@@ -1795,6 +1854,8 @@
|
|
1795
1854
|
|
1796
1855
|
|
1797
1856
|
|
1857
|
+
|
1858
|
+
|
1798
1859
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
|
1799
1860
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1800
1861
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -1810,6 +1871,7 @@
|
|
1810
1871
|
|
1811
1872
|
|
1812
1873
|
|
1874
|
+
|
1813
1875
|
</xsl:attribute-set><xsl:attribute-set name="fn-container-body-style">
|
1814
1876
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
1815
1877
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
@@ -1844,6 +1906,7 @@
|
|
1844
1906
|
|
1845
1907
|
|
1846
1908
|
|
1909
|
+
|
1847
1910
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1848
1911
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1849
1912
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
@@ -1856,6 +1919,7 @@
|
|
1856
1919
|
|
1857
1920
|
|
1858
1921
|
|
1922
|
+
|
1859
1923
|
|
1860
1924
|
|
1861
1925
|
|
@@ -1909,6 +1973,7 @@
|
|
1909
1973
|
|
1910
1974
|
|
1911
1975
|
|
1976
|
+
|
1912
1977
|
|
1913
1978
|
|
1914
1979
|
|
@@ -1954,7 +2019,8 @@
|
|
1954
2019
|
|
1955
2020
|
|
1956
2021
|
|
1957
|
-
|
2022
|
+
|
2023
|
+
|
1958
2024
|
|
1959
2025
|
|
1960
2026
|
|
@@ -1970,6 +2036,7 @@
|
|
1970
2036
|
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
1971
2037
|
|
1972
2038
|
|
2039
|
+
|
1973
2040
|
|
1974
2041
|
|
1975
2042
|
|
@@ -1986,6 +2053,8 @@
|
|
1986
2053
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
1987
2054
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
1988
2055
|
|
2056
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
|
2057
|
+
|
1989
2058
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1990
2059
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
1991
2060
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
@@ -2045,6 +2114,7 @@
|
|
2045
2114
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
2046
2115
|
|
2047
2116
|
|
2117
|
+
|
2048
2118
|
|
2049
2119
|
|
2050
2120
|
|
@@ -2093,6 +2163,7 @@
|
|
2093
2163
|
|
2094
2164
|
|
2095
2165
|
|
2166
|
+
|
2096
2167
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
2097
2168
|
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
2098
2169
|
|
@@ -2114,19 +2185,19 @@
|
|
2114
2185
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
2115
2186
|
|
2116
2187
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
2188
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
2189
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
2190
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
2117
2191
|
|
2118
2192
|
|
2119
|
-
<xsl:attribute name="width">100%</xsl:attribute>
|
2120
2193
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
2121
|
-
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
2122
2194
|
|
2123
2195
|
|
2124
2196
|
|
2125
|
-
|
2126
|
-
|
2197
|
+
|
2127
2198
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
2128
2199
|
|
2129
|
-
<xsl:attribute name="font-family"
|
2200
|
+
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
2130
2201
|
|
2131
2202
|
|
2132
2203
|
|
@@ -2220,6 +2291,7 @@
|
|
2220
2291
|
|
2221
2292
|
|
2222
2293
|
|
2294
|
+
|
2223
2295
|
<xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
|
2224
2296
|
|
2225
2297
|
|
@@ -2296,6 +2368,7 @@
|
|
2296
2368
|
|
2297
2369
|
|
2298
2370
|
|
2371
|
+
|
2299
2372
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
2300
2373
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2301
2374
|
|
@@ -2322,6 +2395,7 @@
|
|
2322
2395
|
|
2323
2396
|
|
2324
2397
|
|
2398
|
+
|
2325
2399
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2326
2400
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2327
2401
|
<xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
|
@@ -2346,6 +2420,7 @@
|
|
2346
2420
|
|
2347
2421
|
|
2348
2422
|
|
2423
|
+
|
2349
2424
|
<xsl:attribute name="font-size">60%</xsl:attribute>
|
2350
2425
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2351
2426
|
|
@@ -2364,6 +2439,7 @@
|
|
2364
2439
|
|
2365
2440
|
|
2366
2441
|
|
2442
|
+
|
2367
2443
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
2368
2444
|
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
2369
2445
|
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
@@ -2373,6 +2449,9 @@
|
|
2373
2449
|
|
2374
2450
|
|
2375
2451
|
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
|
2452
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2453
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2454
|
+
|
2376
2455
|
|
2377
2456
|
|
2378
2457
|
|
@@ -2381,8 +2460,6 @@
|
|
2381
2460
|
|
2382
2461
|
|
2383
2462
|
|
2384
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2385
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2386
2463
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
2387
2464
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
2388
2465
|
|
@@ -2419,6 +2496,7 @@
|
|
2419
2496
|
|
2420
2497
|
|
2421
2498
|
|
2499
|
+
|
2422
2500
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
2423
2501
|
|
2424
2502
|
|
@@ -2452,6 +2530,10 @@
|
|
2452
2530
|
|
2453
2531
|
|
2454
2532
|
|
2533
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
2534
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2535
|
+
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
|
2536
|
+
</xsl:if> -->
|
2455
2537
|
|
2456
2538
|
|
2457
2539
|
|
@@ -2481,16 +2563,19 @@
|
|
2481
2563
|
|
2482
2564
|
|
2483
2565
|
|
2566
|
+
|
2484
2567
|
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
2485
2568
|
<xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
|
2486
2569
|
|
2487
2570
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
|
2488
2571
|
|
2489
2572
|
|
2573
|
+
|
2490
2574
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
2491
2575
|
|
2492
2576
|
|
2493
2577
|
|
2578
|
+
|
2494
2579
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
|
2495
2580
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
2496
2581
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
@@ -2509,6 +2594,7 @@
|
|
2509
2594
|
|
2510
2595
|
|
2511
2596
|
|
2597
|
+
|
2512
2598
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2513
2599
|
|
2514
2600
|
|
@@ -2529,6 +2615,7 @@
|
|
2529
2615
|
|
2530
2616
|
|
2531
2617
|
|
2618
|
+
|
2532
2619
|
<xsl:attribute name="font-size">60%</xsl:attribute>
|
2533
2620
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2534
2621
|
|
@@ -2548,6 +2635,7 @@
|
|
2548
2635
|
|
2549
2636
|
|
2550
2637
|
|
2638
|
+
|
2551
2639
|
<xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
|
2552
2640
|
|
2553
2641
|
</xsl:attribute-set><xsl:attribute-set name="references-non-normative-style">
|
@@ -2981,6 +3069,8 @@
|
|
2981
3069
|
|
2982
3070
|
|
2983
3071
|
|
3072
|
+
|
3073
|
+
|
2984
3074
|
|
2985
3075
|
|
2986
3076
|
|
@@ -3017,6 +3107,8 @@
|
|
3017
3107
|
|
3018
3108
|
|
3019
3109
|
|
3110
|
+
|
3111
|
+
|
3020
3112
|
</xsl:element>
|
3021
3113
|
</xsl:variable>
|
3022
3114
|
|
@@ -3104,6 +3196,14 @@
|
|
3104
3196
|
|
3105
3197
|
|
3106
3198
|
|
3199
|
+
<xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
|
3200
|
+
<fo:block keep-with-previous="always" line-height="0.1">
|
3201
|
+
<xsl:for-each select="*[local-name()='bookmark']">
|
3202
|
+
<xsl:call-template name="bookmark"/>
|
3203
|
+
</xsl:for-each>
|
3204
|
+
</fo:block>
|
3205
|
+
</xsl:if>
|
3206
|
+
|
3107
3207
|
</fo:block-container>
|
3108
3208
|
</xsl:variable>
|
3109
3209
|
|
@@ -3162,23 +3262,29 @@
|
|
3162
3262
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
3163
3263
|
<xsl:param name="continued"/>
|
3164
3264
|
<xsl:if test="normalize-space() != ''">
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3265
|
+
|
3266
|
+
|
3170
3267
|
|
3171
|
-
|
3172
|
-
|
3268
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
3269
|
+
|
3173
3270
|
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3177
|
-
|
3178
|
-
|
3179
|
-
|
3271
|
+
|
3272
|
+
|
3273
|
+
|
3274
|
+
<xsl:choose>
|
3275
|
+
<xsl:when test="$continued = 'true'">
|
3276
|
+
|
3277
|
+
</xsl:when>
|
3278
|
+
<xsl:otherwise>
|
3279
|
+
<xsl:apply-templates/>
|
3280
|
+
</xsl:otherwise>
|
3281
|
+
</xsl:choose>
|
3282
|
+
|
3283
|
+
|
3284
|
+
</fo:block>
|
3285
|
+
|
3180
3286
|
|
3181
|
-
|
3287
|
+
|
3182
3288
|
</xsl:if>
|
3183
3289
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
3184
3290
|
<xsl:param name="table-row"/>
|
@@ -3576,12 +3682,18 @@
|
|
3576
3682
|
<fo:table-row>
|
3577
3683
|
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
|
3578
3684
|
|
3579
|
-
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
3580
|
-
<xsl:with-param name="continued">true</xsl:with-param>
|
3581
|
-
</xsl:apply-templates>
|
3582
3685
|
|
3583
3686
|
|
3584
3687
|
|
3688
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
3689
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
3690
|
+
</xsl:apply-templates>
|
3691
|
+
|
3692
|
+
|
3693
|
+
|
3694
|
+
|
3695
|
+
|
3696
|
+
|
3585
3697
|
</fo:table-cell>
|
3586
3698
|
</fo:table-row>
|
3587
3699
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -3621,77 +3733,91 @@
|
|
3621
3733
|
</xsl:choose>
|
3622
3734
|
</xsl:variable>
|
3623
3735
|
|
3624
|
-
|
3625
|
-
|
3626
|
-
|
3736
|
+
|
3737
|
+
<xsl:variable name="tableWithNotesAndFootnotes">
|
3738
|
+
|
3739
|
+
<fo:table keep-with-previous="always">
|
3740
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
|
3741
|
+
<xsl:variable name="name" select="local-name()"/>
|
3742
|
+
<xsl:choose>
|
3743
|
+
<xsl:when test="$name = 'border-top'">
|
3744
|
+
<xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
|
3745
|
+
</xsl:when>
|
3746
|
+
<xsl:when test="$name = 'border'">
|
3747
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
3748
|
+
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
3749
|
+
</xsl:when>
|
3750
|
+
<xsl:otherwise>
|
3751
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
3752
|
+
</xsl:otherwise>
|
3753
|
+
</xsl:choose>
|
3754
|
+
</xsl:for-each>
|
3755
|
+
|
3756
|
+
|
3757
|
+
|
3627
3758
|
<xsl:choose>
|
3628
|
-
<xsl:when test="$name
|
3629
|
-
<xsl:
|
3630
|
-
|
3631
|
-
|
3632
|
-
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
3633
|
-
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
3759
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
3760
|
+
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
3761
|
+
<fo:table-column column-width="{@width}"/>
|
3762
|
+
</xsl:for-each>
|
3634
3763
|
</xsl:when>
|
3635
3764
|
<xsl:otherwise>
|
3636
|
-
|
3765
|
+
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
3766
|
+
<xsl:call-template name="insertTableColumnWidth">
|
3767
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
3768
|
+
</xsl:call-template>
|
3637
3769
|
</xsl:otherwise>
|
3638
3770
|
</xsl:choose>
|
3639
|
-
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3645
|
-
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
3646
|
-
<fo:table-column column-width="{@width}"/>
|
3647
|
-
</xsl:for-each>
|
3648
|
-
</xsl:when>
|
3649
|
-
<xsl:otherwise>
|
3650
|
-
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
3651
|
-
<xsl:call-template name="insertTableColumnWidth">
|
3652
|
-
<xsl:with-param name="colwidths" select="$colwidths"/>
|
3653
|
-
</xsl:call-template>
|
3654
|
-
</xsl:otherwise>
|
3655
|
-
</xsl:choose>
|
3656
|
-
|
3657
|
-
<fo:table-body>
|
3658
|
-
<fo:table-row>
|
3659
|
-
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
3660
|
-
|
3661
|
-
|
3771
|
+
|
3772
|
+
<fo:table-body>
|
3773
|
+
<fo:table-row>
|
3774
|
+
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
3775
|
+
|
3776
|
+
|
3662
3777
|
|
3663
|
-
|
3664
|
-
|
3665
|
-
<!-- fn will be processed inside 'note' processing -->
|
3666
|
-
|
3667
|
-
|
3668
|
-
|
3669
|
-
|
3670
|
-
|
3671
|
-
|
3672
|
-
<!-- for BSI (not PAS) display Notes before footnotes -->
|
3673
|
-
|
3674
|
-
|
3675
|
-
<!-- except gb and bsi -->
|
3676
|
-
|
3677
|
-
<xsl:apply-templates select="../*[local-name()='note']"/>
|
3678
3778
|
|
3679
|
-
|
3680
|
-
|
3681
|
-
|
3682
|
-
|
3683
|
-
|
3684
|
-
|
3685
|
-
|
3686
|
-
|
3687
|
-
|
3688
|
-
|
3689
|
-
|
3690
|
-
|
3691
|
-
|
3692
|
-
|
3693
|
-
|
3694
|
-
|
3779
|
+
|
3780
|
+
<!-- fn will be processed inside 'note' processing -->
|
3781
|
+
|
3782
|
+
|
3783
|
+
|
3784
|
+
|
3785
|
+
|
3786
|
+
|
3787
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
3788
|
+
|
3789
|
+
|
3790
|
+
<!-- except gb and bsi -->
|
3791
|
+
|
3792
|
+
<xsl:apply-templates select="../*[local-name()='note']"/>
|
3793
|
+
|
3794
|
+
|
3795
|
+
|
3796
|
+
<!-- horizontal row separator -->
|
3797
|
+
|
3798
|
+
|
3799
|
+
<!-- fn processing -->
|
3800
|
+
|
3801
|
+
<xsl:call-template name="table_fn_display"/>
|
3802
|
+
|
3803
|
+
|
3804
|
+
|
3805
|
+
<!-- for PAS display Notes after footnotes -->
|
3806
|
+
|
3807
|
+
|
3808
|
+
</fo:table-cell>
|
3809
|
+
</fo:table-row>
|
3810
|
+
</fo:table-body>
|
3811
|
+
|
3812
|
+
</fo:table>
|
3813
|
+
</xsl:variable>
|
3814
|
+
|
3815
|
+
<xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
|
3816
|
+
<xsl:copy-of select="$tableWithNotesAndFootnotes"/>
|
3817
|
+
</xsl:if>
|
3818
|
+
|
3819
|
+
|
3820
|
+
|
3695
3821
|
</xsl:if>
|
3696
3822
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
3697
3823
|
|
@@ -3780,6 +3906,9 @@
|
|
3780
3906
|
|
3781
3907
|
|
3782
3908
|
|
3909
|
+
|
3910
|
+
|
3911
|
+
|
3783
3912
|
|
3784
3913
|
|
3785
3914
|
<xsl:call-template name="setTableRowAttributes"/>
|
@@ -3798,6 +3927,8 @@
|
|
3798
3927
|
|
3799
3928
|
|
3800
3929
|
|
3930
|
+
|
3931
|
+
|
3801
3932
|
<xsl:variable name="number"><xsl:number/></xsl:variable>
|
3802
3933
|
<xsl:if test="$number mod 2 = 0">
|
3803
3934
|
<xsl:attribute name="background-color">rgb(254, 247, 228)</xsl:attribute>
|
@@ -3885,6 +4016,8 @@
|
|
3885
4016
|
|
3886
4017
|
|
3887
4018
|
|
4019
|
+
|
4020
|
+
|
3888
4021
|
|
3889
4022
|
|
3890
4023
|
|
@@ -3956,7 +4089,11 @@
|
|
3956
4089
|
|
3957
4090
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
3958
4091
|
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
3959
|
-
<xsl:variable name="
|
4092
|
+
<xsl:variable name="reference_">
|
4093
|
+
<xsl:value-of select="@reference"/>
|
4094
|
+
<xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
|
4095
|
+
</xsl:variable>
|
4096
|
+
<xsl:variable name="reference" select="normalize-space($reference_)"/>
|
3960
4097
|
<!-- fn sequence number in document -->
|
3961
4098
|
<xsl:variable name="current_fn_number">
|
3962
4099
|
<xsl:choose>
|
@@ -3976,6 +4113,7 @@
|
|
3976
4113
|
<xsl:variable name="footnote_inline">
|
3977
4114
|
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
3978
4115
|
|
4116
|
+
|
3979
4117
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
3980
4118
|
<xsl:value-of select="$current_fn_number_text"/>
|
3981
4119
|
</fo:basic-link>
|
@@ -3997,8 +4135,12 @@
|
|
3997
4135
|
<fo:block xsl:use-attribute-sets="fn-body-style">
|
3998
4136
|
|
3999
4137
|
|
4138
|
+
|
4000
4139
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
4001
4140
|
|
4141
|
+
|
4142
|
+
|
4143
|
+
|
4002
4144
|
<xsl:value-of select="$current_fn_number_text"/>
|
4003
4145
|
</fo:inline>
|
4004
4146
|
<xsl:apply-templates/>
|
@@ -4031,7 +4173,7 @@
|
|
4031
4173
|
<xsl:copy-of select="node()"/>
|
4032
4174
|
</fn>
|
4033
4175
|
</xsl:for-each>
|
4034
|
-
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
|
4176
|
+
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='boilerplate']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
|
4035
4177
|
<xsl:sort select="@displayorder" data-type="number"/>
|
4036
4178
|
<xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
|
4037
4179
|
<!-- copy unique fn -->
|
@@ -5685,6 +5827,12 @@
|
|
5685
5827
|
</xsl:variable>
|
5686
5828
|
<fo:inline xsl:use-attribute-sets="link-style">
|
5687
5829
|
|
5830
|
+
<xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
|
5831
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
5832
|
+
</xsl:if>
|
5833
|
+
|
5834
|
+
|
5835
|
+
|
5688
5836
|
|
5689
5837
|
|
5690
5838
|
|
@@ -5697,6 +5845,7 @@
|
|
5697
5845
|
</xsl:if>
|
5698
5846
|
|
5699
5847
|
|
5848
|
+
|
5700
5849
|
<xsl:choose>
|
5701
5850
|
<xsl:when test="$target_text = ''">
|
5702
5851
|
<xsl:apply-templates/>
|
@@ -5909,6 +6058,7 @@
|
|
5909
6058
|
|
5910
6059
|
|
5911
6060
|
|
6061
|
+
|
5912
6062
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
5913
6063
|
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
5914
6064
|
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
@@ -5930,6 +6080,7 @@
|
|
5930
6080
|
</xsl:when>
|
5931
6081
|
<xsl:otherwise>
|
5932
6082
|
|
6083
|
+
|
5933
6084
|
<xsl:text>:</xsl:text>
|
5934
6085
|
|
5935
6086
|
|
@@ -5949,6 +6100,7 @@
|
|
5949
6100
|
</xsl:when>
|
5950
6101
|
<xsl:otherwise>
|
5951
6102
|
|
6103
|
+
|
5952
6104
|
<xsl:text>:</xsl:text>
|
5953
6105
|
|
5954
6106
|
|
@@ -5960,7 +6112,19 @@
|
|
5960
6112
|
<xsl:value-of select="$suffix"/>
|
5961
6113
|
</xsl:if>
|
5962
6114
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
5963
|
-
<
|
6115
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
6116
|
+
<xsl:choose>
|
6117
|
+
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
6118
|
+
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
6119
|
+
<xsl:apply-templates/>
|
6120
|
+
</fo:inline>
|
6121
|
+
</xsl:when>
|
6122
|
+
<xsl:otherwise>
|
6123
|
+
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
6124
|
+
<xsl:apply-templates/>
|
6125
|
+
</fo:block>
|
6126
|
+
</xsl:otherwise>
|
6127
|
+
</xsl:choose>
|
5964
6128
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
5965
6129
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
5966
6130
|
<fo:block id="{@id}">
|
@@ -6715,6 +6879,9 @@
|
|
6715
6879
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
6716
6880
|
|
6717
6881
|
|
6882
|
+
|
6883
|
+
|
6884
|
+
|
6718
6885
|
<xsl:apply-templates/>
|
6719
6886
|
</fo:block>
|
6720
6887
|
</xsl:if>
|
@@ -6775,9 +6942,9 @@
|
|
6775
6942
|
<xsl:apply-templates/>
|
6776
6943
|
</xsl:otherwise>
|
6777
6944
|
</xsl:choose>
|
6778
|
-
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref']" mode="contents">
|
6945
|
+
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
|
6779
6946
|
<xsl:value-of select="."/>
|
6780
|
-
</xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
6947
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
6781
6948
|
<xsl:text> </xsl:text>
|
6782
6949
|
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
6783
6950
|
<xsl:copy>
|
@@ -6853,6 +7020,9 @@
|
|
6853
7020
|
<!-- 9 -->
|
6854
7021
|
|
6855
7022
|
|
7023
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
7024
|
+
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
7025
|
+
</xsl:if> -->
|
6856
7026
|
|
6857
7027
|
|
6858
7028
|
|
@@ -7313,10 +7483,14 @@
|
|
7313
7483
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
7314
7484
|
<xsl:variable name="element">inline
|
7315
7485
|
|
7486
|
+
|
7316
7487
|
</xsl:variable>
|
7317
7488
|
<xsl:choose>
|
7318
7489
|
<xsl:when test="contains($element, 'block')">
|
7319
7490
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
7491
|
+
|
7492
|
+
|
7493
|
+
|
7320
7494
|
<xsl:apply-templates/>
|
7321
7495
|
</fo:block>
|
7322
7496
|
</xsl:when>
|
@@ -7434,6 +7608,7 @@
|
|
7434
7608
|
</xsl:if>
|
7435
7609
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
7436
7610
|
|
7611
|
+
|
7437
7612
|
<xsl:apply-templates/>
|
7438
7613
|
</fo:block>
|
7439
7614
|
</fo:block-container>
|
@@ -7590,6 +7765,8 @@
|
|
7590
7765
|
|
7591
7766
|
|
7592
7767
|
|
7768
|
+
|
7769
|
+
|
7593
7770
|
<fo:basic-link fox:alt-text="{@citeas}">
|
7594
7771
|
<xsl:if test="normalize-space(@citeas) = ''">
|
7595
7772
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
@@ -7650,6 +7827,7 @@
|
|
7650
7827
|
|
7651
7828
|
|
7652
7829
|
|
7830
|
+
|
7653
7831
|
1.5
|
7654
7832
|
|
7655
7833
|
|
@@ -8002,6 +8180,8 @@
|
|
8002
8180
|
|
8003
8181
|
|
8004
8182
|
|
8183
|
+
|
8184
|
+
|
8005
8185
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
8006
8186
|
<xsl:if test="*[1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
8007
8187
|
<xsl:call-template name="append_add-style"/>
|
@@ -8186,7 +8366,7 @@
|
|
8186
8366
|
</xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
|
8187
8367
|
<!-- to split by '_' and other chars -->
|
8188
8368
|
<xsl:call-template name="add-zero-spaces-java"/>
|
8189
|
-
</xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
8369
|
+
</xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
8190
8370
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
8191
8371
|
<fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
|
8192
8372
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
@@ -8259,7 +8439,7 @@
|
|
8259
8439
|
</fo:block>
|
8260
8440
|
|
8261
8441
|
|
8262
|
-
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
|
8442
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
8263
8443
|
|
8264
8444
|
|
8265
8445
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
@@ -8268,7 +8448,7 @@
|
|
8268
8448
|
<fo:block>
|
8269
8449
|
<fo:inline>
|
8270
8450
|
|
8271
|
-
<xsl:number format="1."/>
|
8451
|
+
<xsl:number format="1." count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
8272
8452
|
|
8273
8453
|
</fo:inline>
|
8274
8454
|
</fo:block>
|
@@ -8292,6 +8472,7 @@
|
|
8292
8472
|
</fo:list-item-body>
|
8293
8473
|
</fo:list-item>
|
8294
8474
|
</fo:list-block>
|
8475
|
+
<!-- rsd -->
|
8295
8476
|
|
8296
8477
|
|
8297
8478
|
</xsl:template><xsl:template name="processBibitem">
|
@@ -8615,12 +8796,16 @@
|
|
8615
8796
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
8616
8797
|
|
8617
8798
|
|
8799
|
+
|
8800
|
+
|
8618
8801
|
|
8619
8802
|
|
8620
8803
|
|
8621
8804
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
8622
8805
|
|
8623
8806
|
|
8807
|
+
|
8808
|
+
|
8624
8809
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
8625
8810
|
<xsl:call-template name="displayAdmonitionName"/>
|
8626
8811
|
</fo:block>
|
@@ -8829,6 +9014,8 @@
|
|
8829
9014
|
</xsl:when>
|
8830
9015
|
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
8831
9016
|
</xsl:choose>
|
9017
|
+
</xsl:template><xsl:template match="*[local-name() = 'lang_none']">
|
9018
|
+
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
8832
9019
|
</xsl:template><xsl:template name="printEdition">
|
8833
9020
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
8834
9021
|
<xsl:text> </xsl:text>
|
@@ -8935,6 +9122,27 @@
|
|
8935
9122
|
</xsl:when>
|
8936
9123
|
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
|
8937
9124
|
</xsl:choose>
|
9125
|
+
</xsl:template><xsl:template name="getMonthLocalizedByNum">
|
9126
|
+
<xsl:param name="num"/>
|
9127
|
+
<xsl:variable name="monthStr">
|
9128
|
+
<xsl:choose>
|
9129
|
+
<xsl:when test="$num = '01'">january</xsl:when>
|
9130
|
+
<xsl:when test="$num = '02'">february</xsl:when>
|
9131
|
+
<xsl:when test="$num = '03'">march</xsl:when>
|
9132
|
+
<xsl:when test="$num = '04'">april</xsl:when>
|
9133
|
+
<xsl:when test="$num = '05'">may</xsl:when>
|
9134
|
+
<xsl:when test="$num = '06'">june</xsl:when>
|
9135
|
+
<xsl:when test="$num = '07'">july</xsl:when>
|
9136
|
+
<xsl:when test="$num = '08'">august</xsl:when>
|
9137
|
+
<xsl:when test="$num = '09'">september</xsl:when>
|
9138
|
+
<xsl:when test="$num = '10'">october</xsl:when>
|
9139
|
+
<xsl:when test="$num = '11'">november</xsl:when>
|
9140
|
+
<xsl:when test="$num = '12'">december</xsl:when>
|
9141
|
+
</xsl:choose>
|
9142
|
+
</xsl:variable>
|
9143
|
+
<xsl:call-template name="getLocalizedString">
|
9144
|
+
<xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
|
9145
|
+
</xsl:call-template>
|
8938
9146
|
</xsl:template><xsl:template name="insertKeywords">
|
8939
9147
|
<xsl:param name="sorting" select="'true'"/>
|
8940
9148
|
<xsl:param name="charAtEnd" select="'.'"/>
|
@@ -9006,7 +9214,7 @@
|
|
9006
9214
|
<dc:description>
|
9007
9215
|
<xsl:variable name="abstract">
|
9008
9216
|
|
9009
|
-
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
|
9217
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
|
9010
9218
|
|
9011
9219
|
</xsl:variable>
|
9012
9220
|
<xsl:value-of select="normalize-space($abstract)"/>
|
@@ -9131,6 +9339,7 @@
|
|
9131
9339
|
|
9132
9340
|
|
9133
9341
|
|
9342
|
+
|
9134
9343
|
<xsl:value-of select="document('')//*/namespace::rsd"/>
|
9135
9344
|
|
9136
9345
|
|
@@ -623,6 +623,97 @@
|
|
623
623
|
<zeroOrMore>
|
624
624
|
<ref name="bsource"/>
|
625
625
|
</zeroOrMore>
|
626
|
+
<oneOrMore>
|
627
|
+
<ref name="docidentifier"/>
|
628
|
+
</oneOrMore>
|
629
|
+
<optional>
|
630
|
+
<ref name="docnumber"/>
|
631
|
+
</optional>
|
632
|
+
<zeroOrMore>
|
633
|
+
<ref name="bdate"/>
|
634
|
+
</zeroOrMore>
|
635
|
+
<zeroOrMore>
|
636
|
+
<ref name="contributor"/>
|
637
|
+
</zeroOrMore>
|
638
|
+
<optional>
|
639
|
+
<ref name="edition"/>
|
640
|
+
</optional>
|
641
|
+
<zeroOrMore>
|
642
|
+
<ref name="version"/>
|
643
|
+
</zeroOrMore>
|
644
|
+
<zeroOrMore>
|
645
|
+
<ref name="biblionote"/>
|
646
|
+
</zeroOrMore>
|
647
|
+
<zeroOrMore>
|
648
|
+
<ref name="language"/>
|
649
|
+
</zeroOrMore>
|
650
|
+
<zeroOrMore>
|
651
|
+
<ref name="script"/>
|
652
|
+
</zeroOrMore>
|
653
|
+
<zeroOrMore>
|
654
|
+
<ref name="bibabstract"/>
|
655
|
+
</zeroOrMore>
|
656
|
+
<optional>
|
657
|
+
<ref name="status"/>
|
658
|
+
</optional>
|
659
|
+
<zeroOrMore>
|
660
|
+
<ref name="copyright"/>
|
661
|
+
</zeroOrMore>
|
662
|
+
<zeroOrMore>
|
663
|
+
<ref name="docrelation"/>
|
664
|
+
</zeroOrMore>
|
665
|
+
<zeroOrMore>
|
666
|
+
<ref name="series"/>
|
667
|
+
</zeroOrMore>
|
668
|
+
<optional>
|
669
|
+
<ref name="medium"/>
|
670
|
+
</optional>
|
671
|
+
<zeroOrMore>
|
672
|
+
<ref name="bplace"/>
|
673
|
+
</zeroOrMore>
|
674
|
+
<zeroOrMore>
|
675
|
+
<ref name="bprice"/>
|
676
|
+
</zeroOrMore>
|
677
|
+
<zeroOrMore>
|
678
|
+
<ref name="extent"/>
|
679
|
+
</zeroOrMore>
|
680
|
+
<optional>
|
681
|
+
<ref name="bibliographic_size"/>
|
682
|
+
</optional>
|
683
|
+
<zeroOrMore>
|
684
|
+
<ref name="accesslocation"/>
|
685
|
+
</zeroOrMore>
|
686
|
+
<zeroOrMore>
|
687
|
+
<ref name="license"/>
|
688
|
+
</zeroOrMore>
|
689
|
+
<zeroOrMore>
|
690
|
+
<ref name="bclassification"/>
|
691
|
+
</zeroOrMore>
|
692
|
+
<zeroOrMore>
|
693
|
+
<ref name="bkeyword"/>
|
694
|
+
</zeroOrMore>
|
695
|
+
<optional>
|
696
|
+
<ref name="validity"/>
|
697
|
+
</optional>
|
698
|
+
</define>
|
699
|
+
<define name="ReducedBibliographicItem">
|
700
|
+
<optional>
|
701
|
+
<attribute name="type">
|
702
|
+
<ref name="BibItemType"/>
|
703
|
+
</attribute>
|
704
|
+
</optional>
|
705
|
+
<optional>
|
706
|
+
<ref name="fetched"/>
|
707
|
+
</optional>
|
708
|
+
<optional>
|
709
|
+
<ref name="formattedref"/>
|
710
|
+
</optional>
|
711
|
+
<zeroOrMore>
|
712
|
+
<ref name="btitle"/>
|
713
|
+
</zeroOrMore>
|
714
|
+
<zeroOrMore>
|
715
|
+
<ref name="bsource"/>
|
716
|
+
</zeroOrMore>
|
626
717
|
<zeroOrMore>
|
627
718
|
<ref name="docidentifier"/>
|
628
719
|
</zeroOrMore>
|
@@ -638,9 +729,9 @@
|
|
638
729
|
<optional>
|
639
730
|
<ref name="edition"/>
|
640
731
|
</optional>
|
641
|
-
<
|
732
|
+
<zeroOrMore>
|
642
733
|
<ref name="version"/>
|
643
|
-
</
|
734
|
+
</zeroOrMore>
|
644
735
|
<zeroOrMore>
|
645
736
|
<ref name="biblionote"/>
|
646
737
|
</zeroOrMore>
|
@@ -833,6 +924,12 @@
|
|
833
924
|
<data type="boolean"/>
|
834
925
|
</attribute>
|
835
926
|
</optional>
|
927
|
+
<optional>
|
928
|
+
<attribute name="language"/>
|
929
|
+
</optional>
|
930
|
+
<optional>
|
931
|
+
<attribute name="script"/>
|
932
|
+
</optional>
|
836
933
|
<text/>
|
837
934
|
</element>
|
838
935
|
</define>
|
@@ -1172,7 +1269,7 @@
|
|
1172
1269
|
</element>
|
1173
1270
|
</optional>
|
1174
1271
|
<element name="bibitem">
|
1175
|
-
<ref name="
|
1272
|
+
<ref name="ReducedBibliographicItem"/>
|
1176
1273
|
</element>
|
1177
1274
|
<choice>
|
1178
1275
|
<zeroOrMore>
|
@@ -1197,9 +1294,9 @@
|
|
1197
1294
|
<optional>
|
1198
1295
|
<ref name="revision-date"/>
|
1199
1296
|
</optional>
|
1200
|
-
<
|
1297
|
+
<optional>
|
1201
1298
|
<ref name="draft"/>
|
1202
|
-
</
|
1299
|
+
</optional>
|
1203
1300
|
</element>
|
1204
1301
|
</define>
|
1205
1302
|
<define name="vedition">
|
@@ -69,6 +69,17 @@
|
|
69
69
|
</zeroOrMore>
|
70
70
|
</element>
|
71
71
|
</define>
|
72
|
+
<define name="AdmonitionType">
|
73
|
+
<choice>
|
74
|
+
<value>warning</value>
|
75
|
+
<value>note</value>
|
76
|
+
<value>tip</value>
|
77
|
+
<value>important</value>
|
78
|
+
<value>caution</value>
|
79
|
+
<value>statement</value>
|
80
|
+
<value>editorial</value>
|
81
|
+
</choice>
|
82
|
+
</define>
|
72
83
|
<define name="index">
|
73
84
|
<element name="index">
|
74
85
|
<optional>
|
@@ -116,6 +127,11 @@
|
|
116
127
|
<data type="boolean"/>
|
117
128
|
</attribute>
|
118
129
|
</optional>
|
130
|
+
<optional>
|
131
|
+
<attribute name="suppress_identifier">
|
132
|
+
<data type="boolean"/>
|
133
|
+
</attribute>
|
134
|
+
</optional>
|
119
135
|
<ref name="BibliographicItem"/>
|
120
136
|
</element>
|
121
137
|
</define>
|
@@ -703,6 +719,9 @@
|
|
703
719
|
<optional>
|
704
720
|
<attribute name="tag"/>
|
705
721
|
</optional>
|
722
|
+
<optional>
|
723
|
+
<attribute name="type"/>
|
724
|
+
</optional>
|
706
725
|
<optional>
|
707
726
|
<attribute name="multilingual-rendering">
|
708
727
|
<ref name="MultilingualRenderingType"/>
|
@@ -738,6 +757,9 @@
|
|
738
757
|
<optional>
|
739
758
|
<attribute name="tag"/>
|
740
759
|
</optional>
|
760
|
+
<optional>
|
761
|
+
<attribute name="type"/>
|
762
|
+
</optional>
|
741
763
|
<optional>
|
742
764
|
<attribute name="multilingual-rendering">
|
743
765
|
<ref name="MultilingualRenderingType"/>
|
@@ -2059,6 +2081,7 @@
|
|
2059
2081
|
<value>compare</value>
|
2060
2082
|
<value>contrast</value>
|
2061
2083
|
<value>see</value>
|
2084
|
+
<value>seealso</value>
|
2062
2085
|
</choice>
|
2063
2086
|
</define>
|
2064
2087
|
<define name="deprecates">
|
@@ -2481,6 +2504,16 @@
|
|
2481
2504
|
<text/>
|
2482
2505
|
</element>
|
2483
2506
|
</optional>
|
2507
|
+
<optional>
|
2508
|
+
<element name="amendment">
|
2509
|
+
<text/>
|
2510
|
+
</element>
|
2511
|
+
</optional>
|
2512
|
+
<optional>
|
2513
|
+
<element name="corrigendum">
|
2514
|
+
<text/>
|
2515
|
+
</element>
|
2516
|
+
</optional>
|
2484
2517
|
<optional>
|
2485
2518
|
<element name="language">
|
2486
2519
|
<text/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.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: 2022-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.3.
|
247
|
+
rubygems_version: 3.3.16
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.
|