metanorma-iec 2.1.2 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/iec.international-standard.xsl +339 -117
- data/lib/metanorma/iec/biblio.rng +102 -5
- data/lib/metanorma/iec/isodoc.rng +33 -0
- data/lib/metanorma/iec/isostandard.rng +3 -6
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/isodoc/ref_spec.rb +1 -1
- data/spec/metanorma/base_spec.rb +0 -12
- data/spec/metanorma/cleanup_spec.rb +1 -4
- data/spec/metanorma/iev_spec.rb +3 -12
- data/spec/spec_helper.rb +0 -3
- metadata +3 -3
@@ -2087,14 +2087,15 @@
|
|
2087
2087
|
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
|
2088
2088
|
</xsl:otherwise>
|
2089
2089
|
</xsl:choose>
|
2090
|
-
</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">
|
2090
|
+
</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">
|
2091
2091
|
|
2092
2092
|
|
2093
2093
|
|
2094
2094
|
|
2095
2095
|
|
2096
2096
|
|
2097
|
-
<xsl:attribute name="font-family">Arial, Times New Roman, STIX Two Math,
|
2097
|
+
<xsl:attribute name="font-family">Arial, Times New Roman, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
2098
|
+
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
2098
2099
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2099
2100
|
|
2100
2101
|
|
@@ -2107,6 +2108,7 @@
|
|
2107
2108
|
|
2108
2109
|
|
2109
2110
|
|
2111
|
+
|
2110
2112
|
</xsl:attribute-set><xsl:template name="insertRootStyle">
|
2111
2113
|
<xsl:param name="root-style"/>
|
2112
2114
|
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
@@ -2118,17 +2120,60 @@
|
|
2118
2120
|
</xsl:variable>
|
2119
2121
|
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
|
2120
2122
|
|
2123
|
+
<xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
|
2124
|
+
|
2121
2125
|
<xsl:for-each select="$root-style_/root-style/@*">
|
2126
|
+
|
2122
2127
|
<xsl:choose>
|
2123
|
-
<xsl:when test="local-name() = 'font-family'
|
2128
|
+
<xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
|
2129
|
+
<xsl:when test="local-name() = 'font-family'">
|
2130
|
+
|
2131
|
+
<xsl:variable name="font_regional_prefix">
|
2132
|
+
<xsl:choose>
|
2133
|
+
<xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
|
2134
|
+
<xsl:otherwise>Noto Serif</xsl:otherwise>
|
2135
|
+
</xsl:choose>
|
2136
|
+
</xsl:variable>
|
2137
|
+
|
2124
2138
|
<xsl:attribute name="{local-name()}">
|
2125
|
-
|
2139
|
+
|
2140
|
+
<xsl:variable name="font_extended">
|
2141
|
+
<xsl:choose>
|
2142
|
+
<xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
2143
|
+
<xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
|
2144
|
+
<xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
|
2145
|
+
<xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
|
2146
|
+
<xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
2147
|
+
<xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
|
2148
|
+
</xsl:choose>
|
2149
|
+
</xsl:variable>
|
2150
|
+
<xsl:if test="normalize-space($font_extended) != ''">
|
2151
|
+
<xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
|
2152
|
+
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
2153
|
+
</xsl:if>
|
2154
|
+
|
2155
|
+
<xsl:value-of select="."/>
|
2156
|
+
|
2157
|
+
<xsl:if test="$additional_fonts != ''">
|
2158
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
2159
|
+
</xsl:if>
|
2126
2160
|
</xsl:attribute>
|
2127
2161
|
</xsl:when>
|
2128
2162
|
<xsl:otherwise>
|
2129
2163
|
<xsl:copy-of select="."/>
|
2130
2164
|
</xsl:otherwise>
|
2131
2165
|
</xsl:choose>
|
2166
|
+
|
2167
|
+
<!-- <xsl:choose>
|
2168
|
+
<xsl:when test="local-name() = 'font-family'">
|
2169
|
+
<xsl:attribute name="{local-name()}">
|
2170
|
+
<xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
|
2171
|
+
</xsl:attribute>
|
2172
|
+
</xsl:when>
|
2173
|
+
<xsl:otherwise>
|
2174
|
+
<xsl:copy-of select="."/>
|
2175
|
+
</xsl:otherwise>
|
2176
|
+
</xsl:choose> -->
|
2132
2177
|
</xsl:for-each>
|
2133
2178
|
</xsl:template><xsl:attribute-set name="copyright-statement-style">
|
2134
2179
|
|
@@ -2199,7 +2244,7 @@
|
|
2199
2244
|
|
2200
2245
|
|
2201
2246
|
|
2202
|
-
<xsl:attribute name="font-family">Courier New
|
2247
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
2203
2248
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
2204
2249
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
2205
2250
|
|
@@ -2207,6 +2252,7 @@
|
|
2207
2252
|
|
2208
2253
|
|
2209
2254
|
|
2255
|
+
|
2210
2256
|
|
2211
2257
|
|
2212
2258
|
|
@@ -2221,7 +2267,10 @@
|
|
2221
2267
|
|
2222
2268
|
</xsl:attribute-set><xsl:attribute-set name="requirement-style">
|
2223
2269
|
|
2270
|
+
|
2224
2271
|
</xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
|
2272
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2273
|
+
|
2225
2274
|
|
2226
2275
|
</xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
|
2227
2276
|
|
@@ -2250,12 +2299,14 @@
|
|
2250
2299
|
|
2251
2300
|
|
2252
2301
|
|
2302
|
+
|
2253
2303
|
|
2254
2304
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
2255
2305
|
|
2256
2306
|
|
2257
2307
|
|
2258
2308
|
|
2309
|
+
|
2259
2310
|
<xsl:attribute name="space-before">8pt</xsl:attribute>
|
2260
2311
|
<xsl:attribute name="space-after">8pt</xsl:attribute>
|
2261
2312
|
|
@@ -2292,6 +2343,7 @@
|
|
2292
2343
|
|
2293
2344
|
|
2294
2345
|
|
2346
|
+
|
2295
2347
|
|
2296
2348
|
|
2297
2349
|
|
@@ -2322,10 +2374,12 @@
|
|
2322
2374
|
|
2323
2375
|
|
2324
2376
|
|
2377
|
+
|
2325
2378
|
|
2326
2379
|
|
2327
2380
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
2328
2381
|
|
2382
|
+
|
2329
2383
|
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
|
2330
2384
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2331
2385
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -2350,6 +2404,7 @@
|
|
2350
2404
|
|
2351
2405
|
|
2352
2406
|
|
2407
|
+
|
2353
2408
|
|
2354
2409
|
|
2355
2410
|
|
@@ -2380,6 +2435,7 @@
|
|
2380
2435
|
|
2381
2436
|
|
2382
2437
|
|
2438
|
+
|
2383
2439
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
2384
2440
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2385
2441
|
|
@@ -2391,6 +2447,7 @@
|
|
2391
2447
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2392
2448
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
2393
2449
|
|
2450
|
+
|
2394
2451
|
|
2395
2452
|
|
2396
2453
|
|
@@ -2474,6 +2531,7 @@
|
|
2474
2531
|
|
2475
2532
|
|
2476
2533
|
|
2534
|
+
|
2477
2535
|
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
2478
2536
|
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
|
2479
2537
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
@@ -2488,7 +2546,7 @@
|
|
2488
2546
|
|
2489
2547
|
<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
|
2490
2548
|
|
2491
|
-
|
2549
|
+
|
2492
2550
|
|
2493
2551
|
|
2494
2552
|
|
@@ -2506,6 +2564,7 @@
|
|
2506
2564
|
|
2507
2565
|
|
2508
2566
|
|
2567
|
+
|
2509
2568
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-style">
|
2510
2569
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2511
2570
|
|
@@ -2513,12 +2572,14 @@
|
|
2513
2572
|
|
2514
2573
|
|
2515
2574
|
|
2575
|
+
|
2516
2576
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
2517
2577
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2518
2578
|
<xsl:attribute name="text-indent">-6mm</xsl:attribute>
|
2519
2579
|
<xsl:attribute name="margin-left">6mm</xsl:attribute>
|
2520
2580
|
|
2521
2581
|
|
2582
|
+
|
2522
2583
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
|
2523
2584
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
2524
2585
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -2537,6 +2598,7 @@
|
|
2537
2598
|
|
2538
2599
|
|
2539
2600
|
|
2601
|
+
|
2540
2602
|
</xsl:attribute-set><xsl:attribute-set name="fn-container-body-style">
|
2541
2603
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
2542
2604
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
@@ -2576,6 +2638,7 @@
|
|
2576
2638
|
|
2577
2639
|
|
2578
2640
|
|
2641
|
+
|
2579
2642
|
</xsl:attribute-set><xsl:attribute-set name="dl-name-style">
|
2580
2643
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2581
2644
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
@@ -2586,6 +2649,7 @@
|
|
2586
2649
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2587
2650
|
|
2588
2651
|
|
2652
|
+
|
2589
2653
|
|
2590
2654
|
|
2591
2655
|
|
@@ -2635,6 +2699,7 @@
|
|
2635
2699
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
2636
2700
|
<xsl:attribute name="margin-bottom">9pt</xsl:attribute>
|
2637
2701
|
|
2702
|
+
|
2638
2703
|
|
2639
2704
|
|
2640
2705
|
|
@@ -2672,9 +2737,10 @@
|
|
2672
2737
|
|
2673
2738
|
|
2674
2739
|
|
2675
|
-
|
2740
|
+
|
2676
2741
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
2677
|
-
|
2742
|
+
|
2743
|
+
|
2678
2744
|
|
2679
2745
|
|
2680
2746
|
|
@@ -2687,6 +2753,7 @@
|
|
2687
2753
|
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
2688
2754
|
|
2689
2755
|
|
2756
|
+
|
2690
2757
|
|
2691
2758
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
2692
2759
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
@@ -2701,6 +2768,8 @@
|
|
2701
2768
|
|
2702
2769
|
|
2703
2770
|
|
2771
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
|
2772
|
+
|
2704
2773
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
2705
2774
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
2706
2775
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
@@ -2751,6 +2820,7 @@
|
|
2751
2820
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
2752
2821
|
|
2753
2822
|
|
2823
|
+
|
2754
2824
|
|
2755
2825
|
|
2756
2826
|
|
@@ -2797,6 +2867,7 @@
|
|
2797
2867
|
|
2798
2868
|
|
2799
2869
|
|
2870
|
+
|
2800
2871
|
</xsl:attribute-set><xsl:attribute-set name="formula-stem-number-style">
|
2801
2872
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
2802
2873
|
|
@@ -2817,20 +2888,21 @@
|
|
2817
2888
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
2818
2889
|
|
2819
2890
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
2891
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
2892
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
2893
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
2820
2894
|
|
2821
2895
|
|
2822
2896
|
|
2823
2897
|
|
2824
2898
|
<xsl:attribute name="width">75%</xsl:attribute>
|
2825
2899
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
2826
|
-
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
2827
2900
|
|
2828
|
-
|
2829
|
-
|
2901
|
+
|
2830
2902
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
2831
2903
|
|
2832
2904
|
|
2833
|
-
<xsl:attribute name="font-family">Courier New
|
2905
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
2834
2906
|
|
2835
2907
|
|
2836
2908
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
@@ -2919,6 +2991,7 @@
|
|
2919
2991
|
|
2920
2992
|
|
2921
2993
|
|
2994
|
+
|
2922
2995
|
</xsl:attribute-set><xsl:attribute-set name="list-name-style">
|
2923
2996
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2924
2997
|
|
@@ -2984,6 +3057,7 @@
|
|
2984
3057
|
|
2985
3058
|
|
2986
3059
|
|
3060
|
+
|
2987
3061
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-style">
|
2988
3062
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2989
3063
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
@@ -3010,6 +3084,7 @@
|
|
3010
3084
|
|
3011
3085
|
|
3012
3086
|
|
3087
|
+
|
3013
3088
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
|
3014
3089
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
3015
3090
|
|
@@ -3032,6 +3107,7 @@
|
|
3032
3107
|
|
3033
3108
|
|
3034
3109
|
|
3110
|
+
|
3035
3111
|
</xsl:attribute-set><xsl:attribute-set name="admonition-style">
|
3036
3112
|
|
3037
3113
|
|
@@ -3053,12 +3129,13 @@
|
|
3053
3129
|
|
3054
3130
|
|
3055
3131
|
|
3132
|
+
|
3056
3133
|
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
|
3134
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3135
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3057
3136
|
|
3058
3137
|
|
3059
3138
|
|
3060
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3061
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3062
3139
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3063
3140
|
<xsl:attribute name="padding">1mm</xsl:attribute>
|
3064
3141
|
<xsl:attribute name="padding-top">2mm</xsl:attribute>
|
@@ -3070,6 +3147,7 @@
|
|
3070
3147
|
|
3071
3148
|
|
3072
3149
|
|
3150
|
+
|
3073
3151
|
</xsl:attribute-set><xsl:attribute-set name="admonition-name-style">
|
3074
3152
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3075
3153
|
|
@@ -3097,6 +3175,7 @@
|
|
3097
3175
|
|
3098
3176
|
|
3099
3177
|
|
3178
|
+
|
3100
3179
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-style">
|
3101
3180
|
|
3102
3181
|
|
@@ -3129,6 +3208,10 @@
|
|
3129
3208
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
3130
3209
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
3131
3210
|
|
3211
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
3212
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
3213
|
+
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
|
3214
|
+
</xsl:if> -->
|
3132
3215
|
|
3133
3216
|
|
3134
3217
|
|
@@ -3158,13 +3241,16 @@
|
|
3158
3241
|
|
3159
3242
|
|
3160
3243
|
|
3244
|
+
|
3161
3245
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
|
3162
3246
|
|
3163
3247
|
|
3248
|
+
|
3164
3249
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
3165
3250
|
|
3166
3251
|
|
3167
3252
|
|
3253
|
+
|
3168
3254
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
|
3169
3255
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
3170
3256
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
@@ -3187,6 +3273,7 @@
|
|
3187
3273
|
|
3188
3274
|
|
3189
3275
|
|
3276
|
+
|
3190
3277
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-number-style">
|
3191
3278
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
3192
3279
|
|
@@ -3208,6 +3295,7 @@
|
|
3208
3295
|
|
3209
3296
|
|
3210
3297
|
|
3298
|
+
|
3211
3299
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-body-style">
|
3212
3300
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
3213
3301
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -3226,6 +3314,7 @@
|
|
3226
3314
|
|
3227
3315
|
|
3228
3316
|
|
3317
|
+
|
3229
3318
|
</xsl:attribute-set><xsl:attribute-set name="references-non-normative-style">
|
3230
3319
|
|
3231
3320
|
|
@@ -3672,6 +3761,8 @@
|
|
3672
3761
|
|
3673
3762
|
|
3674
3763
|
|
3764
|
+
|
3765
|
+
|
3675
3766
|
|
3676
3767
|
|
3677
3768
|
|
@@ -3711,6 +3802,8 @@
|
|
3711
3802
|
|
3712
3803
|
|
3713
3804
|
|
3805
|
+
|
3806
|
+
|
3714
3807
|
</xsl:element>
|
3715
3808
|
</xsl:variable>
|
3716
3809
|
|
@@ -3798,6 +3891,14 @@
|
|
3798
3891
|
|
3799
3892
|
|
3800
3893
|
|
3894
|
+
<xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
|
3895
|
+
<fo:block keep-with-previous="always" line-height="0.1">
|
3896
|
+
<xsl:for-each select="*[local-name()='bookmark']">
|
3897
|
+
<xsl:call-template name="bookmark"/>
|
3898
|
+
</xsl:for-each>
|
3899
|
+
</fo:block>
|
3900
|
+
</xsl:if>
|
3901
|
+
|
3801
3902
|
</fo:block-container>
|
3802
3903
|
</xsl:variable>
|
3803
3904
|
|
@@ -3856,23 +3957,29 @@
|
|
3856
3957
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
3857
3958
|
<xsl:param name="continued"/>
|
3858
3959
|
<xsl:if test="normalize-space() != ''">
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3862
|
-
|
3863
|
-
|
3960
|
+
|
3961
|
+
|
3864
3962
|
|
3865
|
-
|
3866
|
-
|
3963
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
3964
|
+
|
3867
3965
|
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3966
|
+
|
3967
|
+
|
3968
|
+
|
3969
|
+
<xsl:choose>
|
3970
|
+
<xsl:when test="$continued = 'true'">
|
3971
|
+
|
3972
|
+
</xsl:when>
|
3973
|
+
<xsl:otherwise>
|
3974
|
+
<xsl:apply-templates/>
|
3975
|
+
</xsl:otherwise>
|
3976
|
+
</xsl:choose>
|
3977
|
+
|
3978
|
+
|
3979
|
+
</fo:block>
|
3980
|
+
|
3874
3981
|
|
3875
|
-
|
3982
|
+
|
3876
3983
|
</xsl:if>
|
3877
3984
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
3878
3985
|
<xsl:param name="table-row"/>
|
@@ -4270,12 +4377,18 @@
|
|
4270
4377
|
<fo:table-row>
|
4271
4378
|
<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">
|
4272
4379
|
|
4273
|
-
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
4274
|
-
<xsl:with-param name="continued">true</xsl:with-param>
|
4275
|
-
</xsl:apply-templates>
|
4276
4380
|
|
4277
4381
|
|
4278
4382
|
|
4383
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
4384
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
4385
|
+
</xsl:apply-templates>
|
4386
|
+
|
4387
|
+
|
4388
|
+
|
4389
|
+
|
4390
|
+
|
4391
|
+
|
4279
4392
|
</fo:table-cell>
|
4280
4393
|
</fo:table-row>
|
4281
4394
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -4315,87 +4428,101 @@
|
|
4315
4428
|
</xsl:choose>
|
4316
4429
|
</xsl:variable>
|
4317
4430
|
|
4318
|
-
|
4319
|
-
|
4320
|
-
|
4431
|
+
|
4432
|
+
<xsl:variable name="tableWithNotesAndFootnotes">
|
4433
|
+
|
4434
|
+
<fo:table keep-with-previous="always">
|
4435
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
|
4436
|
+
<xsl:variable name="name" select="local-name()"/>
|
4437
|
+
<xsl:choose>
|
4438
|
+
<xsl:when test="$name = 'border-top'">
|
4439
|
+
<xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
|
4440
|
+
</xsl:when>
|
4441
|
+
<xsl:when test="$name = 'border'">
|
4442
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
4443
|
+
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
4444
|
+
</xsl:when>
|
4445
|
+
<xsl:otherwise>
|
4446
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
4447
|
+
</xsl:otherwise>
|
4448
|
+
</xsl:choose>
|
4449
|
+
</xsl:for-each>
|
4450
|
+
|
4451
|
+
|
4452
|
+
|
4321
4453
|
<xsl:choose>
|
4322
|
-
<xsl:when test="$name
|
4323
|
-
<xsl:
|
4324
|
-
|
4325
|
-
|
4326
|
-
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
4327
|
-
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
4454
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
4455
|
+
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
4456
|
+
<fo:table-column column-width="{@width}"/>
|
4457
|
+
</xsl:for-each>
|
4328
4458
|
</xsl:when>
|
4329
4459
|
<xsl:otherwise>
|
4330
|
-
|
4460
|
+
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
4461
|
+
<xsl:call-template name="insertTableColumnWidth">
|
4462
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
4463
|
+
</xsl:call-template>
|
4331
4464
|
</xsl:otherwise>
|
4332
4465
|
</xsl:choose>
|
4333
|
-
|
4334
|
-
|
4335
|
-
|
4336
|
-
|
4337
|
-
|
4338
|
-
|
4339
|
-
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
4340
|
-
<fo:table-column column-width="{@width}"/>
|
4341
|
-
</xsl:for-each>
|
4342
|
-
</xsl:when>
|
4343
|
-
<xsl:otherwise>
|
4344
|
-
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
4345
|
-
<xsl:call-template name="insertTableColumnWidth">
|
4346
|
-
<xsl:with-param name="colwidths" select="$colwidths"/>
|
4347
|
-
</xsl:call-template>
|
4348
|
-
</xsl:otherwise>
|
4349
|
-
</xsl:choose>
|
4350
|
-
|
4351
|
-
<fo:table-body>
|
4352
|
-
<fo:table-row>
|
4353
|
-
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
4354
|
-
|
4355
|
-
|
4466
|
+
|
4467
|
+
<fo:table-body>
|
4468
|
+
<fo:table-row>
|
4469
|
+
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
4470
|
+
|
4471
|
+
|
4356
4472
|
|
4357
|
-
|
4358
|
-
|
4359
|
-
<!-- fn will be processed inside 'note' processing -->
|
4360
|
-
|
4361
|
-
<xsl:if test="../*[local-name()='note']">
|
4362
|
-
<fo:block margin-bottom="6pt"> </fo:block>
|
4363
|
-
</xsl:if>
|
4364
|
-
|
4365
|
-
|
4366
|
-
|
4367
|
-
|
4368
|
-
|
4369
|
-
|
4370
|
-
<!-- for BSI (not PAS) display Notes before footnotes -->
|
4371
|
-
|
4372
|
-
|
4373
|
-
<!-- except gb and bsi -->
|
4374
|
-
|
4375
|
-
<xsl:apply-templates select="../*[local-name()='note']"/>
|
4376
4473
|
|
4377
|
-
|
4378
|
-
|
4379
|
-
|
4380
|
-
|
4381
|
-
|
4382
|
-
|
4383
|
-
|
4384
|
-
|
4385
|
-
|
4386
|
-
|
4387
|
-
|
4388
|
-
|
4389
|
-
|
4390
|
-
|
4391
|
-
|
4392
|
-
|
4393
|
-
|
4394
|
-
|
4395
|
-
|
4396
|
-
|
4397
|
-
|
4398
|
-
|
4474
|
+
|
4475
|
+
<!-- fn will be processed inside 'note' processing -->
|
4476
|
+
|
4477
|
+
<xsl:if test="../*[local-name()='note']">
|
4478
|
+
<fo:block margin-bottom="6pt"> </fo:block>
|
4479
|
+
</xsl:if>
|
4480
|
+
|
4481
|
+
|
4482
|
+
|
4483
|
+
|
4484
|
+
|
4485
|
+
|
4486
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
4487
|
+
|
4488
|
+
|
4489
|
+
<!-- except gb and bsi -->
|
4490
|
+
|
4491
|
+
<xsl:apply-templates select="../*[local-name()='note']"/>
|
4492
|
+
|
4493
|
+
|
4494
|
+
|
4495
|
+
<!-- horizontal row separator -->
|
4496
|
+
|
4497
|
+
<xsl:if test="../*[local-name()='note']">
|
4498
|
+
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
4499
|
+
<fo:block font-size="1pt"> </fo:block>
|
4500
|
+
</fo:block-container>
|
4501
|
+
</xsl:if>
|
4502
|
+
|
4503
|
+
|
4504
|
+
<!-- fn processing -->
|
4505
|
+
|
4506
|
+
<xsl:call-template name="table_fn_display"/>
|
4507
|
+
|
4508
|
+
|
4509
|
+
|
4510
|
+
<!-- for PAS display Notes after footnotes -->
|
4511
|
+
|
4512
|
+
|
4513
|
+
</fo:table-cell>
|
4514
|
+
</fo:table-row>
|
4515
|
+
</fo:table-body>
|
4516
|
+
|
4517
|
+
</fo:table>
|
4518
|
+
</xsl:variable>
|
4519
|
+
|
4520
|
+
<xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
|
4521
|
+
<xsl:copy-of select="$tableWithNotesAndFootnotes"/>
|
4522
|
+
</xsl:if>
|
4523
|
+
|
4524
|
+
|
4525
|
+
|
4399
4526
|
</xsl:if>
|
4400
4527
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
4401
4528
|
|
@@ -4484,6 +4611,9 @@
|
|
4484
4611
|
|
4485
4612
|
|
4486
4613
|
|
4614
|
+
|
4615
|
+
|
4616
|
+
|
4487
4617
|
|
4488
4618
|
|
4489
4619
|
<xsl:call-template name="setTableRowAttributes"/>
|
@@ -4503,6 +4633,8 @@
|
|
4503
4633
|
|
4504
4634
|
|
4505
4635
|
|
4636
|
+
|
4637
|
+
|
4506
4638
|
<xsl:call-template name="setTableRowAttributes"/>
|
4507
4639
|
<xsl:apply-templates/>
|
4508
4640
|
</fo:table-row>
|
@@ -4593,6 +4725,8 @@
|
|
4593
4725
|
|
4594
4726
|
|
4595
4727
|
|
4728
|
+
|
4729
|
+
|
4596
4730
|
|
4597
4731
|
|
4598
4732
|
|
@@ -4664,7 +4798,11 @@
|
|
4664
4798
|
|
4665
4799
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
4666
4800
|
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
4667
|
-
<xsl:variable name="
|
4801
|
+
<xsl:variable name="reference_">
|
4802
|
+
<xsl:value-of select="@reference"/>
|
4803
|
+
<xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
|
4804
|
+
</xsl:variable>
|
4805
|
+
<xsl:variable name="reference" select="normalize-space($reference_)"/>
|
4668
4806
|
<!-- fn sequence number in document -->
|
4669
4807
|
<xsl:variable name="current_fn_number">
|
4670
4808
|
<xsl:choose>
|
@@ -4684,6 +4822,7 @@
|
|
4684
4822
|
<xsl:variable name="footnote_inline">
|
4685
4823
|
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
4686
4824
|
|
4825
|
+
|
4687
4826
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
4688
4827
|
<xsl:value-of select="$current_fn_number_text"/>
|
4689
4828
|
</fo:basic-link>
|
@@ -4705,8 +4844,12 @@
|
|
4705
4844
|
<fo:block xsl:use-attribute-sets="fn-body-style">
|
4706
4845
|
|
4707
4846
|
|
4847
|
+
|
4708
4848
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
4709
4849
|
|
4850
|
+
|
4851
|
+
|
4852
|
+
|
4710
4853
|
<xsl:value-of select="$current_fn_number_text"/>
|
4711
4854
|
</fo:inline>
|
4712
4855
|
<xsl:apply-templates/>
|
@@ -4739,7 +4882,7 @@
|
|
4739
4882
|
<xsl:copy-of select="node()"/>
|
4740
4883
|
</fn>
|
4741
4884
|
</xsl:for-each>
|
4742
|
-
<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']/*">
|
4885
|
+
<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']/*">
|
4743
4886
|
<xsl:sort select="@displayorder" data-type="number"/>
|
4744
4887
|
<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])]">
|
4745
4888
|
<!-- copy unique fn -->
|
@@ -6401,6 +6544,12 @@
|
|
6401
6544
|
</xsl:variable>
|
6402
6545
|
<fo:inline xsl:use-attribute-sets="link-style">
|
6403
6546
|
|
6547
|
+
<xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
|
6548
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
6549
|
+
</xsl:if>
|
6550
|
+
|
6551
|
+
|
6552
|
+
|
6404
6553
|
|
6405
6554
|
|
6406
6555
|
|
@@ -6411,6 +6560,7 @@
|
|
6411
6560
|
|
6412
6561
|
|
6413
6562
|
|
6563
|
+
|
6414
6564
|
<xsl:choose>
|
6415
6565
|
<xsl:when test="$target_text = ''">
|
6416
6566
|
<xsl:apply-templates/>
|
@@ -6618,6 +6768,7 @@
|
|
6618
6768
|
|
6619
6769
|
|
6620
6770
|
|
6771
|
+
|
6621
6772
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
6622
6773
|
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
6623
6774
|
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
@@ -6640,6 +6791,7 @@
|
|
6640
6791
|
<xsl:otherwise>
|
6641
6792
|
|
6642
6793
|
|
6794
|
+
|
6643
6795
|
</xsl:otherwise>
|
6644
6796
|
</xsl:choose>
|
6645
6797
|
</xsl:variable>
|
@@ -6656,6 +6808,7 @@
|
|
6656
6808
|
</xsl:when>
|
6657
6809
|
<xsl:otherwise>
|
6658
6810
|
|
6811
|
+
|
6659
6812
|
<xsl:text>:</xsl:text>
|
6660
6813
|
|
6661
6814
|
|
@@ -6667,7 +6820,19 @@
|
|
6667
6820
|
<xsl:value-of select="$suffix"/>
|
6668
6821
|
</xsl:if>
|
6669
6822
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
6670
|
-
<
|
6823
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
6824
|
+
<xsl:choose>
|
6825
|
+
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
6826
|
+
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
6827
|
+
<xsl:apply-templates/>
|
6828
|
+
</fo:inline>
|
6829
|
+
</xsl:when>
|
6830
|
+
<xsl:otherwise>
|
6831
|
+
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
6832
|
+
<xsl:apply-templates/>
|
6833
|
+
</fo:block>
|
6834
|
+
</xsl:otherwise>
|
6835
|
+
</xsl:choose>
|
6671
6836
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
6672
6837
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
6673
6838
|
<fo:block id="{@id}">
|
@@ -7431,6 +7596,9 @@
|
|
7431
7596
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
7432
7597
|
|
7433
7598
|
|
7599
|
+
|
7600
|
+
|
7601
|
+
|
7434
7602
|
<xsl:apply-templates/>
|
7435
7603
|
</fo:block>
|
7436
7604
|
</xsl:if>
|
@@ -7491,9 +7659,9 @@
|
|
7491
7659
|
<xsl:apply-templates/>
|
7492
7660
|
</xsl:otherwise>
|
7493
7661
|
</xsl:choose>
|
7494
|
-
</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">
|
7662
|
+
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
|
7495
7663
|
<xsl:value-of select="."/>
|
7496
|
-
</xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
7664
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
7497
7665
|
<xsl:text> </xsl:text>
|
7498
7666
|
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
7499
7667
|
<xsl:copy>
|
@@ -7567,6 +7735,9 @@
|
|
7567
7735
|
<!-- 9 -->
|
7568
7736
|
|
7569
7737
|
|
7738
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
7739
|
+
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
7740
|
+
</xsl:if> -->
|
7570
7741
|
|
7571
7742
|
|
7572
7743
|
|
@@ -8011,10 +8182,14 @@
|
|
8011
8182
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
8012
8183
|
<xsl:variable name="element">inline
|
8013
8184
|
|
8185
|
+
|
8014
8186
|
</xsl:variable>
|
8015
8187
|
<xsl:choose>
|
8016
8188
|
<xsl:when test="contains($element, 'block')">
|
8017
8189
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
8190
|
+
|
8191
|
+
|
8192
|
+
|
8018
8193
|
<xsl:apply-templates/>
|
8019
8194
|
</fo:block>
|
8020
8195
|
</xsl:when>
|
@@ -8128,6 +8303,7 @@
|
|
8128
8303
|
</xsl:if>
|
8129
8304
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
8130
8305
|
|
8306
|
+
|
8131
8307
|
<xsl:apply-templates/>
|
8132
8308
|
</fo:block>
|
8133
8309
|
</fo:block-container>
|
@@ -8284,6 +8460,8 @@
|
|
8284
8460
|
|
8285
8461
|
|
8286
8462
|
|
8463
|
+
|
8464
|
+
|
8287
8465
|
<fo:basic-link fox:alt-text="{@citeas}">
|
8288
8466
|
<xsl:if test="normalize-space(@citeas) = ''">
|
8289
8467
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
@@ -8356,6 +8534,7 @@
|
|
8356
8534
|
|
8357
8535
|
|
8358
8536
|
|
8537
|
+
|
8359
8538
|
</xsl:variable>
|
8360
8539
|
|
8361
8540
|
<xsl:variable name="padding-right">
|
@@ -8709,6 +8888,8 @@
|
|
8709
8888
|
|
8710
8889
|
|
8711
8890
|
|
8891
|
+
|
8892
|
+
|
8712
8893
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
8713
8894
|
<xsl:if test="*[1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
8714
8895
|
<xsl:call-template name="append_add-style"/>
|
@@ -8893,7 +9074,7 @@
|
|
8893
9074
|
</xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
|
8894
9075
|
<!-- to split by '_' and other chars -->
|
8895
9076
|
<xsl:call-template name="add-zero-spaces-java"/>
|
8896
|
-
</xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
9077
|
+
</xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
8897
9078
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
8898
9079
|
<fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
|
8899
9080
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
@@ -8971,9 +9152,9 @@
|
|
8971
9152
|
</fo:block>
|
8972
9153
|
|
8973
9154
|
|
8974
|
-
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
|
9155
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
8975
9156
|
|
8976
|
-
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
9157
|
+
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
8977
9158
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
8978
9159
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
8979
9160
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
@@ -8984,7 +9165,7 @@
|
|
8984
9165
|
|
8985
9166
|
<xsl:value-of select="*[local-name()='docidentifier'][@type = 'metanorma-ordinal']"/>
|
8986
9167
|
<xsl:if test="not(*[local-name()='docidentifier'][@type = 'metanorma-ordinal'])">
|
8987
|
-
<xsl:number format="[1]"/>
|
9168
|
+
<xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
8988
9169
|
</xsl:if>
|
8989
9170
|
|
8990
9171
|
</fo:inline>
|
@@ -9326,12 +9507,16 @@
|
|
9326
9507
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
9327
9508
|
|
9328
9509
|
|
9510
|
+
|
9511
|
+
|
9329
9512
|
|
9330
9513
|
|
9331
9514
|
|
9332
9515
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
9333
9516
|
|
9334
9517
|
|
9518
|
+
|
9519
|
+
|
9335
9520
|
<fo:block text-align="justify">
|
9336
9521
|
<fo:inline>
|
9337
9522
|
<xsl:call-template name="displayAdmonitionName">
|
@@ -9537,6 +9722,8 @@
|
|
9537
9722
|
</xsl:when>
|
9538
9723
|
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
9539
9724
|
</xsl:choose>
|
9725
|
+
</xsl:template><xsl:template match="*[local-name() = 'lang_none']">
|
9726
|
+
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
9540
9727
|
</xsl:template><xsl:template name="printEdition">
|
9541
9728
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
9542
9729
|
<xsl:text> </xsl:text>
|
@@ -9643,8 +9830,30 @@
|
|
9643
9830
|
</xsl:when>
|
9644
9831
|
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
|
9645
9832
|
</xsl:choose>
|
9833
|
+
</xsl:template><xsl:template name="getMonthLocalizedByNum">
|
9834
|
+
<xsl:param name="num"/>
|
9835
|
+
<xsl:variable name="monthStr">
|
9836
|
+
<xsl:choose>
|
9837
|
+
<xsl:when test="$num = '01'">january</xsl:when>
|
9838
|
+
<xsl:when test="$num = '02'">february</xsl:when>
|
9839
|
+
<xsl:when test="$num = '03'">march</xsl:when>
|
9840
|
+
<xsl:when test="$num = '04'">april</xsl:when>
|
9841
|
+
<xsl:when test="$num = '05'">may</xsl:when>
|
9842
|
+
<xsl:when test="$num = '06'">june</xsl:when>
|
9843
|
+
<xsl:when test="$num = '07'">july</xsl:when>
|
9844
|
+
<xsl:when test="$num = '08'">august</xsl:when>
|
9845
|
+
<xsl:when test="$num = '09'">september</xsl:when>
|
9846
|
+
<xsl:when test="$num = '10'">october</xsl:when>
|
9847
|
+
<xsl:when test="$num = '11'">november</xsl:when>
|
9848
|
+
<xsl:when test="$num = '12'">december</xsl:when>
|
9849
|
+
</xsl:choose>
|
9850
|
+
</xsl:variable>
|
9851
|
+
<xsl:call-template name="getLocalizedString">
|
9852
|
+
<xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
|
9853
|
+
</xsl:call-template>
|
9646
9854
|
</xsl:template><xsl:template name="insertKeywords">
|
9647
9855
|
<xsl:param name="sorting" select="'true'"/>
|
9856
|
+
<xsl:param name="meta" select="'false'"/>
|
9648
9857
|
<xsl:param name="charAtEnd" select="'.'"/>
|
9649
9858
|
<xsl:param name="charDelim" select="', '"/>
|
9650
9859
|
<xsl:choose>
|
@@ -9652,6 +9861,7 @@
|
|
9652
9861
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
9653
9862
|
<xsl:sort data-type="text" order="ascending"/>
|
9654
9863
|
<xsl:call-template name="insertKeyword">
|
9864
|
+
<xsl:with-param name="meta" select="$meta"/>
|
9655
9865
|
<xsl:with-param name="charAtEnd" select="$charAtEnd"/>
|
9656
9866
|
<xsl:with-param name="charDelim" select="$charDelim"/>
|
9657
9867
|
</xsl:call-template>
|
@@ -9660,6 +9870,7 @@
|
|
9660
9870
|
<xsl:otherwise>
|
9661
9871
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
9662
9872
|
<xsl:call-template name="insertKeyword">
|
9873
|
+
<xsl:with-param name="meta" select="$meta"/>
|
9663
9874
|
<xsl:with-param name="charAtEnd" select="$charAtEnd"/>
|
9664
9875
|
<xsl:with-param name="charDelim" select="$charDelim"/>
|
9665
9876
|
</xsl:call-template>
|
@@ -9669,7 +9880,15 @@
|
|
9669
9880
|
</xsl:template><xsl:template name="insertKeyword">
|
9670
9881
|
<xsl:param name="charAtEnd"/>
|
9671
9882
|
<xsl:param name="charDelim"/>
|
9672
|
-
<xsl:
|
9883
|
+
<xsl:param name="meta"/>
|
9884
|
+
<xsl:choose>
|
9885
|
+
<xsl:when test="$meta = 'true'">
|
9886
|
+
<xsl:value-of select="."/>
|
9887
|
+
</xsl:when>
|
9888
|
+
<xsl:otherwise>
|
9889
|
+
<xsl:apply-templates/>
|
9890
|
+
</xsl:otherwise>
|
9891
|
+
</xsl:choose>
|
9673
9892
|
<xsl:choose>
|
9674
9893
|
<xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
|
9675
9894
|
<xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
|
@@ -9714,13 +9933,15 @@
|
|
9714
9933
|
<dc:description>
|
9715
9934
|
<xsl:variable name="abstract">
|
9716
9935
|
|
9717
|
-
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
|
9936
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
|
9718
9937
|
|
9719
9938
|
</xsl:variable>
|
9720
9939
|
<xsl:value-of select="normalize-space($abstract)"/>
|
9721
9940
|
</dc:description>
|
9722
9941
|
<pdf:Keywords>
|
9723
|
-
<xsl:call-template name="insertKeywords"
|
9942
|
+
<xsl:call-template name="insertKeywords">
|
9943
|
+
<xsl:with-param name="meta">true</xsl:with-param>
|
9944
|
+
</xsl:call-template>
|
9724
9945
|
</pdf:Keywords>
|
9725
9946
|
</rdf:Description>
|
9726
9947
|
<rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
|
@@ -9844,6 +10065,7 @@
|
|
9844
10065
|
|
9845
10066
|
|
9846
10067
|
|
10068
|
+
|
9847
10069
|
|
9848
10070
|
|
9849
10071
|
|