metanorma-bipm 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/bipm/bipm.brochure.xsl +230 -46
- data/lib/isodoc/bipm/bipm.guide.xsl +230 -46
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +230 -46
- data/lib/isodoc/bipm/bipm.rapport.xsl +230 -46
- data/lib/isodoc/bipm/jcgm.standard.xsl +199 -43
- data/lib/isodoc/bipm/presentation_xml_convert.rb +0 -4
- data/lib/isodoc/bipm/xref.rb +22 -28
- data/lib/metanorma/bipm/biblio.rng +102 -5
- data/lib/metanorma/bipm/isodoc.rng +7 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +3 -3
@@ -1870,9 +1870,10 @@
|
|
1870
1870
|
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
|
1871
1871
|
</xsl:otherwise>
|
1872
1872
|
</xsl:choose>
|
1873
|
-
</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">
|
1873
|
+
</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">
|
1874
1874
|
|
1875
|
-
<xsl:attribute name="font-family">Times New Roman, STIX Two Math,
|
1875
|
+
<xsl:attribute name="font-family">Times New Roman, STIX Two Math, <xsl:value-of select="$font_noto_serif"/></xsl:attribute>
|
1876
|
+
<xsl:attribute name="font-family-generic">Serif</xsl:attribute>
|
1876
1877
|
<xsl:attribute name="font-size">10.5pt</xsl:attribute>
|
1877
1878
|
|
1878
1879
|
|
@@ -1890,6 +1891,7 @@
|
|
1890
1891
|
|
1891
1892
|
|
1892
1893
|
|
1894
|
+
|
1893
1895
|
</xsl:attribute-set><xsl:template name="insertRootStyle">
|
1894
1896
|
<xsl:param name="root-style"/>
|
1895
1897
|
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
@@ -1901,17 +1903,60 @@
|
|
1901
1903
|
</xsl:variable>
|
1902
1904
|
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
|
1903
1905
|
|
1906
|
+
<xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
|
1907
|
+
|
1904
1908
|
<xsl:for-each select="$root-style_/root-style/@*">
|
1909
|
+
|
1905
1910
|
<xsl:choose>
|
1906
|
-
<xsl:when test="local-name() = 'font-family'
|
1911
|
+
<xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
|
1912
|
+
<xsl:when test="local-name() = 'font-family'">
|
1913
|
+
|
1914
|
+
<xsl:variable name="font_regional_prefix">
|
1915
|
+
<xsl:choose>
|
1916
|
+
<xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
|
1917
|
+
<xsl:otherwise>Noto Serif</xsl:otherwise>
|
1918
|
+
</xsl:choose>
|
1919
|
+
</xsl:variable>
|
1920
|
+
|
1907
1921
|
<xsl:attribute name="{local-name()}">
|
1908
|
-
|
1922
|
+
|
1923
|
+
<xsl:variable name="font_extended">
|
1924
|
+
<xsl:choose>
|
1925
|
+
<xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
1926
|
+
<xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
|
1927
|
+
<xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
|
1928
|
+
<xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
|
1929
|
+
<xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
1930
|
+
<xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
|
1931
|
+
</xsl:choose>
|
1932
|
+
</xsl:variable>
|
1933
|
+
<xsl:if test="normalize-space($font_extended) != ''">
|
1934
|
+
<xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
|
1935
|
+
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1936
|
+
</xsl:if>
|
1937
|
+
|
1938
|
+
<xsl:value-of select="."/>
|
1939
|
+
|
1940
|
+
<xsl:if test="$additional_fonts != ''">
|
1941
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1942
|
+
</xsl:if>
|
1909
1943
|
</xsl:attribute>
|
1910
1944
|
</xsl:when>
|
1911
1945
|
<xsl:otherwise>
|
1912
1946
|
<xsl:copy-of select="."/>
|
1913
1947
|
</xsl:otherwise>
|
1914
1948
|
</xsl:choose>
|
1949
|
+
|
1950
|
+
<!-- <xsl:choose>
|
1951
|
+
<xsl:when test="local-name() = 'font-family'">
|
1952
|
+
<xsl:attribute name="{local-name()}">
|
1953
|
+
<xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
|
1954
|
+
</xsl:attribute>
|
1955
|
+
</xsl:when>
|
1956
|
+
<xsl:otherwise>
|
1957
|
+
<xsl:copy-of select="."/>
|
1958
|
+
</xsl:otherwise>
|
1959
|
+
</xsl:choose> -->
|
1915
1960
|
</xsl:for-each>
|
1916
1961
|
</xsl:template><xsl:attribute-set name="copyright-statement-style">
|
1917
1962
|
|
@@ -1985,7 +2030,8 @@
|
|
1985
2030
|
|
1986
2031
|
|
1987
2032
|
|
1988
|
-
|
2033
|
+
|
2034
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
1989
2035
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1990
2036
|
|
1991
2037
|
|
@@ -2026,6 +2072,7 @@
|
|
2026
2072
|
|
2027
2073
|
|
2028
2074
|
|
2075
|
+
|
2029
2076
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2030
2077
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
2031
2078
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
@@ -2038,6 +2085,7 @@
|
|
2038
2085
|
|
2039
2086
|
|
2040
2087
|
|
2088
|
+
|
2041
2089
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2042
2090
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
2043
2091
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
@@ -2073,6 +2121,7 @@
|
|
2073
2121
|
|
2074
2122
|
|
2075
2123
|
|
2124
|
+
|
2076
2125
|
|
2077
2126
|
|
2078
2127
|
|
@@ -2109,6 +2158,7 @@
|
|
2109
2158
|
|
2110
2159
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
2111
2160
|
|
2161
|
+
|
2112
2162
|
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
|
2113
2163
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2114
2164
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -2123,6 +2173,7 @@
|
|
2123
2173
|
|
2124
2174
|
|
2125
2175
|
|
2176
|
+
|
2126
2177
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2127
2178
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
2128
2179
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
@@ -2153,6 +2204,7 @@
|
|
2153
2204
|
|
2154
2205
|
|
2155
2206
|
|
2207
|
+
|
2156
2208
|
<xsl:attribute name="border">1.5pt solid black</xsl:attribute>
|
2157
2209
|
|
2158
2210
|
|
@@ -2170,6 +2222,7 @@
|
|
2170
2222
|
|
2171
2223
|
|
2172
2224
|
|
2225
|
+
|
2173
2226
|
|
2174
2227
|
|
2175
2228
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -2249,6 +2302,7 @@
|
|
2249
2302
|
|
2250
2303
|
|
2251
2304
|
|
2305
|
+
|
2252
2306
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
2253
2307
|
|
2254
2308
|
|
@@ -2268,7 +2322,7 @@
|
|
2268
2322
|
|
2269
2323
|
|
2270
2324
|
|
2271
|
-
|
2325
|
+
|
2272
2326
|
|
2273
2327
|
<xsl:attribute name="border-top">solid black 0pt</xsl:attribute>
|
2274
2328
|
|
@@ -2284,6 +2338,7 @@
|
|
2284
2338
|
|
2285
2339
|
|
2286
2340
|
|
2341
|
+
|
2287
2342
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
2288
2343
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2289
2344
|
|
@@ -2299,6 +2354,8 @@
|
|
2299
2354
|
|
2300
2355
|
|
2301
2356
|
|
2357
|
+
|
2358
|
+
|
2302
2359
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
|
2303
2360
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
2304
2361
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -2316,6 +2373,7 @@
|
|
2316
2373
|
|
2317
2374
|
|
2318
2375
|
|
2376
|
+
|
2319
2377
|
</xsl:attribute-set><xsl:attribute-set name="fn-container-body-style">
|
2320
2378
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
2321
2379
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
@@ -2345,6 +2403,7 @@
|
|
2345
2403
|
|
2346
2404
|
|
2347
2405
|
|
2406
|
+
|
2348
2407
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
2349
2408
|
|
2350
2409
|
|
@@ -2359,6 +2418,7 @@
|
|
2359
2418
|
|
2360
2419
|
|
2361
2420
|
|
2421
|
+
|
2362
2422
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2363
2423
|
|
2364
2424
|
|
@@ -2410,6 +2470,7 @@
|
|
2410
2470
|
|
2411
2471
|
|
2412
2472
|
|
2473
|
+
|
2413
2474
|
|
2414
2475
|
|
2415
2476
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
@@ -2483,6 +2544,8 @@
|
|
2483
2544
|
|
2484
2545
|
|
2485
2546
|
|
2547
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
|
2548
|
+
|
2486
2549
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
2487
2550
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
2488
2551
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
@@ -2531,6 +2594,7 @@
|
|
2531
2594
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
2532
2595
|
|
2533
2596
|
|
2597
|
+
|
2534
2598
|
|
2535
2599
|
|
2536
2600
|
|
@@ -2573,6 +2637,7 @@
|
|
2573
2637
|
|
2574
2638
|
|
2575
2639
|
|
2640
|
+
|
2576
2641
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
2577
2642
|
<xsl:attribute name="margin-left">25mm</xsl:attribute>
|
2578
2643
|
|
@@ -2599,20 +2664,20 @@
|
|
2599
2664
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
2600
2665
|
|
2601
2666
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
2667
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
2668
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
2669
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
2602
2670
|
|
2603
2671
|
|
2604
|
-
<xsl:attribute name="width">100%</xsl:attribute>
|
2605
2672
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
2606
|
-
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
2607
2673
|
|
2608
2674
|
|
2609
2675
|
|
2610
|
-
|
2611
|
-
|
2676
|
+
|
2612
2677
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
2613
2678
|
|
2614
2679
|
|
2615
|
-
<xsl:attribute name="font-family">Courier New
|
2680
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
2616
2681
|
|
2617
2682
|
|
2618
2683
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
@@ -2688,6 +2753,7 @@
|
|
2688
2753
|
|
2689
2754
|
|
2690
2755
|
|
2756
|
+
|
2691
2757
|
<xsl:attribute name="provisional-distance-between-starts">7mm</xsl:attribute>
|
2692
2758
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
2693
2759
|
|
@@ -2766,6 +2832,7 @@
|
|
2766
2832
|
|
2767
2833
|
|
2768
2834
|
|
2835
|
+
|
2769
2836
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-style">
|
2770
2837
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2771
2838
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
@@ -2794,6 +2861,7 @@
|
|
2794
2861
|
|
2795
2862
|
|
2796
2863
|
|
2864
|
+
|
2797
2865
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
|
2798
2866
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
2799
2867
|
|
@@ -2817,6 +2885,7 @@
|
|
2817
2885
|
|
2818
2886
|
|
2819
2887
|
|
2888
|
+
|
2820
2889
|
</xsl:attribute-set><xsl:attribute-set name="admonition-style">
|
2821
2890
|
|
2822
2891
|
|
@@ -2826,6 +2895,7 @@
|
|
2826
2895
|
|
2827
2896
|
|
2828
2897
|
|
2898
|
+
|
2829
2899
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2830
2900
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2831
2901
|
|
@@ -2836,6 +2906,9 @@
|
|
2836
2906
|
|
2837
2907
|
|
2838
2908
|
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
|
2909
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2910
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2911
|
+
|
2839
2912
|
|
2840
2913
|
|
2841
2914
|
|
@@ -2873,6 +2946,7 @@
|
|
2873
2946
|
|
2874
2947
|
|
2875
2948
|
|
2949
|
+
|
2876
2950
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-style">
|
2877
2951
|
|
2878
2952
|
|
@@ -2904,6 +2978,7 @@
|
|
2904
2978
|
|
2905
2979
|
|
2906
2980
|
|
2981
|
+
|
2907
2982
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2908
2983
|
|
2909
2984
|
|
@@ -2925,6 +3000,7 @@
|
|
2925
3000
|
|
2926
3001
|
|
2927
3002
|
|
3003
|
+
|
2928
3004
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2929
3005
|
|
2930
3006
|
|
@@ -2951,6 +3027,7 @@
|
|
2951
3027
|
|
2952
3028
|
|
2953
3029
|
|
3030
|
+
|
2954
3031
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
2955
3032
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
2956
3033
|
|
@@ -2972,6 +3049,7 @@
|
|
2972
3049
|
|
2973
3050
|
|
2974
3051
|
|
3052
|
+
|
2975
3053
|
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
|
2976
3054
|
<xsl:attribute name="padding-right">3mm</xsl:attribute>
|
2977
3055
|
|
@@ -2993,6 +3071,7 @@
|
|
2993
3071
|
|
2994
3072
|
|
2995
3073
|
|
3074
|
+
|
2996
3075
|
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
2997
3076
|
|
2998
3077
|
|
@@ -3428,6 +3507,8 @@
|
|
3428
3507
|
|
3429
3508
|
|
3430
3509
|
|
3510
|
+
|
3511
|
+
|
3431
3512
|
|
3432
3513
|
|
3433
3514
|
|
@@ -3462,6 +3543,8 @@
|
|
3462
3543
|
|
3463
3544
|
|
3464
3545
|
|
3546
|
+
|
3547
|
+
|
3465
3548
|
<xsl:if test="*[local-name()='thead']">
|
3466
3549
|
<xsl:attribute name="border-top">1pt solid black</xsl:attribute>
|
3467
3550
|
</xsl:if>
|
@@ -3613,25 +3696,31 @@
|
|
3613
3696
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
3614
3697
|
<xsl:param name="continued"/>
|
3615
3698
|
<xsl:if test="normalize-space() != ''">
|
3616
|
-
|
3617
|
-
|
3618
|
-
|
3619
|
-
|
3620
|
-
|
3699
|
+
|
3700
|
+
|
3621
3701
|
|
3622
|
-
|
3623
|
-
|
3702
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
3703
|
+
|
3624
3704
|
|
3625
|
-
<xsl:apply-templates/>
|
3626
3705
|
|
3627
|
-
|
3628
|
-
|
3629
|
-
<xsl:
|
3630
|
-
|
3631
|
-
|
3632
|
-
|
3706
|
+
|
3707
|
+
|
3708
|
+
<xsl:choose>
|
3709
|
+
<xsl:when test="$continued = 'true'">
|
3710
|
+
|
3711
|
+
<xsl:apply-templates/>
|
3712
|
+
|
3713
|
+
</xsl:when>
|
3714
|
+
<xsl:otherwise>
|
3715
|
+
<xsl:apply-templates/>
|
3716
|
+
</xsl:otherwise>
|
3717
|
+
</xsl:choose>
|
3718
|
+
|
3719
|
+
|
3720
|
+
</fo:block>
|
3721
|
+
|
3633
3722
|
|
3634
|
-
|
3723
|
+
|
3635
3724
|
</xsl:if>
|
3636
3725
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
3637
3726
|
<xsl:param name="table-row"/>
|
@@ -4033,19 +4122,25 @@
|
|
4033
4122
|
<fo:table-row>
|
4034
4123
|
<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">
|
4035
4124
|
|
4036
|
-
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
4037
|
-
<xsl:with-param name="continued">true</xsl:with-param>
|
4038
|
-
</xsl:apply-templates>
|
4039
4125
|
|
4040
4126
|
|
4041
|
-
|
4042
|
-
<xsl:
|
4043
|
-
|
4127
|
+
|
4128
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
4129
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
4130
|
+
</xsl:apply-templates>
|
4131
|
+
|
4132
|
+
|
4133
|
+
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
4134
|
+
<xsl:call-template name="table_name_fn_display"/>
|
4135
|
+
</xsl:for-each>
|
4044
4136
|
|
4045
|
-
|
4046
|
-
|
4047
|
-
|
4048
|
-
|
4137
|
+
<fo:block text-align="right" font-style="italic">
|
4138
|
+
<xsl:text> </xsl:text>
|
4139
|
+
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
4140
|
+
</fo:block>
|
4141
|
+
|
4142
|
+
|
4143
|
+
|
4049
4144
|
|
4050
4145
|
|
4051
4146
|
</fo:table-cell>
|
@@ -4148,7 +4243,10 @@
|
|
4148
4243
|
|
4149
4244
|
|
4150
4245
|
<!-- fn processing -->
|
4151
|
-
|
4246
|
+
|
4247
|
+
<xsl:call-template name="table_fn_display"/>
|
4248
|
+
|
4249
|
+
|
4152
4250
|
|
4153
4251
|
<!-- for PAS display Notes after footnotes -->
|
4154
4252
|
|
@@ -4158,6 +4256,9 @@
|
|
4158
4256
|
</fo:table-body>
|
4159
4257
|
|
4160
4258
|
</fo:table>
|
4259
|
+
|
4260
|
+
|
4261
|
+
|
4161
4262
|
</xsl:if>
|
4162
4263
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
4163
4264
|
|
@@ -4302,6 +4403,9 @@
|
|
4302
4403
|
</xsl:choose>
|
4303
4404
|
|
4304
4405
|
|
4406
|
+
|
4407
|
+
|
4408
|
+
|
4305
4409
|
|
4306
4410
|
|
4307
4411
|
<xsl:call-template name="setTableRowAttributes"/>
|
@@ -4321,6 +4425,8 @@
|
|
4321
4425
|
|
4322
4426
|
|
4323
4427
|
|
4428
|
+
|
4429
|
+
|
4324
4430
|
<xsl:call-template name="setTableRowAttributes"/>
|
4325
4431
|
<xsl:apply-templates/>
|
4326
4432
|
</fo:table-row>
|
@@ -4402,6 +4508,8 @@
|
|
4402
4508
|
|
4403
4509
|
|
4404
4510
|
|
4511
|
+
|
4512
|
+
|
4405
4513
|
|
4406
4514
|
|
4407
4515
|
<xsl:if test="count(*) = 1 and (local-name(*[1]) = 'stem' or local-name(*[1]) = 'figure')">
|
@@ -4480,7 +4588,11 @@
|
|
4480
4588
|
|
4481
4589
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
4482
4590
|
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
4483
|
-
<xsl:variable name="
|
4591
|
+
<xsl:variable name="reference_">
|
4592
|
+
<xsl:value-of select="@reference"/>
|
4593
|
+
<xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
|
4594
|
+
</xsl:variable>
|
4595
|
+
<xsl:variable name="reference" select="normalize-space($reference_)"/>
|
4484
4596
|
<!-- fn sequence number in document -->
|
4485
4597
|
<xsl:variable name="current_fn_number">
|
4486
4598
|
<xsl:choose>
|
@@ -4555,7 +4667,7 @@
|
|
4555
4667
|
<xsl:copy-of select="node()"/>
|
4556
4668
|
</fn>
|
4557
4669
|
</xsl:for-each>
|
4558
|
-
<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']/*">
|
4670
|
+
<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']/*">
|
4559
4671
|
<xsl:sort select="@displayorder" data-type="number"/>
|
4560
4672
|
<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])]">
|
4561
4673
|
<!-- copy unique fn -->
|
@@ -6222,6 +6334,11 @@
|
|
6222
6334
|
</xsl:variable>
|
6223
6335
|
<fo:inline xsl:use-attribute-sets="link-style">
|
6224
6336
|
|
6337
|
+
<xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
|
6338
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
6339
|
+
</xsl:if>
|
6340
|
+
|
6341
|
+
|
6225
6342
|
|
6226
6343
|
|
6227
6344
|
|
@@ -6484,7 +6601,19 @@
|
|
6484
6601
|
<xsl:value-of select="$suffix"/>
|
6485
6602
|
</xsl:if>
|
6486
6603
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
6487
|
-
<
|
6604
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
6605
|
+
<xsl:choose>
|
6606
|
+
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
6607
|
+
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
6608
|
+
<xsl:apply-templates/>
|
6609
|
+
</fo:inline>
|
6610
|
+
</xsl:when>
|
6611
|
+
<xsl:otherwise>
|
6612
|
+
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
6613
|
+
<xsl:apply-templates/>
|
6614
|
+
</fo:block>
|
6615
|
+
</xsl:otherwise>
|
6616
|
+
</xsl:choose>
|
6488
6617
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
6489
6618
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
6490
6619
|
<fo:block id="{@id}">
|
@@ -7301,7 +7430,7 @@
|
|
7301
7430
|
</xsl:choose>
|
7302
7431
|
</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">
|
7303
7432
|
<xsl:value-of select="."/>
|
7304
|
-
</xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
7433
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
7305
7434
|
<xsl:text> </xsl:text>
|
7306
7435
|
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
7307
7436
|
<xsl:copy>
|
@@ -8154,6 +8283,7 @@
|
|
8154
8283
|
|
8155
8284
|
|
8156
8285
|
|
8286
|
+
|
8157
8287
|
<xsl:choose>
|
8158
8288
|
<xsl:when test="$depth = 2">3</xsl:when>
|
8159
8289
|
<xsl:otherwise>4</xsl:otherwise>
|
@@ -8781,7 +8911,7 @@
|
|
8781
8911
|
|
8782
8912
|
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
|
8783
8913
|
|
8784
|
-
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
8914
|
+
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
8785
8915
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
8786
8916
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
8787
8917
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
@@ -8792,7 +8922,9 @@
|
|
8792
8922
|
|
8793
8923
|
<xsl:value-of select="*[local-name()='docidentifier'][@type = 'metanorma-ordinal']"/>
|
8794
8924
|
<xsl:if test="not(*[local-name()='docidentifier'][@type = 'metanorma-ordinal'])">
|
8795
|
-
|
8925
|
+
|
8926
|
+
<xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
8927
|
+
|
8796
8928
|
</xsl:if>
|
8797
8929
|
|
8798
8930
|
</fo:inline>
|
@@ -9349,6 +9481,8 @@
|
|
9349
9481
|
</xsl:when>
|
9350
9482
|
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
9351
9483
|
</xsl:choose>
|
9484
|
+
</xsl:template><xsl:template match="*[local-name() = 'lang_none']">
|
9485
|
+
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
9352
9486
|
</xsl:template><xsl:template name="printEdition">
|
9353
9487
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
9354
9488
|
<xsl:text> </xsl:text>
|
@@ -9455,6 +9589,27 @@
|
|
9455
9589
|
</xsl:when>
|
9456
9590
|
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
|
9457
9591
|
</xsl:choose>
|
9592
|
+
</xsl:template><xsl:template name="getMonthLocalizedByNum">
|
9593
|
+
<xsl:param name="num"/>
|
9594
|
+
<xsl:variable name="monthStr">
|
9595
|
+
<xsl:choose>
|
9596
|
+
<xsl:when test="$num = '01'">january</xsl:when>
|
9597
|
+
<xsl:when test="$num = '02'">february</xsl:when>
|
9598
|
+
<xsl:when test="$num = '03'">march</xsl:when>
|
9599
|
+
<xsl:when test="$num = '04'">april</xsl:when>
|
9600
|
+
<xsl:when test="$num = '05'">may</xsl:when>
|
9601
|
+
<xsl:when test="$num = '06'">june</xsl:when>
|
9602
|
+
<xsl:when test="$num = '07'">july</xsl:when>
|
9603
|
+
<xsl:when test="$num = '08'">august</xsl:when>
|
9604
|
+
<xsl:when test="$num = '09'">september</xsl:when>
|
9605
|
+
<xsl:when test="$num = '10'">october</xsl:when>
|
9606
|
+
<xsl:when test="$num = '11'">november</xsl:when>
|
9607
|
+
<xsl:when test="$num = '12'">december</xsl:when>
|
9608
|
+
</xsl:choose>
|
9609
|
+
</xsl:variable>
|
9610
|
+
<xsl:call-template name="getLocalizedString">
|
9611
|
+
<xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
|
9612
|
+
</xsl:call-template>
|
9458
9613
|
</xsl:template><xsl:template name="insertKeywords">
|
9459
9614
|
<xsl:param name="sorting" select="'true'"/>
|
9460
9615
|
<xsl:param name="charAtEnd" select="'.'"/>
|
@@ -9651,6 +9806,7 @@
|
|
9651
9806
|
|
9652
9807
|
|
9653
9808
|
|
9809
|
+
|
9654
9810
|
|
9655
9811
|
|
9656
9812
|
|
@@ -165,10 +165,6 @@ module IsoDoc
|
|
165
165
|
elem.children = l10n("[#{@i18n.source} #{elem.children.to_xml.strip}]")
|
166
166
|
end
|
167
167
|
|
168
|
-
def bibliography_bibitem_number_skip(bibitem)
|
169
|
-
super || @xrefs.klass.standard?(bibitem)
|
170
|
-
end
|
171
|
-
|
172
168
|
def expand_citeas(text)
|
173
169
|
ret = super
|
174
170
|
if @lang == "fr" && /^(CGPM|CIPM) /.match?(ret)
|