metanorma-ogc 2.8.1 → 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/metadata.rb +2 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +694 -193
- data/lib/isodoc/ogc/ogc.best-practice.xsl +694 -193
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +694 -193
- data/lib/isodoc/ogc/ogc.community-practice.xsl +694 -193
- data/lib/isodoc/ogc/ogc.community-standard.xsl +694 -193
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +694 -193
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +694 -193
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +694 -193
- data/lib/isodoc/ogc/ogc.other.xsl +694 -193
- data/lib/isodoc/ogc/ogc.policy.xsl +694 -193
- data/lib/isodoc/ogc/ogc.reference-model.xsl +694 -193
- data/lib/isodoc/ogc/ogc.release-notes.xsl +694 -193
- data/lib/isodoc/ogc/ogc.standard.xsl +694 -193
- data/lib/isodoc/ogc/ogc.test-suite.xsl +694 -193
- data/lib/isodoc/ogc/ogc.user-guide.xsl +694 -193
- data/lib/isodoc/ogc/ogc.white-paper.xsl +694 -200
- data/lib/metanorma/ogc/biblio-standoc.rng +0 -49
- data/lib/metanorma/ogc/biblio.rng +11 -1
- data/lib/metanorma/ogc/cleanup.rb +8 -4
- data/lib/metanorma/ogc/front.rb +8 -21
- data/lib/metanorma/ogc/isodoc.rng +24 -1
- data/lib/metanorma/ogc/relaton-ogc.rng +0 -30
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -1553,7 +1553,7 @@
|
|
1553
1553
|
|
1554
1554
|
<!-- first preferred displays on the same line as term/name -->
|
1555
1555
|
<xsl:template match="mn:fmt-preferred[not(preceding-sibling::mn:fmt-preferred)]" mode="term_name" priority="2">
|
1556
|
-
<fo:inline font-size="18pt" padding-right="3mm"><xsl:call-template name="
|
1556
|
+
<fo:inline font-size="18pt" padding-right="3mm"><xsl:call-template name="refine_preferred-term-style"/><xsl:apply-templates/></fo:inline>
|
1557
1557
|
<fo:inline padding-right="2mm"> </fo:inline>
|
1558
1558
|
</xsl:template>
|
1559
1559
|
|
@@ -3510,55 +3510,99 @@
|
|
3510
3510
|
<xsl:attribute name="line-height">125%</xsl:attribute>
|
3511
3511
|
</xsl:attribute-set> <!-- copyright-statement-style -->
|
3512
3512
|
|
3513
|
+
<xsl:template name="refine_copyright-statement-style">
|
3514
|
+
</xsl:template>
|
3515
|
+
|
3513
3516
|
<xsl:attribute-set name="copyright-statement-title-style">
|
3514
3517
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3515
3518
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
3516
3519
|
<xsl:attribute name="margin-top">24pt</xsl:attribute>
|
3517
3520
|
</xsl:attribute-set> <!-- copyright-statement-title-style -->
|
3518
3521
|
|
3522
|
+
<xsl:template name="refine_copyright-statement-title-style">
|
3523
|
+
</xsl:template>
|
3524
|
+
|
3519
3525
|
<xsl:attribute-set name="copyright-statement-p-style">
|
3520
3526
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3521
3527
|
</xsl:attribute-set> <!-- copyright-statement-p-style -->
|
3522
3528
|
|
3523
|
-
|
3529
|
+
<xsl:template name="refine_copyright-statement-p-style">
|
3530
|
+
|
3531
|
+
</xsl:template>
|
3532
|
+
|
3533
|
+
<xsl:attribute-set name="license-statement-style">
|
3524
3534
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
3525
3535
|
<xsl:attribute name="line-height">125%</xsl:attribute>
|
3526
3536
|
</xsl:attribute-set> <!-- license-statement-style -->
|
3527
3537
|
|
3538
|
+
<xsl:template name="refine_license-statement-style">
|
3539
|
+
</xsl:template>
|
3540
|
+
|
3528
3541
|
<xsl:attribute-set name="license-statement-title-style">
|
3529
3542
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3530
3543
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3531
3544
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
3532
3545
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
3533
3546
|
|
3547
|
+
<xsl:template name="refine_license-statement-title-style">
|
3548
|
+
</xsl:template>
|
3549
|
+
|
3534
3550
|
<xsl:attribute-set name="license-statement-p-style">
|
3535
3551
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3536
3552
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
3537
3553
|
|
3554
|
+
<xsl:template name="refine_license-statement-p-style">
|
3555
|
+
|
3556
|
+
</xsl:template>
|
3557
|
+
|
3538
3558
|
<xsl:attribute-set name="legal-statement-style">
|
3539
3559
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
3540
3560
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
3541
3561
|
|
3562
|
+
<xsl:template name="refine_legal-statement-style">
|
3563
|
+
</xsl:template>
|
3564
|
+
|
3542
3565
|
<xsl:attribute-set name="legal-statement-title-style">
|
3543
3566
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3544
3567
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
3545
3568
|
|
3569
|
+
<xsl:template name="refine_legal-statement-title-style">
|
3570
|
+
</xsl:template>
|
3571
|
+
|
3546
3572
|
<xsl:attribute-set name="legal-statement-p-style">
|
3547
3573
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
3548
3574
|
|
3575
|
+
<xsl:template name="refine_legal-statement-p-style">
|
3576
|
+
<xsl:if test="@align">
|
3577
|
+
<xsl:attribute name="text-align">
|
3578
|
+
<xsl:value-of select="@align"/>
|
3579
|
+
</xsl:attribute>
|
3580
|
+
</xsl:if>
|
3581
|
+
</xsl:template>
|
3582
|
+
|
3549
3583
|
<xsl:attribute-set name="feedback-statement-style">
|
3550
3584
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
3551
3585
|
<xsl:attribute name="line-height">125%</xsl:attribute>
|
3552
3586
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
3553
3587
|
|
3588
|
+
<xsl:template name="refine_feedback-statement-style">
|
3589
|
+
</xsl:template>
|
3590
|
+
|
3554
3591
|
<xsl:attribute-set name="feedback-statement-title-style">
|
3555
3592
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3556
3593
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
3557
3594
|
|
3595
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
3596
|
+
|
3597
|
+
</xsl:template>
|
3598
|
+
|
3558
3599
|
<xsl:attribute-set name="feedback-statement-p-style">
|
3559
3600
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3560
3601
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
3561
3602
|
|
3603
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
3604
|
+
</xsl:template>
|
3605
|
+
|
3562
3606
|
<!-- End boilerplate sections styles -->
|
3563
3607
|
|
3564
3608
|
<!-- ================================= -->
|
@@ -3566,6 +3610,8 @@
|
|
3566
3610
|
<!-- ================================= -->
|
3567
3611
|
<xsl:template match="mn:copyright-statement">
|
3568
3612
|
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
|
3613
|
+
<xsl:call-template name="refine_copyright-statement-style"/>
|
3614
|
+
|
3569
3615
|
<xsl:apply-templates/>
|
3570
3616
|
</fo:block>
|
3571
3617
|
</xsl:template> <!-- copyright-statement -->
|
@@ -3582,6 +3628,7 @@
|
|
3582
3628
|
|
3583
3629
|
<xsl:template match="mn:copyright-statement//mn:p">
|
3584
3630
|
<fo:block xsl:use-attribute-sets="copyright-statement-p-style">
|
3631
|
+
<xsl:call-template name="refine_copyright-statement-p-style"/>
|
3585
3632
|
|
3586
3633
|
<xsl:apply-templates/>
|
3587
3634
|
</fo:block>
|
@@ -3590,6 +3637,7 @@
|
|
3590
3637
|
|
3591
3638
|
<xsl:template match="mn:license-statement">
|
3592
3639
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
3640
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
3593
3641
|
<xsl:apply-templates/>
|
3594
3642
|
</fo:block>
|
3595
3643
|
</xsl:template> <!-- license-statement -->
|
@@ -3599,6 +3647,7 @@
|
|
3599
3647
|
<xsl:call-template name="getLevel"/>
|
3600
3648
|
</xsl:variable>
|
3601
3649
|
<fo:block role="H{$level}" xsl:use-attribute-sets="license-statement-title-style">
|
3650
|
+
<xsl:call-template name="refine_license-statement-title-style"/>
|
3602
3651
|
<xsl:apply-templates/>
|
3603
3652
|
</fo:block>
|
3604
3653
|
|
@@ -3615,6 +3664,7 @@
|
|
3615
3664
|
<xsl:template match="mn:legal-statement">
|
3616
3665
|
<xsl:param name="isLegacy">false</xsl:param>
|
3617
3666
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
3667
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
3618
3668
|
<xsl:if test="$isLegacy = 'true'">
|
3619
3669
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
3620
3670
|
</xsl:if>
|
@@ -3650,6 +3700,8 @@
|
|
3650
3700
|
<xsl:template match="mn:feedback-statement//mn:p">
|
3651
3701
|
<xsl:param name="margin"/>
|
3652
3702
|
<fo:block xsl:use-attribute-sets="feedback-statement-p-style">
|
3703
|
+
<xsl:call-template name="refine_feedback-statement-p-style"/>
|
3704
|
+
<!-- <xsl:copy-of select="@id"/> -->
|
3653
3705
|
<xsl:apply-templates/>
|
3654
3706
|
</fo:block>
|
3655
3707
|
|
@@ -3786,6 +3838,27 @@
|
|
3786
3838
|
<xsl:attribute-set name="sourcecode-container-style">
|
3787
3839
|
</xsl:attribute-set>
|
3788
3840
|
|
3841
|
+
<xsl:template name="refine_sourcecode-container-style">
|
3842
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
3843
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3844
|
+
</xsl:if>
|
3845
|
+
|
3846
|
+
<xsl:if test="ancestor::mn:example">
|
3847
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3848
|
+
</xsl:if>
|
3849
|
+
|
3850
|
+
<xsl:copy-of select="@id"/>
|
3851
|
+
|
3852
|
+
<xsl:if test="parent::mn:note">
|
3853
|
+
<xsl:attribute name="margin-left">
|
3854
|
+
<xsl:choose>
|
3855
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3856
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3857
|
+
</xsl:choose>
|
3858
|
+
</xsl:attribute>
|
3859
|
+
</xsl:if>
|
3860
|
+
</xsl:template>
|
3861
|
+
|
3789
3862
|
<xsl:attribute-set name="sourcecode-style">
|
3790
3863
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
3791
3864
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -3809,6 +3882,9 @@
|
|
3809
3882
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
3810
3883
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
3811
3884
|
|
3885
|
+
<xsl:template name="refine_sourcecode-name-style">
|
3886
|
+
</xsl:template>
|
3887
|
+
|
3812
3888
|
<xsl:template name="add-zero-spaces-equal">
|
3813
3889
|
<xsl:param name="text" select="."/>
|
3814
3890
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -3900,24 +3976,8 @@
|
|
3900
3976
|
<xsl:otherwise>
|
3901
3977
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
3902
3978
|
|
3903
|
-
<xsl:
|
3904
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3905
|
-
</xsl:if>
|
3906
|
-
|
3907
|
-
<xsl:if test="ancestor::mn:example">
|
3908
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3909
|
-
</xsl:if>
|
3979
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
3910
3980
|
|
3911
|
-
<xsl:copy-of select="@id"/>
|
3912
|
-
|
3913
|
-
<xsl:if test="parent::mn:note">
|
3914
|
-
<xsl:attribute name="margin-left">
|
3915
|
-
<xsl:choose>
|
3916
|
-
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3917
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3918
|
-
</xsl:choose>
|
3919
|
-
</xsl:attribute>
|
3920
|
-
</xsl:if>
|
3921
3981
|
<fo:block-container margin-left="0mm" role="SKIP">
|
3922
3982
|
<xsl:if test="parent::mn:example">
|
3923
3983
|
<fo:block font-size="1pt" line-height="10%" space-after="4pt"> </fo:block>
|
@@ -4250,6 +4310,7 @@
|
|
4250
4310
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
4251
4311
|
<xsl:if test="normalize-space() != ''">
|
4252
4312
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4313
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
4253
4314
|
<xsl:apply-templates/>
|
4254
4315
|
</fo:block>
|
4255
4316
|
</xsl:if>
|
@@ -4301,12 +4362,35 @@
|
|
4301
4362
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4302
4363
|
<xsl:attribute name="font-family">Fira Code, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4303
4364
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
4304
|
-
</xsl:attribute-set>
|
4365
|
+
</xsl:attribute-set> <!-- pre-style -->
|
4366
|
+
|
4367
|
+
<xsl:template name="refine_pre-style">
|
4368
|
+
</xsl:template>
|
4305
4369
|
|
4306
4370
|
<xsl:attribute-set name="tt-style">
|
4307
4371
|
<xsl:attribute name="font-family">Fira Code, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4308
4372
|
</xsl:attribute-set>
|
4309
4373
|
|
4374
|
+
<xsl:template name="refine_tt-style">
|
4375
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
4376
|
+
<xsl:choose>
|
4377
|
+
<xsl:when test="ancestor::mn:table">8.5</xsl:when>
|
4378
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
4379
|
+
</xsl:choose>
|
4380
|
+
</xsl:variable>
|
4381
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4382
|
+
<xsl:if test="$font-size != ''">
|
4383
|
+
<xsl:attribute name="font-size">
|
4384
|
+
<xsl:choose>
|
4385
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4386
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4387
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4388
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4389
|
+
</xsl:choose>
|
4390
|
+
</xsl:attribute>
|
4391
|
+
</xsl:if>
|
4392
|
+
</xsl:template>
|
4393
|
+
|
4310
4394
|
<xsl:variable name="color-added-text">
|
4311
4395
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
4312
4396
|
</xsl:variable>
|
@@ -4319,9 +4403,14 @@
|
|
4319
4403
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
4320
4404
|
</xsl:attribute-set>
|
4321
4405
|
|
4406
|
+
<xsl:template name="refine_add-style">
|
4407
|
+
</xsl:template>
|
4408
|
+
|
4322
4409
|
<xsl:variable name="add-style">
|
4323
|
-
|
4324
|
-
|
4410
|
+
<add-style xsl:use-attribute-sets="add-style">
|
4411
|
+
<xsl:call-template name="refine_add-style"/>
|
4412
|
+
</add-style>
|
4413
|
+
</xsl:variable>
|
4325
4414
|
<xsl:template name="append_add-style">
|
4326
4415
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
4327
4416
|
</xsl:template>
|
@@ -4334,24 +4423,77 @@
|
|
4334
4423
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
4335
4424
|
</xsl:attribute-set>
|
4336
4425
|
|
4426
|
+
<xsl:template name="refine_del-style">
|
4427
|
+
</xsl:template>
|
4428
|
+
|
4429
|
+
<xsl:attribute-set name="strong-style">
|
4430
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4431
|
+
</xsl:attribute-set>
|
4432
|
+
|
4433
|
+
<xsl:template name="refine_strong_style">
|
4434
|
+
<xsl:if test="ancestor::*['preferred']">
|
4435
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4436
|
+
</xsl:if>
|
4437
|
+
</xsl:template> <!-- refine_strong_style -->
|
4438
|
+
|
4439
|
+
<xsl:attribute-set name="em-style">
|
4440
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
4441
|
+
</xsl:attribute-set>
|
4442
|
+
|
4443
|
+
<xsl:template name="refine_em_style">
|
4444
|
+
</xsl:template> <!-- refine_em_style -->
|
4445
|
+
|
4446
|
+
<xsl:attribute-set name="sup-style">
|
4447
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4448
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4449
|
+
</xsl:attribute-set>
|
4450
|
+
|
4451
|
+
<xsl:template name="refine_sup-style">
|
4452
|
+
</xsl:template>
|
4453
|
+
|
4454
|
+
<xsl:attribute-set name="sub-style">
|
4455
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4456
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
4457
|
+
</xsl:attribute-set>
|
4458
|
+
|
4459
|
+
<xsl:template name="refine_sub-style">
|
4460
|
+
</xsl:template>
|
4461
|
+
|
4462
|
+
<xsl:attribute-set name="underline-style">
|
4463
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4464
|
+
</xsl:attribute-set>
|
4465
|
+
|
4466
|
+
<xsl:template name="refine_underline-style">
|
4467
|
+
</xsl:template>
|
4468
|
+
|
4469
|
+
<xsl:attribute-set name="hi-style">
|
4470
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
4471
|
+
</xsl:attribute-set>
|
4472
|
+
|
4473
|
+
<xsl:template name="refine_hi-style">
|
4474
|
+
</xsl:template>
|
4475
|
+
|
4476
|
+
<xsl:attribute-set name="strike-style">
|
4477
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
4478
|
+
</xsl:attribute-set>
|
4479
|
+
|
4480
|
+
<xsl:template name="refine_strike-style">
|
4481
|
+
</xsl:template>
|
4482
|
+
|
4337
4483
|
<xsl:template match="mn:br">
|
4338
4484
|
<xsl:value-of select="$linebreak"/>
|
4339
4485
|
</xsl:template>
|
4340
4486
|
|
4341
|
-
|
4342
|
-
<fo:inline
|
4343
|
-
<xsl:call-template name="
|
4487
|
+
<xsl:template match="mn:em">
|
4488
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
4489
|
+
<xsl:call-template name="refine_em_style"/>
|
4344
4490
|
<xsl:apply-templates/>
|
4345
4491
|
</fo:inline>
|
4346
4492
|
</xsl:template>
|
4347
4493
|
|
4348
|
-
<xsl:template name="refine_italic_style">
|
4349
|
-
</xsl:template>
|
4350
|
-
|
4351
4494
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
4352
4495
|
<xsl:param name="split_keep-within-line"/>
|
4353
|
-
<fo:inline
|
4354
|
-
|
4496
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
4355
4497
|
<xsl:call-template name="refine_strong_style"/>
|
4356
4498
|
|
4357
4499
|
<xsl:apply-templates>
|
@@ -4360,48 +4502,27 @@
|
|
4360
4502
|
</fo:inline>
|
4361
4503
|
</xsl:template>
|
4362
4504
|
|
4363
|
-
<xsl:template name="refine_strong_style">
|
4364
|
-
<xsl:if test="ancestor::*['preferred']">
|
4365
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4366
|
-
</xsl:if>
|
4367
|
-
</xsl:template>
|
4368
|
-
|
4369
4505
|
<xsl:template match="*[local-name()='padding']">
|
4370
4506
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
4371
4507
|
</xsl:template>
|
4372
4508
|
|
4373
4509
|
<xsl:template match="mn:sup">
|
4374
|
-
<fo:inline
|
4510
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
4511
|
+
<xsl:call-template name="refine_sup-style"/>
|
4375
4512
|
<xsl:apply-templates/>
|
4376
4513
|
</fo:inline>
|
4377
4514
|
</xsl:template>
|
4378
4515
|
|
4379
4516
|
<xsl:template match="mn:sub">
|
4380
|
-
<fo:inline
|
4517
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
4518
|
+
<xsl:call-template name="refine_sub-style"/>
|
4381
4519
|
<xsl:apply-templates/>
|
4382
4520
|
</fo:inline>
|
4383
4521
|
</xsl:template>
|
4384
4522
|
|
4385
4523
|
<xsl:template match="mn:tt">
|
4386
4524
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
4387
|
-
|
4388
|
-
<xsl:variable name="_font-size"> <!-- inherit -->
|
4389
|
-
<xsl:choose>
|
4390
|
-
<xsl:when test="ancestor::mn:table">8.5</xsl:when>
|
4391
|
-
<xsl:otherwise>9.5</xsl:otherwise>
|
4392
|
-
</xsl:choose>
|
4393
|
-
</xsl:variable>
|
4394
|
-
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4395
|
-
<xsl:if test="$font-size != ''">
|
4396
|
-
<xsl:attribute name="font-size">
|
4397
|
-
<xsl:choose>
|
4398
|
-
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4399
|
-
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4400
|
-
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4401
|
-
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4402
|
-
</xsl:choose>
|
4403
|
-
</xsl:attribute>
|
4404
|
-
</xsl:if>
|
4525
|
+
<xsl:call-template name="refine_tt-style"/>
|
4405
4526
|
<xsl:apply-templates/>
|
4406
4527
|
</fo:inline>
|
4407
4528
|
</xsl:template> <!-- tt -->
|
@@ -4420,7 +4541,8 @@
|
|
4420
4541
|
</xsl:template>
|
4421
4542
|
|
4422
4543
|
<xsl:template match="mn:underline">
|
4423
|
-
<fo:inline
|
4544
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
4545
|
+
<xsl:call-template name="refine_underline-style"/>
|
4424
4546
|
<xsl:apply-templates/>
|
4425
4547
|
</fo:inline>
|
4426
4548
|
</xsl:template>
|
@@ -4578,6 +4700,7 @@
|
|
4578
4700
|
|
4579
4701
|
<xsl:template match="mn:del">
|
4580
4702
|
<fo:inline xsl:use-attribute-sets="del-style">
|
4703
|
+
<xsl:call-template name="refine_del-style"/>
|
4581
4704
|
<xsl:apply-templates/>
|
4582
4705
|
</fo:inline>
|
4583
4706
|
</xsl:template>
|
@@ -4587,7 +4710,8 @@
|
|
4587
4710
|
|
4588
4711
|
<!-- highlight text -->
|
4589
4712
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
4590
|
-
<fo:inline
|
4713
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
4714
|
+
<xsl:call-template name="refine_hi-style"/>
|
4591
4715
|
<xsl:apply-templates/>
|
4592
4716
|
</fo:inline>
|
4593
4717
|
</xsl:template>
|
@@ -4673,7 +4797,8 @@
|
|
4673
4797
|
</xsl:template>
|
4674
4798
|
|
4675
4799
|
<xsl:template match="mn:strike">
|
4676
|
-
<fo:inline
|
4800
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
4801
|
+
<xsl:call-template name="refine_strike-style"/>
|
4677
4802
|
<xsl:apply-templates/>
|
4678
4803
|
</fo:inline>
|
4679
4804
|
</xsl:template>
|
@@ -4701,7 +4826,7 @@
|
|
4701
4826
|
</xsl:otherwise>
|
4702
4827
|
</xsl:choose>
|
4703
4828
|
</xsl:variable>
|
4704
|
-
<xsl:if test="$key = 'font-family' or
|
4829
|
+
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift' or $key = 'line-height' ">
|
4705
4830
|
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
4706
4831
|
</xsl:if>
|
4707
4832
|
<xsl:if test="$key = 'text-indent'">
|
@@ -4753,6 +4878,7 @@
|
|
4753
4878
|
|
4754
4879
|
<xsl:template match="mn:pre" name="pre">
|
4755
4880
|
<fo:block xsl:use-attribute-sets="pre-style">
|
4881
|
+
<xsl:call-template name="refine_pre-style"/>
|
4756
4882
|
<xsl:copy-of select="@id"/>
|
4757
4883
|
<xsl:choose>
|
4758
4884
|
|
@@ -4784,6 +4910,9 @@
|
|
4784
4910
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4785
4911
|
</xsl:attribute-set>
|
4786
4912
|
|
4913
|
+
<xsl:template name="refine_permission-style">
|
4914
|
+
</xsl:template>
|
4915
|
+
|
4787
4916
|
<xsl:attribute-set name="permission-name-style">
|
4788
4917
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4789
4918
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -4795,14 +4924,23 @@
|
|
4795
4924
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4796
4925
|
</xsl:attribute-set>
|
4797
4926
|
|
4927
|
+
<xsl:template name="refine_permission-name-style">
|
4928
|
+
</xsl:template>
|
4929
|
+
|
4798
4930
|
<xsl:attribute-set name="permission-label-style">
|
4799
4931
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4800
4932
|
</xsl:attribute-set>
|
4801
4933
|
|
4934
|
+
<xsl:template name="refine_permission-label-style">
|
4935
|
+
</xsl:template>
|
4936
|
+
|
4802
4937
|
<xsl:attribute-set name="requirement-style">
|
4803
4938
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4804
4939
|
</xsl:attribute-set>
|
4805
4940
|
|
4941
|
+
<xsl:template name="refine_requirement-style">
|
4942
|
+
</xsl:template>
|
4943
|
+
|
4806
4944
|
<xsl:attribute-set name="requirement-name-style">
|
4807
4945
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4808
4946
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -4814,10 +4952,19 @@
|
|
4814
4952
|
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
4815
4953
|
</xsl:attribute-set>
|
4816
4954
|
|
4955
|
+
<xsl:template name="refine_requirement-name-style">
|
4956
|
+
<xsl:if test="../@type = 'class'">
|
4957
|
+
<xsl:attribute name="background-color">white</xsl:attribute>
|
4958
|
+
</xsl:if>
|
4959
|
+
</xsl:template>
|
4960
|
+
|
4817
4961
|
<xsl:attribute-set name="requirement-label-style">
|
4818
4962
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4819
4963
|
</xsl:attribute-set>
|
4820
4964
|
|
4965
|
+
<xsl:template name="refine_requirement-label-style">
|
4966
|
+
</xsl:template>
|
4967
|
+
|
4821
4968
|
<xsl:attribute-set name="subject-style">
|
4822
4969
|
</xsl:attribute-set>
|
4823
4970
|
|
@@ -4846,6 +4993,9 @@
|
|
4846
4993
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4847
4994
|
</xsl:attribute-set>
|
4848
4995
|
|
4996
|
+
<xsl:template name="refine_recommendation-style">
|
4997
|
+
</xsl:template>
|
4998
|
+
|
4849
4999
|
<xsl:attribute-set name="recommendation-name-style">
|
4850
5000
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4851
5001
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -4857,16 +5007,23 @@
|
|
4857
5007
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4858
5008
|
</xsl:attribute-set>
|
4859
5009
|
|
5010
|
+
<xsl:template name="refine_recommendation-name-style">
|
5011
|
+
</xsl:template>
|
5012
|
+
|
4860
5013
|
<xsl:attribute-set name="recommendation-label-style">
|
4861
5014
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4862
5015
|
</xsl:attribute-set>
|
4863
5016
|
|
5017
|
+
<xsl:template name="refine_recommendation-label-style">
|
5018
|
+
</xsl:template>
|
5019
|
+
|
4864
5020
|
<!-- ========== -->
|
4865
5021
|
<!-- permission -->
|
4866
5022
|
<!-- ========== -->
|
4867
5023
|
<xsl:template match="mn:permission">
|
4868
5024
|
<xsl:call-template name="setNamedDestination"/>
|
4869
5025
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
5026
|
+
<xsl:call-template name="refine_permission-style"/>
|
4870
5027
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4871
5028
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4872
5029
|
</fo:block>
|
@@ -4875,6 +5032,7 @@
|
|
4875
5032
|
<xsl:template match="mn:permission/mn:fmt-name">
|
4876
5033
|
<xsl:if test="normalize-space() != ''">
|
4877
5034
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
5035
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
4878
5036
|
<xsl:apply-templates/>
|
4879
5037
|
<xsl:text>:</xsl:text>
|
4880
5038
|
</fo:block>
|
@@ -4883,6 +5041,7 @@
|
|
4883
5041
|
|
4884
5042
|
<xsl:template match="mn:permission/mn:label">
|
4885
5043
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
5044
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
4886
5045
|
<xsl:apply-templates/>
|
4887
5046
|
</fo:block>
|
4888
5047
|
</xsl:template>
|
@@ -4895,6 +5054,7 @@
|
|
4895
5054
|
<xsl:template match="mn:requirement">
|
4896
5055
|
<xsl:call-template name="setNamedDestination"/>
|
4897
5056
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
5057
|
+
<xsl:call-template name="refine_requirement-style"/>
|
4898
5058
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4899
5059
|
<xsl:apply-templates select="mn:label"/>
|
4900
5060
|
<xsl:apply-templates select="@obligation"/>
|
@@ -4907,9 +5067,7 @@
|
|
4907
5067
|
<xsl:if test="normalize-space() != ''">
|
4908
5068
|
|
4909
5069
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
4910
|
-
|
4911
|
-
<xsl:attribute name="background-color">white</xsl:attribute>
|
4912
|
-
</xsl:if>
|
5070
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
4913
5071
|
<xsl:apply-templates/>
|
4914
5072
|
<xsl:text>:</xsl:text>
|
4915
5073
|
</fo:block>
|
@@ -4918,6 +5076,7 @@
|
|
4918
5076
|
|
4919
5077
|
<xsl:template match="mn:requirement/mn:label">
|
4920
5078
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
5079
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
4921
5080
|
<xsl:apply-templates/>
|
4922
5081
|
</fo:block>
|
4923
5082
|
</xsl:template>
|
@@ -4943,6 +5102,7 @@
|
|
4943
5102
|
<xsl:template match="mn:recommendation">
|
4944
5103
|
<xsl:call-template name="setNamedDestination"/>
|
4945
5104
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
5105
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
4946
5106
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4947
5107
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4948
5108
|
</fo:block>
|
@@ -4952,6 +5112,7 @@
|
|
4952
5112
|
<xsl:if test="normalize-space() != ''">
|
4953
5113
|
|
4954
5114
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
5115
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
4955
5116
|
<xsl:apply-templates/>
|
4956
5117
|
</fo:block>
|
4957
5118
|
</xsl:if>
|
@@ -4959,6 +5120,7 @@
|
|
4959
5120
|
|
4960
5121
|
<xsl:template match="mn:recommendation/mn:label">
|
4961
5122
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
5123
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
4962
5124
|
<xsl:apply-templates/>
|
4963
5125
|
</fo:block>
|
4964
5126
|
</xsl:template>
|
@@ -5151,36 +5313,66 @@
|
|
5151
5313
|
<xsl:attribute-set name="term-style">
|
5152
5314
|
</xsl:attribute-set> <!-- term-style -->
|
5153
5315
|
|
5316
|
+
<xsl:template name="refine_term-style">
|
5317
|
+
</xsl:template>
|
5318
|
+
|
5154
5319
|
<xsl:attribute-set name="term-name-style">
|
5155
5320
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5156
5321
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5157
5322
|
</xsl:attribute-set> <!-- term-name-style -->
|
5158
5323
|
|
5159
|
-
|
5324
|
+
<xsl:template name="refine_term-name-style">
|
5325
|
+
</xsl:template>
|
5326
|
+
|
5327
|
+
<xsl:attribute-set name="preferred-block-style">
|
5160
5328
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
5161
5329
|
|
5330
|
+
<xsl:template name="refine_preferred-block-style">
|
5331
|
+
</xsl:template>
|
5332
|
+
|
5162
5333
|
<xsl:attribute-set name="preferred-term-style">
|
5163
5334
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5164
5335
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5165
5336
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
5166
5337
|
|
5338
|
+
<xsl:template name="refine_preferred-term-style">
|
5339
|
+
<xsl:if test="mn:strong">
|
5340
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5341
|
+
</xsl:if>
|
5342
|
+
</xsl:template>
|
5343
|
+
|
5167
5344
|
<xsl:attribute-set name="domain-style">
|
5168
5345
|
</xsl:attribute-set> <!-- domain-style -->
|
5169
5346
|
|
5347
|
+
<xsl:template name="refine_domain-style">
|
5348
|
+
</xsl:template>
|
5349
|
+
|
5170
5350
|
<xsl:attribute-set name="admitted-style">
|
5171
5351
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
5172
5352
|
</xsl:attribute-set> <!-- admitted-style -->
|
5173
5353
|
|
5354
|
+
<xsl:template name="refine_admitted-style">
|
5355
|
+
</xsl:template>
|
5356
|
+
|
5174
5357
|
<xsl:attribute-set name="deprecates-style">
|
5175
5358
|
</xsl:attribute-set> <!-- deprecates-style -->
|
5176
5359
|
|
5360
|
+
<xsl:template name="refine_deprecates-style">
|
5361
|
+
</xsl:template>
|
5362
|
+
|
5177
5363
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
5178
5364
|
</xsl:attribute-set>
|
5179
5365
|
|
5366
|
+
<xsl:template name="refine_related-block-style">
|
5367
|
+
</xsl:template>
|
5368
|
+
|
5180
5369
|
<xsl:attribute-set name="definition-style">
|
5181
5370
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
5182
5371
|
</xsl:attribute-set> <!-- definition-style -->
|
5183
5372
|
|
5373
|
+
<xsl:template name="refine_definition-style">
|
5374
|
+
</xsl:template>
|
5375
|
+
|
5184
5376
|
<xsl:attribute-set name="termsource-style">
|
5185
5377
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5186
5378
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
@@ -5193,9 +5385,15 @@
|
|
5193
5385
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5194
5386
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
5195
5387
|
|
5388
|
+
<xsl:template name="refine_termsource-text-style">
|
5389
|
+
</xsl:template>
|
5390
|
+
|
5196
5391
|
<xsl:attribute-set name="origin-style">
|
5197
5392
|
</xsl:attribute-set> <!-- origin-style -->
|
5198
5393
|
|
5394
|
+
<xsl:template name="refine_origin-style">
|
5395
|
+
</xsl:template>
|
5396
|
+
|
5199
5397
|
<!-- ====== -->
|
5200
5398
|
<!-- term -->
|
5201
5399
|
<!-- ====== -->
|
@@ -5211,10 +5409,9 @@
|
|
5211
5409
|
<xsl:template match="mn:term">
|
5212
5410
|
<xsl:call-template name="setNamedDestination"/>
|
5213
5411
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
5412
|
+
<xsl:call-template name="refine_term-style"/>
|
5214
5413
|
<xsl:apply-templates select="mn:fmt-name"/>
|
5215
5414
|
|
5216
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
5217
|
-
</xsl:if>
|
5218
5415
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5219
5416
|
</fo:block>
|
5220
5417
|
</xsl:template>
|
@@ -5290,6 +5487,7 @@
|
|
5290
5487
|
<!-- text SOURCE: -->
|
5291
5488
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
5292
5489
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
5490
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
5293
5491
|
<xsl:value-of select="."/>
|
5294
5492
|
</fo:inline>
|
5295
5493
|
</xsl:template>
|
@@ -5302,6 +5500,7 @@
|
|
5302
5500
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
5303
5501
|
</xsl:if>
|
5304
5502
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
5503
|
+
<xsl:call-template name="refine_origin-style"/>
|
5305
5504
|
<xsl:apply-templates/>
|
5306
5505
|
</fo:inline>
|
5307
5506
|
</fo:basic-link>
|
@@ -5351,9 +5550,12 @@
|
|
5351
5550
|
</xsl:variable>
|
5352
5551
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
5353
5552
|
|
5553
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
5554
|
+
|
5354
5555
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
5355
5556
|
|
5356
5557
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
5558
|
+
<xsl:call-template name="refine_term-name-style"/>
|
5357
5559
|
|
5358
5560
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
5359
5561
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -5364,7 +5566,7 @@
|
|
5364
5566
|
</xsl:if>
|
5365
5567
|
|
5366
5568
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
5367
|
-
<xsl:call-template name="
|
5569
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
5368
5570
|
|
5369
5571
|
<xsl:apply-templates/>
|
5370
5572
|
</fo:block>
|
@@ -5385,22 +5587,18 @@
|
|
5385
5587
|
|
5386
5588
|
<xsl:template match="mn:fmt-admitted">
|
5387
5589
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
5590
|
+
<xsl:call-template name="refine_admitted-style"/>
|
5388
5591
|
<xsl:apply-templates/>
|
5389
5592
|
</fo:block>
|
5390
5593
|
</xsl:template>
|
5391
5594
|
|
5392
5595
|
<xsl:template match="mn:fmt-deprecates">
|
5393
5596
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5597
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
5394
5598
|
<xsl:apply-templates/>
|
5395
5599
|
</fo:block>
|
5396
5600
|
</xsl:template>
|
5397
5601
|
|
5398
|
-
<xsl:template name="setStyle_preferred">
|
5399
|
-
<xsl:if test="mn:strong">
|
5400
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5401
|
-
</xsl:if>
|
5402
|
-
</xsl:template>
|
5403
|
-
|
5404
5602
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
5405
5603
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
5406
5604
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -5410,6 +5608,7 @@
|
|
5410
5608
|
|
5411
5609
|
<xsl:template match="mn:fmt-related">
|
5412
5610
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
5611
|
+
<xsl:call-template name="refine_related-block-style"/>
|
5413
5612
|
<xsl:apply-templates/>
|
5414
5613
|
</fo:block>
|
5415
5614
|
</xsl:template>
|
@@ -5424,6 +5623,7 @@
|
|
5424
5623
|
<!-- ========== -->
|
5425
5624
|
<xsl:template match="mn:fmt-definition">
|
5426
5625
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5626
|
+
<xsl:call-template name="refine_definition-style"/>
|
5427
5627
|
<xsl:apply-templates/>
|
5428
5628
|
</fo:block>
|
5429
5629
|
</xsl:template>
|
@@ -5472,6 +5672,9 @@
|
|
5472
5672
|
<xsl:attribute-set name="example-body-style">
|
5473
5673
|
</xsl:attribute-set> <!-- example-body-style -->
|
5474
5674
|
|
5675
|
+
<xsl:template name="refine_example-body-style">
|
5676
|
+
</xsl:template>
|
5677
|
+
|
5475
5678
|
<xsl:attribute-set name="example-name-style">
|
5476
5679
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5477
5680
|
</xsl:attribute-set> <!-- example-name-style -->
|
@@ -5518,6 +5721,8 @@
|
|
5518
5721
|
<xsl:when test="contains($element, 'block')">
|
5519
5722
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
5520
5723
|
|
5724
|
+
<xsl:call-template name="refine_example-p-style"/>
|
5725
|
+
|
5521
5726
|
<xsl:apply-templates/>
|
5522
5727
|
</fo:block>
|
5523
5728
|
</xsl:when>
|
@@ -5569,6 +5774,7 @@
|
|
5569
5774
|
</fo:block>
|
5570
5775
|
|
5571
5776
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5777
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5572
5778
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5573
5779
|
<xsl:variable name="example_body">
|
5574
5780
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -5631,6 +5837,7 @@
|
|
5631
5837
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
5632
5838
|
<!-- display further elements in blocks -->
|
5633
5839
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5840
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5634
5841
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5635
5842
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
5636
5843
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -5881,6 +6088,9 @@
|
|
5881
6088
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
5882
6089
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
5883
6090
|
|
6091
|
+
<xsl:template name="refine_table-fn-number-style">
|
6092
|
+
</xsl:template>
|
6093
|
+
|
5884
6094
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
5885
6095
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5886
6096
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
@@ -5889,30 +6099,12 @@
|
|
5889
6099
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
5890
6100
|
</xsl:template>
|
5891
6101
|
|
5892
|
-
<xsl:attribute-set name="fn-container-body-style">
|
5893
|
-
<xsl:attribute name="text-indent">0</xsl:attribute>
|
5894
|
-
<xsl:attribute name="start-indent">0</xsl:attribute>
|
5895
|
-
</xsl:attribute-set>
|
5896
|
-
|
5897
6102
|
<xsl:attribute-set name="table-fn-body-style">
|
5898
6103
|
</xsl:attribute-set>
|
5899
6104
|
|
5900
|
-
<xsl:
|
5901
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
5902
|
-
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
5903
|
-
|
5904
|
-
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
5905
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5906
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5907
|
-
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
5908
|
-
|
5909
|
-
<xsl:template name="refine_figure-fmt-fn-label-style">
|
6105
|
+
<xsl:template name="refine_table-fn-body-style">
|
5910
6106
|
</xsl:template>
|
5911
6107
|
|
5912
|
-
<xsl:attribute-set name="figure-fn-body-style">
|
5913
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
5914
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5915
|
-
</xsl:attribute-set>
|
5916
6108
|
<!-- ========================== -->
|
5917
6109
|
<!-- END Table styles -->
|
5918
6110
|
<!-- ========================== -->
|
@@ -7194,6 +7386,7 @@
|
|
7194
7386
|
</xsl:apply-templates>
|
7195
7387
|
|
7196
7388
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
7389
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
7197
7390
|
<!-- <xsl:copy-of select="./node()"/> -->
|
7198
7391
|
<xsl:apply-templates/>
|
7199
7392
|
</fo:inline>
|
@@ -7212,6 +7405,7 @@
|
|
7212
7405
|
<xsl:param name="process">false</xsl:param>
|
7213
7406
|
<xsl:if test="$process = 'true'">
|
7214
7407
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
7408
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
7215
7409
|
|
7216
7410
|
<!-- tab is padding-right -->
|
7217
7411
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -8084,10 +8278,22 @@
|
|
8084
8278
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
8085
8279
|
</xsl:attribute-set>
|
8086
8280
|
|
8281
|
+
<xsl:template name="refine_dl-block-style">
|
8282
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
8283
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
8284
|
+
</xsl:if>
|
8285
|
+
</xsl:template>
|
8286
|
+
|
8087
8287
|
<xsl:attribute-set name="dt-row-style">
|
8088
8288
|
<xsl:attribute name="min-height">8.5mm</xsl:attribute>
|
8089
8289
|
</xsl:attribute-set>
|
8090
8290
|
|
8291
|
+
<xsl:template name="refine_dt-row-style">
|
8292
|
+
<xsl:if test="not(following-sibling::mn:dt) or ancestor::mn:sourcecode"> <!-- last item -->
|
8293
|
+
<xsl:attribute name="min-height">3mm</xsl:attribute>
|
8294
|
+
</xsl:if>
|
8295
|
+
</xsl:template>
|
8296
|
+
|
8091
8297
|
<xsl:attribute-set name="dt-cell-style">
|
8092
8298
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
8093
8299
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -8122,6 +8328,9 @@
|
|
8122
8328
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
8123
8329
|
</xsl:attribute-set> <!-- dl-name-style -->
|
8124
8330
|
|
8331
|
+
<xsl:template name="refine_dl-name-style">
|
8332
|
+
</xsl:template>
|
8333
|
+
|
8125
8334
|
<xsl:attribute-set name="dd-cell-style">
|
8126
8335
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
8127
8336
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
@@ -8164,9 +8373,7 @@
|
|
8164
8373
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
8165
8374
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
8166
8375
|
|
8167
|
-
<xsl:
|
8168
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
8169
|
-
</xsl:if>
|
8376
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
8170
8377
|
|
8171
8378
|
<xsl:call-template name="setBlockSpanAll"/>
|
8172
8379
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -8462,6 +8669,8 @@
|
|
8462
8669
|
<xsl:if test="$process = 'true'">
|
8463
8670
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
8464
8671
|
|
8672
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
8673
|
+
|
8465
8674
|
<xsl:apply-templates/>
|
8466
8675
|
</fo:block>
|
8467
8676
|
</xsl:if>
|
@@ -8650,9 +8859,8 @@
|
|
8650
8859
|
<xsl:param name="split_keep-within-line"/>
|
8651
8860
|
|
8652
8861
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
8653
|
-
<xsl:
|
8654
|
-
|
8655
|
-
</xsl:if>
|
8862
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
8863
|
+
|
8656
8864
|
<xsl:call-template name="insert_dt_cell">
|
8657
8865
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
8658
8866
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -8868,18 +9076,25 @@
|
|
8868
9076
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8869
9077
|
</xsl:attribute-set>
|
8870
9078
|
|
9079
|
+
<xsl:template name="refine_appendix-style">
|
9080
|
+
</xsl:template>
|
9081
|
+
|
8871
9082
|
<xsl:attribute-set name="appendix-example-style">
|
8872
9083
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
8873
9084
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
8874
9085
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
8875
9086
|
</xsl:attribute-set>
|
8876
9087
|
|
9088
|
+
<xsl:template name="refine_appendix-example-style">
|
9089
|
+
</xsl:template>
|
9090
|
+
|
8877
9091
|
<!-- ======================== -->
|
8878
9092
|
<!-- Appendix processing -->
|
8879
9093
|
<!-- ======================== -->
|
8880
9094
|
<xsl:template match="mn:appendix">
|
8881
9095
|
<xsl:call-template name="setNamedDestination"/>
|
8882
9096
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
9097
|
+
<xsl:call-template name="refine_appendix-style"/>
|
8883
9098
|
<xsl:apply-templates select="mn:fmt-title"/>
|
8884
9099
|
</fo:block>
|
8885
9100
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -8898,13 +9113,23 @@
|
|
8898
9113
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
8899
9114
|
<xsl:call-template name="setNamedDestination"/>
|
8900
9115
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
9116
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
8901
9117
|
<xsl:apply-templates select="mn:fmt-name"/>
|
8902
9118
|
</fo:block>
|
8903
9119
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
8904
9120
|
</xsl:template>
|
8905
9121
|
|
8906
9122
|
<xsl:attribute-set name="xref-style">
|
8907
|
-
</xsl:attribute-set>
|
9123
|
+
</xsl:attribute-set> <!-- xref-style -->
|
9124
|
+
|
9125
|
+
<xsl:template name="refine_xref-style">
|
9126
|
+
<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])">
|
9127
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
9128
|
+
</xsl:if>
|
9129
|
+
<xsl:if test="parent::mn:add">
|
9130
|
+
<xsl:call-template name="append_add-style"/>
|
9131
|
+
</xsl:if>
|
9132
|
+
</xsl:template> <!-- refine_xref-style -->
|
8908
9133
|
|
8909
9134
|
<xsl:template match="mn:fmt-xref">
|
8910
9135
|
<xsl:call-template name="insert_basic_link">
|
@@ -8913,12 +9138,8 @@
|
|
8913
9138
|
<xsl:call-template name="getAltText"/>
|
8914
9139
|
</xsl:variable>
|
8915
9140
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
|
8916
|
-
<xsl:
|
8917
|
-
|
8918
|
-
</xsl:if>
|
8919
|
-
<xsl:if test="parent::mn:add">
|
8920
|
-
<xsl:call-template name="append_add-style"/>
|
8921
|
-
</xsl:if>
|
9141
|
+
<xsl:call-template name="refine_xref-style"/>
|
9142
|
+
|
8922
9143
|
<xsl:apply-templates/>
|
8923
9144
|
</fo:basic-link>
|
8924
9145
|
</xsl:with-param>
|
@@ -9027,13 +9248,13 @@
|
|
9027
9248
|
<xsl:attribute-set name="note-style">
|
9028
9249
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9029
9250
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9030
|
-
</xsl:attribute-set>
|
9251
|
+
</xsl:attribute-set> <!-- note-style -->
|
9031
9252
|
|
9032
9253
|
<xsl:template name="refine_note-style">
|
9033
9254
|
<xsl:if test="ancestor::mn:ul or ancestor::mn:ol and not(ancestor::mn:note[1]/following-sibling::*)">
|
9034
9255
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
9035
9256
|
</xsl:if>
|
9036
|
-
</xsl:template>
|
9257
|
+
</xsl:template> <!-- refine_note-style -->
|
9037
9258
|
|
9038
9259
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
9039
9260
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
@@ -9041,7 +9262,7 @@
|
|
9041
9262
|
<xsl:attribute-set name="note-name-style">
|
9042
9263
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
9043
9264
|
<!-- <xsl:attribute name="padding-right">1mm</xsl:attribute> -->
|
9044
|
-
</xsl:attribute-set>
|
9265
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
9045
9266
|
|
9046
9267
|
<xsl:template name="refine_note-name-style">
|
9047
9268
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -9056,12 +9277,15 @@
|
|
9056
9277
|
<xsl:attribute-set name="note-p-style">
|
9057
9278
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9058
9279
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9059
|
-
</xsl:attribute-set>
|
9280
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
9281
|
+
|
9282
|
+
<xsl:template name="refine_note-p-style">
|
9283
|
+
</xsl:template>
|
9060
9284
|
|
9061
9285
|
<xsl:attribute-set name="termnote-style">
|
9062
9286
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9063
9287
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9064
|
-
</xsl:attribute-set>
|
9288
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
9065
9289
|
|
9066
9290
|
<xsl:template name="refine_termnote-style">
|
9067
9291
|
</xsl:template> <!-- refine_termnote-style -->
|
@@ -9069,7 +9293,7 @@
|
|
9069
9293
|
<xsl:attribute-set name="termnote-name-style">
|
9070
9294
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
9071
9295
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
9072
|
-
</xsl:attribute-set>
|
9296
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
9073
9297
|
|
9074
9298
|
<xsl:template name="refine_termnote-name-style">
|
9075
9299
|
</xsl:template>
|
@@ -9078,6 +9302,9 @@
|
|
9078
9302
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
9079
9303
|
</xsl:attribute-set>
|
9080
9304
|
|
9305
|
+
<xsl:template name="refine_termnote-p-style">
|
9306
|
+
</xsl:template>
|
9307
|
+
|
9081
9308
|
<!-- ====== -->
|
9082
9309
|
<!-- note -->
|
9083
9310
|
<!-- termnote -->
|
@@ -9138,11 +9365,13 @@
|
|
9138
9365
|
<xsl:choose>
|
9139
9366
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
9140
9367
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9368
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9141
9369
|
<xsl:apply-templates/>
|
9142
9370
|
</fo:inline>
|
9143
9371
|
</xsl:when>
|
9144
9372
|
<xsl:otherwise>
|
9145
9373
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9374
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9146
9375
|
<xsl:apply-templates/>
|
9147
9376
|
</fo:block>
|
9148
9377
|
</xsl:otherwise>
|
@@ -9234,11 +9463,13 @@
|
|
9234
9463
|
<xsl:choose>
|
9235
9464
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
9236
9465
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
9466
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9237
9467
|
<xsl:apply-templates/>
|
9238
9468
|
</fo:inline>
|
9239
9469
|
</xsl:when>
|
9240
9470
|
<xsl:otherwise>
|
9241
9471
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
9472
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9242
9473
|
<xsl:apply-templates/>
|
9243
9474
|
</fo:block>
|
9244
9475
|
</xsl:otherwise>
|
@@ -9253,7 +9484,7 @@
|
|
9253
9484
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
9254
9485
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9255
9486
|
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
9256
|
-
</xsl:attribute-set>
|
9487
|
+
</xsl:attribute-set> <!-- quote-style -->
|
9257
9488
|
|
9258
9489
|
<xsl:template name="refine_quote-style">
|
9259
9490
|
</xsl:template>
|
@@ -9263,6 +9494,9 @@
|
|
9263
9494
|
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
9264
9495
|
</xsl:attribute-set>
|
9265
9496
|
|
9497
|
+
<xsl:template name="refine_quote-source-style">
|
9498
|
+
</xsl:template>
|
9499
|
+
|
9266
9500
|
<!-- ====== -->
|
9267
9501
|
<!-- quote -->
|
9268
9502
|
<!-- source -->
|
@@ -9291,6 +9525,7 @@
|
|
9291
9525
|
</fo:block-container>
|
9292
9526
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
9293
9527
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
9528
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
9294
9529
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
9295
9530
|
<xsl:apply-templates select="mn:author"/>
|
9296
9531
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -9353,6 +9588,9 @@
|
|
9353
9588
|
<xsl:attribute-set name="figure-style">
|
9354
9589
|
</xsl:attribute-set>
|
9355
9590
|
|
9591
|
+
<xsl:template name="refine_figure-style">
|
9592
|
+
</xsl:template>
|
9593
|
+
|
9356
9594
|
<xsl:attribute-set name="figure-name-style">
|
9357
9595
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9358
9596
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
@@ -9362,7 +9600,7 @@
|
|
9362
9600
|
<!-- <xsl:attribute name="keep-with-next">always</xsl:attribute> -->
|
9363
9601
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
9364
9602
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9365
|
-
</xsl:attribute-set>
|
9603
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
9366
9604
|
|
9367
9605
|
<xsl:template name="refine_figure-name-style">
|
9368
9606
|
</xsl:template> <!-- refine_figure-name-style -->
|
@@ -9372,7 +9610,7 @@
|
|
9372
9610
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9373
9611
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
9374
9612
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
9375
|
-
</xsl:attribute-set>
|
9613
|
+
</xsl:attribute-set> <!-- image-style -->
|
9376
9614
|
|
9377
9615
|
<xsl:template name="refine_image-style">
|
9378
9616
|
</xsl:template>
|
@@ -9382,14 +9620,51 @@
|
|
9382
9620
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
9383
9621
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
9384
9622
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
9385
|
-
</xsl:attribute-set>
|
9623
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
9624
|
+
|
9625
|
+
<xsl:template name="refine_image-graphic-style">
|
9626
|
+
</xsl:template>
|
9386
9627
|
|
9387
9628
|
<xsl:attribute-set name="figure-source-style">
|
9388
9629
|
</xsl:attribute-set>
|
9389
9630
|
|
9631
|
+
<xsl:template name="refine_figure-source-style">
|
9632
|
+
</xsl:template>
|
9633
|
+
|
9390
9634
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
9391
9635
|
</xsl:attribute-set>
|
9392
9636
|
|
9637
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
9638
|
+
</xsl:template>
|
9639
|
+
|
9640
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
9641
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
9642
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
9643
|
+
|
9644
|
+
<xsl:template name="refine_figure-fn-number-style">
|
9645
|
+
</xsl:template>
|
9646
|
+
|
9647
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
9648
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
9649
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
9650
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
9651
|
+
|
9652
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
9653
|
+
</xsl:template>
|
9654
|
+
|
9655
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
9656
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
9657
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9658
|
+
</xsl:attribute-set>
|
9659
|
+
|
9660
|
+
<xsl:template name="refine_figure-fn-body-style">
|
9661
|
+
<xsl:variable name="key_iso">
|
9662
|
+
</xsl:variable>
|
9663
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
9664
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
9665
|
+
</xsl:if>
|
9666
|
+
</xsl:template>
|
9667
|
+
|
9393
9668
|
<!-- ============================ -->
|
9394
9669
|
<!-- figure's footnotes rendering -->
|
9395
9670
|
<!-- ============================ -->
|
@@ -9502,9 +9777,8 @@
|
|
9502
9777
|
</fo:table-cell>
|
9503
9778
|
<fo:table-cell>
|
9504
9779
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
9505
|
-
<xsl:
|
9506
|
-
|
9507
|
-
</xsl:if>
|
9780
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
9781
|
+
|
9508
9782
|
<!-- <xsl:copy-of select="./node()"/> -->
|
9509
9783
|
<xsl:apply-templates/>
|
9510
9784
|
</fo:block>
|
@@ -9522,6 +9796,7 @@
|
|
9522
9796
|
<xsl:param name="process">false</xsl:param>
|
9523
9797
|
<xsl:if test="$process = 'true'">
|
9524
9798
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
9799
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
9525
9800
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
9526
9801
|
|
9527
9802
|
<!-- tab is padding-right -->
|
@@ -9559,6 +9834,7 @@
|
|
9559
9834
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
9560
9835
|
</xsl:if>
|
9561
9836
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
9837
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
9562
9838
|
<!-- <xsl:value-of select="@reference"/> -->
|
9563
9839
|
<xsl:apply-templates/>
|
9564
9840
|
</fo:inline>
|
@@ -9604,6 +9880,8 @@
|
|
9604
9880
|
|
9605
9881
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
9606
9882
|
|
9883
|
+
<xsl:call-template name="refine_figure-style"/>
|
9884
|
+
|
9607
9885
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
9608
9886
|
<xsl:call-template name="setIDforNamedDestination"/>
|
9609
9887
|
</xsl:for-each>
|
@@ -9647,6 +9925,7 @@
|
|
9647
9925
|
|
9648
9926
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
9649
9927
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
9928
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
9650
9929
|
<xsl:apply-templates/>
|
9651
9930
|
</fo:block>
|
9652
9931
|
</xsl:template>
|
@@ -9776,6 +10055,8 @@
|
|
9776
10055
|
</xsl:variable>
|
9777
10056
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
9778
10057
|
|
10058
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
10059
|
+
|
9779
10060
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
9780
10061
|
<xsl:variable name="scale">
|
9781
10062
|
<xsl:call-template name="getImageScale">
|
@@ -10475,6 +10756,9 @@
|
|
10475
10756
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10476
10757
|
</xsl:attribute-set> <!-- formula-style -->
|
10477
10758
|
|
10759
|
+
<xsl:template name="refine_formula-style">
|
10760
|
+
</xsl:template>
|
10761
|
+
|
10478
10762
|
<xsl:attribute-set name="formula-stem-block-style">
|
10479
10763
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
10480
10764
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -10544,6 +10828,8 @@
|
|
10544
10828
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
10545
10829
|
<fo:block xsl:use-attribute-sets="formula-style">
|
10546
10830
|
|
10831
|
+
<xsl:call-template name="refine_formula-style"/>
|
10832
|
+
|
10547
10833
|
<fo:table table-layout="fixed" width="100%">
|
10548
10834
|
<fo:table-column column-width="95%"/>
|
10549
10835
|
<fo:table-column column-width="5%"/>
|
@@ -10966,6 +11252,9 @@
|
|
10966
11252
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
10967
11253
|
</xsl:attribute-set> <!-- list-name-style -->
|
10968
11254
|
|
11255
|
+
<xsl:template name="refine_list-name-style">
|
11256
|
+
</xsl:template>
|
11257
|
+
|
10969
11258
|
<xsl:attribute-set name="list-item-style">
|
10970
11259
|
</xsl:attribute-set>
|
10971
11260
|
|
@@ -11270,6 +11559,7 @@
|
|
11270
11559
|
<xsl:param name="process">false</xsl:param>
|
11271
11560
|
<xsl:if test="$process = 'true'">
|
11272
11561
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
11562
|
+
<xsl:call-template name="refine_list-name-style"/>
|
11273
11563
|
<xsl:apply-templates/>
|
11274
11564
|
</fo:block>
|
11275
11565
|
</xsl:if>
|
@@ -11330,25 +11620,46 @@
|
|
11330
11620
|
<!-- END Lists processing -->
|
11331
11621
|
<!-- ===================================== -->
|
11332
11622
|
|
11623
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
11624
|
+
</xsl:attribute-set>
|
11625
|
+
|
11626
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
11627
|
+
</xsl:template>
|
11628
|
+
|
11629
|
+
<xsl:attribute-set name="fn-container-body-style">
|
11630
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
11631
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
11632
|
+
</xsl:attribute-set>
|
11633
|
+
|
11634
|
+
<xsl:template name="refine_fn-container-body-style">
|
11635
|
+
</xsl:template>
|
11636
|
+
|
11333
11637
|
<xsl:attribute-set name="fn-reference-style">
|
11334
11638
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
11335
11639
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11336
11640
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11337
|
-
|
11338
|
-
</xsl:attribute-set>
|
11641
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
11339
11642
|
|
11340
11643
|
<xsl:template name="refine_fn-reference-style">
|
11644
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11645
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
11341
11646
|
</xsl:template> <!-- refine_fn-reference-style -->
|
11342
11647
|
|
11343
11648
|
<xsl:attribute-set name="fn-style">
|
11344
11649
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11345
11650
|
</xsl:attribute-set>
|
11346
11651
|
|
11652
|
+
<xsl:template name="refine_fn-style">
|
11653
|
+
</xsl:template>
|
11654
|
+
|
11347
11655
|
<xsl:attribute-set name="fn-num-style">
|
11348
11656
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11349
11657
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
11350
11658
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11351
|
-
</xsl:attribute-set>
|
11659
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
11660
|
+
|
11661
|
+
<xsl:template name="refine_fn-num-style">
|
11662
|
+
</xsl:template>
|
11352
11663
|
|
11353
11664
|
<xsl:attribute-set name="fn-body-style">
|
11354
11665
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -11360,7 +11671,7 @@
|
|
11360
11671
|
<xsl:attribute name="color"><xsl:value-of select="$color_main"/></xsl:attribute>
|
11361
11672
|
<xsl:attribute name="line-height">124%</xsl:attribute>
|
11362
11673
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11363
|
-
</xsl:attribute-set>
|
11674
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
11364
11675
|
|
11365
11676
|
<xsl:template name="refine_fn-body-style">
|
11366
11677
|
</xsl:template> <!-- refine_fn-body-style -->
|
@@ -11424,10 +11735,12 @@
|
|
11424
11735
|
<xsl:choose>
|
11425
11736
|
<xsl:when test="ancestor::mn:bibitem">
|
11426
11737
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
11738
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
11427
11739
|
</fn_styles>
|
11428
11740
|
</xsl:when>
|
11429
11741
|
<xsl:otherwise>
|
11430
11742
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
11743
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
11431
11744
|
</fn_styles>
|
11432
11745
|
</xsl:otherwise>
|
11433
11746
|
</xsl:choose>
|
@@ -11437,9 +11750,12 @@
|
|
11437
11750
|
<xsl:copy-of select="."/>
|
11438
11751
|
</xsl:for-each>
|
11439
11752
|
|
11440
|
-
|
11753
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11754
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
11441
11755
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
11442
|
-
</xsl:if>
|
11756
|
+
</xsl:if> -->
|
11757
|
+
|
11758
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
11443
11759
|
|
11444
11760
|
<xsl:call-template name="insert_basic_link">
|
11445
11761
|
<xsl:with-param name="element">
|
@@ -11462,10 +11778,12 @@
|
|
11462
11778
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
11463
11779
|
|
11464
11780
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
11781
|
+
<xsl:call-template name="refine_fn-style"/>
|
11465
11782
|
<xsl:copy-of select="$footnote_inline"/>
|
11466
11783
|
<fo:footnote-body role="Note">
|
11467
11784
|
|
11468
11785
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
11786
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
11469
11787
|
|
11470
11788
|
<xsl:variable name="fn_block">
|
11471
11789
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -11567,6 +11885,9 @@
|
|
11567
11885
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11568
11886
|
</xsl:attribute-set> <!-- admonition-style -->
|
11569
11887
|
|
11888
|
+
<xsl:template name="refine_admonition-style">
|
11889
|
+
</xsl:template>
|
11890
|
+
|
11570
11891
|
<xsl:attribute-set name="admonition-container-style">
|
11571
11892
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
11572
11893
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -11574,6 +11895,9 @@
|
|
11574
11895
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
11575
11896
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
11576
11897
|
|
11898
|
+
<xsl:template name="refine_admonition-container-style">
|
11899
|
+
</xsl:template>
|
11900
|
+
|
11577
11901
|
<xsl:attribute-set name="admonition-name-style">
|
11578
11902
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
11579
11903
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -11583,9 +11907,16 @@
|
|
11583
11907
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
11584
11908
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
11585
11909
|
|
11910
|
+
<xsl:template name="refine_admonition-name-style">
|
11911
|
+
</xsl:template>
|
11912
|
+
|
11586
11913
|
<xsl:attribute-set name="admonition-p-style">
|
11587
11914
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
11588
11915
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
11916
|
+
|
11917
|
+
<xsl:template name="refine_admonition-p-style">
|
11918
|
+
</xsl:template>
|
11919
|
+
|
11589
11920
|
<!-- end admonition -->
|
11590
11921
|
|
11591
11922
|
<!-- ================ -->
|
@@ -11595,6 +11926,8 @@
|
|
11595
11926
|
<xsl:call-template name="setNamedDestination"/>
|
11596
11927
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
11597
11928
|
|
11929
|
+
<xsl:call-template name="refine_admonition-style"/>
|
11930
|
+
|
11598
11931
|
<xsl:call-template name="setBlockSpanAll"/>
|
11599
11932
|
<xsl:variable name="admonition_color" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = concat('color-admonition-', @type)]/mn:value)"/>
|
11600
11933
|
<xsl:if test="$admonition_color != ''">
|
@@ -11602,10 +11935,14 @@
|
|
11602
11935
|
<xsl:attribute name="color"><xsl:value-of select="$admonition_color"/></xsl:attribute>
|
11603
11936
|
</xsl:if>
|
11604
11937
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
11938
|
+
|
11939
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
11605
11940
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
11941
|
+
<xsl:call-template name="refine_admonition-name-style"/>
|
11606
11942
|
<xsl:call-template name="displayAdmonitionName"/>
|
11607
11943
|
</fo:block>
|
11608
11944
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11945
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
11609
11946
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
11610
11947
|
</fo:block>
|
11611
11948
|
|
@@ -11659,6 +11996,7 @@
|
|
11659
11996
|
|
11660
11997
|
<xsl:template match="mn:admonition/mn:p">
|
11661
11998
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11999
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
11662
12000
|
|
11663
12001
|
<xsl:apply-templates/>
|
11664
12002
|
</fo:block>
|
@@ -11668,6 +12006,13 @@
|
|
11668
12006
|
<!-- END Admonition -->
|
11669
12007
|
<!-- ================ -->
|
11670
12008
|
|
12009
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
12010
|
+
</xsl:attribute-set>
|
12011
|
+
|
12012
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
12013
|
+
|
12014
|
+
</xsl:template>
|
12015
|
+
|
11671
12016
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
11672
12017
|
<xsl:attribute-set name="bibitem-normative-style">
|
11673
12018
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -11676,6 +12021,9 @@
|
|
11676
12021
|
<xsl:attribute name="line-height">115%</xsl:attribute>
|
11677
12022
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
11678
12023
|
|
12024
|
+
<xsl:template name="refine_bibitem-normative-style">
|
12025
|
+
</xsl:template>
|
12026
|
+
|
11679
12027
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
11680
12028
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
11681
12029
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -11684,9 +12032,15 @@
|
|
11684
12032
|
<xsl:attribute name="provisional-distance-between-starts">13mm</xsl:attribute>
|
11685
12033
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
11686
12034
|
|
12035
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
12036
|
+
</xsl:template>
|
12037
|
+
|
11687
12038
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
11688
12039
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
11689
12040
|
|
12041
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
12042
|
+
</xsl:template>
|
12043
|
+
|
11690
12044
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
11691
12045
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
11692
12046
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -11694,17 +12048,29 @@
|
|
11694
12048
|
<xsl:attribute name="provisional-distance-between-starts">13mm</xsl:attribute>
|
11695
12049
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
11696
12050
|
|
12051
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
12052
|
+
</xsl:template>
|
12053
|
+
|
11697
12054
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
11698
12055
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11699
12056
|
</xsl:attribute-set>
|
11700
12057
|
|
12058
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
12059
|
+
</xsl:template>
|
12060
|
+
|
11701
12061
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
11702
12062
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
11703
12063
|
</xsl:attribute-set>
|
11704
12064
|
|
12065
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
12066
|
+
</xsl:template>
|
12067
|
+
|
11705
12068
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
11706
12069
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
11707
12070
|
|
12071
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
12072
|
+
</xsl:template>
|
12073
|
+
|
11708
12074
|
<!-- footnote reference number for bibitem, in the text -->
|
11709
12075
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
11710
12076
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -11712,6 +12078,9 @@
|
|
11712
12078
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11713
12079
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
11714
12080
|
|
12081
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
12082
|
+
</xsl:template>
|
12083
|
+
|
11715
12084
|
<!-- footnote number on the page bottom -->
|
11716
12085
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
11717
12086
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -11730,6 +12099,9 @@
|
|
11730
12099
|
<xsl:attribute name="line-height">120%</xsl:attribute>
|
11731
12100
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
11732
12101
|
|
12102
|
+
<xsl:template name="refine_references-non-normative-style">
|
12103
|
+
</xsl:template>
|
12104
|
+
|
11733
12105
|
<!-- ======================= -->
|
11734
12106
|
<!-- Bibliography rendering -->
|
11735
12107
|
<!-- ======================= -->
|
@@ -11771,6 +12143,7 @@
|
|
11771
12143
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
11772
12144
|
|
11773
12145
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
12146
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
11774
12147
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
11775
12148
|
</fo:block>
|
11776
12149
|
</xsl:template> <!-- references -->
|
@@ -11784,18 +12157,22 @@
|
|
11784
12157
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11785
12158
|
<xsl:call-template name="setNamedDestination"/>
|
11786
12159
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
12160
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
12161
|
+
|
11787
12162
|
<xsl:call-template name="processBibitem"/>
|
11788
12163
|
</fo:block>
|
11789
12164
|
|
11790
12165
|
</xsl:template> <!-- bibitem -->
|
11791
12166
|
|
11792
12167
|
<!-- Bibliography (non-normative references) -->
|
11793
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
12168
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
11794
12169
|
<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
|
11795
12170
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
11796
12171
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
11797
12172
|
<xsl:call-template name="setNamedDestination"/>
|
11798
12173
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
12174
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
12175
|
+
|
11799
12176
|
<fo:list-item>
|
11800
12177
|
<fo:list-item-label end-indent="label-end()">
|
11801
12178
|
<fo:block role="SKIP">
|
@@ -11808,6 +12185,7 @@
|
|
11808
12185
|
</fo:list-item-label>
|
11809
12186
|
<fo:list-item-body start-indent="body-start()">
|
11810
12187
|
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
12188
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
11811
12189
|
<xsl:call-template name="processBibitem">
|
11812
12190
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11813
12191
|
</xsl:call-template>
|
@@ -11818,12 +12196,17 @@
|
|
11818
12196
|
|
11819
12197
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
11820
12198
|
|
12199
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
12200
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
12201
|
+
|
11821
12202
|
<xsl:template name="insertListItem_Bibitem">
|
11822
12203
|
<xsl:choose>
|
11823
12204
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
11824
12205
|
<xsl:otherwise>
|
11825
12206
|
<xsl:call-template name="setNamedDestination"/>
|
11826
12207
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
12208
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
12209
|
+
|
11827
12210
|
<fo:list-item-label end-indent="label-end()">
|
11828
12211
|
<fo:block role="SKIP">
|
11829
12212
|
<fo:inline role="SKIP">
|
@@ -11834,16 +12217,18 @@
|
|
11834
12217
|
</fo:block>
|
11835
12218
|
</fo:list-item-label>
|
11836
12219
|
<fo:list-item-body start-indent="body-start()">
|
11837
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
12220
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
12221
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
11838
12222
|
<xsl:call-template name="processBibitem">
|
11839
12223
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11840
12224
|
</xsl:call-template>
|
11841
12225
|
</fo:block>
|
12226
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11842
12227
|
</fo:list-item-body>
|
11843
12228
|
</fo:list-item>
|
11844
12229
|
</xsl:otherwise>
|
11845
12230
|
</xsl:choose>
|
11846
|
-
<xsl:apply-templates select="following-sibling::*[
|
12231
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
11847
12232
|
<xsl:with-param name="skip">false</xsl:with-param>
|
11848
12233
|
</xsl:apply-templates>
|
11849
12234
|
</xsl:template>
|
@@ -11859,25 +12244,16 @@
|
|
11859
12244
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
11860
12245
|
</xsl:apply-templates>
|
11861
12246
|
<xsl:apply-templates select="mn:formattedref"/>
|
12247
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11862
12248
|
<!-- end bibitem processing -->
|
11863
|
-
|
11864
|
-
<xsl:call-template name="processBibliographyNote"/>
|
11865
12249
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11866
12250
|
|
11867
|
-
<xsl:template name="
|
11868
|
-
|
11869
|
-
|
11870
|
-
|
11871
|
-
<xsl:copy> <!-- skip @id -->
|
11872
|
-
<xsl:copy-of select="node()"/>
|
11873
|
-
</xsl:copy>
|
11874
|
-
</xsl:element>
|
11875
|
-
</xsl:variable>
|
11876
|
-
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
11877
|
-
<xsl:call-template name="note"/>
|
11878
|
-
</xsl:for-each> -->
|
12251
|
+
<xsl:template name="processBibitemFollowingNotes">
|
12252
|
+
<!-- current context is bibitem element -->
|
12253
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
12254
|
+
<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]]">
|
11879
12255
|
<xsl:call-template name="note"/>
|
11880
|
-
</xsl:
|
12256
|
+
</xsl:for-each>
|
11881
12257
|
</xsl:template>
|
11882
12258
|
|
11883
12259
|
<xsl:template match="mn:title" mode="title">
|
@@ -12077,11 +12453,17 @@
|
|
12077
12453
|
<!-- Index section styles -->
|
12078
12454
|
<xsl:attribute-set name="indexsect-title-style">
|
12079
12455
|
<xsl:attribute name="role">H1</xsl:attribute>
|
12080
|
-
</xsl:attribute-set>
|
12456
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
12457
|
+
|
12458
|
+
<xsl:template name="refine_indexsect-title-style">
|
12459
|
+
</xsl:template>
|
12081
12460
|
|
12082
12461
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
12083
12462
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
12084
|
-
</xsl:attribute-set>
|
12463
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
12464
|
+
|
12465
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
12466
|
+
</xsl:template>
|
12085
12467
|
<!-- End Index section styles -->
|
12086
12468
|
|
12087
12469
|
<!-- =================== -->
|
@@ -12275,6 +12657,7 @@
|
|
12275
12657
|
|
12276
12658
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
12277
12659
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
12660
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
12278
12661
|
<!-- Index -->
|
12279
12662
|
<xsl:apply-templates/>
|
12280
12663
|
</fo:block>
|
@@ -12283,6 +12666,7 @@
|
|
12283
12666
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
12284
12667
|
<!-- Letter A, B, C, ... -->
|
12285
12668
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
12669
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
12286
12670
|
<xsl:apply-templates/>
|
12287
12671
|
</fo:block>
|
12288
12672
|
</xsl:template>
|
@@ -12325,13 +12709,31 @@
|
|
12325
12709
|
<!-- skip here, see the template 'fmt-review-start' -->
|
12326
12710
|
</xsl:when>
|
12327
12711
|
<xsl:otherwise>
|
12328
|
-
|
12329
|
-
|
12330
|
-
|
12331
|
-
|
12712
|
+
<xsl:choose>
|
12713
|
+
<xsl:when test="parent::mn:example or parent::mn:termexample or parent::mn:note or parent::mn:termnote">
|
12714
|
+
<fo:block font-size="1pt" line-height="0.1">
|
12715
|
+
<xsl:call-template name="fo_inline_bookmark">
|
12716
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
12717
|
+
</xsl:call-template>
|
12718
|
+
</fo:block>
|
12719
|
+
</xsl:when>
|
12720
|
+
<xsl:otherwise>
|
12721
|
+
<xsl:call-template name="fo_inline_bookmark">
|
12722
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
12723
|
+
</xsl:call-template>
|
12724
|
+
</xsl:otherwise>
|
12725
|
+
</xsl:choose>
|
12332
12726
|
</xsl:otherwise>
|
12333
12727
|
</xsl:choose>
|
12334
12728
|
</xsl:template>
|
12729
|
+
|
12730
|
+
<xsl:template name="fo_inline_bookmark">
|
12731
|
+
<xsl:param name="bookmark_id"/>
|
12732
|
+
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
12733
|
+
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
12734
|
+
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
12735
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
12736
|
+
</xsl:template>
|
12335
12737
|
<!-- =================== -->
|
12336
12738
|
<!-- End of Index processing -->
|
12337
12739
|
<!-- =================== -->
|
@@ -12472,9 +12874,15 @@
|
|
12472
12874
|
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
12473
12875
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
12474
12876
|
|
12877
|
+
<xsl:template name="refine_toc-leader-style">
|
12878
|
+
</xsl:template>
|
12879
|
+
|
12475
12880
|
<xsl:attribute-set name="toc-pagenumber-style">
|
12476
12881
|
</xsl:attribute-set>
|
12477
12882
|
|
12883
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
12884
|
+
</xsl:template>
|
12885
|
+
|
12478
12886
|
<!-- List of Figures, Tables -->
|
12479
12887
|
<xsl:attribute-set name="toc-listof-title-style">
|
12480
12888
|
<xsl:attribute name="margin-left">-18mm</xsl:attribute>
|
@@ -12490,12 +12898,18 @@
|
|
12490
12898
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
12491
12899
|
</xsl:attribute-set>
|
12492
12900
|
|
12901
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
12902
|
+
</xsl:template>
|
12903
|
+
|
12493
12904
|
<xsl:attribute-set name="toc-listof-item-style">
|
12494
12905
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12495
12906
|
<xsl:attribute name="text-align-last">justify</xsl:attribute>
|
12496
12907
|
<xsl:attribute name="margin-top">2pt</xsl:attribute>
|
12497
12908
|
</xsl:attribute-set>
|
12498
12909
|
|
12910
|
+
<xsl:template name="refine_toc-listof-item-style">
|
12911
|
+
</xsl:template>
|
12912
|
+
|
12499
12913
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
12500
12914
|
<xsl:variable name="nodes_preface_">
|
12501
12915
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -13577,23 +13991,55 @@
|
|
13577
13991
|
<!-- Ruby text (CJK languages) rendering -->
|
13578
13992
|
<!-- ===================================== -->
|
13579
13993
|
<!-- ===================================== -->
|
13994
|
+
|
13995
|
+
<xsl:attribute-set name="ruby-style">
|
13996
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
13997
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
13998
|
+
</xsl:attribute-set>
|
13999
|
+
|
14000
|
+
<xsl:template name="refine_ruby-style">
|
14001
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
14002
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
14003
|
+
</xsl:if>
|
14004
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
14005
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
14006
|
+
<!-- Example: width="2em" -->
|
14007
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
14008
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
14009
|
+
<xsl:variable name="text_width">
|
14010
|
+
<xsl:choose>
|
14011
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
14012
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
14013
|
+
</xsl:choose>
|
14014
|
+
</xsl:variable>
|
14015
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
14016
|
+
</xsl:template> <!-- refine_ruby-style -->
|
14017
|
+
|
14018
|
+
<xsl:attribute-set name="rb-style">
|
14019
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
14020
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
14021
|
+
</xsl:attribute-set>
|
14022
|
+
|
14023
|
+
<xsl:template name="refine_rb-style">
|
14024
|
+
</xsl:template>
|
14025
|
+
|
14026
|
+
<xsl:attribute-set name="rt-style">
|
14027
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
14028
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
14029
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
14030
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
14031
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
14032
|
+
</xsl:attribute-set>
|
14033
|
+
|
14034
|
+
<xsl:template name="refine_rt-style">
|
14035
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
14036
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
14037
|
+
</xsl:if>
|
14038
|
+
</xsl:template>
|
14039
|
+
|
13580
14040
|
<xsl:template match="mn:ruby">
|
13581
|
-
<fo:inline-container
|
13582
|
-
<xsl:
|
13583
|
-
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
13584
|
-
</xsl:if>
|
13585
|
-
<xsl:variable name="rt_text" select="mn:rt"/>
|
13586
|
-
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
13587
|
-
<!-- Example: width="2em" -->
|
13588
|
-
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
13589
|
-
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
13590
|
-
<xsl:variable name="text_width">
|
13591
|
-
<xsl:choose>
|
13592
|
-
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
13593
|
-
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
13594
|
-
</xsl:choose>
|
13595
|
-
</xsl:variable>
|
13596
|
-
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
14041
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
14042
|
+
<xsl:call-template name="refine_ruby-style"/>
|
13597
14043
|
|
13598
14044
|
<xsl:choose>
|
13599
14045
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -13611,17 +14057,14 @@
|
|
13611
14057
|
</xsl:template>
|
13612
14058
|
|
13613
14059
|
<xsl:template match="mn:rb">
|
13614
|
-
<fo:block
|
14060
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
13615
14061
|
</xsl:template>
|
13616
14062
|
|
13617
14063
|
<xsl:template match="mn:rt">
|
13618
|
-
<fo:block
|
13619
|
-
<xsl:
|
13620
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
13621
|
-
</xsl:if>
|
14064
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
14065
|
+
<xsl:call-template name="refine_rt-style"/>
|
13622
14066
|
<xsl:apply-templates/>
|
13623
14067
|
</fo:block>
|
13624
|
-
|
13625
14068
|
</xsl:template>
|
13626
14069
|
|
13627
14070
|
<!-- ===================================== -->
|
@@ -13630,6 +14073,18 @@
|
|
13630
14073
|
<!-- ===================================== -->
|
13631
14074
|
<!-- ===================================== -->
|
13632
14075
|
|
14076
|
+
<xsl:attribute-set name="annex-title-style">
|
14077
|
+
</xsl:attribute-set>
|
14078
|
+
|
14079
|
+
<xsl:template name="refine_annex-title-style">
|
14080
|
+
</xsl:template>
|
14081
|
+
|
14082
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
14083
|
+
</xsl:attribute-set>
|
14084
|
+
|
14085
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
14086
|
+
</xsl:template>
|
14087
|
+
|
13633
14088
|
<xsl:template name="processPrefaceSectionsDefault">
|
13634
14089
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
13635
14090
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -14189,11 +14644,35 @@
|
|
14189
14644
|
|
14190
14645
|
<xsl:template match="mn:svgmap"/>
|
14191
14646
|
|
14647
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
14648
|
+
|
14192
14649
|
<!-- for correct rendering combining chars, added in mode="update_xml_step2" -->
|
14193
14650
|
<xsl:template match="*[local-name() = 'lang_none']">
|
14194
14651
|
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
14195
14652
|
</xsl:template>
|
14196
14653
|
|
14654
|
+
<xsl:template name="addTagElementT">
|
14655
|
+
<xsl:variable name="title_">
|
14656
|
+
<xsl:apply-templates select="mn:fmt-title"/>
|
14657
|
+
</xsl:variable>
|
14658
|
+
<xsl:variable name="title__">
|
14659
|
+
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
14660
|
+
<xsl:choose>
|
14661
|
+
<xsl:when test="self::text()"><xsl:text> </xsl:text><xsl:value-of select="."/><xsl:text> </xsl:text></xsl:when>
|
14662
|
+
<xsl:otherwise><xsl:text> </xsl:text><xsl:copy-of select="."/><xsl:text> </xsl:text></xsl:otherwise>
|
14663
|
+
</xsl:choose>
|
14664
|
+
</xsl:for-each>
|
14665
|
+
</xsl:variable>
|
14666
|
+
<xsl:variable name="title" select="normalize-space($title__)"/>
|
14667
|
+
<xsl:if test="$title != ''">
|
14668
|
+
<xsl:attribute name="fox:title">
|
14669
|
+
<xsl:if test="ancestor::mn:sections">
|
14670
|
+
<xsl:text>Section </xsl:text>
|
14671
|
+
</xsl:if>
|
14672
|
+
<xsl:value-of select="$title"/></xsl:attribute>
|
14673
|
+
</xsl:if>
|
14674
|
+
</xsl:template>
|
14675
|
+
|
14197
14676
|
<xsl:template name="replaceChar">
|
14198
14677
|
<xsl:param name="text"/>
|
14199
14678
|
<xsl:param name="replace"/>
|
@@ -14960,6 +15439,13 @@
|
|
14960
15439
|
<xsl:with-param name="default" select="$text_align_default"/>
|
14961
15440
|
</xsl:call-template>
|
14962
15441
|
<xsl:call-template name="setKeepAttributes"/>
|
15442
|
+
<xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
|
15443
|
+
<xsl:variable name="styles">
|
15444
|
+
<xsl:apply-templates select="*[1]"/>
|
15445
|
+
</xsl:variable>
|
15446
|
+
<!-- move attribute line-height from inline to block -->
|
15447
|
+
<xsl:attribute name="line-height"><xsl:value-of select="xalan:nodeset($styles)//*/@line-height"/></xsl:attribute>
|
15448
|
+
</xsl:if>
|
14963
15449
|
</xsl:template>
|
14964
15450
|
|
14965
15451
|
<xsl:template name="setKeepAttributes">
|
@@ -14985,34 +15471,41 @@
|
|
14985
15471
|
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0" id="__internal_layout__coverpage{$suffix}_{$name}_{$number}_{generate-id()}">
|
14986
15472
|
<fo:block>
|
14987
15473
|
<xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image[$num]">
|
14988
|
-
|
14989
|
-
|
14990
|
-
|
14991
|
-
<xsl:attribute name="content-height"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
|
14992
|
-
<xsl:call-template name="getSVG"/>
|
14993
|
-
</fo:instream-foreign-object>
|
14994
|
-
</xsl:when>
|
14995
|
-
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
14996
|
-
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
14997
|
-
</xsl:when>
|
14998
|
-
<xsl:otherwise> <!-- bitmap image -->
|
14999
|
-
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
15000
|
-
<xsl:if test="$coverimage_src != ''">
|
15001
|
-
<xsl:variable name="coverpage">
|
15002
|
-
<xsl:call-template name="getImageURL">
|
15003
|
-
<xsl:with-param name="src" select="$coverimage_src"/>
|
15004
|
-
</xsl:call-template>
|
15005
|
-
</xsl:variable>
|
15006
|
-
<!-- <xsl:variable name="coverpage" select="concat('url(file:',$basepath, 'coverpage1.png', ')')"/> --> <!-- for DEBUG -->
|
15007
|
-
<fo:external-graphic src="{$coverpage}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
15008
|
-
</xsl:if>
|
15009
|
-
</xsl:otherwise>
|
15010
|
-
</xsl:choose>
|
15474
|
+
|
15475
|
+
<xsl:call-template name="insertPageImage"/>
|
15476
|
+
|
15011
15477
|
</xsl:for-each>
|
15012
15478
|
</fo:block>
|
15013
15479
|
</fo:block-container>
|
15014
15480
|
</xsl:template>
|
15015
15481
|
|
15482
|
+
<xsl:template name="insertPageImage">
|
15483
|
+
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
15484
|
+
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
15485
|
+
<xsl:choose>
|
15486
|
+
<xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
|
15487
|
+
<fo:instream-foreign-object fox:alt-text="Image Front">
|
15488
|
+
<xsl:attribute name="content-height"><xsl:value-of select="$svg_content_height"/>mm</xsl:attribute>
|
15489
|
+
<xsl:call-template name="getSVG"/>
|
15490
|
+
</fo:instream-foreign-object>
|
15491
|
+
</xsl:when>
|
15492
|
+
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
15493
|
+
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
15494
|
+
</xsl:when>
|
15495
|
+
<xsl:otherwise> <!-- bitmap image -->
|
15496
|
+
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
15497
|
+
<xsl:if test="$coverimage_src != ''">
|
15498
|
+
<xsl:variable name="coverpage">
|
15499
|
+
<xsl:call-template name="getImageURL">
|
15500
|
+
<xsl:with-param name="src" select="$coverimage_src"/>
|
15501
|
+
</xsl:call-template>
|
15502
|
+
</xsl:variable>
|
15503
|
+
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
15504
|
+
</xsl:if>
|
15505
|
+
</xsl:otherwise>
|
15506
|
+
</xsl:choose>
|
15507
|
+
</xsl:template>
|
15508
|
+
|
15016
15509
|
<xsl:template name="getImageURL">
|
15017
15510
|
<xsl:param name="src"/>
|
15018
15511
|
<xsl:choose>
|
@@ -15440,6 +15933,14 @@
|
|
15440
15933
|
</xsl:attribute>
|
15441
15934
|
</xsl:template>
|
15442
15935
|
|
15936
|
+
<xsl:template name="getCharByCodePoint">
|
15937
|
+
<xsl:param name="codepoint"/>
|
15938
|
+
<xsl:param name="radix">16</xsl:param>
|
15939
|
+
<xsl:variable name="codepointInt" select="java:java.lang.Integer.parseInt($codepoint,$radix)"/>
|
15940
|
+
<xsl:variable name="chars" select="java:java.lang.Character.toChars($codepointInt)"/>
|
15941
|
+
<xsl:value-of select="java:java.lang.String.new($chars)"/>
|
15942
|
+
</xsl:template>
|
15943
|
+
|
15443
15944
|
<xsl:template name="substring-after-last">
|
15444
15945
|
<xsl:param name="value"/>
|
15445
15946
|
<xsl:param name="delimiter"/>
|