metanorma-ogc 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +200 -39
- data/lib/isodoc/ogc/ogc.best-practice.xsl +200 -39
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +200 -39
- data/lib/isodoc/ogc/ogc.community-practice.xsl +200 -39
- data/lib/isodoc/ogc/ogc.community-standard.xsl +200 -39
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +200 -39
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +200 -39
- data/lib/isodoc/ogc/ogc.other.xsl +200 -39
- data/lib/isodoc/ogc/ogc.policy.xsl +200 -39
- data/lib/isodoc/ogc/ogc.reference-model.xsl +200 -39
- data/lib/isodoc/ogc/ogc.release-notes.xsl +200 -39
- data/lib/isodoc/ogc/ogc.standard.xsl +200 -39
- data/lib/isodoc/ogc/ogc.test-suite.xsl +200 -39
- data/lib/isodoc/ogc/ogc.user-guide.xsl +200 -39
- data/lib/isodoc/ogc/ogc.white-paper.xsl +197 -37
- data/lib/isodoc/ogc/presentation_xml_convert.rb +17 -2
- data/lib/metanorma/ogc/biblio.rng +102 -5
- data/lib/metanorma/ogc/isodoc.rng +7 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +3 -3
@@ -791,7 +791,7 @@
|
|
791
791
|
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
|
792
792
|
</xsl:otherwise>
|
793
793
|
</xsl:choose>
|
794
|
-
</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">
|
794
|
+
</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">
|
795
795
|
|
796
796
|
|
797
797
|
|
@@ -806,7 +806,9 @@
|
|
806
806
|
|
807
807
|
|
808
808
|
|
809
|
-
|
809
|
+
|
810
|
+
<xsl:attribute name="font-family">Arial, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
811
|
+
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
810
812
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
811
813
|
|
812
814
|
|
@@ -822,17 +824,60 @@
|
|
822
824
|
</xsl:variable>
|
823
825
|
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
|
824
826
|
|
827
|
+
<xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
|
828
|
+
|
825
829
|
<xsl:for-each select="$root-style_/root-style/@*">
|
830
|
+
|
826
831
|
<xsl:choose>
|
827
|
-
<xsl:when test="local-name() = 'font-family'
|
832
|
+
<xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
|
833
|
+
<xsl:when test="local-name() = 'font-family'">
|
834
|
+
|
835
|
+
<xsl:variable name="font_regional_prefix">
|
836
|
+
<xsl:choose>
|
837
|
+
<xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
|
838
|
+
<xsl:otherwise>Noto Serif</xsl:otherwise>
|
839
|
+
</xsl:choose>
|
840
|
+
</xsl:variable>
|
841
|
+
|
828
842
|
<xsl:attribute name="{local-name()}">
|
829
|
-
|
843
|
+
|
844
|
+
<xsl:variable name="font_extended">
|
845
|
+
<xsl:choose>
|
846
|
+
<xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
847
|
+
<xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
|
848
|
+
<xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
|
849
|
+
<xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
|
850
|
+
<xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
851
|
+
<xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
|
852
|
+
</xsl:choose>
|
853
|
+
</xsl:variable>
|
854
|
+
<xsl:if test="normalize-space($font_extended) != ''">
|
855
|
+
<xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
|
856
|
+
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
857
|
+
</xsl:if>
|
858
|
+
|
859
|
+
<xsl:value-of select="."/>
|
860
|
+
|
861
|
+
<xsl:if test="$additional_fonts != ''">
|
862
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
863
|
+
</xsl:if>
|
830
864
|
</xsl:attribute>
|
831
865
|
</xsl:when>
|
832
866
|
<xsl:otherwise>
|
833
867
|
<xsl:copy-of select="."/>
|
834
868
|
</xsl:otherwise>
|
835
869
|
</xsl:choose>
|
870
|
+
|
871
|
+
<!-- <xsl:choose>
|
872
|
+
<xsl:when test="local-name() = 'font-family'">
|
873
|
+
<xsl:attribute name="{local-name()}">
|
874
|
+
<xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
|
875
|
+
</xsl:attribute>
|
876
|
+
</xsl:when>
|
877
|
+
<xsl:otherwise>
|
878
|
+
<xsl:copy-of select="."/>
|
879
|
+
</xsl:otherwise>
|
880
|
+
</xsl:choose> -->
|
836
881
|
</xsl:for-each>
|
837
882
|
</xsl:template><xsl:attribute-set name="copyright-statement-style">
|
838
883
|
|
@@ -928,10 +973,11 @@
|
|
928
973
|
|
929
974
|
|
930
975
|
|
976
|
+
|
931
977
|
|
932
978
|
|
933
979
|
|
934
|
-
<xsl:attribute name="font-family">Courier New
|
980
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
935
981
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
936
982
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
937
983
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
@@ -1015,6 +1061,7 @@
|
|
1015
1061
|
|
1016
1062
|
|
1017
1063
|
|
1064
|
+
|
1018
1065
|
|
1019
1066
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
1020
1067
|
|
@@ -1026,6 +1073,7 @@
|
|
1026
1073
|
|
1027
1074
|
|
1028
1075
|
|
1076
|
+
|
1029
1077
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1030
1078
|
<xsl:attribute name="margin-left">12.5mm</xsl:attribute>
|
1031
1079
|
<xsl:attribute name="margin-right">12.5mm</xsl:attribute>
|
@@ -1053,6 +1101,7 @@
|
|
1053
1101
|
|
1054
1102
|
|
1055
1103
|
|
1104
|
+
|
1056
1105
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1057
1106
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
1058
1107
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
@@ -1093,6 +1142,7 @@
|
|
1093
1142
|
|
1094
1143
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
1095
1144
|
|
1145
|
+
|
1096
1146
|
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
|
1097
1147
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1098
1148
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1113,6 +1163,7 @@
|
|
1113
1163
|
|
1114
1164
|
|
1115
1165
|
|
1166
|
+
|
1116
1167
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1117
1168
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
1118
1169
|
|
@@ -1142,6 +1193,7 @@
|
|
1142
1193
|
|
1143
1194
|
|
1144
1195
|
|
1196
|
+
|
1145
1197
|
|
1146
1198
|
|
1147
1199
|
|
@@ -1153,6 +1205,7 @@
|
|
1153
1205
|
|
1154
1206
|
|
1155
1207
|
|
1208
|
+
|
1156
1209
|
|
1157
1210
|
|
1158
1211
|
|
@@ -1235,6 +1288,7 @@
|
|
1235
1288
|
|
1236
1289
|
|
1237
1290
|
|
1291
|
+
|
1238
1292
|
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
1239
1293
|
<xsl:attribute name="border">solid 0.5pt rgb(153, 153, 153)</xsl:attribute>
|
1240
1294
|
<xsl:attribute name="height">5mm</xsl:attribute>
|
@@ -1254,7 +1308,7 @@
|
|
1254
1308
|
|
1255
1309
|
|
1256
1310
|
|
1257
|
-
|
1311
|
+
|
1258
1312
|
|
1259
1313
|
|
1260
1314
|
|
@@ -1269,6 +1323,7 @@
|
|
1269
1323
|
|
1270
1324
|
|
1271
1325
|
|
1326
|
+
|
1272
1327
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-style">
|
1273
1328
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1274
1329
|
|
@@ -1277,6 +1332,8 @@
|
|
1277
1332
|
|
1278
1333
|
|
1279
1334
|
|
1335
|
+
|
1336
|
+
|
1280
1337
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
|
1281
1338
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1282
1339
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -1291,6 +1348,7 @@
|
|
1291
1348
|
|
1292
1349
|
|
1293
1350
|
|
1351
|
+
|
1294
1352
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1295
1353
|
|
1296
1354
|
|
@@ -1325,6 +1383,7 @@
|
|
1325
1383
|
|
1326
1384
|
|
1327
1385
|
|
1386
|
+
|
1328
1387
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1329
1388
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1330
1389
|
|
@@ -1337,6 +1396,7 @@
|
|
1337
1396
|
|
1338
1397
|
|
1339
1398
|
|
1399
|
+
|
1340
1400
|
|
1341
1401
|
|
1342
1402
|
|
@@ -1393,6 +1453,7 @@
|
|
1393
1453
|
|
1394
1454
|
|
1395
1455
|
|
1456
|
+
|
1396
1457
|
|
1397
1458
|
|
1398
1459
|
|
@@ -1464,6 +1525,10 @@
|
|
1464
1525
|
|
1465
1526
|
|
1466
1527
|
|
1528
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
|
1529
|
+
|
1530
|
+
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
1531
|
+
|
1467
1532
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1468
1533
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
1469
1534
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
@@ -1515,6 +1580,7 @@
|
|
1515
1580
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1516
1581
|
|
1517
1582
|
|
1583
|
+
|
1518
1584
|
|
1519
1585
|
|
1520
1586
|
|
@@ -1563,6 +1629,7 @@
|
|
1563
1629
|
|
1564
1630
|
|
1565
1631
|
|
1632
|
+
|
1566
1633
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
1567
1634
|
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
1568
1635
|
|
@@ -1588,20 +1655,20 @@
|
|
1588
1655
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1589
1656
|
|
1590
1657
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1658
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
1659
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
1660
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1591
1661
|
|
1592
1662
|
|
1593
|
-
<xsl:attribute name="width">100%</xsl:attribute>
|
1594
1663
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1595
|
-
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1596
1664
|
|
1597
1665
|
|
1598
1666
|
|
1599
|
-
|
1600
|
-
|
1667
|
+
|
1601
1668
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
1602
1669
|
|
1603
1670
|
|
1604
|
-
<xsl:attribute name="font-family">Courier New
|
1671
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
1605
1672
|
|
1606
1673
|
|
1607
1674
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
@@ -1682,6 +1749,7 @@
|
|
1682
1749
|
|
1683
1750
|
|
1684
1751
|
|
1752
|
+
|
1685
1753
|
<xsl:attribute name="provisional-distance-between-starts">6.5mm</xsl:attribute>
|
1686
1754
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1687
1755
|
<xsl:attribute name="line-height">115%</xsl:attribute>
|
@@ -1755,6 +1823,7 @@
|
|
1755
1823
|
|
1756
1824
|
|
1757
1825
|
|
1826
|
+
|
1758
1827
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
1759
1828
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1760
1829
|
|
@@ -1781,6 +1850,7 @@
|
|
1781
1850
|
|
1782
1851
|
|
1783
1852
|
|
1853
|
+
|
1784
1854
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1785
1855
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1786
1856
|
<xsl:attribute name="color">black</xsl:attribute>
|
@@ -1805,6 +1875,7 @@
|
|
1805
1875
|
|
1806
1876
|
|
1807
1877
|
|
1878
|
+
|
1808
1879
|
<xsl:attribute name="font-size">60%</xsl:attribute>
|
1809
1880
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1810
1881
|
|
@@ -1823,6 +1894,7 @@
|
|
1823
1894
|
|
1824
1895
|
|
1825
1896
|
|
1897
|
+
|
1826
1898
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
1827
1899
|
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
1828
1900
|
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
@@ -1833,6 +1905,9 @@
|
|
1833
1905
|
|
1834
1906
|
|
1835
1907
|
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
|
1908
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1909
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1910
|
+
|
1836
1911
|
|
1837
1912
|
|
1838
1913
|
|
@@ -1840,8 +1915,6 @@
|
|
1840
1915
|
|
1841
1916
|
|
1842
1917
|
|
1843
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1844
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1845
1918
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
1846
1919
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
1847
1920
|
|
@@ -1878,6 +1951,7 @@
|
|
1878
1951
|
|
1879
1952
|
|
1880
1953
|
|
1954
|
+
|
1881
1955
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
1882
1956
|
|
1883
1957
|
|
@@ -1920,6 +1994,7 @@
|
|
1920
1994
|
|
1921
1995
|
|
1922
1996
|
|
1997
|
+
|
1923
1998
|
|
1924
1999
|
|
1925
2000
|
|
@@ -1941,6 +2016,7 @@
|
|
1941
2016
|
|
1942
2017
|
|
1943
2018
|
|
2019
|
+
|
1944
2020
|
|
1945
2021
|
|
1946
2022
|
|
@@ -1968,6 +2044,7 @@
|
|
1968
2044
|
|
1969
2045
|
|
1970
2046
|
|
2047
|
+
|
1971
2048
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1972
2049
|
|
1973
2050
|
|
@@ -1988,6 +2065,7 @@
|
|
1988
2065
|
|
1989
2066
|
|
1990
2067
|
|
2068
|
+
|
1991
2069
|
<xsl:attribute name="font-size">60%</xsl:attribute>
|
1992
2070
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1993
2071
|
|
@@ -2008,6 +2086,7 @@
|
|
2008
2086
|
|
2009
2087
|
|
2010
2088
|
|
2089
|
+
|
2011
2090
|
</xsl:attribute-set><xsl:attribute-set name="references-non-normative-style">
|
2012
2091
|
|
2013
2092
|
|
@@ -2479,6 +2558,8 @@
|
|
2479
2558
|
|
2480
2559
|
|
2481
2560
|
|
2561
|
+
|
2562
|
+
|
2482
2563
|
|
2483
2564
|
|
2484
2565
|
|
@@ -2520,6 +2601,8 @@
|
|
2520
2601
|
|
2521
2602
|
|
2522
2603
|
|
2604
|
+
|
2605
|
+
|
2523
2606
|
</xsl:element>
|
2524
2607
|
</xsl:variable>
|
2525
2608
|
|
@@ -2664,23 +2747,29 @@
|
|
2664
2747
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
2665
2748
|
<xsl:param name="continued"/>
|
2666
2749
|
<xsl:if test="normalize-space() != ''">
|
2667
|
-
|
2668
|
-
|
2669
|
-
|
2670
|
-
|
2671
|
-
|
2750
|
+
|
2751
|
+
|
2672
2752
|
|
2673
|
-
|
2674
|
-
|
2753
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
2754
|
+
|
2675
2755
|
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2679
|
-
|
2680
|
-
|
2681
|
-
|
2756
|
+
|
2757
|
+
|
2758
|
+
|
2759
|
+
<xsl:choose>
|
2760
|
+
<xsl:when test="$continued = 'true'">
|
2761
|
+
|
2762
|
+
</xsl:when>
|
2763
|
+
<xsl:otherwise>
|
2764
|
+
<xsl:apply-templates/>
|
2765
|
+
</xsl:otherwise>
|
2766
|
+
</xsl:choose>
|
2767
|
+
|
2768
|
+
|
2769
|
+
</fo:block>
|
2770
|
+
|
2682
2771
|
|
2683
|
-
|
2772
|
+
|
2684
2773
|
</xsl:if>
|
2685
2774
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
2686
2775
|
<xsl:param name="table-row"/>
|
@@ -3078,12 +3167,18 @@
|
|
3078
3167
|
<fo:table-row>
|
3079
3168
|
<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">
|
3080
3169
|
|
3081
|
-
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
3082
|
-
<xsl:with-param name="continued">true</xsl:with-param>
|
3083
|
-
</xsl:apply-templates>
|
3084
3170
|
|
3085
3171
|
|
3086
3172
|
|
3173
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
3174
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
3175
|
+
</xsl:apply-templates>
|
3176
|
+
|
3177
|
+
|
3178
|
+
|
3179
|
+
|
3180
|
+
|
3181
|
+
|
3087
3182
|
</fo:table-cell>
|
3088
3183
|
</fo:table-row>
|
3089
3184
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -3184,7 +3279,10 @@
|
|
3184
3279
|
|
3185
3280
|
|
3186
3281
|
<!-- fn processing -->
|
3187
|
-
|
3282
|
+
|
3283
|
+
<xsl:call-template name="table_fn_display"/>
|
3284
|
+
|
3285
|
+
|
3188
3286
|
|
3189
3287
|
<!-- for PAS display Notes after footnotes -->
|
3190
3288
|
|
@@ -3194,6 +3292,9 @@
|
|
3194
3292
|
</fo:table-body>
|
3195
3293
|
|
3196
3294
|
</fo:table>
|
3295
|
+
|
3296
|
+
|
3297
|
+
|
3197
3298
|
</xsl:if>
|
3198
3299
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
3199
3300
|
|
@@ -3282,6 +3383,9 @@
|
|
3282
3383
|
|
3283
3384
|
|
3284
3385
|
|
3386
|
+
|
3387
|
+
|
3388
|
+
|
3285
3389
|
|
3286
3390
|
|
3287
3391
|
<xsl:call-template name="setTableRowAttributes"/>
|
@@ -3301,6 +3405,8 @@
|
|
3301
3405
|
|
3302
3406
|
|
3303
3407
|
|
3408
|
+
|
3409
|
+
|
3304
3410
|
<xsl:call-template name="setTableRowAttributes"/>
|
3305
3411
|
<xsl:apply-templates/>
|
3306
3412
|
</fo:table-row>
|
@@ -3382,6 +3488,8 @@
|
|
3382
3488
|
|
3383
3489
|
|
3384
3490
|
|
3491
|
+
|
3492
|
+
|
3385
3493
|
|
3386
3494
|
|
3387
3495
|
|
@@ -3453,7 +3561,11 @@
|
|
3453
3561
|
|
3454
3562
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
3455
3563
|
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
3456
|
-
<xsl:variable name="
|
3564
|
+
<xsl:variable name="reference_">
|
3565
|
+
<xsl:value-of select="@reference"/>
|
3566
|
+
<xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
|
3567
|
+
</xsl:variable>
|
3568
|
+
<xsl:variable name="reference" select="normalize-space($reference_)"/>
|
3457
3569
|
<!-- fn sequence number in document -->
|
3458
3570
|
<xsl:variable name="current_fn_number">
|
3459
3571
|
<xsl:choose>
|
@@ -3528,7 +3640,7 @@
|
|
3528
3640
|
<xsl:copy-of select="node()"/>
|
3529
3641
|
</fn>
|
3530
3642
|
</xsl:for-each>
|
3531
|
-
<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']/*">
|
3643
|
+
<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']/*">
|
3532
3644
|
<xsl:sort select="@displayorder" data-type="number"/>
|
3533
3645
|
<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])]">
|
3534
3646
|
<!-- copy unique fn -->
|
@@ -5180,6 +5292,11 @@
|
|
5180
5292
|
</xsl:variable>
|
5181
5293
|
<fo:inline xsl:use-attribute-sets="link-style">
|
5182
5294
|
|
5295
|
+
<xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
|
5296
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
5297
|
+
</xsl:if>
|
5298
|
+
|
5299
|
+
|
5183
5300
|
|
5184
5301
|
|
5185
5302
|
|
@@ -5446,7 +5563,19 @@
|
|
5446
5563
|
<xsl:value-of select="$suffix"/>
|
5447
5564
|
</xsl:if>
|
5448
5565
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
5449
|
-
<
|
5566
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
5567
|
+
<xsl:choose>
|
5568
|
+
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
5569
|
+
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
5570
|
+
<xsl:apply-templates/>
|
5571
|
+
</fo:inline>
|
5572
|
+
</xsl:when>
|
5573
|
+
<xsl:otherwise>
|
5574
|
+
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
5575
|
+
<xsl:apply-templates/>
|
5576
|
+
</fo:block>
|
5577
|
+
</xsl:otherwise>
|
5578
|
+
</xsl:choose>
|
5450
5579
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
5451
5580
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
5452
5581
|
<fo:block id="{@id}">
|
@@ -6252,7 +6381,7 @@
|
|
6252
6381
|
</xsl:choose>
|
6253
6382
|
</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">
|
6254
6383
|
<xsl:value-of select="."/>
|
6255
|
-
</xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
6384
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
6256
6385
|
<xsl:text> </xsl:text>
|
6257
6386
|
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
6258
6387
|
<xsl:copy>
|
@@ -7110,6 +7239,7 @@
|
|
7110
7239
|
|
7111
7240
|
|
7112
7241
|
|
7242
|
+
|
7113
7243
|
<xsl:choose>
|
7114
7244
|
<xsl:when test="$depth >= 5"/>
|
7115
7245
|
<xsl:when test="$depth >= 4">5</xsl:when>
|
@@ -7733,7 +7863,7 @@
|
|
7733
7863
|
|
7734
7864
|
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
|
7735
7865
|
|
7736
|
-
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
7866
|
+
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
7737
7867
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
7738
7868
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
7739
7869
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
@@ -7744,7 +7874,9 @@
|
|
7744
7874
|
|
7745
7875
|
<xsl:value-of select="*[local-name()='docidentifier'][@type = 'metanorma-ordinal']"/>
|
7746
7876
|
<xsl:if test="not(*[local-name()='docidentifier'][@type = 'metanorma-ordinal'])">
|
7747
|
-
|
7877
|
+
|
7878
|
+
<xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
7879
|
+
|
7748
7880
|
</xsl:if>
|
7749
7881
|
|
7750
7882
|
</fo:inline>
|
@@ -8076,12 +8208,16 @@
|
|
8076
8208
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
8077
8209
|
|
8078
8210
|
|
8211
|
+
|
8212
|
+
|
8079
8213
|
|
8080
8214
|
|
8081
8215
|
|
8082
8216
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
8083
8217
|
|
8084
8218
|
|
8219
|
+
|
8220
|
+
|
8085
8221
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
8086
8222
|
<xsl:call-template name="displayAdmonitionName"/>
|
8087
8223
|
</fo:block>
|
@@ -8290,6 +8426,8 @@
|
|
8290
8426
|
</xsl:when>
|
8291
8427
|
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
8292
8428
|
</xsl:choose>
|
8429
|
+
</xsl:template><xsl:template match="*[local-name() = 'lang_none']">
|
8430
|
+
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
8293
8431
|
</xsl:template><xsl:template name="printEdition">
|
8294
8432
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
8295
8433
|
<xsl:text> </xsl:text>
|
@@ -8396,6 +8534,27 @@
|
|
8396
8534
|
</xsl:when>
|
8397
8535
|
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
|
8398
8536
|
</xsl:choose>
|
8537
|
+
</xsl:template><xsl:template name="getMonthLocalizedByNum">
|
8538
|
+
<xsl:param name="num"/>
|
8539
|
+
<xsl:variable name="monthStr">
|
8540
|
+
<xsl:choose>
|
8541
|
+
<xsl:when test="$num = '01'">january</xsl:when>
|
8542
|
+
<xsl:when test="$num = '02'">february</xsl:when>
|
8543
|
+
<xsl:when test="$num = '03'">march</xsl:when>
|
8544
|
+
<xsl:when test="$num = '04'">april</xsl:when>
|
8545
|
+
<xsl:when test="$num = '05'">may</xsl:when>
|
8546
|
+
<xsl:when test="$num = '06'">june</xsl:when>
|
8547
|
+
<xsl:when test="$num = '07'">july</xsl:when>
|
8548
|
+
<xsl:when test="$num = '08'">august</xsl:when>
|
8549
|
+
<xsl:when test="$num = '09'">september</xsl:when>
|
8550
|
+
<xsl:when test="$num = '10'">october</xsl:when>
|
8551
|
+
<xsl:when test="$num = '11'">november</xsl:when>
|
8552
|
+
<xsl:when test="$num = '12'">december</xsl:when>
|
8553
|
+
</xsl:choose>
|
8554
|
+
</xsl:variable>
|
8555
|
+
<xsl:call-template name="getLocalizedString">
|
8556
|
+
<xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
|
8557
|
+
</xsl:call-template>
|
8399
8558
|
</xsl:template><xsl:template name="insertKeywords">
|
8400
8559
|
<xsl:param name="sorting" select="'true'"/>
|
8401
8560
|
<xsl:param name="charAtEnd" select="'.'"/>
|
@@ -8591,6 +8750,7 @@
|
|
8591
8750
|
|
8592
8751
|
|
8593
8752
|
|
8753
|
+
|
8594
8754
|
<xsl:value-of select="document('')//*/namespace::ogc"/>
|
8595
8755
|
|
8596
8756
|
|
@@ -98,13 +98,13 @@ module IsoDoc
|
|
98
98
|
|
99
99
|
def example1(elem)
|
100
100
|
lbl = @xrefs.anchor(elem["id"], :label, false) or return
|
101
|
-
prefix_name(elem,
|
101
|
+
prefix_name(elem, block_delim, l10n("#{@i18n.example} #{lbl}"),
|
102
102
|
"name")
|
103
103
|
end
|
104
104
|
|
105
105
|
def recommendation1(elem, _type)
|
106
106
|
type = recommendation_class_label(elem)
|
107
|
-
label = elem
|
107
|
+
label = elem.at(ns("./label"))&.text
|
108
108
|
if inject_crossreference_reqt?(elem, label)
|
109
109
|
n = @xrefs.anchor(@xrefs.reqtlabels[label], :xref, false)
|
110
110
|
lbl = (n.nil? ? type : n)
|
@@ -234,6 +234,21 @@ module IsoDoc
|
|
234
234
|
end
|
235
235
|
end
|
236
236
|
|
237
|
+
def display_order(docxml)
|
238
|
+
i = 0
|
239
|
+
i = display_order_xpath(docxml, "//preface/*", i)
|
240
|
+
i = display_order_at(docxml, "//clause[@type = 'scope']", i)
|
241
|
+
i = display_order_at(docxml, "//clause[@type = 'conformance']", i)
|
242
|
+
i = display_order_at(docxml, @xrefs.klass.norm_ref_xpath, i)
|
243
|
+
i = display_order_at(docxml, "//sections/terms | "\
|
244
|
+
"//sections/clause[descendant::terms]", i)
|
245
|
+
i = display_order_at(docxml, "//sections/definitions", i)
|
246
|
+
i = display_order_xpath(docxml, @xrefs.klass.middle_clause(docxml), i)
|
247
|
+
i = display_order_xpath(docxml, "//annex", i)
|
248
|
+
i = display_order_xpath(docxml, @xrefs.klass.bibliography_xpath, i)
|
249
|
+
display_order_xpath(docxml, "//indexsect", i)
|
250
|
+
end
|
251
|
+
|
237
252
|
include Init
|
238
253
|
end
|
239
254
|
end
|