metanorma-ogc 2.8.2 → 2.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +584 -164
- data/lib/isodoc/ogc/ogc.best-practice.xsl +584 -164
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +584 -164
- data/lib/isodoc/ogc/ogc.community-practice.xsl +584 -164
- data/lib/isodoc/ogc/ogc.community-standard.xsl +584 -164
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +584 -164
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +584 -164
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +584 -164
- data/lib/isodoc/ogc/ogc.other.xsl +584 -164
- data/lib/isodoc/ogc/ogc.policy.xsl +584 -164
- data/lib/isodoc/ogc/ogc.reference-model.xsl +584 -164
- data/lib/isodoc/ogc/ogc.release-notes.xsl +584 -164
- data/lib/isodoc/ogc/ogc.standard.xsl +584 -164
- data/lib/isodoc/ogc/ogc.test-suite.xsl +584 -164
- data/lib/isodoc/ogc/ogc.user-guide.xsl +584 -164
- data/lib/isodoc/ogc/ogc.white-paper.xsl +579 -166
- data/lib/metanorma/ogc/cleanup.rb +4 -4
- data/lib/metanorma/ogc/front.rb +1 -7
- data/lib/metanorma/ogc/isodoc.rng +19 -1
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -2344,6 +2344,9 @@
|
|
2344
2344
|
<xsl:attribute-set name="license-statement-style">
|
2345
2345
|
</xsl:attribute-set> <!-- license-statement-style -->
|
2346
2346
|
|
2347
|
+
<xsl:template name="refine_license-statement-style">
|
2348
|
+
</xsl:template>
|
2349
|
+
|
2347
2350
|
<xsl:attribute-set name="license-statement-title-style">
|
2348
2351
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2349
2352
|
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
@@ -2352,6 +2355,9 @@
|
|
2352
2355
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
2353
2356
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
2354
2357
|
|
2358
|
+
<xsl:template name="refine_license-statement-title-style">
|
2359
|
+
</xsl:template>
|
2360
|
+
|
2355
2361
|
<xsl:attribute-set name="license-statement-p-style">
|
2356
2362
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
2357
2363
|
<xsl:attribute name="margin-top">14pt</xsl:attribute>
|
@@ -2365,6 +2371,9 @@
|
|
2365
2371
|
<xsl:attribute-set name="legal-statement-style">
|
2366
2372
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
2367
2373
|
|
2374
|
+
<xsl:template name="refine_legal-statement-style">
|
2375
|
+
</xsl:template>
|
2376
|
+
|
2368
2377
|
<xsl:attribute-set name="legal-statement-title-style">
|
2369
2378
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2370
2379
|
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
@@ -2372,20 +2381,41 @@
|
|
2372
2381
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2373
2382
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
2374
2383
|
|
2384
|
+
<xsl:template name="refine_legal-statement-title-style">
|
2385
|
+
</xsl:template>
|
2386
|
+
|
2375
2387
|
<xsl:attribute-set name="legal-statement-p-style">
|
2376
2388
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
2377
2389
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
2378
2390
|
|
2391
|
+
<xsl:template name="refine_legal-statement-p-style">
|
2392
|
+
<xsl:if test="@align">
|
2393
|
+
<xsl:attribute name="text-align">
|
2394
|
+
<xsl:value-of select="@align"/>
|
2395
|
+
</xsl:attribute>
|
2396
|
+
</xsl:if>
|
2397
|
+
</xsl:template>
|
2398
|
+
|
2379
2399
|
<xsl:attribute-set name="feedback-statement-style">
|
2380
2400
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
2381
2401
|
|
2402
|
+
<xsl:template name="refine_feedback-statement-style">
|
2403
|
+
</xsl:template>
|
2404
|
+
|
2382
2405
|
<xsl:attribute-set name="feedback-statement-title-style">
|
2383
2406
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2384
2407
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
2385
2408
|
|
2409
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
2410
|
+
|
2411
|
+
</xsl:template>
|
2412
|
+
|
2386
2413
|
<xsl:attribute-set name="feedback-statement-p-style">
|
2387
2414
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
2388
2415
|
|
2416
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
2417
|
+
</xsl:template>
|
2418
|
+
|
2389
2419
|
<!-- End boilerplate sections styles -->
|
2390
2420
|
|
2391
2421
|
<!-- ================================= -->
|
@@ -2420,6 +2450,7 @@
|
|
2420
2450
|
|
2421
2451
|
<xsl:template match="mn:license-statement">
|
2422
2452
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
2453
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
2423
2454
|
<xsl:apply-templates/>
|
2424
2455
|
</fo:block>
|
2425
2456
|
</xsl:template> <!-- license-statement -->
|
@@ -2429,6 +2460,7 @@
|
|
2429
2460
|
<xsl:call-template name="getLevel"/>
|
2430
2461
|
</xsl:variable>
|
2431
2462
|
<fo:block role="H{$level}" xsl:use-attribute-sets="license-statement-title-style">
|
2463
|
+
<xsl:call-template name="refine_license-statement-title-style"/>
|
2432
2464
|
<xsl:apply-templates/>
|
2433
2465
|
</fo:block>
|
2434
2466
|
|
@@ -2448,6 +2480,7 @@
|
|
2448
2480
|
<xsl:template match="mn:legal-statement">
|
2449
2481
|
<xsl:param name="isLegacy">false</xsl:param>
|
2450
2482
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
2483
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
2451
2484
|
<xsl:apply-templates/>
|
2452
2485
|
</fo:block>
|
2453
2486
|
</xsl:template> <!-- legal-statement -->
|
@@ -2467,12 +2500,7 @@
|
|
2467
2500
|
<xsl:param name="margin"/>
|
2468
2501
|
<!-- csa -->
|
2469
2502
|
<fo:block xsl:use-attribute-sets="legal-statement-p-style">
|
2470
|
-
|
2471
|
-
<xsl:if test="@align">
|
2472
|
-
<xsl:attribute name="text-align">
|
2473
|
-
<xsl:value-of select="@align"/>
|
2474
|
-
</xsl:attribute>
|
2475
|
-
</xsl:if>
|
2503
|
+
<xsl:call-template name="refine_legal-statement-p-style"/>
|
2476
2504
|
|
2477
2505
|
<xsl:apply-templates/>
|
2478
2506
|
</fo:block>
|
@@ -2630,6 +2658,27 @@
|
|
2630
2658
|
<xsl:attribute-set name="sourcecode-container-style">
|
2631
2659
|
</xsl:attribute-set>
|
2632
2660
|
|
2661
|
+
<xsl:template name="refine_sourcecode-container-style">
|
2662
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
2663
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2664
|
+
</xsl:if>
|
2665
|
+
|
2666
|
+
<xsl:if test="ancestor::mn:example">
|
2667
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2668
|
+
</xsl:if>
|
2669
|
+
|
2670
|
+
<xsl:copy-of select="@id"/>
|
2671
|
+
|
2672
|
+
<xsl:if test="parent::mn:note">
|
2673
|
+
<xsl:attribute name="margin-left">
|
2674
|
+
<xsl:choose>
|
2675
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
2676
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
2677
|
+
</xsl:choose>
|
2678
|
+
</xsl:attribute>
|
2679
|
+
</xsl:if>
|
2680
|
+
</xsl:template>
|
2681
|
+
|
2633
2682
|
<xsl:attribute-set name="sourcecode-style">
|
2634
2683
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
2635
2684
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -2651,6 +2700,9 @@
|
|
2651
2700
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
2652
2701
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
2653
2702
|
|
2703
|
+
<xsl:template name="refine_sourcecode-name-style">
|
2704
|
+
</xsl:template>
|
2705
|
+
|
2654
2706
|
<xsl:template name="add-zero-spaces-equal">
|
2655
2707
|
<xsl:param name="text" select="."/>
|
2656
2708
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -2742,24 +2794,8 @@
|
|
2742
2794
|
<xsl:otherwise>
|
2743
2795
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
2744
2796
|
|
2745
|
-
<xsl:
|
2746
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2747
|
-
</xsl:if>
|
2748
|
-
|
2749
|
-
<xsl:if test="ancestor::mn:example">
|
2750
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2751
|
-
</xsl:if>
|
2752
|
-
|
2753
|
-
<xsl:copy-of select="@id"/>
|
2797
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
2754
2798
|
|
2755
|
-
<xsl:if test="parent::mn:note">
|
2756
|
-
<xsl:attribute name="margin-left">
|
2757
|
-
<xsl:choose>
|
2758
|
-
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
2759
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
2760
|
-
</xsl:choose>
|
2761
|
-
</xsl:attribute>
|
2762
|
-
</xsl:if>
|
2763
2799
|
<fo:block-container margin-left="0mm" role="SKIP">
|
2764
2800
|
|
2765
2801
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
@@ -3086,6 +3122,7 @@
|
|
3086
3122
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
3087
3123
|
<xsl:if test="normalize-space() != ''">
|
3088
3124
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
3125
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
3089
3126
|
<xsl:apply-templates/>
|
3090
3127
|
</fo:block>
|
3091
3128
|
</xsl:if>
|
@@ -3133,12 +3170,35 @@
|
|
3133
3170
|
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3134
3171
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
3135
3172
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
3136
|
-
</xsl:attribute-set>
|
3173
|
+
</xsl:attribute-set> <!-- pre-style -->
|
3174
|
+
|
3175
|
+
<xsl:template name="refine_pre-style">
|
3176
|
+
</xsl:template>
|
3137
3177
|
|
3138
3178
|
<xsl:attribute-set name="tt-style">
|
3139
3179
|
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3140
3180
|
</xsl:attribute-set>
|
3141
3181
|
|
3182
|
+
<xsl:template name="refine_tt-style">
|
3183
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
3184
|
+
<xsl:choose>
|
3185
|
+
<xsl:when test="ancestor::mn:table">8.5</xsl:when>
|
3186
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
3187
|
+
</xsl:choose>
|
3188
|
+
</xsl:variable>
|
3189
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
3190
|
+
<xsl:if test="$font-size != ''">
|
3191
|
+
<xsl:attribute name="font-size">
|
3192
|
+
<xsl:choose>
|
3193
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
3194
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
3195
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
3196
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
3197
|
+
</xsl:choose>
|
3198
|
+
</xsl:attribute>
|
3199
|
+
</xsl:if>
|
3200
|
+
</xsl:template>
|
3201
|
+
|
3142
3202
|
<xsl:variable name="color-added-text">
|
3143
3203
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
3144
3204
|
</xsl:variable>
|
@@ -3151,9 +3211,14 @@
|
|
3151
3211
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
3152
3212
|
</xsl:attribute-set>
|
3153
3213
|
|
3214
|
+
<xsl:template name="refine_add-style">
|
3215
|
+
</xsl:template>
|
3216
|
+
|
3154
3217
|
<xsl:variable name="add-style">
|
3155
|
-
|
3156
|
-
|
3218
|
+
<add-style xsl:use-attribute-sets="add-style">
|
3219
|
+
<xsl:call-template name="refine_add-style"/>
|
3220
|
+
</add-style>
|
3221
|
+
</xsl:variable>
|
3157
3222
|
<xsl:template name="append_add-style">
|
3158
3223
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
3159
3224
|
</xsl:template>
|
@@ -3166,24 +3231,77 @@
|
|
3166
3231
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
3167
3232
|
</xsl:attribute-set>
|
3168
3233
|
|
3234
|
+
<xsl:template name="refine_del-style">
|
3235
|
+
</xsl:template>
|
3236
|
+
|
3237
|
+
<xsl:attribute-set name="strong-style">
|
3238
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3239
|
+
</xsl:attribute-set>
|
3240
|
+
|
3241
|
+
<xsl:template name="refine_strong_style">
|
3242
|
+
<xsl:if test="ancestor::*['preferred']">
|
3243
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
3244
|
+
</xsl:if>
|
3245
|
+
</xsl:template> <!-- refine_strong_style -->
|
3246
|
+
|
3247
|
+
<xsl:attribute-set name="em-style">
|
3248
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
3249
|
+
</xsl:attribute-set>
|
3250
|
+
|
3251
|
+
<xsl:template name="refine_em_style">
|
3252
|
+
</xsl:template> <!-- refine_em_style -->
|
3253
|
+
|
3254
|
+
<xsl:attribute-set name="sup-style">
|
3255
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
3256
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
3257
|
+
</xsl:attribute-set>
|
3258
|
+
|
3259
|
+
<xsl:template name="refine_sup-style">
|
3260
|
+
</xsl:template>
|
3261
|
+
|
3262
|
+
<xsl:attribute-set name="sub-style">
|
3263
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
3264
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
3265
|
+
</xsl:attribute-set>
|
3266
|
+
|
3267
|
+
<xsl:template name="refine_sub-style">
|
3268
|
+
</xsl:template>
|
3269
|
+
|
3270
|
+
<xsl:attribute-set name="underline-style">
|
3271
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
3272
|
+
</xsl:attribute-set>
|
3273
|
+
|
3274
|
+
<xsl:template name="refine_underline-style">
|
3275
|
+
</xsl:template>
|
3276
|
+
|
3277
|
+
<xsl:attribute-set name="hi-style">
|
3278
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
3279
|
+
</xsl:attribute-set>
|
3280
|
+
|
3281
|
+
<xsl:template name="refine_hi-style">
|
3282
|
+
</xsl:template>
|
3283
|
+
|
3284
|
+
<xsl:attribute-set name="strike-style">
|
3285
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
3286
|
+
</xsl:attribute-set>
|
3287
|
+
|
3288
|
+
<xsl:template name="refine_strike-style">
|
3289
|
+
</xsl:template>
|
3290
|
+
|
3169
3291
|
<xsl:template match="mn:br">
|
3170
3292
|
<xsl:value-of select="$linebreak"/>
|
3171
3293
|
</xsl:template>
|
3172
3294
|
|
3173
|
-
|
3174
|
-
<fo:inline
|
3175
|
-
<xsl:call-template name="
|
3295
|
+
<xsl:template match="mn:em">
|
3296
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
3297
|
+
<xsl:call-template name="refine_em_style"/>
|
3176
3298
|
<xsl:apply-templates/>
|
3177
3299
|
</fo:inline>
|
3178
3300
|
</xsl:template>
|
3179
3301
|
|
3180
|
-
<xsl:template name="refine_italic_style">
|
3181
|
-
</xsl:template>
|
3182
|
-
|
3183
3302
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
3184
3303
|
<xsl:param name="split_keep-within-line"/>
|
3185
|
-
<fo:inline
|
3186
|
-
|
3304
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
3187
3305
|
<xsl:call-template name="refine_strong_style"/>
|
3188
3306
|
|
3189
3307
|
<xsl:apply-templates>
|
@@ -3192,48 +3310,27 @@
|
|
3192
3310
|
</fo:inline>
|
3193
3311
|
</xsl:template>
|
3194
3312
|
|
3195
|
-
<xsl:template name="refine_strong_style">
|
3196
|
-
<xsl:if test="ancestor::*['preferred']">
|
3197
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
3198
|
-
</xsl:if>
|
3199
|
-
</xsl:template>
|
3200
|
-
|
3201
3313
|
<xsl:template match="*[local-name()='padding']">
|
3202
3314
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
3203
3315
|
</xsl:template>
|
3204
3316
|
|
3205
3317
|
<xsl:template match="mn:sup">
|
3206
|
-
<fo:inline
|
3318
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
3319
|
+
<xsl:call-template name="refine_sup-style"/>
|
3207
3320
|
<xsl:apply-templates/>
|
3208
3321
|
</fo:inline>
|
3209
3322
|
</xsl:template>
|
3210
3323
|
|
3211
3324
|
<xsl:template match="mn:sub">
|
3212
|
-
<fo:inline
|
3325
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
3326
|
+
<xsl:call-template name="refine_sub-style"/>
|
3213
3327
|
<xsl:apply-templates/>
|
3214
3328
|
</fo:inline>
|
3215
3329
|
</xsl:template>
|
3216
3330
|
|
3217
3331
|
<xsl:template match="mn:tt">
|
3218
3332
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
3219
|
-
|
3220
|
-
<xsl:variable name="_font-size"> <!-- inherit -->
|
3221
|
-
<xsl:choose>
|
3222
|
-
<xsl:when test="ancestor::mn:table">8.5</xsl:when>
|
3223
|
-
<xsl:otherwise>9.5</xsl:otherwise>
|
3224
|
-
</xsl:choose>
|
3225
|
-
</xsl:variable>
|
3226
|
-
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
3227
|
-
<xsl:if test="$font-size != ''">
|
3228
|
-
<xsl:attribute name="font-size">
|
3229
|
-
<xsl:choose>
|
3230
|
-
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
3231
|
-
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
3232
|
-
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
3233
|
-
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
3234
|
-
</xsl:choose>
|
3235
|
-
</xsl:attribute>
|
3236
|
-
</xsl:if>
|
3333
|
+
<xsl:call-template name="refine_tt-style"/>
|
3237
3334
|
<xsl:apply-templates/>
|
3238
3335
|
</fo:inline>
|
3239
3336
|
</xsl:template> <!-- tt -->
|
@@ -3252,7 +3349,8 @@
|
|
3252
3349
|
</xsl:template>
|
3253
3350
|
|
3254
3351
|
<xsl:template match="mn:underline">
|
3255
|
-
<fo:inline
|
3352
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
3353
|
+
<xsl:call-template name="refine_underline-style"/>
|
3256
3354
|
<xsl:apply-templates/>
|
3257
3355
|
</fo:inline>
|
3258
3356
|
</xsl:template>
|
@@ -3410,6 +3508,7 @@
|
|
3410
3508
|
|
3411
3509
|
<xsl:template match="mn:del">
|
3412
3510
|
<fo:inline xsl:use-attribute-sets="del-style">
|
3511
|
+
<xsl:call-template name="refine_del-style"/>
|
3413
3512
|
<xsl:apply-templates/>
|
3414
3513
|
</fo:inline>
|
3415
3514
|
</xsl:template>
|
@@ -3419,7 +3518,8 @@
|
|
3419
3518
|
|
3420
3519
|
<!-- highlight text -->
|
3421
3520
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
3422
|
-
<fo:inline
|
3521
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
3522
|
+
<xsl:call-template name="refine_hi-style"/>
|
3423
3523
|
<xsl:apply-templates/>
|
3424
3524
|
</fo:inline>
|
3425
3525
|
</xsl:template>
|
@@ -3505,7 +3605,8 @@
|
|
3505
3605
|
</xsl:template>
|
3506
3606
|
|
3507
3607
|
<xsl:template match="mn:strike">
|
3508
|
-
<fo:inline
|
3608
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
3609
|
+
<xsl:call-template name="refine_strike-style"/>
|
3509
3610
|
<xsl:apply-templates/>
|
3510
3611
|
</fo:inline>
|
3511
3612
|
</xsl:template>
|
@@ -3585,6 +3686,7 @@
|
|
3585
3686
|
|
3586
3687
|
<xsl:template match="mn:pre" name="pre">
|
3587
3688
|
<fo:block xsl:use-attribute-sets="pre-style">
|
3689
|
+
<xsl:call-template name="refine_pre-style"/>
|
3588
3690
|
<xsl:copy-of select="@id"/>
|
3589
3691
|
<xsl:choose>
|
3590
3692
|
|
@@ -3616,6 +3718,9 @@
|
|
3616
3718
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3617
3719
|
</xsl:attribute-set>
|
3618
3720
|
|
3721
|
+
<xsl:template name="refine_permission-style">
|
3722
|
+
</xsl:template>
|
3723
|
+
|
3619
3724
|
<xsl:attribute-set name="permission-name-style">
|
3620
3725
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
3621
3726
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -3627,14 +3732,23 @@
|
|
3627
3732
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3628
3733
|
</xsl:attribute-set>
|
3629
3734
|
|
3735
|
+
<xsl:template name="refine_permission-name-style">
|
3736
|
+
</xsl:template>
|
3737
|
+
|
3630
3738
|
<xsl:attribute-set name="permission-label-style">
|
3631
3739
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
3632
3740
|
</xsl:attribute-set>
|
3633
3741
|
|
3742
|
+
<xsl:template name="refine_permission-label-style">
|
3743
|
+
</xsl:template>
|
3744
|
+
|
3634
3745
|
<xsl:attribute-set name="requirement-style">
|
3635
3746
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3636
3747
|
</xsl:attribute-set>
|
3637
3748
|
|
3749
|
+
<xsl:template name="refine_requirement-style">
|
3750
|
+
</xsl:template>
|
3751
|
+
|
3638
3752
|
<xsl:attribute-set name="requirement-name-style">
|
3639
3753
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3640
3754
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -3646,10 +3760,19 @@
|
|
3646
3760
|
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
3647
3761
|
</xsl:attribute-set>
|
3648
3762
|
|
3763
|
+
<xsl:template name="refine_requirement-name-style">
|
3764
|
+
<xsl:if test="../@type = 'class'">
|
3765
|
+
<xsl:attribute name="background-color">white</xsl:attribute>
|
3766
|
+
</xsl:if>
|
3767
|
+
</xsl:template>
|
3768
|
+
|
3649
3769
|
<xsl:attribute-set name="requirement-label-style">
|
3650
3770
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
3651
3771
|
</xsl:attribute-set>
|
3652
3772
|
|
3773
|
+
<xsl:template name="refine_requirement-label-style">
|
3774
|
+
</xsl:template>
|
3775
|
+
|
3653
3776
|
<xsl:attribute-set name="subject-style">
|
3654
3777
|
</xsl:attribute-set>
|
3655
3778
|
|
@@ -3678,6 +3801,9 @@
|
|
3678
3801
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3679
3802
|
</xsl:attribute-set>
|
3680
3803
|
|
3804
|
+
<xsl:template name="refine_recommendation-style">
|
3805
|
+
</xsl:template>
|
3806
|
+
|
3681
3807
|
<xsl:attribute-set name="recommendation-name-style">
|
3682
3808
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
3683
3809
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -3689,16 +3815,23 @@
|
|
3689
3815
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3690
3816
|
</xsl:attribute-set>
|
3691
3817
|
|
3818
|
+
<xsl:template name="refine_recommendation-name-style">
|
3819
|
+
</xsl:template>
|
3820
|
+
|
3692
3821
|
<xsl:attribute-set name="recommendation-label-style">
|
3693
3822
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
3694
3823
|
</xsl:attribute-set>
|
3695
3824
|
|
3825
|
+
<xsl:template name="refine_recommendation-label-style">
|
3826
|
+
</xsl:template>
|
3827
|
+
|
3696
3828
|
<!-- ========== -->
|
3697
3829
|
<!-- permission -->
|
3698
3830
|
<!-- ========== -->
|
3699
3831
|
<xsl:template match="mn:permission">
|
3700
3832
|
<xsl:call-template name="setNamedDestination"/>
|
3701
3833
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
3834
|
+
<xsl:call-template name="refine_permission-style"/>
|
3702
3835
|
<xsl:apply-templates select="mn:fmt-name"/>
|
3703
3836
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
3704
3837
|
</fo:block>
|
@@ -3707,6 +3840,7 @@
|
|
3707
3840
|
<xsl:template match="mn:permission/mn:fmt-name">
|
3708
3841
|
<xsl:if test="normalize-space() != ''">
|
3709
3842
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
3843
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
3710
3844
|
<xsl:apply-templates/>
|
3711
3845
|
<xsl:text>:</xsl:text>
|
3712
3846
|
</fo:block>
|
@@ -3715,6 +3849,7 @@
|
|
3715
3849
|
|
3716
3850
|
<xsl:template match="mn:permission/mn:label">
|
3717
3851
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
3852
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
3718
3853
|
<xsl:apply-templates/>
|
3719
3854
|
</fo:block>
|
3720
3855
|
</xsl:template>
|
@@ -3727,6 +3862,7 @@
|
|
3727
3862
|
<xsl:template match="mn:requirement">
|
3728
3863
|
<xsl:call-template name="setNamedDestination"/>
|
3729
3864
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
3865
|
+
<xsl:call-template name="refine_requirement-style"/>
|
3730
3866
|
<xsl:apply-templates select="mn:fmt-name"/>
|
3731
3867
|
<xsl:apply-templates select="mn:label"/>
|
3732
3868
|
<xsl:apply-templates select="@obligation"/>
|
@@ -3739,9 +3875,7 @@
|
|
3739
3875
|
<xsl:if test="normalize-space() != ''">
|
3740
3876
|
|
3741
3877
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
3742
|
-
|
3743
|
-
<xsl:attribute name="background-color">white</xsl:attribute>
|
3744
|
-
</xsl:if>
|
3878
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
3745
3879
|
<xsl:apply-templates/>
|
3746
3880
|
<xsl:text>:</xsl:text>
|
3747
3881
|
</fo:block>
|
@@ -3750,6 +3884,7 @@
|
|
3750
3884
|
|
3751
3885
|
<xsl:template match="mn:requirement/mn:label">
|
3752
3886
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
3887
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
3753
3888
|
<xsl:apply-templates/>
|
3754
3889
|
</fo:block>
|
3755
3890
|
</xsl:template>
|
@@ -3775,6 +3910,7 @@
|
|
3775
3910
|
<xsl:template match="mn:recommendation">
|
3776
3911
|
<xsl:call-template name="setNamedDestination"/>
|
3777
3912
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
3913
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
3778
3914
|
<xsl:apply-templates select="mn:fmt-name"/>
|
3779
3915
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
3780
3916
|
</fo:block>
|
@@ -3784,6 +3920,7 @@
|
|
3784
3920
|
<xsl:if test="normalize-space() != ''">
|
3785
3921
|
|
3786
3922
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
3923
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
3787
3924
|
<xsl:apply-templates/>
|
3788
3925
|
</fo:block>
|
3789
3926
|
</xsl:if>
|
@@ -3791,6 +3928,7 @@
|
|
3791
3928
|
|
3792
3929
|
<xsl:template match="mn:recommendation/mn:label">
|
3793
3930
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
3931
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
3794
3932
|
<xsl:apply-templates/>
|
3795
3933
|
</fo:block>
|
3796
3934
|
</xsl:template>
|
@@ -3983,37 +4121,67 @@
|
|
3983
4121
|
<xsl:attribute-set name="term-style">
|
3984
4122
|
</xsl:attribute-set> <!-- term-style -->
|
3985
4123
|
|
4124
|
+
<xsl:template name="refine_term-style">
|
4125
|
+
</xsl:template>
|
4126
|
+
|
3986
4127
|
<xsl:attribute-set name="term-name-style">
|
3987
4128
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3988
4129
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3989
4130
|
</xsl:attribute-set> <!-- term-name-style -->
|
3990
4131
|
|
3991
|
-
|
4132
|
+
<xsl:template name="refine_term-name-style">
|
4133
|
+
</xsl:template>
|
4134
|
+
|
4135
|
+
<xsl:attribute-set name="preferred-block-style">
|
3992
4136
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
3993
4137
|
|
4138
|
+
<xsl:template name="refine_preferred-block-style">
|
4139
|
+
</xsl:template>
|
4140
|
+
|
3994
4141
|
<xsl:attribute-set name="preferred-term-style">
|
3995
4142
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3996
4143
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3997
4144
|
<xsl:attribute name="line-height">1</xsl:attribute>
|
3998
4145
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
3999
4146
|
|
4147
|
+
<xsl:template name="refine_preferred-term-style">
|
4148
|
+
<xsl:if test="mn:strong">
|
4149
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
4150
|
+
</xsl:if>
|
4151
|
+
</xsl:template>
|
4152
|
+
|
4000
4153
|
<xsl:attribute-set name="domain-style">
|
4001
4154
|
</xsl:attribute-set> <!-- domain-style -->
|
4002
4155
|
|
4156
|
+
<xsl:template name="refine_domain-style">
|
4157
|
+
</xsl:template>
|
4158
|
+
|
4003
4159
|
<xsl:attribute-set name="admitted-style">
|
4004
4160
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4005
4161
|
</xsl:attribute-set> <!-- admitted-style -->
|
4006
4162
|
|
4163
|
+
<xsl:template name="refine_admitted-style">
|
4164
|
+
</xsl:template>
|
4165
|
+
|
4007
4166
|
<xsl:attribute-set name="deprecates-style">
|
4008
4167
|
</xsl:attribute-set> <!-- deprecates-style -->
|
4009
4168
|
|
4169
|
+
<xsl:template name="refine_deprecates-style">
|
4170
|
+
</xsl:template>
|
4171
|
+
|
4010
4172
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
4011
4173
|
</xsl:attribute-set>
|
4012
4174
|
|
4175
|
+
<xsl:template name="refine_related-block-style">
|
4176
|
+
</xsl:template>
|
4177
|
+
|
4013
4178
|
<xsl:attribute-set name="definition-style">
|
4014
4179
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
4015
4180
|
</xsl:attribute-set> <!-- definition-style -->
|
4016
4181
|
|
4182
|
+
<xsl:template name="refine_definition-style">
|
4183
|
+
</xsl:template>
|
4184
|
+
|
4017
4185
|
<xsl:attribute-set name="termsource-style">
|
4018
4186
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4019
4187
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
@@ -4025,11 +4193,17 @@
|
|
4025
4193
|
<xsl:attribute-set name="termsource-text-style">
|
4026
4194
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
4027
4195
|
|
4196
|
+
<xsl:template name="refine_termsource-text-style">
|
4197
|
+
</xsl:template>
|
4198
|
+
|
4028
4199
|
<xsl:attribute-set name="origin-style">
|
4029
4200
|
<xsl:attribute name="color">blue</xsl:attribute>
|
4030
4201
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4031
4202
|
</xsl:attribute-set> <!-- origin-style -->
|
4032
4203
|
|
4204
|
+
<xsl:template name="refine_origin-style">
|
4205
|
+
</xsl:template>
|
4206
|
+
|
4033
4207
|
<!-- ====== -->
|
4034
4208
|
<!-- term -->
|
4035
4209
|
<!-- ====== -->
|
@@ -4045,9 +4219,8 @@
|
|
4045
4219
|
<xsl:template match="mn:term">
|
4046
4220
|
<xsl:call-template name="setNamedDestination"/>
|
4047
4221
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
4222
|
+
<xsl:call-template name="refine_term-style"/>
|
4048
4223
|
|
4049
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
4050
|
-
</xsl:if>
|
4051
4224
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4052
4225
|
</fo:block>
|
4053
4226
|
</xsl:template>
|
@@ -4123,6 +4296,7 @@
|
|
4123
4296
|
<!-- text SOURCE: -->
|
4124
4297
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
4125
4298
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
4299
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
4126
4300
|
<xsl:value-of select="."/>
|
4127
4301
|
</fo:inline>
|
4128
4302
|
</xsl:template>
|
@@ -4135,6 +4309,7 @@
|
|
4135
4309
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4136
4310
|
</xsl:if>
|
4137
4311
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
4312
|
+
<xsl:call-template name="refine_origin-style"/>
|
4138
4313
|
<xsl:apply-templates/>
|
4139
4314
|
</fo:inline>
|
4140
4315
|
</fo:basic-link>
|
@@ -4189,9 +4364,12 @@
|
|
4189
4364
|
</xsl:variable>
|
4190
4365
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
4191
4366
|
|
4367
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
4368
|
+
|
4192
4369
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
4193
4370
|
|
4194
4371
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
4372
|
+
<xsl:call-template name="refine_term-name-style"/>
|
4195
4373
|
|
4196
4374
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
4197
4375
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -4202,7 +4380,7 @@
|
|
4202
4380
|
</xsl:if>
|
4203
4381
|
|
4204
4382
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
4205
|
-
<xsl:call-template name="
|
4383
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
4206
4384
|
|
4207
4385
|
<xsl:apply-templates/>
|
4208
4386
|
</fo:block>
|
@@ -4223,22 +4401,18 @@
|
|
4223
4401
|
|
4224
4402
|
<xsl:template match="mn:fmt-admitted">
|
4225
4403
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
4404
|
+
<xsl:call-template name="refine_admitted-style"/>
|
4226
4405
|
<xsl:apply-templates/>
|
4227
4406
|
</fo:block>
|
4228
4407
|
</xsl:template>
|
4229
4408
|
|
4230
4409
|
<xsl:template match="mn:fmt-deprecates">
|
4231
4410
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
4411
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
4232
4412
|
<xsl:apply-templates/>
|
4233
4413
|
</fo:block>
|
4234
4414
|
</xsl:template>
|
4235
4415
|
|
4236
|
-
<xsl:template name="setStyle_preferred">
|
4237
|
-
<xsl:if test="mn:strong">
|
4238
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
4239
|
-
</xsl:if>
|
4240
|
-
</xsl:template>
|
4241
|
-
|
4242
4416
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
4243
4417
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
4244
4418
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -4248,6 +4422,7 @@
|
|
4248
4422
|
|
4249
4423
|
<xsl:template match="mn:fmt-related">
|
4250
4424
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
4425
|
+
<xsl:call-template name="refine_related-block-style"/>
|
4251
4426
|
<xsl:apply-templates/>
|
4252
4427
|
</fo:block>
|
4253
4428
|
</xsl:template>
|
@@ -4262,6 +4437,7 @@
|
|
4262
4437
|
<!-- ========== -->
|
4263
4438
|
<xsl:template match="mn:fmt-definition">
|
4264
4439
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
4440
|
+
<xsl:call-template name="refine_definition-style"/>
|
4265
4441
|
<xsl:apply-templates/>
|
4266
4442
|
</fo:block>
|
4267
4443
|
</xsl:template>
|
@@ -4311,6 +4487,9 @@
|
|
4311
4487
|
<xsl:attribute-set name="example-body-style">
|
4312
4488
|
</xsl:attribute-set> <!-- example-body-style -->
|
4313
4489
|
|
4490
|
+
<xsl:template name="refine_example-body-style">
|
4491
|
+
</xsl:template>
|
4492
|
+
|
4314
4493
|
<xsl:attribute-set name="example-name-style">
|
4315
4494
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4316
4495
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
@@ -4361,6 +4540,8 @@
|
|
4361
4540
|
<xsl:when test="contains($element, 'block')">
|
4362
4541
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
4363
4542
|
|
4543
|
+
<xsl:call-template name="refine_example-p-style"/>
|
4544
|
+
|
4364
4545
|
<xsl:apply-templates/>
|
4365
4546
|
</fo:block>
|
4366
4547
|
</xsl:when>
|
@@ -4412,6 +4593,7 @@
|
|
4412
4593
|
</fo:block>
|
4413
4594
|
|
4414
4595
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
4596
|
+
<xsl:call-template name="refine_example-body-style"/>
|
4415
4597
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
4416
4598
|
<xsl:variable name="example_body">
|
4417
4599
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -4474,6 +4656,7 @@
|
|
4474
4656
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
4475
4657
|
<!-- display further elements in blocks -->
|
4476
4658
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
4659
|
+
<xsl:call-template name="refine_example-body-style"/>
|
4477
4660
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
4478
4661
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
4479
4662
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -4711,6 +4894,9 @@
|
|
4711
4894
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
4712
4895
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
4713
4896
|
|
4897
|
+
<xsl:template name="refine_table-fn-number-style">
|
4898
|
+
</xsl:template>
|
4899
|
+
|
4714
4900
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
4715
4901
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4716
4902
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
@@ -4719,30 +4905,12 @@
|
|
4719
4905
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
4720
4906
|
</xsl:template>
|
4721
4907
|
|
4722
|
-
<xsl:attribute-set name="fn-container-body-style">
|
4723
|
-
<xsl:attribute name="text-indent">0</xsl:attribute>
|
4724
|
-
<xsl:attribute name="start-indent">0</xsl:attribute>
|
4725
|
-
</xsl:attribute-set>
|
4726
|
-
|
4727
4908
|
<xsl:attribute-set name="table-fn-body-style">
|
4728
4909
|
</xsl:attribute-set>
|
4729
4910
|
|
4730
|
-
<xsl:
|
4731
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
4732
|
-
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
4733
|
-
|
4734
|
-
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
4735
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4736
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4737
|
-
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
4738
|
-
|
4739
|
-
<xsl:template name="refine_figure-fmt-fn-label-style">
|
4911
|
+
<xsl:template name="refine_table-fn-body-style">
|
4740
4912
|
</xsl:template>
|
4741
4913
|
|
4742
|
-
<xsl:attribute-set name="figure-fn-body-style">
|
4743
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4744
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4745
|
-
</xsl:attribute-set>
|
4746
4914
|
<!-- ========================== -->
|
4747
4915
|
<!-- END Table styles -->
|
4748
4916
|
<!-- ========================== -->
|
@@ -6023,6 +6191,7 @@
|
|
6023
6191
|
</xsl:apply-templates>
|
6024
6192
|
|
6025
6193
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
6194
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
6026
6195
|
<!-- <xsl:copy-of select="./node()"/> -->
|
6027
6196
|
<xsl:apply-templates/>
|
6028
6197
|
</fo:inline>
|
@@ -6041,6 +6210,7 @@
|
|
6041
6210
|
<xsl:param name="process">false</xsl:param>
|
6042
6211
|
<xsl:if test="$process = 'true'">
|
6043
6212
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
6213
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
6044
6214
|
|
6045
6215
|
<!-- tab is padding-right -->
|
6046
6216
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -6912,9 +7082,18 @@
|
|
6912
7082
|
<xsl:attribute-set name="dl-block-style">
|
6913
7083
|
</xsl:attribute-set>
|
6914
7084
|
|
7085
|
+
<xsl:template name="refine_dl-block-style">
|
7086
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
7087
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
7088
|
+
</xsl:if>
|
7089
|
+
</xsl:template>
|
7090
|
+
|
6915
7091
|
<xsl:attribute-set name="dt-row-style">
|
6916
7092
|
</xsl:attribute-set>
|
6917
7093
|
|
7094
|
+
<xsl:template name="refine_dt-row-style">
|
7095
|
+
</xsl:template>
|
7096
|
+
|
6918
7097
|
<xsl:attribute-set name="dt-cell-style">
|
6919
7098
|
</xsl:attribute-set>
|
6920
7099
|
|
@@ -6936,6 +7115,9 @@
|
|
6936
7115
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
6937
7116
|
</xsl:attribute-set> <!-- dl-name-style -->
|
6938
7117
|
|
7118
|
+
<xsl:template name="refine_dl-name-style">
|
7119
|
+
</xsl:template>
|
7120
|
+
|
6939
7121
|
<xsl:attribute-set name="dd-cell-style">
|
6940
7122
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
6941
7123
|
</xsl:attribute-set>
|
@@ -6974,9 +7156,7 @@
|
|
6974
7156
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
6975
7157
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
6976
7158
|
|
6977
|
-
<xsl:
|
6978
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
6979
|
-
</xsl:if>
|
7159
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
6980
7160
|
|
6981
7161
|
<xsl:call-template name="setBlockSpanAll"/>
|
6982
7162
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -7272,6 +7452,8 @@
|
|
7272
7452
|
<xsl:if test="$process = 'true'">
|
7273
7453
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
7274
7454
|
|
7455
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
7456
|
+
|
7275
7457
|
<xsl:apply-templates/>
|
7276
7458
|
</fo:block>
|
7277
7459
|
</xsl:if>
|
@@ -7460,6 +7642,8 @@
|
|
7460
7642
|
<xsl:param name="split_keep-within-line"/>
|
7461
7643
|
|
7462
7644
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
7645
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
7646
|
+
|
7463
7647
|
<xsl:call-template name="insert_dt_cell">
|
7464
7648
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
7465
7649
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -7673,18 +7857,25 @@
|
|
7673
7857
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
7674
7858
|
</xsl:attribute-set>
|
7675
7859
|
|
7860
|
+
<xsl:template name="refine_appendix-style">
|
7861
|
+
</xsl:template>
|
7862
|
+
|
7676
7863
|
<xsl:attribute-set name="appendix-example-style">
|
7677
7864
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
7678
7865
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
7679
7866
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
7680
7867
|
</xsl:attribute-set>
|
7681
7868
|
|
7869
|
+
<xsl:template name="refine_appendix-example-style">
|
7870
|
+
</xsl:template>
|
7871
|
+
|
7682
7872
|
<!-- ======================== -->
|
7683
7873
|
<!-- Appendix processing -->
|
7684
7874
|
<!-- ======================== -->
|
7685
7875
|
<xsl:template match="mn:appendix">
|
7686
7876
|
<xsl:call-template name="setNamedDestination"/>
|
7687
7877
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
7878
|
+
<xsl:call-template name="refine_appendix-style"/>
|
7688
7879
|
<xsl:apply-templates select="mn:fmt-title"/>
|
7689
7880
|
</fo:block>
|
7690
7881
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -7703,6 +7894,7 @@
|
|
7703
7894
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
7704
7895
|
<xsl:call-template name="setNamedDestination"/>
|
7705
7896
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
7897
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
7706
7898
|
<xsl:apply-templates select="mn:fmt-name"/>
|
7707
7899
|
</fo:block>
|
7708
7900
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
@@ -7711,7 +7903,16 @@
|
|
7711
7903
|
<xsl:attribute-set name="xref-style">
|
7712
7904
|
<xsl:attribute name="color">blue</xsl:attribute>
|
7713
7905
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
7714
|
-
</xsl:attribute-set>
|
7906
|
+
</xsl:attribute-set> <!-- xref-style -->
|
7907
|
+
|
7908
|
+
<xsl:template name="refine_xref-style">
|
7909
|
+
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://')) and not(ancestor::*[self::mn:table or self::mn:dl])">
|
7910
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
7911
|
+
</xsl:if>
|
7912
|
+
<xsl:if test="parent::mn:add">
|
7913
|
+
<xsl:call-template name="append_add-style"/>
|
7914
|
+
</xsl:if>
|
7915
|
+
</xsl:template> <!-- refine_xref-style -->
|
7715
7916
|
|
7716
7917
|
<xsl:template match="mn:fmt-xref">
|
7717
7918
|
<xsl:call-template name="insert_basic_link">
|
@@ -7720,12 +7921,8 @@
|
|
7720
7921
|
<xsl:call-template name="getAltText"/>
|
7721
7922
|
</xsl:variable>
|
7722
7923
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
|
7723
|
-
<xsl:
|
7724
|
-
|
7725
|
-
</xsl:if>
|
7726
|
-
<xsl:if test="parent::mn:add">
|
7727
|
-
<xsl:call-template name="append_add-style"/>
|
7728
|
-
</xsl:if>
|
7924
|
+
<xsl:call-template name="refine_xref-style"/>
|
7925
|
+
|
7729
7926
|
<xsl:apply-templates/>
|
7730
7927
|
</fo:basic-link>
|
7731
7928
|
</xsl:with-param>
|
@@ -7840,20 +8037,20 @@
|
|
7840
8037
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
7841
8038
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
7842
8039
|
<xsl:attribute name="line-height">115%</xsl:attribute>
|
7843
|
-
</xsl:attribute-set>
|
8040
|
+
</xsl:attribute-set> <!-- note-style -->
|
7844
8041
|
|
7845
8042
|
<xsl:template name="refine_note-style">
|
7846
8043
|
<xsl:if test="ancestor::mn:ul or ancestor::mn:ol and not(ancestor::mn:note[1]/following-sibling::*)">
|
7847
8044
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
7848
8045
|
</xsl:if>
|
7849
|
-
</xsl:template>
|
8046
|
+
</xsl:template> <!-- refine_note-style -->
|
7850
8047
|
|
7851
8048
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
7852
8049
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
7853
8050
|
|
7854
8051
|
<xsl:attribute-set name="note-name-style">
|
7855
8052
|
<!-- <xsl:attribute name="padding-right">4mm</xsl:attribute> -->
|
7856
|
-
</xsl:attribute-set>
|
8053
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
7857
8054
|
|
7858
8055
|
<xsl:template name="refine_note-name-style">
|
7859
8056
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -7868,18 +8065,21 @@
|
|
7868
8065
|
<xsl:attribute-set name="note-p-style">
|
7869
8066
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
7870
8067
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
7871
|
-
</xsl:attribute-set>
|
8068
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
8069
|
+
|
8070
|
+
<xsl:template name="refine_note-p-style">
|
8071
|
+
</xsl:template>
|
7872
8072
|
|
7873
8073
|
<xsl:attribute-set name="termnote-style">
|
7874
8074
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
7875
8075
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
7876
|
-
</xsl:attribute-set>
|
8076
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
7877
8077
|
|
7878
8078
|
<xsl:template name="refine_termnote-style">
|
7879
8079
|
</xsl:template> <!-- refine_termnote-style -->
|
7880
8080
|
|
7881
8081
|
<xsl:attribute-set name="termnote-name-style">
|
7882
|
-
</xsl:attribute-set>
|
8082
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
7883
8083
|
|
7884
8084
|
<xsl:template name="refine_termnote-name-style">
|
7885
8085
|
</xsl:template>
|
@@ -7888,6 +8088,9 @@
|
|
7888
8088
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
7889
8089
|
</xsl:attribute-set>
|
7890
8090
|
|
8091
|
+
<xsl:template name="refine_termnote-p-style">
|
8092
|
+
</xsl:template>
|
8093
|
+
|
7891
8094
|
<!-- ====== -->
|
7892
8095
|
<!-- note -->
|
7893
8096
|
<!-- termnote -->
|
@@ -7948,11 +8151,13 @@
|
|
7948
8151
|
<xsl:choose>
|
7949
8152
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
7950
8153
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8154
|
+
<xsl:call-template name="refine_note-p-style"/>
|
7951
8155
|
<xsl:apply-templates/>
|
7952
8156
|
</fo:inline>
|
7953
8157
|
</xsl:when>
|
7954
8158
|
<xsl:otherwise>
|
7955
8159
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8160
|
+
<xsl:call-template name="refine_note-p-style"/>
|
7956
8161
|
<xsl:apply-templates/>
|
7957
8162
|
</fo:block>
|
7958
8163
|
</xsl:otherwise>
|
@@ -8044,11 +8249,13 @@
|
|
8044
8249
|
<xsl:choose>
|
8045
8250
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
8046
8251
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
8252
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
8047
8253
|
<xsl:apply-templates/>
|
8048
8254
|
</fo:inline>
|
8049
8255
|
</xsl:when>
|
8050
8256
|
<xsl:otherwise>
|
8051
8257
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
8258
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
8052
8259
|
<xsl:apply-templates/>
|
8053
8260
|
</fo:block>
|
8054
8261
|
</xsl:otherwise>
|
@@ -8063,7 +8270,7 @@
|
|
8063
8270
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
8064
8271
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8065
8272
|
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
8066
|
-
</xsl:attribute-set>
|
8273
|
+
</xsl:attribute-set> <!-- quote-style -->
|
8067
8274
|
|
8068
8275
|
<xsl:template name="refine_quote-style">
|
8069
8276
|
</xsl:template>
|
@@ -8073,6 +8280,9 @@
|
|
8073
8280
|
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
8074
8281
|
</xsl:attribute-set>
|
8075
8282
|
|
8283
|
+
<xsl:template name="refine_quote-source-style">
|
8284
|
+
</xsl:template>
|
8285
|
+
|
8076
8286
|
<!-- ====== -->
|
8077
8287
|
<!-- quote -->
|
8078
8288
|
<!-- source -->
|
@@ -8101,6 +8311,7 @@
|
|
8101
8311
|
</fo:block-container>
|
8102
8312
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
8103
8313
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
8314
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
8104
8315
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
8105
8316
|
<xsl:apply-templates select="mn:author"/>
|
8106
8317
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -8163,6 +8374,9 @@
|
|
8163
8374
|
<xsl:attribute-set name="figure-style">
|
8164
8375
|
</xsl:attribute-set>
|
8165
8376
|
|
8377
|
+
<xsl:template name="refine_figure-style">
|
8378
|
+
</xsl:template>
|
8379
|
+
|
8166
8380
|
<xsl:attribute-set name="figure-name-style">
|
8167
8381
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
8168
8382
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -8173,7 +8387,7 @@
|
|
8173
8387
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
8174
8388
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
8175
8389
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
8176
|
-
</xsl:attribute-set>
|
8390
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
8177
8391
|
|
8178
8392
|
<xsl:template name="refine_figure-name-style">
|
8179
8393
|
</xsl:template> <!-- refine_figure-name-style -->
|
@@ -8183,7 +8397,7 @@
|
|
8183
8397
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
8184
8398
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
8185
8399
|
<xsl:attribute name="space-after">0pt</xsl:attribute>
|
8186
|
-
</xsl:attribute-set>
|
8400
|
+
</xsl:attribute-set> <!-- image-style -->
|
8187
8401
|
|
8188
8402
|
<xsl:template name="refine_image-style">
|
8189
8403
|
</xsl:template>
|
@@ -8193,14 +8407,51 @@
|
|
8193
8407
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
8194
8408
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
8195
8409
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
8196
|
-
</xsl:attribute-set>
|
8410
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
8411
|
+
|
8412
|
+
<xsl:template name="refine_image-graphic-style">
|
8413
|
+
</xsl:template>
|
8197
8414
|
|
8198
8415
|
<xsl:attribute-set name="figure-source-style">
|
8199
8416
|
</xsl:attribute-set>
|
8200
8417
|
|
8418
|
+
<xsl:template name="refine_figure-source-style">
|
8419
|
+
</xsl:template>
|
8420
|
+
|
8201
8421
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
8202
8422
|
</xsl:attribute-set>
|
8203
8423
|
|
8424
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
8425
|
+
</xsl:template>
|
8426
|
+
|
8427
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
8428
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
8429
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
8430
|
+
|
8431
|
+
<xsl:template name="refine_figure-fn-number-style">
|
8432
|
+
</xsl:template>
|
8433
|
+
|
8434
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
8435
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
8436
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
8437
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
8438
|
+
|
8439
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
8440
|
+
</xsl:template>
|
8441
|
+
|
8442
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
8443
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
8444
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8445
|
+
</xsl:attribute-set>
|
8446
|
+
|
8447
|
+
<xsl:template name="refine_figure-fn-body-style">
|
8448
|
+
<xsl:variable name="key_iso">
|
8449
|
+
</xsl:variable>
|
8450
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
8451
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
8452
|
+
</xsl:if>
|
8453
|
+
</xsl:template>
|
8454
|
+
|
8204
8455
|
<!-- ============================ -->
|
8205
8456
|
<!-- figure's footnotes rendering -->
|
8206
8457
|
<!-- ============================ -->
|
@@ -8313,9 +8564,8 @@
|
|
8313
8564
|
</fo:table-cell>
|
8314
8565
|
<fo:table-cell>
|
8315
8566
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
8316
|
-
<xsl:
|
8317
|
-
|
8318
|
-
</xsl:if>
|
8567
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
8568
|
+
|
8319
8569
|
<!-- <xsl:copy-of select="./node()"/> -->
|
8320
8570
|
<xsl:apply-templates/>
|
8321
8571
|
</fo:block>
|
@@ -8333,6 +8583,7 @@
|
|
8333
8583
|
<xsl:param name="process">false</xsl:param>
|
8334
8584
|
<xsl:if test="$process = 'true'">
|
8335
8585
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
8586
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
8336
8587
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
8337
8588
|
|
8338
8589
|
<!-- tab is padding-right -->
|
@@ -8370,6 +8621,7 @@
|
|
8370
8621
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
8371
8622
|
</xsl:if>
|
8372
8623
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
8624
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
8373
8625
|
<!-- <xsl:value-of select="@reference"/> -->
|
8374
8626
|
<xsl:apply-templates/>
|
8375
8627
|
</fo:inline>
|
@@ -8415,6 +8667,8 @@
|
|
8415
8667
|
|
8416
8668
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
8417
8669
|
|
8670
|
+
<xsl:call-template name="refine_figure-style"/>
|
8671
|
+
|
8418
8672
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
8419
8673
|
<xsl:call-template name="setIDforNamedDestination"/>
|
8420
8674
|
</xsl:for-each>
|
@@ -8458,6 +8712,7 @@
|
|
8458
8712
|
|
8459
8713
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
8460
8714
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
8715
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
8461
8716
|
<xsl:apply-templates/>
|
8462
8717
|
</fo:block>
|
8463
8718
|
</xsl:template>
|
@@ -8587,6 +8842,8 @@
|
|
8587
8842
|
</xsl:variable>
|
8588
8843
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
8589
8844
|
|
8845
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
8846
|
+
|
8590
8847
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
8591
8848
|
<xsl:variable name="scale">
|
8592
8849
|
<xsl:call-template name="getImageScale">
|
@@ -9286,6 +9543,9 @@
|
|
9286
9543
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9287
9544
|
</xsl:attribute-set> <!-- formula-style -->
|
9288
9545
|
|
9546
|
+
<xsl:template name="refine_formula-style">
|
9547
|
+
</xsl:template>
|
9548
|
+
|
9289
9549
|
<xsl:attribute-set name="formula-stem-block-style">
|
9290
9550
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9291
9551
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -9356,6 +9616,8 @@
|
|
9356
9616
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
9357
9617
|
<fo:block xsl:use-attribute-sets="formula-style">
|
9358
9618
|
|
9619
|
+
<xsl:call-template name="refine_formula-style"/>
|
9620
|
+
|
9359
9621
|
<fo:table table-layout="fixed" width="100%">
|
9360
9622
|
<fo:table-column column-width="95%"/>
|
9361
9623
|
<fo:table-column column-width="5%"/>
|
@@ -9778,6 +10040,9 @@
|
|
9778
10040
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
9779
10041
|
</xsl:attribute-set> <!-- list-name-style -->
|
9780
10042
|
|
10043
|
+
<xsl:template name="refine_list-name-style">
|
10044
|
+
</xsl:template>
|
10045
|
+
|
9781
10046
|
<xsl:attribute-set name="list-item-style">
|
9782
10047
|
</xsl:attribute-set>
|
9783
10048
|
|
@@ -10075,6 +10340,7 @@
|
|
10075
10340
|
<xsl:param name="process">false</xsl:param>
|
10076
10341
|
<xsl:if test="$process = 'true'">
|
10077
10342
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
10343
|
+
<xsl:call-template name="refine_list-name-style"/>
|
10078
10344
|
<xsl:apply-templates/>
|
10079
10345
|
</fo:block>
|
10080
10346
|
</xsl:if>
|
@@ -10135,27 +10401,48 @@
|
|
10135
10401
|
<!-- END Lists processing -->
|
10136
10402
|
<!-- ===================================== -->
|
10137
10403
|
|
10404
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
10405
|
+
</xsl:attribute-set>
|
10406
|
+
|
10407
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
10408
|
+
</xsl:template>
|
10409
|
+
|
10410
|
+
<xsl:attribute-set name="fn-container-body-style">
|
10411
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
10412
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
10413
|
+
</xsl:attribute-set>
|
10414
|
+
|
10415
|
+
<xsl:template name="refine_fn-container-body-style">
|
10416
|
+
</xsl:template>
|
10417
|
+
|
10138
10418
|
<xsl:attribute-set name="fn-reference-style">
|
10139
10419
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
10140
10420
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10141
10421
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10142
10422
|
<xsl:attribute name="color">blue</xsl:attribute>
|
10143
10423
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
10144
|
-
|
10145
|
-
</xsl:attribute-set>
|
10424
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
10146
10425
|
|
10147
10426
|
<xsl:template name="refine_fn-reference-style">
|
10427
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
10428
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
10148
10429
|
</xsl:template> <!-- refine_fn-reference-style -->
|
10149
10430
|
|
10150
10431
|
<xsl:attribute-set name="fn-style">
|
10151
10432
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10152
10433
|
</xsl:attribute-set>
|
10153
10434
|
|
10435
|
+
<xsl:template name="refine_fn-style">
|
10436
|
+
</xsl:template>
|
10437
|
+
|
10154
10438
|
<xsl:attribute-set name="fn-num-style">
|
10155
10439
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10156
10440
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
10157
10441
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10158
|
-
</xsl:attribute-set>
|
10442
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
10443
|
+
|
10444
|
+
<xsl:template name="refine_fn-num-style">
|
10445
|
+
</xsl:template>
|
10159
10446
|
|
10160
10447
|
<xsl:attribute-set name="fn-body-style">
|
10161
10448
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -10166,7 +10453,7 @@
|
|
10166
10453
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10167
10454
|
<xsl:attribute name="color">black</xsl:attribute>
|
10168
10455
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
10169
|
-
</xsl:attribute-set>
|
10456
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
10170
10457
|
|
10171
10458
|
<xsl:template name="refine_fn-body-style">
|
10172
10459
|
</xsl:template> <!-- refine_fn-body-style -->
|
@@ -10230,10 +10517,12 @@
|
|
10230
10517
|
<xsl:choose>
|
10231
10518
|
<xsl:when test="ancestor::mn:bibitem">
|
10232
10519
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
10520
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
10233
10521
|
</fn_styles>
|
10234
10522
|
</xsl:when>
|
10235
10523
|
<xsl:otherwise>
|
10236
10524
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
10525
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
10237
10526
|
</fn_styles>
|
10238
10527
|
</xsl:otherwise>
|
10239
10528
|
</xsl:choose>
|
@@ -10243,9 +10532,12 @@
|
|
10243
10532
|
<xsl:copy-of select="."/>
|
10244
10533
|
</xsl:for-each>
|
10245
10534
|
|
10246
|
-
|
10535
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
10536
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
10247
10537
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
10248
|
-
</xsl:if>
|
10538
|
+
</xsl:if> -->
|
10539
|
+
|
10540
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
10249
10541
|
|
10250
10542
|
<xsl:call-template name="insert_basic_link">
|
10251
10543
|
<xsl:with-param name="element">
|
@@ -10268,10 +10560,12 @@
|
|
10268
10560
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
10269
10561
|
|
10270
10562
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
10563
|
+
<xsl:call-template name="refine_fn-style"/>
|
10271
10564
|
<xsl:copy-of select="$footnote_inline"/>
|
10272
10565
|
<fo:footnote-body role="Note">
|
10273
10566
|
|
10274
10567
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
10568
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
10275
10569
|
|
10276
10570
|
<xsl:variable name="fn_block">
|
10277
10571
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -10373,6 +10667,9 @@
|
|
10373
10667
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10374
10668
|
</xsl:attribute-set> <!-- admonition-style -->
|
10375
10669
|
|
10670
|
+
<xsl:template name="refine_admonition-style">
|
10671
|
+
</xsl:template>
|
10672
|
+
|
10376
10673
|
<xsl:attribute-set name="admonition-container-style">
|
10377
10674
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
10378
10675
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -10380,6 +10677,9 @@
|
|
10380
10677
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
10381
10678
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
10382
10679
|
|
10680
|
+
<xsl:template name="refine_admonition-container-style">
|
10681
|
+
</xsl:template>
|
10682
|
+
|
10383
10683
|
<xsl:attribute-set name="admonition-name-style">
|
10384
10684
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
10385
10685
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -10389,9 +10689,16 @@
|
|
10389
10689
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
10390
10690
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
10391
10691
|
|
10692
|
+
<xsl:template name="refine_admonition-name-style">
|
10693
|
+
</xsl:template>
|
10694
|
+
|
10392
10695
|
<xsl:attribute-set name="admonition-p-style">
|
10393
10696
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
10394
10697
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
10698
|
+
|
10699
|
+
<xsl:template name="refine_admonition-p-style">
|
10700
|
+
</xsl:template>
|
10701
|
+
|
10395
10702
|
<!-- end admonition -->
|
10396
10703
|
|
10397
10704
|
<!-- ================ -->
|
@@ -10401,6 +10708,8 @@
|
|
10401
10708
|
<xsl:call-template name="setNamedDestination"/>
|
10402
10709
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
10403
10710
|
|
10711
|
+
<xsl:call-template name="refine_admonition-style"/>
|
10712
|
+
|
10404
10713
|
<xsl:call-template name="setBlockSpanAll"/>
|
10405
10714
|
<xsl:variable name="admonition_color" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = concat('color-admonition-', @type)]/mn:value)"/>
|
10406
10715
|
<xsl:if test="$admonition_color != ''">
|
@@ -10408,10 +10717,14 @@
|
|
10408
10717
|
<xsl:attribute name="color"><xsl:value-of select="$admonition_color"/></xsl:attribute>
|
10409
10718
|
</xsl:if>
|
10410
10719
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
10720
|
+
|
10721
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
10411
10722
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
10723
|
+
<xsl:call-template name="refine_admonition-name-style"/>
|
10412
10724
|
<xsl:call-template name="displayAdmonitionName"/>
|
10413
10725
|
</fo:block>
|
10414
10726
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
10727
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
10415
10728
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
10416
10729
|
</fo:block>
|
10417
10730
|
|
@@ -10465,6 +10778,7 @@
|
|
10465
10778
|
|
10466
10779
|
<xsl:template match="mn:admonition/mn:p">
|
10467
10780
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
10781
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
10468
10782
|
|
10469
10783
|
<xsl:apply-templates/>
|
10470
10784
|
</fo:block>
|
@@ -10474,6 +10788,13 @@
|
|
10474
10788
|
<!-- END Admonition -->
|
10475
10789
|
<!-- ================ -->
|
10476
10790
|
|
10791
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
10792
|
+
</xsl:attribute-set>
|
10793
|
+
|
10794
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
10795
|
+
|
10796
|
+
</xsl:template>
|
10797
|
+
|
10477
10798
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
10478
10799
|
<xsl:attribute-set name="bibitem-normative-style">
|
10479
10800
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -10482,32 +10803,53 @@
|
|
10482
10803
|
<xsl:attribute name="line-height">115%</xsl:attribute>
|
10483
10804
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
10484
10805
|
|
10806
|
+
<xsl:template name="refine_bibitem-normative-style">
|
10807
|
+
</xsl:template>
|
10808
|
+
|
10485
10809
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
10486
10810
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
10487
10811
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
10488
10812
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10489
10813
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
10490
10814
|
|
10815
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
10816
|
+
</xsl:template>
|
10817
|
+
|
10491
10818
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
10492
10819
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
10493
10820
|
|
10821
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
10822
|
+
</xsl:template>
|
10823
|
+
|
10494
10824
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
10495
10825
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
10496
10826
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
10497
10827
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10498
10828
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
10499
10829
|
|
10830
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
10831
|
+
</xsl:template>
|
10832
|
+
|
10500
10833
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
10501
10834
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10502
10835
|
</xsl:attribute-set>
|
10503
10836
|
|
10837
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
10838
|
+
</xsl:template>
|
10839
|
+
|
10504
10840
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
10505
10841
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
10506
10842
|
</xsl:attribute-set>
|
10507
10843
|
|
10844
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
10845
|
+
</xsl:template>
|
10846
|
+
|
10508
10847
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
10509
10848
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
10510
10849
|
|
10850
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
10851
|
+
</xsl:template>
|
10852
|
+
|
10511
10853
|
<!-- footnote reference number for bibitem, in the text -->
|
10512
10854
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
10513
10855
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -10515,6 +10857,9 @@
|
|
10515
10857
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10516
10858
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
10517
10859
|
|
10860
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
10861
|
+
</xsl:template>
|
10862
|
+
|
10518
10863
|
<!-- footnote number on the page bottom -->
|
10519
10864
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
10520
10865
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -10533,6 +10878,9 @@
|
|
10533
10878
|
<xsl:attribute name="line-height">120%</xsl:attribute>
|
10534
10879
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
10535
10880
|
|
10881
|
+
<xsl:template name="refine_references-non-normative-style">
|
10882
|
+
</xsl:template>
|
10883
|
+
|
10536
10884
|
<!-- ======================= -->
|
10537
10885
|
<!-- Bibliography rendering -->
|
10538
10886
|
<!-- ======================= -->
|
@@ -10574,6 +10922,7 @@
|
|
10574
10922
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
10575
10923
|
|
10576
10924
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
10925
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
10577
10926
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
10578
10927
|
</fo:block>
|
10579
10928
|
</xsl:template> <!-- references -->
|
@@ -10587,18 +10936,22 @@
|
|
10587
10936
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
10588
10937
|
<xsl:call-template name="setNamedDestination"/>
|
10589
10938
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
10939
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
10940
|
+
|
10590
10941
|
<xsl:call-template name="processBibitem"/>
|
10591
10942
|
</fo:block>
|
10592
10943
|
|
10593
10944
|
</xsl:template> <!-- bibitem -->
|
10594
10945
|
|
10595
10946
|
<!-- Bibliography (non-normative references) -->
|
10596
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
10947
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
10597
10948
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[not(self::mn:note)][1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
10598
10949
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
10599
10950
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
10600
10951
|
<xsl:call-template name="setNamedDestination"/>
|
10601
10952
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10953
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
10954
|
+
|
10602
10955
|
<fo:list-item>
|
10603
10956
|
<fo:list-item-label end-indent="label-end()">
|
10604
10957
|
<fo:block role="SKIP">
|
@@ -10611,6 +10964,7 @@
|
|
10611
10964
|
</fo:list-item-label>
|
10612
10965
|
<fo:list-item-body start-indent="body-start()">
|
10613
10966
|
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
10967
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
10614
10968
|
<xsl:call-template name="processBibitem">
|
10615
10969
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
10616
10970
|
</xsl:call-template>
|
@@ -10621,12 +10975,17 @@
|
|
10621
10975
|
|
10622
10976
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
10623
10977
|
|
10978
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
10979
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
10980
|
+
|
10624
10981
|
<xsl:template name="insertListItem_Bibitem">
|
10625
10982
|
<xsl:choose>
|
10626
10983
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
10627
10984
|
<xsl:otherwise>
|
10628
10985
|
<xsl:call-template name="setNamedDestination"/>
|
10629
10986
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
10987
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
10988
|
+
|
10630
10989
|
<fo:list-item-label end-indent="label-end()">
|
10631
10990
|
<fo:block role="SKIP">
|
10632
10991
|
<fo:inline role="SKIP">
|
@@ -10637,16 +10996,18 @@
|
|
10637
10996
|
</fo:block>
|
10638
10997
|
</fo:list-item-label>
|
10639
10998
|
<fo:list-item-body start-indent="body-start()">
|
10640
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
10999
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
11000
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
10641
11001
|
<xsl:call-template name="processBibitem">
|
10642
11002
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
10643
11003
|
</xsl:call-template>
|
10644
11004
|
</fo:block>
|
11005
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
10645
11006
|
</fo:list-item-body>
|
10646
11007
|
</fo:list-item>
|
10647
11008
|
</xsl:otherwise>
|
10648
11009
|
</xsl:choose>
|
10649
|
-
<xsl:apply-templates select="following-sibling::*[
|
11010
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
10650
11011
|
<xsl:with-param name="skip">false</xsl:with-param>
|
10651
11012
|
</xsl:apply-templates>
|
10652
11013
|
</xsl:template>
|
@@ -10662,25 +11023,16 @@
|
|
10662
11023
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
10663
11024
|
</xsl:apply-templates>
|
10664
11025
|
<xsl:apply-templates select="mn:formattedref"/>
|
11026
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
10665
11027
|
<!-- end bibitem processing -->
|
10666
|
-
|
10667
|
-
<xsl:call-template name="processBibliographyNote"/>
|
10668
11028
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
10669
11029
|
|
10670
|
-
<xsl:template name="
|
10671
|
-
|
10672
|
-
|
10673
|
-
|
10674
|
-
<xsl:copy> <!-- skip @id -->
|
10675
|
-
<xsl:copy-of select="node()"/>
|
10676
|
-
</xsl:copy>
|
10677
|
-
</xsl:element>
|
10678
|
-
</xsl:variable>
|
10679
|
-
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
10680
|
-
<xsl:call-template name="note"/>
|
10681
|
-
</xsl:for-each> -->
|
11030
|
+
<xsl:template name="processBibitemFollowingNotes">
|
11031
|
+
<!-- current context is bibitem element -->
|
11032
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
11033
|
+
<xsl:for-each select="following-sibling::mn:note[preceding-sibling::mn:bibitem[1][@id = $bibitem_id] and preceding-sibling::*[1][self::mn:note or self::mn:bibitem]]">
|
10682
11034
|
<xsl:call-template name="note"/>
|
10683
|
-
</xsl:
|
11035
|
+
</xsl:for-each>
|
10684
11036
|
</xsl:template>
|
10685
11037
|
|
10686
11038
|
<xsl:template match="mn:title" mode="title">
|
@@ -10880,11 +11232,17 @@
|
|
10880
11232
|
<!-- Index section styles -->
|
10881
11233
|
<xsl:attribute-set name="indexsect-title-style">
|
10882
11234
|
<xsl:attribute name="role">H1</xsl:attribute>
|
10883
|
-
</xsl:attribute-set>
|
11235
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
11236
|
+
|
11237
|
+
<xsl:template name="refine_indexsect-title-style">
|
11238
|
+
</xsl:template>
|
10884
11239
|
|
10885
11240
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
10886
11241
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
10887
|
-
</xsl:attribute-set>
|
11242
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
11243
|
+
|
11244
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
11245
|
+
</xsl:template>
|
10888
11246
|
<!-- End Index section styles -->
|
10889
11247
|
|
10890
11248
|
<!-- =================== -->
|
@@ -11078,6 +11436,7 @@
|
|
11078
11436
|
|
11079
11437
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
11080
11438
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
11439
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
11081
11440
|
<!-- Index -->
|
11082
11441
|
<xsl:apply-templates/>
|
11083
11442
|
</fo:block>
|
@@ -11086,6 +11445,7 @@
|
|
11086
11445
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
11087
11446
|
<!-- Letter A, B, C, ... -->
|
11088
11447
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
11448
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
11089
11449
|
<xsl:apply-templates/>
|
11090
11450
|
</fo:block>
|
11091
11451
|
</xsl:template>
|
@@ -11289,9 +11649,15 @@
|
|
11289
11649
|
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
11290
11650
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
11291
11651
|
|
11652
|
+
<xsl:template name="refine_toc-leader-style">
|
11653
|
+
</xsl:template>
|
11654
|
+
|
11292
11655
|
<xsl:attribute-set name="toc-pagenumber-style">
|
11293
11656
|
</xsl:attribute-set>
|
11294
11657
|
|
11658
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
11659
|
+
</xsl:template>
|
11660
|
+
|
11295
11661
|
<!-- List of Figures, Tables -->
|
11296
11662
|
<xsl:attribute-set name="toc-listof-title-style">
|
11297
11663
|
</xsl:attribute-set>
|
@@ -11302,6 +11668,9 @@
|
|
11302
11668
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
11303
11669
|
</xsl:attribute-set>
|
11304
11670
|
|
11671
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
11672
|
+
</xsl:template>
|
11673
|
+
|
11305
11674
|
<xsl:attribute-set name="toc-listof-item-style">
|
11306
11675
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
11307
11676
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
@@ -11309,6 +11678,9 @@
|
|
11309
11678
|
<xsl:attribute name="text-align-last">justify</xsl:attribute>
|
11310
11679
|
</xsl:attribute-set>
|
11311
11680
|
|
11681
|
+
<xsl:template name="refine_toc-listof-item-style">
|
11682
|
+
</xsl:template>
|
11683
|
+
|
11312
11684
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
11313
11685
|
<xsl:variable name="nodes_preface_">
|
11314
11686
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -12394,23 +12766,55 @@
|
|
12394
12766
|
<!-- Ruby text (CJK languages) rendering -->
|
12395
12767
|
<!-- ===================================== -->
|
12396
12768
|
<!-- ===================================== -->
|
12769
|
+
|
12770
|
+
<xsl:attribute-set name="ruby-style">
|
12771
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
12772
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
12773
|
+
</xsl:attribute-set>
|
12774
|
+
|
12775
|
+
<xsl:template name="refine_ruby-style">
|
12776
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
12777
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
12778
|
+
</xsl:if>
|
12779
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
12780
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
12781
|
+
<!-- Example: width="2em" -->
|
12782
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
12783
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
12784
|
+
<xsl:variable name="text_width">
|
12785
|
+
<xsl:choose>
|
12786
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
12787
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
12788
|
+
</xsl:choose>
|
12789
|
+
</xsl:variable>
|
12790
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
12791
|
+
</xsl:template> <!-- refine_ruby-style -->
|
12792
|
+
|
12793
|
+
<xsl:attribute-set name="rb-style">
|
12794
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
12795
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
12796
|
+
</xsl:attribute-set>
|
12797
|
+
|
12798
|
+
<xsl:template name="refine_rb-style">
|
12799
|
+
</xsl:template>
|
12800
|
+
|
12801
|
+
<xsl:attribute-set name="rt-style">
|
12802
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
12803
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
12804
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
12805
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
12806
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
12807
|
+
</xsl:attribute-set>
|
12808
|
+
|
12809
|
+
<xsl:template name="refine_rt-style">
|
12810
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
12811
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
12812
|
+
</xsl:if>
|
12813
|
+
</xsl:template>
|
12814
|
+
|
12397
12815
|
<xsl:template match="mn:ruby">
|
12398
|
-
<fo:inline-container
|
12399
|
-
<xsl:
|
12400
|
-
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
12401
|
-
</xsl:if>
|
12402
|
-
<xsl:variable name="rt_text" select="mn:rt"/>
|
12403
|
-
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
12404
|
-
<!-- Example: width="2em" -->
|
12405
|
-
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
12406
|
-
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
12407
|
-
<xsl:variable name="text_width">
|
12408
|
-
<xsl:choose>
|
12409
|
-
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
12410
|
-
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
12411
|
-
</xsl:choose>
|
12412
|
-
</xsl:variable>
|
12413
|
-
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
12816
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
12817
|
+
<xsl:call-template name="refine_ruby-style"/>
|
12414
12818
|
|
12415
12819
|
<xsl:choose>
|
12416
12820
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -12428,17 +12832,14 @@
|
|
12428
12832
|
</xsl:template>
|
12429
12833
|
|
12430
12834
|
<xsl:template match="mn:rb">
|
12431
|
-
<fo:block
|
12835
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
12432
12836
|
</xsl:template>
|
12433
12837
|
|
12434
12838
|
<xsl:template match="mn:rt">
|
12435
|
-
<fo:block
|
12436
|
-
<xsl:
|
12437
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
12438
|
-
</xsl:if>
|
12839
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
12840
|
+
<xsl:call-template name="refine_rt-style"/>
|
12439
12841
|
<xsl:apply-templates/>
|
12440
12842
|
</fo:block>
|
12441
|
-
|
12442
12843
|
</xsl:template>
|
12443
12844
|
|
12444
12845
|
<!-- ===================================== -->
|
@@ -12447,6 +12848,18 @@
|
|
12447
12848
|
<!-- ===================================== -->
|
12448
12849
|
<!-- ===================================== -->
|
12449
12850
|
|
12851
|
+
<xsl:attribute-set name="annex-title-style">
|
12852
|
+
</xsl:attribute-set>
|
12853
|
+
|
12854
|
+
<xsl:template name="refine_annex-title-style">
|
12855
|
+
</xsl:template>
|
12856
|
+
|
12857
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
12858
|
+
</xsl:attribute-set>
|
12859
|
+
|
12860
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
12861
|
+
</xsl:template>
|
12862
|
+
|
12450
12863
|
<xsl:template name="processPrefaceSectionsDefault">
|
12451
12864
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
12452
12865
|
<xsl:sort select="@displayorder" data-type="number"/>
|