metanorma-iho 0.6.2 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dc1b7ada828c3a0407939118556e3139cf716b2eed6a667efcd60ad04db7a26
4
- data.tar.gz: c63a014a83f8ee957fe2289b6f6766872057dfce4114c921d81996470e6061e8
3
+ metadata.gz: 38b699e25c9f01f81b269ae2ba5282d493339c402dde7211b2ee92bc4314193e
4
+ data.tar.gz: 0ab867adfc250a8fd824d525537c20f9de48438509589da479f67f16a8caa2cf
5
5
  SHA512:
6
- metadata.gz: 00a02daff0371d8c38b9a8c9d34a520ce0d9c38b98b991c112be43b0f780ce8492a66ca870ca4504fa1afc8951869ca8831d66a07a23b803224f63a0204682a6
7
- data.tar.gz: 7d36bb8c4eca511eb7b94a38443068ff6e9ff2214be6bef15d5d2fa81e330997dd1aa1161f51a01253ac7eb3e9c2e17b8bc09567f543a184f1c59c7d54d8ede8
6
+ metadata.gz: f32566df3abcf2a1d337f2acbd12cd32e63e6c537660a451e6e86f666b39ba03d8f725a2f0a2d17fad85f6207b1293bcccd1bdce5b2c63282225f18456983108
7
+ data.tar.gz: 9f9f48b6ab3fe2ce3546266e49374f72d8ae40240b49d8a0c1dfe02a03458893238a0588791a7c5d60ac1802bfdbfe527422b230aa2840e967dbb92ea0786376
@@ -928,7 +928,7 @@
928
928
  <xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
929
929
  </xsl:otherwise>
930
930
  </xsl:choose>
931
- </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">
931
+ </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">
932
932
 
933
933
 
934
934
 
@@ -936,7 +936,9 @@
936
936
 
937
937
 
938
938
 
939
- <xsl:attribute name="font-family">Arial, Cambria Math</xsl:attribute>
939
+
940
+ <xsl:attribute name="font-family">Arial, Cambria Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
941
+ <xsl:attribute name="font-family-generic">Sans</xsl:attribute>
940
942
  <xsl:attribute name="font-size">12pt</xsl:attribute>
941
943
 
942
944
 
@@ -959,17 +961,60 @@
959
961
  </xsl:variable>
960
962
  <xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
961
963
 
964
+ <xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
965
+
962
966
  <xsl:for-each select="$root-style_/root-style/@*">
967
+
963
968
  <xsl:choose>
964
- <xsl:when test="local-name() = 'font-family' and $additional_fonts != ''">
969
+ <xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
970
+ <xsl:when test="local-name() = 'font-family'">
971
+
972
+ <xsl:variable name="font_regional_prefix">
973
+ <xsl:choose>
974
+ <xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
975
+ <xsl:otherwise>Noto Serif</xsl:otherwise>
976
+ </xsl:choose>
977
+ </xsl:variable>
978
+
965
979
  <xsl:attribute name="{local-name()}">
966
- <xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
980
+
981
+ <xsl:variable name="font_extended">
982
+ <xsl:choose>
983
+ <xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
984
+ <xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
985
+ <xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
986
+ <xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
987
+ <xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
988
+ <xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
989
+ </xsl:choose>
990
+ </xsl:variable>
991
+ <xsl:if test="normalize-space($font_extended) != ''">
992
+ <xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
993
+ <xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
994
+ </xsl:if>
995
+
996
+ <xsl:value-of select="."/>
997
+
998
+ <xsl:if test="$additional_fonts != ''">
999
+ <xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
1000
+ </xsl:if>
967
1001
  </xsl:attribute>
968
1002
  </xsl:when>
969
1003
  <xsl:otherwise>
970
1004
  <xsl:copy-of select="."/>
971
1005
  </xsl:otherwise>
972
1006
  </xsl:choose>
1007
+
1008
+ <!-- <xsl:choose>
1009
+ <xsl:when test="local-name() = 'font-family'">
1010
+ <xsl:attribute name="{local-name()}">
1011
+ <xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
1012
+ </xsl:attribute>
1013
+ </xsl:when>
1014
+ <xsl:otherwise>
1015
+ <xsl:copy-of select="."/>
1016
+ </xsl:otherwise>
1017
+ </xsl:choose> -->
973
1018
  </xsl:for-each>
974
1019
  </xsl:template><xsl:attribute-set name="copyright-statement-style">
975
1020
 
@@ -1040,7 +1085,8 @@
1040
1085
 
1041
1086
 
1042
1087
 
1043
- <xsl:attribute name="font-family">Fira Code</xsl:attribute>
1088
+
1089
+ <xsl:attribute name="font-family">Fira Code, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
1044
1090
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1045
1091
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1046
1092
  <xsl:attribute name="line-height">113%</xsl:attribute>
@@ -1086,6 +1132,7 @@
1086
1132
 
1087
1133
 
1088
1134
 
1135
+
1089
1136
  <xsl:attribute name="font-size">10pt</xsl:attribute>
1090
1137
  <xsl:attribute name="margin-top">8pt</xsl:attribute>
1091
1138
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
@@ -1100,6 +1147,7 @@
1100
1147
 
1101
1148
 
1102
1149
 
1150
+
1103
1151
  <xsl:attribute name="font-size">11pt</xsl:attribute>
1104
1152
  <xsl:attribute name="margin-top">8pt</xsl:attribute>
1105
1153
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
@@ -1125,6 +1173,7 @@
1125
1173
 
1126
1174
 
1127
1175
 
1176
+
1128
1177
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1129
1178
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1130
1179
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -1170,6 +1219,7 @@
1170
1219
 
1171
1220
  </xsl:attribute-set><xsl:variable name="table-border_">
1172
1221
 
1222
+
1173
1223
  </xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
1174
1224
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
1175
1225
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
@@ -1181,6 +1231,7 @@
1181
1231
 
1182
1232
 
1183
1233
 
1234
+
1184
1235
  <xsl:attribute name="space-after">18pt</xsl:attribute>
1185
1236
 
1186
1237
 
@@ -1209,6 +1260,7 @@
1209
1260
 
1210
1261
 
1211
1262
 
1263
+
1212
1264
 
1213
1265
 
1214
1266
 
@@ -1229,6 +1281,7 @@
1229
1281
 
1230
1282
 
1231
1283
 
1284
+
1232
1285
 
1233
1286
  <xsl:attribute name="text-align">center</xsl:attribute>
1234
1287
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
@@ -1297,6 +1350,7 @@
1297
1350
 
1298
1351
 
1299
1352
 
1353
+
1300
1354
  <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
1301
1355
 
1302
1356
 
@@ -1318,7 +1372,7 @@
1318
1372
 
1319
1373
 
1320
1374
 
1321
-
1375
+
1322
1376
 
1323
1377
 
1324
1378
 
@@ -1331,6 +1385,7 @@
1331
1385
 
1332
1386
 
1333
1387
 
1388
+
1334
1389
  <xsl:attribute name="font-size">12pt</xsl:attribute>
1335
1390
 
1336
1391
 
@@ -1343,6 +1398,8 @@
1343
1398
 
1344
1399
 
1345
1400
 
1401
+
1402
+
1346
1403
  </xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
1347
1404
  <xsl:attribute name="font-size">80%</xsl:attribute>
1348
1405
  <xsl:attribute name="padding-right">5mm</xsl:attribute>
@@ -1353,6 +1410,7 @@
1353
1410
 
1354
1411
 
1355
1412
 
1413
+
1356
1414
  <xsl:attribute name="vertical-align">super</xsl:attribute>
1357
1415
 
1358
1416
 
@@ -1387,6 +1445,7 @@
1387
1445
 
1388
1446
 
1389
1447
 
1448
+
1390
1449
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
1391
1450
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1392
1451
 
@@ -1403,6 +1462,7 @@
1403
1462
 
1404
1463
 
1405
1464
 
1465
+
1406
1466
  <xsl:attribute name="font-weight">normal</xsl:attribute>
1407
1467
 
1408
1468
 
@@ -1446,6 +1506,7 @@
1446
1506
 
1447
1507
 
1448
1508
 
1509
+
1449
1510
 
1450
1511
  <xsl:attribute name="font-size">11pt</xsl:attribute>
1451
1512
  <xsl:attribute name="margin-top">8pt</xsl:attribute>
@@ -1522,6 +1583,8 @@
1522
1583
 
1523
1584
 
1524
1585
 
1586
+ </xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
1587
+
1525
1588
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
1526
1589
  <xsl:attribute name="margin-left">12mm</xsl:attribute>
1527
1590
  <xsl:attribute name="margin-right">12mm</xsl:attribute>
@@ -1572,6 +1635,7 @@
1572
1635
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1573
1636
 
1574
1637
 
1638
+
1575
1639
 
1576
1640
 
1577
1641
 
@@ -1619,6 +1683,7 @@
1619
1683
 
1620
1684
 
1621
1685
 
1686
+
1622
1687
  </xsl:attribute-set><xsl:attribute-set name="formula-stem-number-style">
1623
1688
  <xsl:attribute name="text-align">right</xsl:attribute>
1624
1689
 
@@ -1637,20 +1702,20 @@
1637
1702
  </xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
1638
1703
 
1639
1704
  </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
1705
+ <xsl:attribute name="width">100%</xsl:attribute>
1706
+ <xsl:attribute name="content-height">100%</xsl:attribute>
1707
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
1640
1708
 
1641
1709
 
1642
- <xsl:attribute name="width">100%</xsl:attribute>
1643
1710
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
1644
- <xsl:attribute name="scaling">uniform</xsl:attribute>
1645
1711
 
1646
1712
 
1647
1713
 
1648
-
1649
-
1714
+
1650
1715
  </xsl:attribute-set><xsl:attribute-set name="tt-style">
1651
1716
 
1652
1717
 
1653
- <xsl:attribute name="font-family">Courier New</xsl:attribute>
1718
+ <xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
1654
1719
 
1655
1720
 
1656
1721
  </xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
@@ -1720,6 +1785,7 @@
1720
1785
 
1721
1786
 
1722
1787
 
1788
+
1723
1789
  <xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
1724
1790
 
1725
1791
 
@@ -1790,6 +1856,7 @@
1790
1856
 
1791
1857
 
1792
1858
 
1859
+
1793
1860
  <xsl:attribute name="font-size">70%</xsl:attribute>
1794
1861
  <xsl:attribute name="vertical-align">super</xsl:attribute>
1795
1862
 
@@ -1814,6 +1881,7 @@
1814
1881
 
1815
1882
 
1816
1883
 
1884
+
1817
1885
  <xsl:attribute name="font-size">10pt</xsl:attribute>
1818
1886
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1819
1887
 
@@ -1837,6 +1905,7 @@
1837
1905
 
1838
1906
 
1839
1907
 
1908
+
1840
1909
  <xsl:attribute name="font-size">60%</xsl:attribute>
1841
1910
  <xsl:attribute name="vertical-align">super</xsl:attribute>
1842
1911
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
@@ -1858,6 +1927,7 @@
1858
1927
 
1859
1928
 
1860
1929
 
1930
+
1861
1931
  <xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
1862
1932
  <xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
1863
1933
  <xsl:attribute name="margin-left">16mm</xsl:attribute>
@@ -1873,12 +1943,13 @@
1873
1943
 
1874
1944
 
1875
1945
  </xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
1946
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
1947
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
1948
+
1876
1949
 
1877
1950
 
1878
1951
 
1879
1952
 
1880
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
1881
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
1882
1953
  <xsl:attribute name="padding">2mm</xsl:attribute>
1883
1954
  <xsl:attribute name="padding-top">3mm</xsl:attribute>
1884
1955
 
@@ -1914,6 +1985,7 @@
1914
1985
 
1915
1986
 
1916
1987
 
1988
+
1917
1989
  <xsl:attribute name="font-style">italic</xsl:attribute>
1918
1990
 
1919
1991
 
@@ -1950,6 +2022,7 @@
1950
2022
 
1951
2023
 
1952
2024
 
2025
+
1953
2026
  <xsl:attribute name="line-height">115%</xsl:attribute>
1954
2027
 
1955
2028
 
@@ -1971,6 +2044,7 @@
1971
2044
 
1972
2045
 
1973
2046
 
2047
+
1974
2048
  <xsl:attribute name="line-height">115%</xsl:attribute>
1975
2049
 
1976
2050
 
@@ -1996,6 +2070,7 @@
1996
2070
 
1997
2071
 
1998
2072
 
2073
+
1999
2074
  <xsl:attribute name="font-size">8pt</xsl:attribute>
2000
2075
  <xsl:attribute name="baseline-shift">30%</xsl:attribute>
2001
2076
 
@@ -2017,6 +2092,7 @@
2017
2092
 
2018
2093
 
2019
2094
 
2095
+
2020
2096
  <xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
2021
2097
  <xsl:attribute name="padding-right">3mm</xsl:attribute>
2022
2098
 
@@ -2038,6 +2114,7 @@
2038
2114
 
2039
2115
 
2040
2116
 
2117
+
2041
2118
  <xsl:attribute name="margin-bottom">4pt</xsl:attribute>
2042
2119
 
2043
2120
 
@@ -2474,6 +2551,8 @@
2474
2551
 
2475
2552
 
2476
2553
 
2554
+
2555
+
2477
2556
 
2478
2557
 
2479
2558
 
@@ -2510,6 +2589,8 @@
2510
2589
 
2511
2590
 
2512
2591
 
2592
+
2593
+
2513
2594
  </xsl:element>
2514
2595
  </xsl:variable>
2515
2596
 
@@ -2655,23 +2736,29 @@
2655
2736
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
2656
2737
  <xsl:param name="continued"/>
2657
2738
  <xsl:if test="normalize-space() != ''">
2658
- <fo:block xsl:use-attribute-sets="table-name-style">
2659
-
2660
-
2661
-
2662
-
2739
+
2740
+
2663
2741
 
2664
- <xsl:choose>
2665
- <xsl:when test="$continued = 'true'">
2742
+ <fo:block xsl:use-attribute-sets="table-name-style">
2743
+
2666
2744
 
2667
- </xsl:when>
2668
- <xsl:otherwise>
2669
- <xsl:apply-templates/>
2670
- </xsl:otherwise>
2671
- </xsl:choose>
2672
-
2745
+
2746
+
2747
+
2748
+ <xsl:choose>
2749
+ <xsl:when test="$continued = 'true'">
2750
+
2751
+ </xsl:when>
2752
+ <xsl:otherwise>
2753
+ <xsl:apply-templates/>
2754
+ </xsl:otherwise>
2755
+ </xsl:choose>
2756
+
2757
+
2758
+ </fo:block>
2759
+
2673
2760
 
2674
- </fo:block>
2761
+
2675
2762
  </xsl:if>
2676
2763
  </xsl:template><xsl:template name="calculate-columns-numbers">
2677
2764
  <xsl:param name="table-row"/>
@@ -3069,12 +3156,18 @@
3069
3156
  <fo:table-row>
3070
3157
  <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">
3071
3158
 
3072
- <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
3073
- <xsl:with-param name="continued">true</xsl:with-param>
3074
- </xsl:apply-templates>
3075
3159
 
3076
3160
 
3077
3161
 
3162
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
3163
+ <xsl:with-param name="continued">true</xsl:with-param>
3164
+ </xsl:apply-templates>
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+
3078
3171
  </fo:table-cell>
3079
3172
  </fo:table-row>
3080
3173
  </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
@@ -3175,7 +3268,10 @@
3175
3268
 
3176
3269
 
3177
3270
  <!-- fn processing -->
3178
- <xsl:call-template name="table_fn_display"/>
3271
+
3272
+ <xsl:call-template name="table_fn_display"/>
3273
+
3274
+
3179
3275
 
3180
3276
  <!-- for PAS display Notes after footnotes -->
3181
3277
 
@@ -3185,6 +3281,9 @@
3185
3281
  </fo:table-body>
3186
3282
 
3187
3283
  </fo:table>
3284
+
3285
+
3286
+
3188
3287
  </xsl:if>
3189
3288
  </xsl:template><xsl:template match="*[local-name()='tbody']">
3190
3289
 
@@ -3273,6 +3372,9 @@
3273
3372
 
3274
3373
 
3275
3374
 
3375
+
3376
+
3377
+
3276
3378
 
3277
3379
 
3278
3380
  <xsl:call-template name="setTableRowAttributes"/>
@@ -3292,6 +3394,8 @@
3292
3394
 
3293
3395
 
3294
3396
 
3397
+
3398
+
3295
3399
  <xsl:call-template name="setTableRowAttributes"/>
3296
3400
  <xsl:apply-templates/>
3297
3401
  </fo:table-row>
@@ -3373,6 +3477,8 @@
3373
3477
 
3374
3478
 
3375
3479
 
3480
+
3481
+
3376
3482
 
3377
3483
 
3378
3484
 
@@ -3444,7 +3550,11 @@
3444
3550
 
3445
3551
  <xsl:variable name="gen_id" select="generate-id(.)"/>
3446
3552
  <xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
3447
- <xsl:variable name="reference" select="@reference"/>
3553
+ <xsl:variable name="reference_">
3554
+ <xsl:value-of select="@reference"/>
3555
+ <xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
3556
+ </xsl:variable>
3557
+ <xsl:variable name="reference" select="normalize-space($reference_)"/>
3448
3558
  <!-- fn sequence number in document -->
3449
3559
  <xsl:variable name="current_fn_number">
3450
3560
  <xsl:choose>
@@ -3519,7 +3629,7 @@
3519
3629
  <xsl:copy-of select="node()"/>
3520
3630
  </fn>
3521
3631
  </xsl:for-each>
3522
- <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']/*">
3632
+ <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']/*">
3523
3633
  <xsl:sort select="@displayorder" data-type="number"/>
3524
3634
  <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])]">
3525
3635
  <!-- copy unique fn -->
@@ -5164,6 +5274,11 @@
5164
5274
  </xsl:variable>
5165
5275
  <fo:inline xsl:use-attribute-sets="link-style">
5166
5276
 
5277
+ <xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
5278
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
5279
+ </xsl:if>
5280
+
5281
+
5167
5282
 
5168
5283
 
5169
5284
 
@@ -5428,7 +5543,19 @@
5428
5543
  <xsl:value-of select="$suffix"/>
5429
5544
  </xsl:if>
5430
5545
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5431
- <fo:inline><xsl:apply-templates/></fo:inline>
5546
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
5547
+ <xsl:choose>
5548
+ <xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
5549
+ <fo:inline xsl:use-attribute-sets="termnote-p-style">
5550
+ <xsl:apply-templates/>
5551
+ </fo:inline>
5552
+ </xsl:when>
5553
+ <xsl:otherwise>
5554
+ <fo:block xsl:use-attribute-sets="termnote-p-style">
5555
+ <xsl:apply-templates/>
5556
+ </fo:block>
5557
+ </xsl:otherwise>
5558
+ </xsl:choose>
5432
5559
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5433
5560
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5434
5561
  <fo:block id="{@id}">
@@ -6245,7 +6372,7 @@
6245
6372
  </xsl:choose>
6246
6373
  </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">
6247
6374
  <xsl:value-of select="."/>
6248
- </xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
6375
+ </xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
6249
6376
  <xsl:text> </xsl:text>
6250
6377
  </xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
6251
6378
  <xsl:copy>
@@ -7104,6 +7231,7 @@
7104
7231
 
7105
7232
 
7106
7233
 
7234
+
7107
7235
  </xsl:variable>
7108
7236
 
7109
7237
  <xsl:variable name="padding-right">
@@ -7695,6 +7823,7 @@
7695
7823
  </xsl:template><xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
7696
7824
 
7697
7825
  <fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-normative-list-style">
7826
+
7698
7827
  <fo:list-item>
7699
7828
  <fo:list-item-label end-indent="label-end()">
7700
7829
  <fo:block>
@@ -7702,7 +7831,7 @@
7702
7831
 
7703
7832
  <xsl:value-of select="*[local-name() = 'docidentifier'][@type = 'metanorma-ordinal']"/>
7704
7833
  <xsl:if test="not(*[local-name() = 'docidentifier'][@type = 'metanorma-ordinal'])">
7705
- <xsl:number format="[1]"/>
7834
+ <xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
7706
7835
  </xsl:if>
7707
7836
 
7708
7837
  </fo:inline>
@@ -8032,12 +8161,16 @@
8032
8161
  <fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
8033
8162
 
8034
8163
 
8164
+
8165
+
8035
8166
 
8036
8167
 
8037
8168
 
8038
8169
  <fo:block-container xsl:use-attribute-sets="admonition-container-style">
8039
8170
 
8040
8171
 
8172
+
8173
+
8041
8174
  <fo:block xsl:use-attribute-sets="admonition-name-style">
8042
8175
  <xsl:call-template name="displayAdmonitionName"/>
8043
8176
  </fo:block>
@@ -8241,6 +8374,8 @@
8241
8374
  </xsl:when>
8242
8375
  <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
8243
8376
  </xsl:choose>
8377
+ </xsl:template><xsl:template match="*[local-name() = 'lang_none']">
8378
+ <fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
8244
8379
  </xsl:template><xsl:template name="printEdition">
8245
8380
  <xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
8246
8381
  <xsl:text> </xsl:text>
@@ -8347,6 +8482,27 @@
8347
8482
  </xsl:when>
8348
8483
  <xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
8349
8484
  </xsl:choose>
8485
+ </xsl:template><xsl:template name="getMonthLocalizedByNum">
8486
+ <xsl:param name="num"/>
8487
+ <xsl:variable name="monthStr">
8488
+ <xsl:choose>
8489
+ <xsl:when test="$num = '01'">january</xsl:when>
8490
+ <xsl:when test="$num = '02'">february</xsl:when>
8491
+ <xsl:when test="$num = '03'">march</xsl:when>
8492
+ <xsl:when test="$num = '04'">april</xsl:when>
8493
+ <xsl:when test="$num = '05'">may</xsl:when>
8494
+ <xsl:when test="$num = '06'">june</xsl:when>
8495
+ <xsl:when test="$num = '07'">july</xsl:when>
8496
+ <xsl:when test="$num = '08'">august</xsl:when>
8497
+ <xsl:when test="$num = '09'">september</xsl:when>
8498
+ <xsl:when test="$num = '10'">october</xsl:when>
8499
+ <xsl:when test="$num = '11'">november</xsl:when>
8500
+ <xsl:when test="$num = '12'">december</xsl:when>
8501
+ </xsl:choose>
8502
+ </xsl:variable>
8503
+ <xsl:call-template name="getLocalizedString">
8504
+ <xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
8505
+ </xsl:call-template>
8350
8506
  </xsl:template><xsl:template name="insertKeywords">
8351
8507
  <xsl:param name="sorting" select="'true'"/>
8352
8508
  <xsl:param name="charAtEnd" select="'.'"/>
@@ -8547,6 +8703,7 @@
8547
8703
 
8548
8704
 
8549
8705
 
8706
+
8550
8707
  <xsl:value-of select="document('')//*/namespace::iho"/>
8551
8708
 
8552
8709