metanorma-csa 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/csa/csa.standard.xsl +192 -36
- data/lib/isodoc/csa/presentation_xml_convert.rb +4 -5
- data/lib/metanorma/csa/biblio.rng +102 -5
- data/lib/metanorma/csa/isodoc.rng +7 -0
- data/lib/metanorma/csa/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: 8d12127944138619a1088873e854f29303023218e466bb41a77cb380b1b64553
|
4
|
+
data.tar.gz: cb4309da7e9858c847f530b3070e9901ec164f7c77526ef62f147cc749986d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81168a05a9fd253df364ea202a754a91b083c479c03127b968ff7bf93461bf30673fffc898d61de23673ff97b9e75d09de85d9b024a379cb4365b813e9964ef3
|
7
|
+
data.tar.gz: 891e4aa19dc827ef12002a096a363c2fb43882daba79bee94a52e76ac3f3e203830805eefa74d59979a7545af72150ed6fcf307acba548c05c76de79d0eae439
|
@@ -722,11 +722,12 @@
|
|
722
722
|
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
|
723
723
|
</xsl:otherwise>
|
724
724
|
</xsl:choose>
|
725
|
-
</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">
|
725
|
+
</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">
|
726
726
|
|
727
727
|
|
728
728
|
|
729
|
-
<xsl:attribute name="font-family">Azo Sans, STIX Two Math
|
729
|
+
<xsl:attribute name="font-family">Azo Sans, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
730
|
+
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
730
731
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
731
732
|
|
732
733
|
|
@@ -742,6 +743,7 @@
|
|
742
743
|
|
743
744
|
|
744
745
|
|
746
|
+
|
745
747
|
</xsl:attribute-set><xsl:template name="insertRootStyle">
|
746
748
|
<xsl:param name="root-style"/>
|
747
749
|
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
@@ -753,17 +755,60 @@
|
|
753
755
|
</xsl:variable>
|
754
756
|
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
|
755
757
|
|
758
|
+
<xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
|
759
|
+
|
756
760
|
<xsl:for-each select="$root-style_/root-style/@*">
|
761
|
+
|
757
762
|
<xsl:choose>
|
758
|
-
<xsl:when test="local-name() = 'font-family'
|
763
|
+
<xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
|
764
|
+
<xsl:when test="local-name() = 'font-family'">
|
765
|
+
|
766
|
+
<xsl:variable name="font_regional_prefix">
|
767
|
+
<xsl:choose>
|
768
|
+
<xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
|
769
|
+
<xsl:otherwise>Noto Serif</xsl:otherwise>
|
770
|
+
</xsl:choose>
|
771
|
+
</xsl:variable>
|
772
|
+
|
759
773
|
<xsl:attribute name="{local-name()}">
|
760
|
-
|
774
|
+
|
775
|
+
<xsl:variable name="font_extended">
|
776
|
+
<xsl:choose>
|
777
|
+
<xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
778
|
+
<xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
|
779
|
+
<xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
|
780
|
+
<xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
|
781
|
+
<xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
782
|
+
<xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
|
783
|
+
</xsl:choose>
|
784
|
+
</xsl:variable>
|
785
|
+
<xsl:if test="normalize-space($font_extended) != ''">
|
786
|
+
<xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
|
787
|
+
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
788
|
+
</xsl:if>
|
789
|
+
|
790
|
+
<xsl:value-of select="."/>
|
791
|
+
|
792
|
+
<xsl:if test="$additional_fonts != ''">
|
793
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
794
|
+
</xsl:if>
|
761
795
|
</xsl:attribute>
|
762
796
|
</xsl:when>
|
763
797
|
<xsl:otherwise>
|
764
798
|
<xsl:copy-of select="."/>
|
765
799
|
</xsl:otherwise>
|
766
800
|
</xsl:choose>
|
801
|
+
|
802
|
+
<!-- <xsl:choose>
|
803
|
+
<xsl:when test="local-name() = 'font-family'">
|
804
|
+
<xsl:attribute name="{local-name()}">
|
805
|
+
<xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
|
806
|
+
</xsl:attribute>
|
807
|
+
</xsl:when>
|
808
|
+
<xsl:otherwise>
|
809
|
+
<xsl:copy-of select="."/>
|
810
|
+
</xsl:otherwise>
|
811
|
+
</xsl:choose> -->
|
767
812
|
</xsl:for-each>
|
768
813
|
</xsl:template><xsl:attribute-set name="copyright-statement-style">
|
769
814
|
|
@@ -829,7 +874,7 @@
|
|
829
874
|
<xsl:attribute name="role">Code</xsl:attribute>
|
830
875
|
|
831
876
|
|
832
|
-
<xsl:attribute name="font-family">Source Code Pro
|
877
|
+
<xsl:attribute name="font-family">Source Code Pro, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
833
878
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
834
879
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
835
880
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
@@ -842,6 +887,7 @@
|
|
842
887
|
|
843
888
|
|
844
889
|
|
890
|
+
|
845
891
|
|
846
892
|
|
847
893
|
|
@@ -885,6 +931,7 @@
|
|
885
931
|
|
886
932
|
|
887
933
|
|
934
|
+
|
888
935
|
|
889
936
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
890
937
|
|
@@ -902,6 +949,7 @@
|
|
902
949
|
|
903
950
|
|
904
951
|
|
952
|
+
|
905
953
|
</xsl:attribute-set><xsl:attribute-set name="example-body-style">
|
906
954
|
|
907
955
|
<xsl:attribute name="margin-left">12.5mm</xsl:attribute>
|
@@ -929,6 +977,7 @@
|
|
929
977
|
|
930
978
|
|
931
979
|
|
980
|
+
|
932
981
|
|
933
982
|
|
934
983
|
|
@@ -963,6 +1012,7 @@
|
|
963
1012
|
|
964
1013
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
965
1014
|
|
1015
|
+
|
966
1016
|
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
|
967
1017
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
968
1018
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -985,6 +1035,7 @@
|
|
985
1035
|
|
986
1036
|
|
987
1037
|
|
1038
|
+
|
988
1039
|
|
989
1040
|
|
990
1041
|
|
@@ -1014,6 +1065,7 @@
|
|
1014
1065
|
|
1015
1066
|
|
1016
1067
|
|
1068
|
+
|
1017
1069
|
|
1018
1070
|
|
1019
1071
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
@@ -1022,6 +1074,7 @@
|
|
1022
1074
|
|
1023
1075
|
|
1024
1076
|
|
1077
|
+
|
1025
1078
|
|
1026
1079
|
|
1027
1080
|
|
@@ -1092,6 +1145,7 @@
|
|
1092
1145
|
|
1093
1146
|
|
1094
1147
|
|
1148
|
+
|
1095
1149
|
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
1096
1150
|
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
|
1097
1151
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
@@ -1104,7 +1158,7 @@
|
|
1104
1158
|
|
1105
1159
|
|
1106
1160
|
|
1107
|
-
|
1161
|
+
|
1108
1162
|
|
1109
1163
|
|
1110
1164
|
|
@@ -1119,6 +1173,7 @@
|
|
1119
1173
|
|
1120
1174
|
|
1121
1175
|
|
1176
|
+
|
1122
1177
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-style">
|
1123
1178
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1124
1179
|
|
@@ -1127,6 +1182,8 @@
|
|
1127
1182
|
|
1128
1183
|
|
1129
1184
|
|
1185
|
+
|
1186
|
+
|
1130
1187
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
|
1131
1188
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1132
1189
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -1142,6 +1199,7 @@
|
|
1142
1199
|
|
1143
1200
|
|
1144
1201
|
|
1202
|
+
|
1145
1203
|
</xsl:attribute-set><xsl:attribute-set name="fn-container-body-style">
|
1146
1204
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
1147
1205
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
@@ -1174,6 +1232,7 @@
|
|
1174
1232
|
|
1175
1233
|
|
1176
1234
|
|
1235
|
+
|
1177
1236
|
</xsl:attribute-set><xsl:attribute-set name="dl-name-style">
|
1178
1237
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1179
1238
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
@@ -1182,6 +1241,7 @@
|
|
1182
1241
|
|
1183
1242
|
|
1184
1243
|
|
1244
|
+
|
1185
1245
|
|
1186
1246
|
|
1187
1247
|
|
@@ -1230,6 +1290,7 @@
|
|
1230
1290
|
|
1231
1291
|
|
1232
1292
|
|
1293
|
+
|
1233
1294
|
|
1234
1295
|
|
1235
1296
|
|
@@ -1296,6 +1357,8 @@
|
|
1296
1357
|
|
1297
1358
|
|
1298
1359
|
|
1360
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
|
1361
|
+
|
1299
1362
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1300
1363
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
1301
1364
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
@@ -1354,6 +1417,7 @@
|
|
1354
1417
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1355
1418
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1356
1419
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1420
|
+
|
1357
1421
|
|
1358
1422
|
|
1359
1423
|
|
@@ -1397,6 +1461,7 @@
|
|
1397
1461
|
|
1398
1462
|
|
1399
1463
|
|
1464
|
+
|
1400
1465
|
</xsl:attribute-set><xsl:attribute-set name="formula-stem-number-style">
|
1401
1466
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
1402
1467
|
|
@@ -1415,19 +1480,19 @@
|
|
1415
1480
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1416
1481
|
|
1417
1482
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1483
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
1484
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
1485
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1418
1486
|
|
1419
1487
|
|
1420
|
-
<xsl:attribute name="width">100%</xsl:attribute>
|
1421
1488
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1422
|
-
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1423
1489
|
|
1424
1490
|
|
1425
1491
|
|
1426
|
-
|
1427
|
-
|
1492
|
+
|
1428
1493
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
1429
1494
|
|
1430
|
-
<xsl:attribute name="font-family">Source Code Pro
|
1495
|
+
<xsl:attribute name="font-family">Source Code Pro, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
1431
1496
|
|
1432
1497
|
|
1433
1498
|
|
@@ -1512,6 +1577,7 @@
|
|
1512
1577
|
|
1513
1578
|
|
1514
1579
|
|
1580
|
+
|
1515
1581
|
</xsl:attribute-set><xsl:attribute-set name="list-name-style">
|
1516
1582
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1517
1583
|
|
@@ -1577,6 +1643,7 @@
|
|
1577
1643
|
|
1578
1644
|
|
1579
1645
|
|
1646
|
+
|
1580
1647
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-style">
|
1581
1648
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1582
1649
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
@@ -1606,6 +1673,7 @@
|
|
1606
1673
|
|
1607
1674
|
|
1608
1675
|
|
1676
|
+
|
1609
1677
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
|
1610
1678
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
1611
1679
|
|
@@ -1628,6 +1696,7 @@
|
|
1628
1696
|
|
1629
1697
|
|
1630
1698
|
|
1699
|
+
|
1631
1700
|
</xsl:attribute-set><xsl:attribute-set name="admonition-style">
|
1632
1701
|
|
1633
1702
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
@@ -1649,10 +1718,11 @@
|
|
1649
1718
|
|
1650
1719
|
|
1651
1720
|
|
1721
|
+
|
1652
1722
|
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
|
1723
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1724
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1653
1725
|
|
1654
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1655
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1656
1726
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
1657
1727
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
1658
1728
|
|
@@ -1665,6 +1735,7 @@
|
|
1665
1735
|
|
1666
1736
|
|
1667
1737
|
|
1738
|
+
|
1668
1739
|
</xsl:attribute-set><xsl:attribute-set name="admonition-name-style">
|
1669
1740
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1670
1741
|
|
@@ -1700,6 +1771,7 @@
|
|
1700
1771
|
|
1701
1772
|
|
1702
1773
|
|
1774
|
+
|
1703
1775
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-style">
|
1704
1776
|
|
1705
1777
|
|
@@ -1738,6 +1810,7 @@
|
|
1738
1810
|
|
1739
1811
|
|
1740
1812
|
|
1813
|
+
|
1741
1814
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-style">
|
1742
1815
|
|
1743
1816
|
|
@@ -1760,6 +1833,7 @@
|
|
1760
1833
|
|
1761
1834
|
|
1762
1835
|
|
1836
|
+
|
1763
1837
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
|
1764
1838
|
|
1765
1839
|
|
@@ -1788,6 +1862,7 @@
|
|
1788
1862
|
|
1789
1863
|
|
1790
1864
|
|
1865
|
+
|
1791
1866
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-number-style">
|
1792
1867
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
1793
1868
|
|
@@ -1809,6 +1884,7 @@
|
|
1809
1884
|
|
1810
1885
|
|
1811
1886
|
|
1887
|
+
|
1812
1888
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-body-style">
|
1813
1889
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1814
1890
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -1827,6 +1903,7 @@
|
|
1827
1903
|
|
1828
1904
|
|
1829
1905
|
|
1906
|
+
|
1830
1907
|
</xsl:attribute-set><xsl:attribute-set name="references-non-normative-style">
|
1831
1908
|
|
1832
1909
|
|
@@ -2258,6 +2335,8 @@
|
|
2258
2335
|
|
2259
2336
|
|
2260
2337
|
|
2338
|
+
|
2339
|
+
|
2261
2340
|
|
2262
2341
|
|
2263
2342
|
|
@@ -2297,6 +2376,8 @@
|
|
2297
2376
|
|
2298
2377
|
|
2299
2378
|
|
2379
|
+
|
2380
|
+
|
2300
2381
|
</xsl:element>
|
2301
2382
|
</xsl:variable>
|
2302
2383
|
|
@@ -2442,23 +2523,29 @@
|
|
2442
2523
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
2443
2524
|
<xsl:param name="continued"/>
|
2444
2525
|
<xsl:if test="normalize-space() != ''">
|
2445
|
-
|
2446
|
-
|
2447
|
-
|
2448
|
-
|
2449
|
-
|
2526
|
+
|
2527
|
+
|
2450
2528
|
|
2451
|
-
|
2452
|
-
|
2529
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
2530
|
+
|
2453
2531
|
|
2454
|
-
|
2455
|
-
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
2459
|
-
|
2532
|
+
|
2533
|
+
|
2534
|
+
|
2535
|
+
<xsl:choose>
|
2536
|
+
<xsl:when test="$continued = 'true'">
|
2537
|
+
|
2538
|
+
</xsl:when>
|
2539
|
+
<xsl:otherwise>
|
2540
|
+
<xsl:apply-templates/>
|
2541
|
+
</xsl:otherwise>
|
2542
|
+
</xsl:choose>
|
2543
|
+
|
2544
|
+
|
2545
|
+
</fo:block>
|
2546
|
+
|
2460
2547
|
|
2461
|
-
|
2548
|
+
|
2462
2549
|
</xsl:if>
|
2463
2550
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
2464
2551
|
<xsl:param name="table-row"/>
|
@@ -2856,12 +2943,18 @@
|
|
2856
2943
|
<fo:table-row>
|
2857
2944
|
<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">
|
2858
2945
|
|
2859
|
-
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
2860
|
-
<xsl:with-param name="continued">true</xsl:with-param>
|
2861
|
-
</xsl:apply-templates>
|
2862
2946
|
|
2863
2947
|
|
2864
2948
|
|
2949
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
2950
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
2951
|
+
</xsl:apply-templates>
|
2952
|
+
|
2953
|
+
|
2954
|
+
|
2955
|
+
|
2956
|
+
|
2957
|
+
|
2865
2958
|
</fo:table-cell>
|
2866
2959
|
</fo:table-row>
|
2867
2960
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -2962,7 +3055,10 @@
|
|
2962
3055
|
|
2963
3056
|
|
2964
3057
|
<!-- fn processing -->
|
2965
|
-
|
3058
|
+
|
3059
|
+
<xsl:call-template name="table_fn_display"/>
|
3060
|
+
|
3061
|
+
|
2966
3062
|
|
2967
3063
|
<!-- for PAS display Notes after footnotes -->
|
2968
3064
|
|
@@ -2972,6 +3068,9 @@
|
|
2972
3068
|
</fo:table-body>
|
2973
3069
|
|
2974
3070
|
</fo:table>
|
3071
|
+
|
3072
|
+
|
3073
|
+
|
2975
3074
|
</xsl:if>
|
2976
3075
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
2977
3076
|
|
@@ -3060,6 +3159,9 @@
|
|
3060
3159
|
|
3061
3160
|
|
3062
3161
|
|
3162
|
+
|
3163
|
+
|
3164
|
+
|
3063
3165
|
|
3064
3166
|
|
3065
3167
|
<xsl:call-template name="setTableRowAttributes"/>
|
@@ -3079,6 +3181,8 @@
|
|
3079
3181
|
|
3080
3182
|
|
3081
3183
|
|
3184
|
+
|
3185
|
+
|
3082
3186
|
<xsl:call-template name="setTableRowAttributes"/>
|
3083
3187
|
<xsl:apply-templates/>
|
3084
3188
|
</fo:table-row>
|
@@ -3160,6 +3264,8 @@
|
|
3160
3264
|
|
3161
3265
|
|
3162
3266
|
|
3267
|
+
|
3268
|
+
|
3163
3269
|
|
3164
3270
|
|
3165
3271
|
|
@@ -3231,7 +3337,11 @@
|
|
3231
3337
|
|
3232
3338
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
3233
3339
|
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
3234
|
-
<xsl:variable name="
|
3340
|
+
<xsl:variable name="reference_">
|
3341
|
+
<xsl:value-of select="@reference"/>
|
3342
|
+
<xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
|
3343
|
+
</xsl:variable>
|
3344
|
+
<xsl:variable name="reference" select="normalize-space($reference_)"/>
|
3235
3345
|
<!-- fn sequence number in document -->
|
3236
3346
|
<xsl:variable name="current_fn_number">
|
3237
3347
|
<xsl:choose>
|
@@ -3306,7 +3416,7 @@
|
|
3306
3416
|
<xsl:copy-of select="node()"/>
|
3307
3417
|
</fn>
|
3308
3418
|
</xsl:for-each>
|
3309
|
-
<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']/*">
|
3419
|
+
<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']/*">
|
3310
3420
|
<xsl:sort select="@displayorder" data-type="number"/>
|
3311
3421
|
<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])]">
|
3312
3422
|
<!-- copy unique fn -->
|
@@ -4947,6 +5057,11 @@
|
|
4947
5057
|
</xsl:variable>
|
4948
5058
|
<fo:inline xsl:use-attribute-sets="link-style">
|
4949
5059
|
|
5060
|
+
<xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
|
5061
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
5062
|
+
</xsl:if>
|
5063
|
+
|
5064
|
+
|
4950
5065
|
|
4951
5066
|
|
4952
5067
|
|
@@ -5211,7 +5326,19 @@
|
|
5211
5326
|
<xsl:value-of select="$suffix"/>
|
5212
5327
|
</xsl:if>
|
5213
5328
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
5214
|
-
<
|
5329
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
5330
|
+
<xsl:choose>
|
5331
|
+
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
5332
|
+
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
5333
|
+
<xsl:apply-templates/>
|
5334
|
+
</fo:inline>
|
5335
|
+
</xsl:when>
|
5336
|
+
<xsl:otherwise>
|
5337
|
+
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
5338
|
+
<xsl:apply-templates/>
|
5339
|
+
</fo:block>
|
5340
|
+
</xsl:otherwise>
|
5341
|
+
</xsl:choose>
|
5215
5342
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
5216
5343
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
5217
5344
|
<fo:block id="{@id}">
|
@@ -6028,7 +6155,7 @@
|
|
6028
6155
|
</xsl:choose>
|
6029
6156
|
</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">
|
6030
6157
|
<xsl:value-of select="."/>
|
6031
|
-
</xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
6158
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
6032
6159
|
<xsl:text> </xsl:text>
|
6033
6160
|
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
6034
6161
|
<xsl:copy>
|
@@ -6878,6 +7005,7 @@
|
|
6878
7005
|
|
6879
7006
|
|
6880
7007
|
|
7008
|
+
|
6881
7009
|
</xsl:variable>
|
6882
7010
|
|
6883
7011
|
<xsl:variable name="padding-right">
|
@@ -7496,7 +7624,7 @@
|
|
7496
7624
|
<xsl:variable name="docidentifier">
|
7497
7625
|
<xsl:value-of select="csa:docidentifier[@type = 'metanorma-ordinal']"/>
|
7498
7626
|
<xsl:if test="not(csa:docidentifier[@type = 'metanorma-ordinal'])">
|
7499
|
-
<xsl:number format="[1]"/>
|
7627
|
+
<xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
7500
7628
|
</xsl:if>
|
7501
7629
|
</xsl:variable>
|
7502
7630
|
|
@@ -7844,12 +7972,16 @@
|
|
7844
7972
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
7845
7973
|
|
7846
7974
|
|
7975
|
+
|
7976
|
+
|
7847
7977
|
|
7848
7978
|
|
7849
7979
|
|
7850
7980
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
7851
7981
|
|
7852
7982
|
|
7983
|
+
|
7984
|
+
|
7853
7985
|
<fo:block-container margin-left="0mm" margin-right="0mm">
|
7854
7986
|
<fo:block>
|
7855
7987
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
@@ -8052,6 +8184,8 @@
|
|
8052
8184
|
</xsl:when>
|
8053
8185
|
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
8054
8186
|
</xsl:choose>
|
8187
|
+
</xsl:template><xsl:template match="*[local-name() = 'lang_none']">
|
8188
|
+
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
8055
8189
|
</xsl:template><xsl:template name="printEdition">
|
8056
8190
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
8057
8191
|
<xsl:text> </xsl:text>
|
@@ -8158,6 +8292,27 @@
|
|
8158
8292
|
</xsl:when>
|
8159
8293
|
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
|
8160
8294
|
</xsl:choose>
|
8295
|
+
</xsl:template><xsl:template name="getMonthLocalizedByNum">
|
8296
|
+
<xsl:param name="num"/>
|
8297
|
+
<xsl:variable name="monthStr">
|
8298
|
+
<xsl:choose>
|
8299
|
+
<xsl:when test="$num = '01'">january</xsl:when>
|
8300
|
+
<xsl:when test="$num = '02'">february</xsl:when>
|
8301
|
+
<xsl:when test="$num = '03'">march</xsl:when>
|
8302
|
+
<xsl:when test="$num = '04'">april</xsl:when>
|
8303
|
+
<xsl:when test="$num = '05'">may</xsl:when>
|
8304
|
+
<xsl:when test="$num = '06'">june</xsl:when>
|
8305
|
+
<xsl:when test="$num = '07'">july</xsl:when>
|
8306
|
+
<xsl:when test="$num = '08'">august</xsl:when>
|
8307
|
+
<xsl:when test="$num = '09'">september</xsl:when>
|
8308
|
+
<xsl:when test="$num = '10'">october</xsl:when>
|
8309
|
+
<xsl:when test="$num = '11'">november</xsl:when>
|
8310
|
+
<xsl:when test="$num = '12'">december</xsl:when>
|
8311
|
+
</xsl:choose>
|
8312
|
+
</xsl:variable>
|
8313
|
+
<xsl:call-template name="getLocalizedString">
|
8314
|
+
<xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
|
8315
|
+
</xsl:call-template>
|
8161
8316
|
</xsl:template><xsl:template name="insertKeywords">
|
8162
8317
|
<xsl:param name="sorting" select="'true'"/>
|
8163
8318
|
<xsl:param name="charAtEnd" select="'.'"/>
|
@@ -8355,6 +8510,7 @@
|
|
8355
8510
|
|
8356
8511
|
|
8357
8512
|
|
8513
|
+
|
8358
8514
|
<xsl:value-of select="document('')//*/namespace::csa"/>
|
8359
8515
|
|
8360
8516
|
|
@@ -5,16 +5,15 @@ require "isodoc"
|
|
5
5
|
module IsoDoc
|
6
6
|
module Csa
|
7
7
|
class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert
|
8
|
-
def annex1(
|
9
|
-
lbl = @xrefs.anchor(
|
10
|
-
if t =
|
8
|
+
def annex1(elem)
|
9
|
+
lbl = @xrefs.anchor(elem["id"], :label)
|
10
|
+
if t = elem.at(ns("./title"))
|
11
11
|
t.children = "<strong>#{t.children.to_xml}</strong>"
|
12
12
|
end
|
13
|
-
prefix_name(
|
13
|
+
prefix_name(elem, "<br/>", lbl, "title")
|
14
14
|
end
|
15
15
|
|
16
16
|
include Init
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
20
|
-
|
@@ -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">
|
@@ -703,6 +703,9 @@
|
|
703
703
|
<optional>
|
704
704
|
<attribute name="tag"/>
|
705
705
|
</optional>
|
706
|
+
<optional>
|
707
|
+
<attribute name="type"/>
|
708
|
+
</optional>
|
706
709
|
<optional>
|
707
710
|
<attribute name="multilingual-rendering">
|
708
711
|
<ref name="MultilingualRenderingType"/>
|
@@ -738,6 +741,9 @@
|
|
738
741
|
<optional>
|
739
742
|
<attribute name="tag"/>
|
740
743
|
</optional>
|
744
|
+
<optional>
|
745
|
+
<attribute name="type"/>
|
746
|
+
</optional>
|
741
747
|
<optional>
|
742
748
|
<attribute name="multilingual-rendering">
|
743
749
|
<ref name="MultilingualRenderingType"/>
|
@@ -2059,6 +2065,7 @@
|
|
2059
2065
|
<value>compare</value>
|
2060
2066
|
<value>contrast</value>
|
2061
2067
|
<value>see</value>
|
2068
|
+
<value>seealso</value>
|
2062
2069
|
</choice>
|
2063
2070
|
</define>
|
2064
2071
|
<define name="deprecates">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-csa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
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-06-
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
- !ruby/object:Gem::Version
|
248
248
|
version: '0'
|
249
249
|
requirements: []
|
250
|
-
rubygems_version: 3.3.
|
250
|
+
rubygems_version: 3.3.16
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: metanorma-csa lets you write CSA Normal Documents (CSAND) in AsciiDoc.
|