metanorma-bipm 2.7.3 → 2.7.4
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/bipm/bipm.brochure.xsl +570 -154
- data/lib/isodoc/bipm/bipm.guide.xsl +570 -154
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +570 -154
- data/lib/isodoc/bipm/bipm.rapport.xsl +570 -154
- data/lib/isodoc/bipm/jcgm.standard.xsl +568 -154
- data/lib/isodoc/bipm/presentation_footnotes.rb +5 -3
- data/lib/metanorma/bipm/isodoc.rng +19 -1
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +2 -2
@@ -845,7 +845,7 @@
|
|
845
845
|
<xsl:apply-templates select="preceding-sibling::mn:term_name[1]" mode="presentation"/>
|
846
846
|
</fo:block>
|
847
847
|
<fo:block xsl:use-attribute-sets="preferred-term-style">
|
848
|
-
<xsl:call-template name="
|
848
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
849
849
|
<xsl:apply-templates/>
|
850
850
|
</fo:block>
|
851
851
|
</fo:block>
|
@@ -862,6 +862,7 @@
|
|
862
862
|
|
863
863
|
<xsl:template match="mn:domain[not(parent::mn:term)]" priority="2">
|
864
864
|
<fo:block xsl:use-attribute-sets="domain-style">
|
865
|
+
<xsl:call-template name="refine_domain-style"/>
|
865
866
|
<fo:inline>
|
866
867
|
<xsl:text><</xsl:text>
|
867
868
|
<xsl:apply-templates/>
|
@@ -3532,10 +3533,16 @@
|
|
3532
3533
|
<xsl:attribute-set name="license-statement-style">
|
3533
3534
|
</xsl:attribute-set> <!-- license-statement-style -->
|
3534
3535
|
|
3536
|
+
<xsl:template name="refine_license-statement-style">
|
3537
|
+
</xsl:template>
|
3538
|
+
|
3535
3539
|
<xsl:attribute-set name="license-statement-title-style">
|
3536
3540
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3537
3541
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
3538
3542
|
|
3543
|
+
<xsl:template name="refine_license-statement-title-style">
|
3544
|
+
</xsl:template>
|
3545
|
+
|
3539
3546
|
<xsl:attribute-set name="license-statement-p-style">
|
3540
3547
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
3541
3548
|
|
@@ -3546,23 +3553,47 @@
|
|
3546
3553
|
<xsl:attribute-set name="legal-statement-style">
|
3547
3554
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
3548
3555
|
|
3556
|
+
<xsl:template name="refine_legal-statement-style">
|
3557
|
+
</xsl:template>
|
3558
|
+
|
3549
3559
|
<xsl:attribute-set name="legal-statement-title-style">
|
3550
3560
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3551
3561
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
3552
3562
|
|
3563
|
+
<xsl:template name="refine_legal-statement-title-style">
|
3564
|
+
</xsl:template>
|
3565
|
+
|
3553
3566
|
<xsl:attribute-set name="legal-statement-p-style">
|
3554
3567
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
3555
3568
|
|
3569
|
+
<xsl:template name="refine_legal-statement-p-style">
|
3570
|
+
<xsl:if test="@align">
|
3571
|
+
<xsl:attribute name="text-align">
|
3572
|
+
<xsl:value-of select="@align"/>
|
3573
|
+
</xsl:attribute>
|
3574
|
+
</xsl:if>
|
3575
|
+
</xsl:template>
|
3576
|
+
|
3556
3577
|
<xsl:attribute-set name="feedback-statement-style">
|
3557
3578
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
3558
3579
|
|
3580
|
+
<xsl:template name="refine_feedback-statement-style">
|
3581
|
+
</xsl:template>
|
3582
|
+
|
3559
3583
|
<xsl:attribute-set name="feedback-statement-title-style">
|
3560
3584
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3561
3585
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
3562
3586
|
|
3587
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
3588
|
+
|
3589
|
+
</xsl:template>
|
3590
|
+
|
3563
3591
|
<xsl:attribute-set name="feedback-statement-p-style">
|
3564
3592
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
3565
3593
|
|
3594
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
3595
|
+
</xsl:template>
|
3596
|
+
|
3566
3597
|
<!-- End boilerplate sections styles -->
|
3567
3598
|
|
3568
3599
|
<!-- ================================= -->
|
@@ -3588,6 +3619,7 @@
|
|
3588
3619
|
|
3589
3620
|
<xsl:template match="mn:license-statement">
|
3590
3621
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
3622
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
3591
3623
|
<xsl:apply-templates/>
|
3592
3624
|
</fo:block>
|
3593
3625
|
</xsl:template> <!-- license-statement -->
|
@@ -3605,6 +3637,7 @@
|
|
3605
3637
|
<xsl:template match="mn:legal-statement">
|
3606
3638
|
<xsl:param name="isLegacy">false</xsl:param>
|
3607
3639
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
3640
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
3608
3641
|
<xsl:apply-templates/>
|
3609
3642
|
</fo:block>
|
3610
3643
|
</xsl:template> <!-- legal-statement -->
|
@@ -3774,6 +3807,27 @@
|
|
3774
3807
|
<xsl:attribute-set name="sourcecode-container-style">
|
3775
3808
|
</xsl:attribute-set>
|
3776
3809
|
|
3810
|
+
<xsl:template name="refine_sourcecode-container-style">
|
3811
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
3812
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3813
|
+
</xsl:if>
|
3814
|
+
|
3815
|
+
<xsl:if test="ancestor::mn:example">
|
3816
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3817
|
+
</xsl:if>
|
3818
|
+
|
3819
|
+
<xsl:copy-of select="@id"/>
|
3820
|
+
|
3821
|
+
<xsl:if test="parent::mn:note">
|
3822
|
+
<xsl:attribute name="margin-left">
|
3823
|
+
<xsl:choose>
|
3824
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3825
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3826
|
+
</xsl:choose>
|
3827
|
+
</xsl:attribute>
|
3828
|
+
</xsl:if>
|
3829
|
+
</xsl:template>
|
3830
|
+
|
3777
3831
|
<xsl:attribute-set name="sourcecode-style">
|
3778
3832
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
3779
3833
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -3793,6 +3847,9 @@
|
|
3793
3847
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
3794
3848
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
3795
3849
|
|
3850
|
+
<xsl:template name="refine_sourcecode-name-style">
|
3851
|
+
</xsl:template>
|
3852
|
+
|
3796
3853
|
<xsl:template name="add-zero-spaces-equal">
|
3797
3854
|
<xsl:param name="text" select="."/>
|
3798
3855
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -3880,24 +3937,8 @@
|
|
3880
3937
|
<xsl:otherwise>
|
3881
3938
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
3882
3939
|
|
3883
|
-
<xsl:
|
3884
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3885
|
-
</xsl:if>
|
3886
|
-
|
3887
|
-
<xsl:if test="ancestor::mn:example">
|
3888
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3889
|
-
</xsl:if>
|
3890
|
-
|
3891
|
-
<xsl:copy-of select="@id"/>
|
3940
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
3892
3941
|
|
3893
|
-
<xsl:if test="parent::mn:note">
|
3894
|
-
<xsl:attribute name="margin-left">
|
3895
|
-
<xsl:choose>
|
3896
|
-
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3897
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3898
|
-
</xsl:choose>
|
3899
|
-
</xsl:attribute>
|
3900
|
-
</xsl:if>
|
3901
3942
|
<fo:block-container margin-left="0mm" role="SKIP">
|
3902
3943
|
|
3903
3944
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
@@ -4224,6 +4265,7 @@
|
|
4224
4265
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
4225
4266
|
<xsl:if test="normalize-space() != ''">
|
4226
4267
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4268
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
4227
4269
|
<xsl:apply-templates/>
|
4228
4270
|
</fo:block>
|
4229
4271
|
</xsl:if>
|
@@ -4271,12 +4313,31 @@
|
|
4271
4313
|
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4272
4314
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4273
4315
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4274
|
-
</xsl:attribute-set>
|
4316
|
+
</xsl:attribute-set> <!-- pre-style -->
|
4317
|
+
|
4318
|
+
<xsl:template name="refine_pre-style">
|
4319
|
+
</xsl:template>
|
4275
4320
|
|
4276
4321
|
<xsl:attribute-set name="tt-style">
|
4277
4322
|
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4278
4323
|
</xsl:attribute-set>
|
4279
4324
|
|
4325
|
+
<xsl:template name="refine_tt-style">
|
4326
|
+
<xsl:variable name="_font-size"> <!-- inherit -->10
|
4327
|
+
</xsl:variable>
|
4328
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4329
|
+
<xsl:if test="$font-size != ''">
|
4330
|
+
<xsl:attribute name="font-size">
|
4331
|
+
<xsl:choose>
|
4332
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4333
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4334
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4335
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4336
|
+
</xsl:choose>
|
4337
|
+
</xsl:attribute>
|
4338
|
+
</xsl:if>
|
4339
|
+
</xsl:template>
|
4340
|
+
|
4280
4341
|
<xsl:variable name="color-added-text">
|
4281
4342
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
4282
4343
|
</xsl:variable>
|
@@ -4289,9 +4350,14 @@
|
|
4289
4350
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
4290
4351
|
</xsl:attribute-set>
|
4291
4352
|
|
4353
|
+
<xsl:template name="refine_add-style">
|
4354
|
+
</xsl:template>
|
4355
|
+
|
4292
4356
|
<xsl:variable name="add-style">
|
4293
|
-
|
4294
|
-
|
4357
|
+
<add-style xsl:use-attribute-sets="add-style">
|
4358
|
+
<xsl:call-template name="refine_add-style"/>
|
4359
|
+
</add-style>
|
4360
|
+
</xsl:variable>
|
4295
4361
|
<xsl:template name="append_add-style">
|
4296
4362
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
4297
4363
|
</xsl:template>
|
@@ -4304,24 +4370,77 @@
|
|
4304
4370
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
4305
4371
|
</xsl:attribute-set>
|
4306
4372
|
|
4373
|
+
<xsl:template name="refine_del-style">
|
4374
|
+
</xsl:template>
|
4375
|
+
|
4376
|
+
<xsl:attribute-set name="strong-style">
|
4377
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4378
|
+
</xsl:attribute-set>
|
4379
|
+
|
4380
|
+
<xsl:template name="refine_strong_style">
|
4381
|
+
<xsl:if test="ancestor::*['preferred']">
|
4382
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4383
|
+
</xsl:if>
|
4384
|
+
</xsl:template> <!-- refine_strong_style -->
|
4385
|
+
|
4386
|
+
<xsl:attribute-set name="em-style">
|
4387
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
4388
|
+
</xsl:attribute-set>
|
4389
|
+
|
4390
|
+
<xsl:template name="refine_em_style">
|
4391
|
+
</xsl:template> <!-- refine_em_style -->
|
4392
|
+
|
4393
|
+
<xsl:attribute-set name="sup-style">
|
4394
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4395
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4396
|
+
</xsl:attribute-set>
|
4397
|
+
|
4398
|
+
<xsl:template name="refine_sup-style">
|
4399
|
+
</xsl:template>
|
4400
|
+
|
4401
|
+
<xsl:attribute-set name="sub-style">
|
4402
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4403
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
4404
|
+
</xsl:attribute-set>
|
4405
|
+
|
4406
|
+
<xsl:template name="refine_sub-style">
|
4407
|
+
</xsl:template>
|
4408
|
+
|
4409
|
+
<xsl:attribute-set name="underline-style">
|
4410
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4411
|
+
</xsl:attribute-set>
|
4412
|
+
|
4413
|
+
<xsl:template name="refine_underline-style">
|
4414
|
+
</xsl:template>
|
4415
|
+
|
4416
|
+
<xsl:attribute-set name="hi-style">
|
4417
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
4418
|
+
</xsl:attribute-set>
|
4419
|
+
|
4420
|
+
<xsl:template name="refine_hi-style">
|
4421
|
+
</xsl:template>
|
4422
|
+
|
4423
|
+
<xsl:attribute-set name="strike-style">
|
4424
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
4425
|
+
</xsl:attribute-set>
|
4426
|
+
|
4427
|
+
<xsl:template name="refine_strike-style">
|
4428
|
+
</xsl:template>
|
4429
|
+
|
4307
4430
|
<xsl:template match="mn:br">
|
4308
4431
|
<xsl:value-of select="$linebreak"/>
|
4309
4432
|
</xsl:template>
|
4310
4433
|
|
4311
|
-
|
4312
|
-
<fo:inline
|
4313
|
-
<xsl:call-template name="
|
4434
|
+
<xsl:template match="mn:em">
|
4435
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
4436
|
+
<xsl:call-template name="refine_em_style"/>
|
4314
4437
|
<xsl:apply-templates/>
|
4315
4438
|
</fo:inline>
|
4316
4439
|
</xsl:template>
|
4317
4440
|
|
4318
|
-
<xsl:template name="refine_italic_style">
|
4319
|
-
</xsl:template>
|
4320
|
-
|
4321
4441
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
4322
4442
|
<xsl:param name="split_keep-within-line"/>
|
4323
|
-
<fo:inline
|
4324
|
-
|
4443
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
4325
4444
|
<xsl:call-template name="refine_strong_style"/>
|
4326
4445
|
|
4327
4446
|
<xsl:apply-templates>
|
@@ -4330,44 +4449,27 @@
|
|
4330
4449
|
</fo:inline>
|
4331
4450
|
</xsl:template>
|
4332
4451
|
|
4333
|
-
<xsl:template name="refine_strong_style">
|
4334
|
-
<xsl:if test="ancestor::*['preferred']">
|
4335
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4336
|
-
</xsl:if>
|
4337
|
-
</xsl:template>
|
4338
|
-
|
4339
4452
|
<xsl:template match="*[local-name()='padding']">
|
4340
4453
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
4341
4454
|
</xsl:template>
|
4342
4455
|
|
4343
4456
|
<xsl:template match="mn:sup">
|
4344
|
-
<fo:inline
|
4457
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
4458
|
+
<xsl:call-template name="refine_sup-style"/>
|
4345
4459
|
<xsl:apply-templates/>
|
4346
4460
|
</fo:inline>
|
4347
4461
|
</xsl:template>
|
4348
4462
|
|
4349
4463
|
<xsl:template match="mn:sub">
|
4350
|
-
<fo:inline
|
4464
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
4465
|
+
<xsl:call-template name="refine_sub-style"/>
|
4351
4466
|
<xsl:apply-templates/>
|
4352
4467
|
</fo:inline>
|
4353
4468
|
</xsl:template>
|
4354
4469
|
|
4355
4470
|
<xsl:template match="mn:tt">
|
4356
4471
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
4357
|
-
|
4358
|
-
<xsl:variable name="_font-size"> <!-- inherit -->10
|
4359
|
-
</xsl:variable>
|
4360
|
-
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4361
|
-
<xsl:if test="$font-size != ''">
|
4362
|
-
<xsl:attribute name="font-size">
|
4363
|
-
<xsl:choose>
|
4364
|
-
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4365
|
-
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4366
|
-
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4367
|
-
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4368
|
-
</xsl:choose>
|
4369
|
-
</xsl:attribute>
|
4370
|
-
</xsl:if>
|
4472
|
+
<xsl:call-template name="refine_tt-style"/>
|
4371
4473
|
<xsl:apply-templates/>
|
4372
4474
|
</fo:inline>
|
4373
4475
|
</xsl:template> <!-- tt -->
|
@@ -4386,7 +4488,8 @@
|
|
4386
4488
|
</xsl:template>
|
4387
4489
|
|
4388
4490
|
<xsl:template match="mn:underline">
|
4389
|
-
<fo:inline
|
4491
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
4492
|
+
<xsl:call-template name="refine_underline-style"/>
|
4390
4493
|
<xsl:apply-templates/>
|
4391
4494
|
</fo:inline>
|
4392
4495
|
</xsl:template>
|
@@ -4544,6 +4647,7 @@
|
|
4544
4647
|
|
4545
4648
|
<xsl:template match="mn:del">
|
4546
4649
|
<fo:inline xsl:use-attribute-sets="del-style">
|
4650
|
+
<xsl:call-template name="refine_del-style"/>
|
4547
4651
|
<xsl:apply-templates/>
|
4548
4652
|
</fo:inline>
|
4549
4653
|
</xsl:template>
|
@@ -4553,7 +4657,8 @@
|
|
4553
4657
|
|
4554
4658
|
<!-- highlight text -->
|
4555
4659
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
4556
|
-
<fo:inline
|
4660
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
4661
|
+
<xsl:call-template name="refine_hi-style"/>
|
4557
4662
|
<xsl:apply-templates/>
|
4558
4663
|
</fo:inline>
|
4559
4664
|
</xsl:template>
|
@@ -4639,7 +4744,8 @@
|
|
4639
4744
|
</xsl:template>
|
4640
4745
|
|
4641
4746
|
<xsl:template match="mn:strike">
|
4642
|
-
<fo:inline
|
4747
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
4748
|
+
<xsl:call-template name="refine_strike-style"/>
|
4643
4749
|
<xsl:apply-templates/>
|
4644
4750
|
</fo:inline>
|
4645
4751
|
</xsl:template>
|
@@ -4719,6 +4825,7 @@
|
|
4719
4825
|
|
4720
4826
|
<xsl:template match="mn:pre" name="pre">
|
4721
4827
|
<fo:block xsl:use-attribute-sets="pre-style">
|
4828
|
+
<xsl:call-template name="refine_pre-style"/>
|
4722
4829
|
<xsl:copy-of select="@id"/>
|
4723
4830
|
<xsl:choose>
|
4724
4831
|
|
@@ -4749,22 +4856,40 @@
|
|
4749
4856
|
<xsl:attribute-set name="permission-style">
|
4750
4857
|
</xsl:attribute-set>
|
4751
4858
|
|
4859
|
+
<xsl:template name="refine_permission-style">
|
4860
|
+
</xsl:template>
|
4861
|
+
|
4752
4862
|
<xsl:attribute-set name="permission-name-style">
|
4753
4863
|
</xsl:attribute-set>
|
4754
4864
|
|
4865
|
+
<xsl:template name="refine_permission-name-style">
|
4866
|
+
</xsl:template>
|
4867
|
+
|
4755
4868
|
<xsl:attribute-set name="permission-label-style">
|
4756
4869
|
</xsl:attribute-set>
|
4757
4870
|
|
4871
|
+
<xsl:template name="refine_permission-label-style">
|
4872
|
+
</xsl:template>
|
4873
|
+
|
4758
4874
|
<xsl:attribute-set name="requirement-style">
|
4759
4875
|
</xsl:attribute-set>
|
4760
4876
|
|
4877
|
+
<xsl:template name="refine_requirement-style">
|
4878
|
+
</xsl:template>
|
4879
|
+
|
4761
4880
|
<xsl:attribute-set name="requirement-name-style">
|
4762
4881
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4763
4882
|
</xsl:attribute-set>
|
4764
4883
|
|
4884
|
+
<xsl:template name="refine_requirement-name-style">
|
4885
|
+
</xsl:template>
|
4886
|
+
|
4765
4887
|
<xsl:attribute-set name="requirement-label-style">
|
4766
4888
|
</xsl:attribute-set>
|
4767
4889
|
|
4890
|
+
<xsl:template name="refine_requirement-label-style">
|
4891
|
+
</xsl:template>
|
4892
|
+
|
4768
4893
|
<xsl:attribute-set name="subject-style">
|
4769
4894
|
</xsl:attribute-set>
|
4770
4895
|
|
@@ -4792,18 +4917,28 @@
|
|
4792
4917
|
<xsl:attribute-set name="recommendation-style">
|
4793
4918
|
</xsl:attribute-set>
|
4794
4919
|
|
4920
|
+
<xsl:template name="refine_recommendation-style">
|
4921
|
+
</xsl:template>
|
4922
|
+
|
4795
4923
|
<xsl:attribute-set name="recommendation-name-style">
|
4796
4924
|
</xsl:attribute-set>
|
4797
4925
|
|
4926
|
+
<xsl:template name="refine_recommendation-name-style">
|
4927
|
+
</xsl:template>
|
4928
|
+
|
4798
4929
|
<xsl:attribute-set name="recommendation-label-style">
|
4799
4930
|
</xsl:attribute-set>
|
4800
4931
|
|
4932
|
+
<xsl:template name="refine_recommendation-label-style">
|
4933
|
+
</xsl:template>
|
4934
|
+
|
4801
4935
|
<!-- ========== -->
|
4802
4936
|
<!-- permission -->
|
4803
4937
|
<!-- ========== -->
|
4804
4938
|
<xsl:template match="mn:permission">
|
4805
4939
|
<xsl:call-template name="setNamedDestination"/>
|
4806
4940
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
4941
|
+
<xsl:call-template name="refine_permission-style"/>
|
4807
4942
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4808
4943
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4809
4944
|
</fo:block>
|
@@ -4812,6 +4947,7 @@
|
|
4812
4947
|
<xsl:template match="mn:permission/mn:fmt-name">
|
4813
4948
|
<xsl:if test="normalize-space() != ''">
|
4814
4949
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
4950
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
4815
4951
|
<xsl:apply-templates/>
|
4816
4952
|
</fo:block>
|
4817
4953
|
</xsl:if>
|
@@ -4819,6 +4955,7 @@
|
|
4819
4955
|
|
4820
4956
|
<xsl:template match="mn:permission/mn:label">
|
4821
4957
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
4958
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
4822
4959
|
<xsl:apply-templates/>
|
4823
4960
|
</fo:block>
|
4824
4961
|
</xsl:template>
|
@@ -4831,6 +4968,7 @@
|
|
4831
4968
|
<xsl:template match="mn:requirement">
|
4832
4969
|
<xsl:call-template name="setNamedDestination"/>
|
4833
4970
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
4971
|
+
<xsl:call-template name="refine_requirement-style"/>
|
4834
4972
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4835
4973
|
<xsl:apply-templates select="mn:label"/>
|
4836
4974
|
<xsl:apply-templates select="@obligation"/>
|
@@ -4843,6 +4981,7 @@
|
|
4843
4981
|
<xsl:if test="normalize-space() != ''">
|
4844
4982
|
|
4845
4983
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
4984
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
4846
4985
|
<xsl:apply-templates/>
|
4847
4986
|
</fo:block>
|
4848
4987
|
</xsl:if>
|
@@ -4850,6 +4989,7 @@
|
|
4850
4989
|
|
4851
4990
|
<xsl:template match="mn:requirement/mn:label">
|
4852
4991
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
4992
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
4853
4993
|
<xsl:apply-templates/>
|
4854
4994
|
</fo:block>
|
4855
4995
|
</xsl:template>
|
@@ -4875,6 +5015,7 @@
|
|
4875
5015
|
<xsl:template match="mn:recommendation">
|
4876
5016
|
<xsl:call-template name="setNamedDestination"/>
|
4877
5017
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
5018
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
4878
5019
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4879
5020
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4880
5021
|
</fo:block>
|
@@ -4884,6 +5025,7 @@
|
|
4884
5025
|
<xsl:if test="normalize-space() != ''">
|
4885
5026
|
|
4886
5027
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
5028
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
4887
5029
|
<xsl:apply-templates/>
|
4888
5030
|
</fo:block>
|
4889
5031
|
</xsl:if>
|
@@ -4891,6 +5033,7 @@
|
|
4891
5033
|
|
4892
5034
|
<xsl:template match="mn:recommendation/mn:label">
|
4893
5035
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
5036
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
4894
5037
|
<xsl:apply-templates/>
|
4895
5038
|
</fo:block>
|
4896
5039
|
</xsl:template>
|
@@ -5072,37 +5215,67 @@
|
|
5072
5215
|
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
5073
5216
|
</xsl:attribute-set> <!-- term-style -->
|
5074
5217
|
|
5218
|
+
<xsl:template name="refine_term-style">
|
5219
|
+
</xsl:template>
|
5220
|
+
|
5075
5221
|
<xsl:attribute-set name="term-name-style">
|
5076
5222
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5077
5223
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5078
5224
|
</xsl:attribute-set> <!-- term-name-style -->
|
5079
5225
|
|
5080
|
-
|
5226
|
+
<xsl:template name="refine_term-name-style">
|
5227
|
+
</xsl:template>
|
5228
|
+
|
5229
|
+
<xsl:attribute-set name="preferred-block-style">
|
5081
5230
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
5082
5231
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
5083
5232
|
|
5233
|
+
<xsl:template name="refine_preferred-block-style">
|
5234
|
+
</xsl:template>
|
5235
|
+
|
5084
5236
|
<xsl:attribute-set name="preferred-term-style">
|
5085
5237
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5086
5238
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5087
5239
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
5088
5240
|
|
5241
|
+
<xsl:template name="refine_preferred-term-style">
|
5242
|
+
<xsl:if test="mn:strong">
|
5243
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5244
|
+
</xsl:if>
|
5245
|
+
</xsl:template>
|
5246
|
+
|
5089
5247
|
<xsl:attribute-set name="domain-style">
|
5090
5248
|
</xsl:attribute-set> <!-- domain-style -->
|
5091
5249
|
|
5250
|
+
<xsl:template name="refine_domain-style">
|
5251
|
+
</xsl:template>
|
5252
|
+
|
5092
5253
|
<xsl:attribute-set name="admitted-style">
|
5093
5254
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5094
5255
|
</xsl:attribute-set> <!-- admitted-style -->
|
5095
5256
|
|
5257
|
+
<xsl:template name="refine_admitted-style">
|
5258
|
+
</xsl:template>
|
5259
|
+
|
5096
5260
|
<xsl:attribute-set name="deprecates-style">
|
5097
5261
|
</xsl:attribute-set> <!-- deprecates-style -->
|
5098
5262
|
|
5263
|
+
<xsl:template name="refine_deprecates-style">
|
5264
|
+
</xsl:template>
|
5265
|
+
|
5099
5266
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
5100
5267
|
</xsl:attribute-set>
|
5101
5268
|
|
5269
|
+
<xsl:template name="refine_related-block-style">
|
5270
|
+
</xsl:template>
|
5271
|
+
|
5102
5272
|
<xsl:attribute-set name="definition-style">
|
5103
5273
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5104
5274
|
</xsl:attribute-set> <!-- definition-style -->
|
5105
5275
|
|
5276
|
+
<xsl:template name="refine_definition-style">
|
5277
|
+
</xsl:template>
|
5278
|
+
|
5106
5279
|
<xsl:attribute-set name="termsource-style">
|
5107
5280
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
5108
5281
|
</xsl:attribute-set> <!-- termsource-style -->
|
@@ -5113,9 +5286,15 @@
|
|
5113
5286
|
<xsl:attribute-set name="termsource-text-style">
|
5114
5287
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
5115
5288
|
|
5289
|
+
<xsl:template name="refine_termsource-text-style">
|
5290
|
+
</xsl:template>
|
5291
|
+
|
5116
5292
|
<xsl:attribute-set name="origin-style">
|
5117
5293
|
</xsl:attribute-set> <!-- origin-style -->
|
5118
5294
|
|
5295
|
+
<xsl:template name="refine_origin-style">
|
5296
|
+
</xsl:template>
|
5297
|
+
|
5119
5298
|
<!-- ====== -->
|
5120
5299
|
<!-- term -->
|
5121
5300
|
<!-- ====== -->
|
@@ -5131,9 +5310,8 @@
|
|
5131
5310
|
<xsl:template match="mn:term">
|
5132
5311
|
<xsl:call-template name="setNamedDestination"/>
|
5133
5312
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
5313
|
+
<xsl:call-template name="refine_term-style"/>
|
5134
5314
|
|
5135
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
5136
|
-
</xsl:if>
|
5137
5315
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5138
5316
|
</fo:block>
|
5139
5317
|
</xsl:template>
|
@@ -5209,6 +5387,7 @@
|
|
5209
5387
|
<!-- text SOURCE: -->
|
5210
5388
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
5211
5389
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
5390
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
5212
5391
|
<xsl:value-of select="."/>
|
5213
5392
|
</fo:inline>
|
5214
5393
|
</xsl:template>
|
@@ -5221,6 +5400,7 @@
|
|
5221
5400
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
5222
5401
|
</xsl:if>
|
5223
5402
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
5403
|
+
<xsl:call-template name="refine_origin-style"/>
|
5224
5404
|
<xsl:apply-templates/>
|
5225
5405
|
</fo:inline>
|
5226
5406
|
</fo:basic-link>
|
@@ -5270,9 +5450,12 @@
|
|
5270
5450
|
</xsl:variable>
|
5271
5451
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
5272
5452
|
|
5453
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
5454
|
+
|
5273
5455
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
5274
5456
|
|
5275
5457
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
5458
|
+
<xsl:call-template name="refine_term-name-style"/>
|
5276
5459
|
|
5277
5460
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
5278
5461
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -5283,7 +5466,7 @@
|
|
5283
5466
|
</xsl:if>
|
5284
5467
|
|
5285
5468
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
5286
|
-
<xsl:call-template name="
|
5469
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
5287
5470
|
|
5288
5471
|
<xsl:apply-templates/>
|
5289
5472
|
</fo:block>
|
@@ -5304,22 +5487,18 @@
|
|
5304
5487
|
|
5305
5488
|
<xsl:template match="mn:fmt-admitted">
|
5306
5489
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
5490
|
+
<xsl:call-template name="refine_admitted-style"/>
|
5307
5491
|
<xsl:apply-templates/>
|
5308
5492
|
</fo:block>
|
5309
5493
|
</xsl:template>
|
5310
5494
|
|
5311
5495
|
<xsl:template match="mn:fmt-deprecates">
|
5312
5496
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5497
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
5313
5498
|
<xsl:apply-templates/>
|
5314
5499
|
</fo:block>
|
5315
5500
|
</xsl:template>
|
5316
5501
|
|
5317
|
-
<xsl:template name="setStyle_preferred">
|
5318
|
-
<xsl:if test="mn:strong">
|
5319
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5320
|
-
</xsl:if>
|
5321
|
-
</xsl:template>
|
5322
|
-
|
5323
5502
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
5324
5503
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
5325
5504
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -5329,6 +5508,7 @@
|
|
5329
5508
|
|
5330
5509
|
<xsl:template match="mn:fmt-related">
|
5331
5510
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
5511
|
+
<xsl:call-template name="refine_related-block-style"/>
|
5332
5512
|
<xsl:apply-templates/>
|
5333
5513
|
</fo:block>
|
5334
5514
|
</xsl:template>
|
@@ -5343,6 +5523,7 @@
|
|
5343
5523
|
<!-- ========== -->
|
5344
5524
|
<xsl:template match="mn:fmt-definition">
|
5345
5525
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5526
|
+
<xsl:call-template name="refine_definition-style"/>
|
5346
5527
|
<xsl:apply-templates/>
|
5347
5528
|
</fo:block>
|
5348
5529
|
</xsl:template>
|
@@ -5394,6 +5575,9 @@
|
|
5394
5575
|
<xsl:attribute-set name="example-body-style">
|
5395
5576
|
</xsl:attribute-set> <!-- example-body-style -->
|
5396
5577
|
|
5578
|
+
<xsl:template name="refine_example-body-style">
|
5579
|
+
</xsl:template>
|
5580
|
+
|
5397
5581
|
<xsl:attribute-set name="example-name-style">
|
5398
5582
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
5399
5583
|
</xsl:attribute-set> <!-- example-name-style -->
|
@@ -5442,6 +5626,8 @@
|
|
5442
5626
|
<xsl:when test="contains($element, 'block')">
|
5443
5627
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
5444
5628
|
|
5629
|
+
<xsl:call-template name="refine_example-p-style"/>
|
5630
|
+
|
5445
5631
|
<xsl:apply-templates/>
|
5446
5632
|
</fo:block>
|
5447
5633
|
</xsl:when>
|
@@ -5493,6 +5679,7 @@
|
|
5493
5679
|
</fo:block>
|
5494
5680
|
|
5495
5681
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5682
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5496
5683
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5497
5684
|
<xsl:variable name="example_body">
|
5498
5685
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -5555,6 +5742,7 @@
|
|
5555
5742
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
5556
5743
|
<!-- display further elements in blocks -->
|
5557
5744
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5745
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5558
5746
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5559
5747
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
5560
5748
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -5819,6 +6007,9 @@
|
|
5819
6007
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
5820
6008
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
5821
6009
|
|
6010
|
+
<xsl:template name="refine_table-fn-number-style">
|
6011
|
+
</xsl:template>
|
6012
|
+
|
5822
6013
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
5823
6014
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5824
6015
|
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
|
@@ -5827,30 +6018,12 @@
|
|
5827
6018
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
5828
6019
|
</xsl:template>
|
5829
6020
|
|
5830
|
-
<xsl:attribute-set name="fn-container-body-style">
|
5831
|
-
<xsl:attribute name="text-indent">0</xsl:attribute>
|
5832
|
-
<xsl:attribute name="start-indent">0</xsl:attribute>
|
5833
|
-
</xsl:attribute-set>
|
5834
|
-
|
5835
6021
|
<xsl:attribute-set name="table-fn-body-style">
|
5836
6022
|
</xsl:attribute-set>
|
5837
6023
|
|
5838
|
-
<xsl:
|
5839
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
5840
|
-
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
5841
|
-
|
5842
|
-
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
5843
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5844
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5845
|
-
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
5846
|
-
|
5847
|
-
<xsl:template name="refine_figure-fmt-fn-label-style">
|
6024
|
+
<xsl:template name="refine_table-fn-body-style">
|
5848
6025
|
</xsl:template>
|
5849
6026
|
|
5850
|
-
<xsl:attribute-set name="figure-fn-body-style">
|
5851
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
5852
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5853
|
-
</xsl:attribute-set>
|
5854
6027
|
<!-- ========================== -->
|
5855
6028
|
<!-- END Table styles -->
|
5856
6029
|
<!-- ========================== -->
|
@@ -7175,6 +7348,7 @@
|
|
7175
7348
|
</xsl:apply-templates>
|
7176
7349
|
|
7177
7350
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
7351
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
7178
7352
|
<!-- <xsl:copy-of select="./node()"/> -->
|
7179
7353
|
<xsl:apply-templates/>
|
7180
7354
|
</fo:inline>
|
@@ -7193,6 +7367,7 @@
|
|
7193
7367
|
<xsl:param name="process">false</xsl:param>
|
7194
7368
|
<xsl:if test="$process = 'true'">
|
7195
7369
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
7370
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
7196
7371
|
|
7197
7372
|
<!-- tab is padding-right -->
|
7198
7373
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -8064,9 +8239,18 @@
|
|
8064
8239
|
<xsl:attribute-set name="dl-block-style">
|
8065
8240
|
</xsl:attribute-set>
|
8066
8241
|
|
8242
|
+
<xsl:template name="refine_dl-block-style">
|
8243
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
8244
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
8245
|
+
</xsl:if>
|
8246
|
+
</xsl:template>
|
8247
|
+
|
8067
8248
|
<xsl:attribute-set name="dt-row-style">
|
8068
8249
|
</xsl:attribute-set>
|
8069
8250
|
|
8251
|
+
<xsl:template name="refine_dt-row-style">
|
8252
|
+
</xsl:template>
|
8253
|
+
|
8070
8254
|
<xsl:attribute-set name="dt-cell-style">
|
8071
8255
|
</xsl:attribute-set>
|
8072
8256
|
|
@@ -8086,6 +8270,9 @@
|
|
8086
8270
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8087
8271
|
</xsl:attribute-set> <!-- dl-name-style -->
|
8088
8272
|
|
8273
|
+
<xsl:template name="refine_dl-name-style">
|
8274
|
+
</xsl:template>
|
8275
|
+
|
8089
8276
|
<xsl:attribute-set name="dd-cell-style">
|
8090
8277
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
8091
8278
|
</xsl:attribute-set>
|
@@ -8124,9 +8311,7 @@
|
|
8124
8311
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
8125
8312
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
8126
8313
|
|
8127
|
-
<xsl:
|
8128
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
8129
|
-
</xsl:if>
|
8314
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
8130
8315
|
|
8131
8316
|
<xsl:call-template name="setBlockSpanAll"/>
|
8132
8317
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -8429,6 +8614,8 @@
|
|
8429
8614
|
<xsl:if test="$process = 'true'">
|
8430
8615
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
8431
8616
|
|
8617
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
8618
|
+
|
8432
8619
|
<xsl:apply-templates/>
|
8433
8620
|
</fo:block>
|
8434
8621
|
</xsl:if>
|
@@ -8617,6 +8804,8 @@
|
|
8617
8804
|
<xsl:param name="split_keep-within-line"/>
|
8618
8805
|
|
8619
8806
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
8807
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
8808
|
+
|
8620
8809
|
<xsl:call-template name="insert_dt_cell">
|
8621
8810
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
8622
8811
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -8830,18 +9019,25 @@
|
|
8830
9019
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8831
9020
|
</xsl:attribute-set>
|
8832
9021
|
|
9022
|
+
<xsl:template name="refine_appendix-style">
|
9023
|
+
</xsl:template>
|
9024
|
+
|
8833
9025
|
<xsl:attribute-set name="appendix-example-style">
|
8834
9026
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
8835
9027
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
8836
9028
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
8837
9029
|
</xsl:attribute-set>
|
8838
9030
|
|
9031
|
+
<xsl:template name="refine_appendix-example-style">
|
9032
|
+
</xsl:template>
|
9033
|
+
|
8839
9034
|
<!-- ======================== -->
|
8840
9035
|
<!-- Appendix processing -->
|
8841
9036
|
<!-- ======================== -->
|
8842
9037
|
<xsl:template match="mn:appendix">
|
8843
9038
|
<xsl:call-template name="setNamedDestination"/>
|
8844
9039
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
9040
|
+
<xsl:call-template name="refine_appendix-style"/>
|
8845
9041
|
<xsl:apply-templates select="mn:fmt-title"/>
|
8846
9042
|
</fo:block>
|
8847
9043
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -8860,6 +9056,7 @@
|
|
8860
9056
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
8861
9057
|
<xsl:call-template name="setNamedDestination"/>
|
8862
9058
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
9059
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
8863
9060
|
<xsl:apply-templates select="mn:fmt-name"/>
|
8864
9061
|
</fo:block>
|
8865
9062
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
@@ -8868,7 +9065,16 @@
|
|
8868
9065
|
<xsl:attribute-set name="xref-style">
|
8869
9066
|
<xsl:attribute name="color">blue</xsl:attribute>
|
8870
9067
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
8871
|
-
</xsl:attribute-set>
|
9068
|
+
</xsl:attribute-set> <!-- xref-style -->
|
9069
|
+
|
9070
|
+
<xsl:template name="refine_xref-style">
|
9071
|
+
<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])">
|
9072
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
9073
|
+
</xsl:if>
|
9074
|
+
<xsl:if test="parent::mn:add">
|
9075
|
+
<xsl:call-template name="append_add-style"/>
|
9076
|
+
</xsl:if>
|
9077
|
+
</xsl:template> <!-- refine_xref-style -->
|
8872
9078
|
|
8873
9079
|
<xsl:template match="mn:fmt-xref">
|
8874
9080
|
<xsl:call-template name="insert_basic_link">
|
@@ -8877,12 +9083,8 @@
|
|
8877
9083
|
<xsl:call-template name="getAltText"/>
|
8878
9084
|
</xsl:variable>
|
8879
9085
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
|
8880
|
-
<xsl:
|
8881
|
-
|
8882
|
-
</xsl:if>
|
8883
|
-
<xsl:if test="parent::mn:add">
|
8884
|
-
<xsl:call-template name="append_add-style"/>
|
8885
|
-
</xsl:if>
|
9086
|
+
<xsl:call-template name="refine_xref-style"/>
|
9087
|
+
|
8886
9088
|
<xsl:apply-templates/>
|
8887
9089
|
</fo:basic-link>
|
8888
9090
|
</xsl:with-param>
|
@@ -8993,21 +9195,21 @@
|
|
8993
9195
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
8994
9196
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8995
9197
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
8996
|
-
</xsl:attribute-set>
|
9198
|
+
</xsl:attribute-set> <!-- note-style -->
|
8997
9199
|
|
8998
9200
|
<xsl:template name="refine_note-style">
|
8999
9201
|
<xsl:if test="parent::mn:references">
|
9000
9202
|
<xsl:attribute name="margin-top">2pt</xsl:attribute>
|
9001
9203
|
<xsl:attribute name="margin-bottom">2pt</xsl:attribute>
|
9002
9204
|
</xsl:if>
|
9003
|
-
</xsl:template>
|
9205
|
+
</xsl:template> <!-- refine_note-style -->
|
9004
9206
|
|
9005
9207
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
9006
9208
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
9007
9209
|
|
9008
9210
|
<xsl:attribute-set name="note-name-style">
|
9009
9211
|
<xsl:attribute name="padding-right">6mm</xsl:attribute>
|
9010
|
-
</xsl:attribute-set>
|
9212
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
9011
9213
|
|
9012
9214
|
<xsl:template name="refine_note-name-style">
|
9013
9215
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -9022,20 +9224,23 @@
|
|
9022
9224
|
<xsl:attribute-set name="note-p-style">
|
9023
9225
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
9024
9226
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9025
|
-
</xsl:attribute-set>
|
9227
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
9228
|
+
|
9229
|
+
<xsl:template name="refine_note-p-style">
|
9230
|
+
</xsl:template>
|
9026
9231
|
|
9027
9232
|
<xsl:attribute-set name="termnote-style">
|
9028
9233
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
9029
9234
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
9030
9235
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
9031
9236
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
9032
|
-
</xsl:attribute-set>
|
9237
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
9033
9238
|
|
9034
9239
|
<xsl:template name="refine_termnote-style">
|
9035
9240
|
</xsl:template> <!-- refine_termnote-style -->
|
9036
9241
|
|
9037
9242
|
<xsl:attribute-set name="termnote-name-style">
|
9038
|
-
</xsl:attribute-set>
|
9243
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
9039
9244
|
|
9040
9245
|
<xsl:template name="refine_termnote-name-style">
|
9041
9246
|
</xsl:template>
|
@@ -9043,6 +9248,9 @@
|
|
9043
9248
|
<xsl:attribute-set name="termnote-p-style">
|
9044
9249
|
</xsl:attribute-set>
|
9045
9250
|
|
9251
|
+
<xsl:template name="refine_termnote-p-style">
|
9252
|
+
</xsl:template>
|
9253
|
+
|
9046
9254
|
<!-- ====== -->
|
9047
9255
|
<!-- note -->
|
9048
9256
|
<!-- termnote -->
|
@@ -9103,11 +9311,13 @@
|
|
9103
9311
|
<xsl:choose>
|
9104
9312
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
9105
9313
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9314
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9106
9315
|
<xsl:apply-templates/>
|
9107
9316
|
</fo:inline>
|
9108
9317
|
</xsl:when>
|
9109
9318
|
<xsl:otherwise>
|
9110
9319
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9320
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9111
9321
|
<xsl:apply-templates/>
|
9112
9322
|
</fo:block>
|
9113
9323
|
</xsl:otherwise>
|
@@ -9199,11 +9409,13 @@
|
|
9199
9409
|
<xsl:choose>
|
9200
9410
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
9201
9411
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
9412
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9202
9413
|
<xsl:apply-templates/>
|
9203
9414
|
</fo:inline>
|
9204
9415
|
</xsl:when>
|
9205
9416
|
<xsl:otherwise>
|
9206
9417
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
9418
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9207
9419
|
<xsl:apply-templates/>
|
9208
9420
|
</fo:block>
|
9209
9421
|
</xsl:otherwise>
|
@@ -9219,7 +9431,7 @@
|
|
9219
9431
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9220
9432
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
9221
9433
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
9222
|
-
</xsl:attribute-set>
|
9434
|
+
</xsl:attribute-set> <!-- quote-style -->
|
9223
9435
|
|
9224
9436
|
<xsl:template name="refine_quote-style">
|
9225
9437
|
<xsl:if test="ancestor::mn:boilerplate">
|
@@ -9233,6 +9445,9 @@
|
|
9233
9445
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
9234
9446
|
</xsl:attribute-set>
|
9235
9447
|
|
9448
|
+
<xsl:template name="refine_quote-source-style">
|
9449
|
+
</xsl:template>
|
9450
|
+
|
9236
9451
|
<!-- ====== -->
|
9237
9452
|
<!-- quote -->
|
9238
9453
|
<!-- source -->
|
@@ -9264,6 +9479,7 @@
|
|
9264
9479
|
</fo:block-container>
|
9265
9480
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
9266
9481
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
9482
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
9267
9483
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
9268
9484
|
<xsl:apply-templates select="mn:author"/>
|
9269
9485
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -9326,6 +9542,9 @@
|
|
9326
9542
|
<xsl:attribute-set name="figure-style">
|
9327
9543
|
</xsl:attribute-set>
|
9328
9544
|
|
9545
|
+
<xsl:template name="refine_figure-style">
|
9546
|
+
</xsl:template>
|
9547
|
+
|
9329
9548
|
<xsl:attribute-set name="figure-name-style">
|
9330
9549
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9331
9550
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -9333,7 +9552,7 @@
|
|
9333
9552
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9334
9553
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
9335
9554
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
9336
|
-
</xsl:attribute-set>
|
9555
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
9337
9556
|
|
9338
9557
|
<xsl:template name="refine_figure-name-style">
|
9339
9558
|
</xsl:template> <!-- refine_figure-name-style -->
|
@@ -9341,7 +9560,7 @@
|
|
9341
9560
|
<xsl:attribute-set name="image-style">
|
9342
9561
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
9343
9562
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9344
|
-
</xsl:attribute-set>
|
9563
|
+
</xsl:attribute-set> <!-- image-style -->
|
9345
9564
|
|
9346
9565
|
<xsl:template name="refine_image-style">
|
9347
9566
|
</xsl:template>
|
@@ -9351,14 +9570,51 @@
|
|
9351
9570
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
9352
9571
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
9353
9572
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
9354
|
-
</xsl:attribute-set>
|
9573
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
9574
|
+
|
9575
|
+
<xsl:template name="refine_image-graphic-style">
|
9576
|
+
</xsl:template>
|
9355
9577
|
|
9356
9578
|
<xsl:attribute-set name="figure-source-style">
|
9357
9579
|
</xsl:attribute-set>
|
9358
9580
|
|
9581
|
+
<xsl:template name="refine_figure-source-style">
|
9582
|
+
</xsl:template>
|
9583
|
+
|
9359
9584
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
9360
9585
|
</xsl:attribute-set>
|
9361
9586
|
|
9587
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
9588
|
+
</xsl:template>
|
9589
|
+
|
9590
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
9591
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
9592
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
9593
|
+
|
9594
|
+
<xsl:template name="refine_figure-fn-number-style">
|
9595
|
+
</xsl:template>
|
9596
|
+
|
9597
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
9598
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
9599
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
9600
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
9601
|
+
|
9602
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
9603
|
+
</xsl:template>
|
9604
|
+
|
9605
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
9606
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
9607
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9608
|
+
</xsl:attribute-set>
|
9609
|
+
|
9610
|
+
<xsl:template name="refine_figure-fn-body-style">
|
9611
|
+
<xsl:variable name="key_iso">true
|
9612
|
+
</xsl:variable>
|
9613
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
9614
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
9615
|
+
</xsl:if>
|
9616
|
+
</xsl:template>
|
9617
|
+
|
9362
9618
|
<!-- ============================ -->
|
9363
9619
|
<!-- figure's footnotes rendering -->
|
9364
9620
|
<!-- ============================ -->
|
@@ -9471,9 +9727,8 @@
|
|
9471
9727
|
</fo:table-cell>
|
9472
9728
|
<fo:table-cell>
|
9473
9729
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
9474
|
-
<xsl:
|
9475
|
-
|
9476
|
-
</xsl:if>
|
9730
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
9731
|
+
|
9477
9732
|
<!-- <xsl:copy-of select="./node()"/> -->
|
9478
9733
|
<xsl:apply-templates/>
|
9479
9734
|
</fo:block>
|
@@ -9491,6 +9746,7 @@
|
|
9491
9746
|
<xsl:param name="process">false</xsl:param>
|
9492
9747
|
<xsl:if test="$process = 'true'">
|
9493
9748
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
9749
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
9494
9750
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
9495
9751
|
|
9496
9752
|
<!-- tab is padding-right -->
|
@@ -9528,6 +9784,7 @@
|
|
9528
9784
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
9529
9785
|
</xsl:if>
|
9530
9786
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
9787
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
9531
9788
|
<!-- <xsl:value-of select="@reference"/> -->
|
9532
9789
|
<xsl:apply-templates/>
|
9533
9790
|
</fo:inline>
|
@@ -9575,6 +9832,8 @@
|
|
9575
9832
|
|
9576
9833
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
9577
9834
|
|
9835
|
+
<xsl:call-template name="refine_figure-style"/>
|
9836
|
+
|
9578
9837
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
9579
9838
|
<xsl:call-template name="setIDforNamedDestination"/>
|
9580
9839
|
</xsl:for-each>
|
@@ -9618,6 +9877,7 @@
|
|
9618
9877
|
|
9619
9878
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
9620
9879
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
9880
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
9621
9881
|
<xsl:apply-templates/>
|
9622
9882
|
</fo:block>
|
9623
9883
|
</xsl:template>
|
@@ -9747,6 +10007,8 @@
|
|
9747
10007
|
</xsl:variable>
|
9748
10008
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
9749
10009
|
|
10010
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
10011
|
+
|
9750
10012
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
9751
10013
|
<xsl:variable name="scale">
|
9752
10014
|
<xsl:call-template name="getImageScale">
|
@@ -10446,6 +10708,9 @@
|
|
10446
10708
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10447
10709
|
</xsl:attribute-set> <!-- formula-style -->
|
10448
10710
|
|
10711
|
+
<xsl:template name="refine_formula-style">
|
10712
|
+
</xsl:template>
|
10713
|
+
|
10449
10714
|
<xsl:attribute-set name="formula-stem-block-style">
|
10450
10715
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
10451
10716
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -10517,6 +10782,8 @@
|
|
10517
10782
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
10518
10783
|
<fo:block xsl:use-attribute-sets="formula-style">
|
10519
10784
|
|
10785
|
+
<xsl:call-template name="refine_formula-style"/>
|
10786
|
+
|
10520
10787
|
<fo:table table-layout="fixed" width="100%">
|
10521
10788
|
<fo:table-column column-width="95%"/>
|
10522
10789
|
<fo:table-column column-width="5%"/>
|
@@ -10944,6 +11211,9 @@
|
|
10944
11211
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
10945
11212
|
</xsl:attribute-set> <!-- list-name-style -->
|
10946
11213
|
|
11214
|
+
<xsl:template name="refine_list-name-style">
|
11215
|
+
</xsl:template>
|
11216
|
+
|
10947
11217
|
<xsl:attribute-set name="list-item-style">
|
10948
11218
|
</xsl:attribute-set>
|
10949
11219
|
|
@@ -11242,6 +11512,7 @@
|
|
11242
11512
|
<xsl:param name="process">false</xsl:param>
|
11243
11513
|
<xsl:if test="$process = 'true'">
|
11244
11514
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
11515
|
+
<xsl:call-template name="refine_list-name-style"/>
|
11245
11516
|
<xsl:apply-templates/>
|
11246
11517
|
</fo:block>
|
11247
11518
|
</xsl:if>
|
@@ -11302,28 +11573,49 @@
|
|
11302
11573
|
<!-- END Lists processing -->
|
11303
11574
|
<!-- ===================================== -->
|
11304
11575
|
|
11576
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
11577
|
+
</xsl:attribute-set>
|
11578
|
+
|
11579
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
11580
|
+
</xsl:template>
|
11581
|
+
|
11582
|
+
<xsl:attribute-set name="fn-container-body-style">
|
11583
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
11584
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
11585
|
+
</xsl:attribute-set>
|
11586
|
+
|
11587
|
+
<xsl:template name="refine_fn-container-body-style">
|
11588
|
+
</xsl:template>
|
11589
|
+
|
11305
11590
|
<xsl:attribute-set name="fn-reference-style">
|
11306
11591
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
11307
11592
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11308
|
-
|
11309
|
-
</xsl:attribute-set>
|
11593
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
11310
11594
|
|
11311
11595
|
<xsl:template name="refine_fn-reference-style">
|
11312
11596
|
<xsl:if test="ancestor::*[local-name()='table']">
|
11313
11597
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
11314
11598
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
11315
11599
|
</xsl:if>
|
11600
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11601
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
11316
11602
|
</xsl:template> <!-- refine_fn-reference-style -->
|
11317
11603
|
|
11318
11604
|
<xsl:attribute-set name="fn-style">
|
11319
11605
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11320
11606
|
</xsl:attribute-set>
|
11321
11607
|
|
11608
|
+
<xsl:template name="refine_fn-style">
|
11609
|
+
</xsl:template>
|
11610
|
+
|
11322
11611
|
<xsl:attribute-set name="fn-num-style">
|
11323
11612
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11324
11613
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
11325
11614
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11326
|
-
</xsl:attribute-set>
|
11615
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
11616
|
+
|
11617
|
+
<xsl:template name="refine_fn-num-style">
|
11618
|
+
</xsl:template>
|
11327
11619
|
|
11328
11620
|
<xsl:attribute-set name="fn-body-style">
|
11329
11621
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -11334,7 +11626,7 @@
|
|
11334
11626
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11335
11627
|
<xsl:attribute name="line-height">124%</xsl:attribute>
|
11336
11628
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11337
|
-
</xsl:attribute-set>
|
11629
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
11338
11630
|
|
11339
11631
|
<xsl:template name="refine_fn-body-style">
|
11340
11632
|
</xsl:template> <!-- refine_fn-body-style -->
|
@@ -11399,10 +11691,12 @@
|
|
11399
11691
|
<xsl:choose>
|
11400
11692
|
<xsl:when test="ancestor::mn:bibitem">
|
11401
11693
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
11694
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
11402
11695
|
</fn_styles>
|
11403
11696
|
</xsl:when>
|
11404
11697
|
<xsl:otherwise>
|
11405
11698
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
11699
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
11406
11700
|
</fn_styles>
|
11407
11701
|
</xsl:otherwise>
|
11408
11702
|
</xsl:choose>
|
@@ -11412,9 +11706,12 @@
|
|
11412
11706
|
<xsl:copy-of select="."/>
|
11413
11707
|
</xsl:for-each>
|
11414
11708
|
|
11415
|
-
|
11709
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11710
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
11416
11711
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
11417
|
-
</xsl:if>
|
11712
|
+
</xsl:if> -->
|
11713
|
+
|
11714
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
11418
11715
|
|
11419
11716
|
<xsl:call-template name="insert_basic_link">
|
11420
11717
|
<xsl:with-param name="element">
|
@@ -11437,10 +11734,12 @@
|
|
11437
11734
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
11438
11735
|
|
11439
11736
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
11737
|
+
<xsl:call-template name="refine_fn-style"/>
|
11440
11738
|
<xsl:copy-of select="$footnote_inline"/>
|
11441
11739
|
<fo:footnote-body role="Note">
|
11442
11740
|
|
11443
11741
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
11742
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
11444
11743
|
|
11445
11744
|
<xsl:variable name="fn_block">
|
11446
11745
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -11539,17 +11838,30 @@
|
|
11539
11838
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
11540
11839
|
</xsl:attribute-set> <!-- admonition-style -->
|
11541
11840
|
|
11841
|
+
<xsl:template name="refine_admonition-style">
|
11842
|
+
</xsl:template>
|
11843
|
+
|
11542
11844
|
<xsl:attribute-set name="admonition-container-style">
|
11543
11845
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
11544
11846
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
11545
11847
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
11546
11848
|
|
11849
|
+
<xsl:template name="refine_admonition-container-style">
|
11850
|
+
</xsl:template>
|
11851
|
+
|
11547
11852
|
<xsl:attribute-set name="admonition-name-style">
|
11548
11853
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
11549
11854
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
11550
11855
|
|
11856
|
+
<xsl:template name="refine_admonition-name-style">
|
11857
|
+
</xsl:template>
|
11858
|
+
|
11551
11859
|
<xsl:attribute-set name="admonition-p-style">
|
11552
11860
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
11861
|
+
|
11862
|
+
<xsl:template name="refine_admonition-p-style">
|
11863
|
+
</xsl:template>
|
11864
|
+
|
11553
11865
|
<!-- end admonition -->
|
11554
11866
|
|
11555
11867
|
<!-- ================ -->
|
@@ -11558,6 +11870,8 @@
|
|
11558
11870
|
<xsl:template match="mn:admonition">
|
11559
11871
|
<fo:block xsl:use-attribute-sets="admonition-style">
|
11560
11872
|
|
11873
|
+
<xsl:call-template name="refine_admonition-style"/>
|
11874
|
+
|
11561
11875
|
<xsl:call-template name="setBlockSpanAll"/>
|
11562
11876
|
|
11563
11877
|
<xsl:if test="@type = 'editorial'">
|
@@ -11625,6 +11939,7 @@
|
|
11625
11939
|
|
11626
11940
|
<xsl:template match="mn:admonition/mn:p">
|
11627
11941
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11942
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
11628
11943
|
|
11629
11944
|
<xsl:apply-templates/>
|
11630
11945
|
</fo:block>
|
@@ -11634,11 +11949,21 @@
|
|
11634
11949
|
<!-- END Admonition -->
|
11635
11950
|
<!-- ================ -->
|
11636
11951
|
|
11952
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
11953
|
+
</xsl:attribute-set>
|
11954
|
+
|
11955
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
11956
|
+
|
11957
|
+
</xsl:template>
|
11958
|
+
|
11637
11959
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
11638
11960
|
<xsl:attribute-set name="bibitem-normative-style">
|
11639
11961
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
11640
11962
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
11641
11963
|
|
11964
|
+
<xsl:template name="refine_bibitem-normative-style">
|
11965
|
+
</xsl:template>
|
11966
|
+
|
11642
11967
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
11643
11968
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
11644
11969
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -11646,9 +11971,15 @@
|
|
11646
11971
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
11647
11972
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
11648
11973
|
|
11974
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
11975
|
+
</xsl:template>
|
11976
|
+
|
11649
11977
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
11650
11978
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
11651
11979
|
|
11980
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
11981
|
+
</xsl:template>
|
11982
|
+
|
11652
11983
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
11653
11984
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
11654
11985
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -11656,18 +11987,30 @@
|
|
11656
11987
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
11657
11988
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
11658
11989
|
|
11990
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
11991
|
+
</xsl:template>
|
11992
|
+
|
11659
11993
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
11660
11994
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11661
11995
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
11662
11996
|
</xsl:attribute-set>
|
11663
11997
|
|
11998
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
11999
|
+
</xsl:template>
|
12000
|
+
|
11664
12001
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
11665
12002
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
11666
12003
|
</xsl:attribute-set>
|
11667
12004
|
|
12005
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
12006
|
+
</xsl:template>
|
12007
|
+
|
11668
12008
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
11669
12009
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
11670
12010
|
|
12011
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
12012
|
+
</xsl:template>
|
12013
|
+
|
11671
12014
|
<!-- footnote reference number for bibitem, in the text -->
|
11672
12015
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
11673
12016
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -11676,6 +12019,9 @@
|
|
11676
12019
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
11677
12020
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
11678
12021
|
|
12022
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
12023
|
+
</xsl:template>
|
12024
|
+
|
11679
12025
|
<!-- footnote number on the page bottom -->
|
11680
12026
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
11681
12027
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -11694,6 +12040,9 @@
|
|
11694
12040
|
<xsl:attribute-set name="references-non-normative-style">
|
11695
12041
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
11696
12042
|
|
12043
|
+
<xsl:template name="refine_references-non-normative-style">
|
12044
|
+
</xsl:template>
|
12045
|
+
|
11697
12046
|
<!-- ======================= -->
|
11698
12047
|
<!-- Bibliography rendering -->
|
11699
12048
|
<!-- ======================= -->
|
@@ -11735,6 +12084,7 @@
|
|
11735
12084
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
11736
12085
|
|
11737
12086
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
12087
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
11738
12088
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
11739
12089
|
</fo:block>
|
11740
12090
|
</xsl:template> <!-- references -->
|
@@ -11748,18 +12098,22 @@
|
|
11748
12098
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11749
12099
|
<xsl:call-template name="setNamedDestination"/>
|
11750
12100
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
12101
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
12102
|
+
|
11751
12103
|
<xsl:call-template name="processBibitem"/>
|
11752
12104
|
</fo:block>
|
11753
12105
|
|
11754
12106
|
</xsl:template> <!-- bibitem -->
|
11755
12107
|
|
11756
12108
|
<!-- Bibliography (non-normative references) -->
|
11757
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
12109
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
11758
12110
|
<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
|
11759
12111
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
11760
12112
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
11761
12113
|
<xsl:call-template name="setNamedDestination"/>
|
11762
12114
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
12115
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
12116
|
+
|
11763
12117
|
<fo:list-item>
|
11764
12118
|
<fo:list-item-label end-indent="label-end()">
|
11765
12119
|
<fo:block role="SKIP">
|
@@ -11772,6 +12126,7 @@
|
|
11772
12126
|
</fo:list-item-label>
|
11773
12127
|
<fo:list-item-body start-indent="body-start()">
|
11774
12128
|
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
12129
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
11775
12130
|
<xsl:call-template name="processBibitem">
|
11776
12131
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11777
12132
|
</xsl:call-template>
|
@@ -11782,12 +12137,17 @@
|
|
11782
12137
|
|
11783
12138
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
11784
12139
|
|
12140
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
12141
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
12142
|
+
|
11785
12143
|
<xsl:template name="insertListItem_Bibitem">
|
11786
12144
|
<xsl:choose>
|
11787
12145
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
11788
12146
|
<xsl:otherwise>
|
11789
12147
|
<xsl:call-template name="setNamedDestination"/>
|
11790
12148
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
12149
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
12150
|
+
|
11791
12151
|
<fo:list-item-label end-indent="label-end()">
|
11792
12152
|
<fo:block role="SKIP">
|
11793
12153
|
<fo:inline role="SKIP">
|
@@ -11798,16 +12158,18 @@
|
|
11798
12158
|
</fo:block>
|
11799
12159
|
</fo:list-item-label>
|
11800
12160
|
<fo:list-item-body start-indent="body-start()">
|
11801
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
12161
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
12162
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
11802
12163
|
<xsl:call-template name="processBibitem">
|
11803
12164
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11804
12165
|
</xsl:call-template>
|
11805
12166
|
</fo:block>
|
12167
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11806
12168
|
</fo:list-item-body>
|
11807
12169
|
</fo:list-item>
|
11808
12170
|
</xsl:otherwise>
|
11809
12171
|
</xsl:choose>
|
11810
|
-
<xsl:apply-templates select="following-sibling::*[
|
12172
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
11811
12173
|
<xsl:with-param name="skip">false</xsl:with-param>
|
11812
12174
|
</xsl:apply-templates>
|
11813
12175
|
</xsl:template>
|
@@ -11827,25 +12189,16 @@
|
|
11827
12189
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
11828
12190
|
</xsl:apply-templates>
|
11829
12191
|
<xsl:apply-templates select="mn:formattedref"/>
|
12192
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11830
12193
|
<!-- end bibitem processing -->
|
11831
|
-
|
11832
|
-
<xsl:call-template name="processBibliographyNote"/>
|
11833
12194
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11834
12195
|
|
11835
|
-
<xsl:template name="
|
11836
|
-
|
11837
|
-
|
11838
|
-
|
11839
|
-
<xsl:copy> <!-- skip @id -->
|
11840
|
-
<xsl:copy-of select="node()"/>
|
11841
|
-
</xsl:copy>
|
11842
|
-
</xsl:element>
|
11843
|
-
</xsl:variable>
|
11844
|
-
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
11845
|
-
<xsl:call-template name="note"/>
|
11846
|
-
</xsl:for-each> -->
|
12196
|
+
<xsl:template name="processBibitemFollowingNotes">
|
12197
|
+
<!-- current context is bibitem element -->
|
12198
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
12199
|
+
<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]]">
|
11847
12200
|
<xsl:call-template name="note"/>
|
11848
|
-
</xsl:
|
12201
|
+
</xsl:for-each>
|
11849
12202
|
</xsl:template>
|
11850
12203
|
|
11851
12204
|
<xsl:template match="mn:title" mode="title">
|
@@ -12047,13 +12400,19 @@
|
|
12047
12400
|
<xsl:attribute name="role">H1</xsl:attribute>
|
12048
12401
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
12049
12402
|
<xsl:attribute name="span">all</xsl:attribute>
|
12050
|
-
</xsl:attribute-set>
|
12403
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
12404
|
+
|
12405
|
+
<xsl:template name="refine_indexsect-title-style">
|
12406
|
+
</xsl:template>
|
12051
12407
|
|
12052
12408
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
12053
12409
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
12054
12410
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
12055
12411
|
<xsl:attribute name="margin-left">25mm</xsl:attribute>
|
12056
|
-
</xsl:attribute-set>
|
12412
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
12413
|
+
|
12414
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
12415
|
+
</xsl:template>
|
12057
12416
|
<!-- End Index section styles -->
|
12058
12417
|
|
12059
12418
|
<!-- =================== -->
|
@@ -12247,6 +12606,7 @@
|
|
12247
12606
|
|
12248
12607
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
12249
12608
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
12609
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
12250
12610
|
<!-- Index -->
|
12251
12611
|
<xsl:apply-templates/>
|
12252
12612
|
</fo:block>
|
@@ -12255,6 +12615,7 @@
|
|
12255
12615
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
12256
12616
|
<!-- Letter A, B, C, ... -->
|
12257
12617
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
12618
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
12258
12619
|
<xsl:apply-templates/>
|
12259
12620
|
</fo:block>
|
12260
12621
|
</xsl:template>
|
@@ -12454,9 +12815,15 @@
|
|
12454
12815
|
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
12455
12816
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
12456
12817
|
|
12818
|
+
<xsl:template name="refine_toc-leader-style">
|
12819
|
+
</xsl:template>
|
12820
|
+
|
12457
12821
|
<xsl:attribute-set name="toc-pagenumber-style">
|
12458
12822
|
</xsl:attribute-set>
|
12459
12823
|
|
12824
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
12825
|
+
</xsl:template>
|
12826
|
+
|
12460
12827
|
<!-- List of Figures, Tables -->
|
12461
12828
|
<xsl:attribute-set name="toc-listof-title-style">
|
12462
12829
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -12470,12 +12837,18 @@
|
|
12470
12837
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
12471
12838
|
</xsl:attribute-set>
|
12472
12839
|
|
12840
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
12841
|
+
</xsl:template>
|
12842
|
+
|
12473
12843
|
<xsl:attribute-set name="toc-listof-item-style">
|
12474
12844
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12475
12845
|
<xsl:attribute name="margin-left">17mm</xsl:attribute>
|
12476
12846
|
<xsl:attribute name="text-indent">-12mm</xsl:attribute>
|
12477
12847
|
</xsl:attribute-set>
|
12478
12848
|
|
12849
|
+
<xsl:template name="refine_toc-listof-item-style">
|
12850
|
+
</xsl:template>
|
12851
|
+
|
12479
12852
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
12480
12853
|
<xsl:variable name="nodes_preface_">
|
12481
12854
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -13587,23 +13960,55 @@
|
|
13587
13960
|
<!-- Ruby text (CJK languages) rendering -->
|
13588
13961
|
<!-- ===================================== -->
|
13589
13962
|
<!-- ===================================== -->
|
13963
|
+
|
13964
|
+
<xsl:attribute-set name="ruby-style">
|
13965
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
13966
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
13967
|
+
</xsl:attribute-set>
|
13968
|
+
|
13969
|
+
<xsl:template name="refine_ruby-style">
|
13970
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
13971
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
13972
|
+
</xsl:if>
|
13973
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
13974
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
13975
|
+
<!-- Example: width="2em" -->
|
13976
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
13977
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
13978
|
+
<xsl:variable name="text_width">
|
13979
|
+
<xsl:choose>
|
13980
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
13981
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
13982
|
+
</xsl:choose>
|
13983
|
+
</xsl:variable>
|
13984
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
13985
|
+
</xsl:template> <!-- refine_ruby-style -->
|
13986
|
+
|
13987
|
+
<xsl:attribute-set name="rb-style">
|
13988
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
13989
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
13990
|
+
</xsl:attribute-set>
|
13991
|
+
|
13992
|
+
<xsl:template name="refine_rb-style">
|
13993
|
+
</xsl:template>
|
13994
|
+
|
13995
|
+
<xsl:attribute-set name="rt-style">
|
13996
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
13997
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
13998
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
13999
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
14000
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
14001
|
+
</xsl:attribute-set>
|
14002
|
+
|
14003
|
+
<xsl:template name="refine_rt-style">
|
14004
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
14005
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
14006
|
+
</xsl:if>
|
14007
|
+
</xsl:template>
|
14008
|
+
|
13590
14009
|
<xsl:template match="mn:ruby">
|
13591
|
-
<fo:inline-container
|
13592
|
-
<xsl:
|
13593
|
-
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
13594
|
-
</xsl:if>
|
13595
|
-
<xsl:variable name="rt_text" select="mn:rt"/>
|
13596
|
-
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
13597
|
-
<!-- Example: width="2em" -->
|
13598
|
-
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
13599
|
-
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
13600
|
-
<xsl:variable name="text_width">
|
13601
|
-
<xsl:choose>
|
13602
|
-
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
13603
|
-
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
13604
|
-
</xsl:choose>
|
13605
|
-
</xsl:variable>
|
13606
|
-
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
14010
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
14011
|
+
<xsl:call-template name="refine_ruby-style"/>
|
13607
14012
|
|
13608
14013
|
<xsl:choose>
|
13609
14014
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -13621,17 +14026,14 @@
|
|
13621
14026
|
</xsl:template>
|
13622
14027
|
|
13623
14028
|
<xsl:template match="mn:rb">
|
13624
|
-
<fo:block
|
14029
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
13625
14030
|
</xsl:template>
|
13626
14031
|
|
13627
14032
|
<xsl:template match="mn:rt">
|
13628
|
-
<fo:block
|
13629
|
-
<xsl:
|
13630
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
13631
|
-
</xsl:if>
|
14033
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
14034
|
+
<xsl:call-template name="refine_rt-style"/>
|
13632
14035
|
<xsl:apply-templates/>
|
13633
14036
|
</fo:block>
|
13634
|
-
|
13635
14037
|
</xsl:template>
|
13636
14038
|
|
13637
14039
|
<!-- ===================================== -->
|
@@ -13640,6 +14042,18 @@
|
|
13640
14042
|
<!-- ===================================== -->
|
13641
14043
|
<!-- ===================================== -->
|
13642
14044
|
|
14045
|
+
<xsl:attribute-set name="annex-title-style">
|
14046
|
+
</xsl:attribute-set>
|
14047
|
+
|
14048
|
+
<xsl:template name="refine_annex-title-style">
|
14049
|
+
</xsl:template>
|
14050
|
+
|
14051
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
14052
|
+
</xsl:attribute-set>
|
14053
|
+
|
14054
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
14055
|
+
</xsl:template>
|
14056
|
+
|
13643
14057
|
<xsl:template name="processPrefaceSectionsDefault">
|
13644
14058
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
13645
14059
|
<xsl:sort select="@displayorder" data-type="number"/>
|