metanorma-ogc 2.8.2 → 2.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +584 -164
- data/lib/isodoc/ogc/ogc.best-practice.xsl +584 -164
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +584 -164
- data/lib/isodoc/ogc/ogc.community-practice.xsl +584 -164
- data/lib/isodoc/ogc/ogc.community-standard.xsl +584 -164
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +584 -164
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +584 -164
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +584 -164
- data/lib/isodoc/ogc/ogc.other.xsl +584 -164
- data/lib/isodoc/ogc/ogc.policy.xsl +584 -164
- data/lib/isodoc/ogc/ogc.reference-model.xsl +584 -164
- data/lib/isodoc/ogc/ogc.release-notes.xsl +584 -164
- data/lib/isodoc/ogc/ogc.standard.xsl +584 -164
- data/lib/isodoc/ogc/ogc.test-suite.xsl +584 -164
- data/lib/isodoc/ogc/ogc.user-guide.xsl +584 -164
- data/lib/isodoc/ogc/ogc.white-paper.xsl +579 -166
- data/lib/metanorma/ogc/cleanup.rb +4 -4
- data/lib/metanorma/ogc/front.rb +1 -7
- data/lib/metanorma/ogc/isodoc.rng +19 -1
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -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
|
|
@@ -3535,12 +3535,18 @@
|
|
3535
3535
|
<xsl:attribute name="line-height">125%</xsl:attribute>
|
3536
3536
|
</xsl:attribute-set> <!-- license-statement-style -->
|
3537
3537
|
|
3538
|
+
<xsl:template name="refine_license-statement-style">
|
3539
|
+
</xsl:template>
|
3540
|
+
|
3538
3541
|
<xsl:attribute-set name="license-statement-title-style">
|
3539
3542
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3540
3543
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3541
3544
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
3542
3545
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
3543
3546
|
|
3547
|
+
<xsl:template name="refine_license-statement-title-style">
|
3548
|
+
</xsl:template>
|
3549
|
+
|
3544
3550
|
<xsl:attribute-set name="license-statement-p-style">
|
3545
3551
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3546
3552
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
@@ -3553,26 +3559,50 @@
|
|
3553
3559
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
3554
3560
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
3555
3561
|
|
3562
|
+
<xsl:template name="refine_legal-statement-style">
|
3563
|
+
</xsl:template>
|
3564
|
+
|
3556
3565
|
<xsl:attribute-set name="legal-statement-title-style">
|
3557
3566
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3558
3567
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
3559
3568
|
|
3569
|
+
<xsl:template name="refine_legal-statement-title-style">
|
3570
|
+
</xsl:template>
|
3571
|
+
|
3560
3572
|
<xsl:attribute-set name="legal-statement-p-style">
|
3561
3573
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
3562
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
|
+
|
3563
3583
|
<xsl:attribute-set name="feedback-statement-style">
|
3564
3584
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
3565
3585
|
<xsl:attribute name="line-height">125%</xsl:attribute>
|
3566
3586
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
3567
3587
|
|
3588
|
+
<xsl:template name="refine_feedback-statement-style">
|
3589
|
+
</xsl:template>
|
3590
|
+
|
3568
3591
|
<xsl:attribute-set name="feedback-statement-title-style">
|
3569
3592
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3570
3593
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
3571
3594
|
|
3595
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
3596
|
+
|
3597
|
+
</xsl:template>
|
3598
|
+
|
3572
3599
|
<xsl:attribute-set name="feedback-statement-p-style">
|
3573
3600
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3574
3601
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
3575
3602
|
|
3603
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
3604
|
+
</xsl:template>
|
3605
|
+
|
3576
3606
|
<!-- End boilerplate sections styles -->
|
3577
3607
|
|
3578
3608
|
<!-- ================================= -->
|
@@ -3607,6 +3637,7 @@
|
|
3607
3637
|
|
3608
3638
|
<xsl:template match="mn:license-statement">
|
3609
3639
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
3640
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
3610
3641
|
<xsl:apply-templates/>
|
3611
3642
|
</fo:block>
|
3612
3643
|
</xsl:template> <!-- license-statement -->
|
@@ -3616,6 +3647,7 @@
|
|
3616
3647
|
<xsl:call-template name="getLevel"/>
|
3617
3648
|
</xsl:variable>
|
3618
3649
|
<fo:block role="H{$level}" xsl:use-attribute-sets="license-statement-title-style">
|
3650
|
+
<xsl:call-template name="refine_license-statement-title-style"/>
|
3619
3651
|
<xsl:apply-templates/>
|
3620
3652
|
</fo:block>
|
3621
3653
|
|
@@ -3632,6 +3664,7 @@
|
|
3632
3664
|
<xsl:template match="mn:legal-statement">
|
3633
3665
|
<xsl:param name="isLegacy">false</xsl:param>
|
3634
3666
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
3667
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
3635
3668
|
<xsl:if test="$isLegacy = 'true'">
|
3636
3669
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
3637
3670
|
</xsl:if>
|
@@ -3667,6 +3700,8 @@
|
|
3667
3700
|
<xsl:template match="mn:feedback-statement//mn:p">
|
3668
3701
|
<xsl:param name="margin"/>
|
3669
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"/> -->
|
3670
3705
|
<xsl:apply-templates/>
|
3671
3706
|
</fo:block>
|
3672
3707
|
|
@@ -3803,6 +3838,27 @@
|
|
3803
3838
|
<xsl:attribute-set name="sourcecode-container-style">
|
3804
3839
|
</xsl:attribute-set>
|
3805
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
|
+
|
3806
3862
|
<xsl:attribute-set name="sourcecode-style">
|
3807
3863
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
3808
3864
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -3826,6 +3882,9 @@
|
|
3826
3882
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
3827
3883
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
3828
3884
|
|
3885
|
+
<xsl:template name="refine_sourcecode-name-style">
|
3886
|
+
</xsl:template>
|
3887
|
+
|
3829
3888
|
<xsl:template name="add-zero-spaces-equal">
|
3830
3889
|
<xsl:param name="text" select="."/>
|
3831
3890
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -3917,24 +3976,8 @@
|
|
3917
3976
|
<xsl:otherwise>
|
3918
3977
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
3919
3978
|
|
3920
|
-
<xsl:
|
3921
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3922
|
-
</xsl:if>
|
3923
|
-
|
3924
|
-
<xsl:if test="ancestor::mn:example">
|
3925
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3926
|
-
</xsl:if>
|
3979
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
3927
3980
|
|
3928
|
-
<xsl:copy-of select="@id"/>
|
3929
|
-
|
3930
|
-
<xsl:if test="parent::mn:note">
|
3931
|
-
<xsl:attribute name="margin-left">
|
3932
|
-
<xsl:choose>
|
3933
|
-
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3934
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3935
|
-
</xsl:choose>
|
3936
|
-
</xsl:attribute>
|
3937
|
-
</xsl:if>
|
3938
3981
|
<fo:block-container margin-left="0mm" role="SKIP">
|
3939
3982
|
<xsl:if test="parent::mn:example">
|
3940
3983
|
<fo:block font-size="1pt" line-height="10%" space-after="4pt"> </fo:block>
|
@@ -4267,6 +4310,7 @@
|
|
4267
4310
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
4268
4311
|
<xsl:if test="normalize-space() != ''">
|
4269
4312
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4313
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
4270
4314
|
<xsl:apply-templates/>
|
4271
4315
|
</fo:block>
|
4272
4316
|
</xsl:if>
|
@@ -4318,12 +4362,35 @@
|
|
4318
4362
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4319
4363
|
<xsl:attribute name="font-family">Fira Code, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4320
4364
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
4321
|
-
</xsl:attribute-set>
|
4365
|
+
</xsl:attribute-set> <!-- pre-style -->
|
4366
|
+
|
4367
|
+
<xsl:template name="refine_pre-style">
|
4368
|
+
</xsl:template>
|
4322
4369
|
|
4323
4370
|
<xsl:attribute-set name="tt-style">
|
4324
4371
|
<xsl:attribute name="font-family">Fira Code, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4325
4372
|
</xsl:attribute-set>
|
4326
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
|
+
|
4327
4394
|
<xsl:variable name="color-added-text">
|
4328
4395
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
4329
4396
|
</xsl:variable>
|
@@ -4336,9 +4403,14 @@
|
|
4336
4403
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
4337
4404
|
</xsl:attribute-set>
|
4338
4405
|
|
4406
|
+
<xsl:template name="refine_add-style">
|
4407
|
+
</xsl:template>
|
4408
|
+
|
4339
4409
|
<xsl:variable name="add-style">
|
4340
|
-
|
4341
|
-
|
4410
|
+
<add-style xsl:use-attribute-sets="add-style">
|
4411
|
+
<xsl:call-template name="refine_add-style"/>
|
4412
|
+
</add-style>
|
4413
|
+
</xsl:variable>
|
4342
4414
|
<xsl:template name="append_add-style">
|
4343
4415
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
4344
4416
|
</xsl:template>
|
@@ -4351,24 +4423,77 @@
|
|
4351
4423
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
4352
4424
|
</xsl:attribute-set>
|
4353
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
|
+
|
4354
4483
|
<xsl:template match="mn:br">
|
4355
4484
|
<xsl:value-of select="$linebreak"/>
|
4356
4485
|
</xsl:template>
|
4357
4486
|
|
4358
|
-
|
4359
|
-
<fo:inline
|
4360
|
-
<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"/>
|
4361
4490
|
<xsl:apply-templates/>
|
4362
4491
|
</fo:inline>
|
4363
4492
|
</xsl:template>
|
4364
4493
|
|
4365
|
-
<xsl:template name="refine_italic_style">
|
4366
|
-
</xsl:template>
|
4367
|
-
|
4368
4494
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
4369
4495
|
<xsl:param name="split_keep-within-line"/>
|
4370
|
-
<fo:inline
|
4371
|
-
|
4496
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
4372
4497
|
<xsl:call-template name="refine_strong_style"/>
|
4373
4498
|
|
4374
4499
|
<xsl:apply-templates>
|
@@ -4377,48 +4502,27 @@
|
|
4377
4502
|
</fo:inline>
|
4378
4503
|
</xsl:template>
|
4379
4504
|
|
4380
|
-
<xsl:template name="refine_strong_style">
|
4381
|
-
<xsl:if test="ancestor::*['preferred']">
|
4382
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4383
|
-
</xsl:if>
|
4384
|
-
</xsl:template>
|
4385
|
-
|
4386
4505
|
<xsl:template match="*[local-name()='padding']">
|
4387
4506
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
4388
4507
|
</xsl:template>
|
4389
4508
|
|
4390
4509
|
<xsl:template match="mn:sup">
|
4391
|
-
<fo:inline
|
4510
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
4511
|
+
<xsl:call-template name="refine_sup-style"/>
|
4392
4512
|
<xsl:apply-templates/>
|
4393
4513
|
</fo:inline>
|
4394
4514
|
</xsl:template>
|
4395
4515
|
|
4396
4516
|
<xsl:template match="mn:sub">
|
4397
|
-
<fo:inline
|
4517
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
4518
|
+
<xsl:call-template name="refine_sub-style"/>
|
4398
4519
|
<xsl:apply-templates/>
|
4399
4520
|
</fo:inline>
|
4400
4521
|
</xsl:template>
|
4401
4522
|
|
4402
4523
|
<xsl:template match="mn:tt">
|
4403
4524
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
4404
|
-
|
4405
|
-
<xsl:variable name="_font-size"> <!-- inherit -->
|
4406
|
-
<xsl:choose>
|
4407
|
-
<xsl:when test="ancestor::mn:table">8.5</xsl:when>
|
4408
|
-
<xsl:otherwise>9.5</xsl:otherwise>
|
4409
|
-
</xsl:choose>
|
4410
|
-
</xsl:variable>
|
4411
|
-
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4412
|
-
<xsl:if test="$font-size != ''">
|
4413
|
-
<xsl:attribute name="font-size">
|
4414
|
-
<xsl:choose>
|
4415
|
-
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4416
|
-
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4417
|
-
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4418
|
-
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4419
|
-
</xsl:choose>
|
4420
|
-
</xsl:attribute>
|
4421
|
-
</xsl:if>
|
4525
|
+
<xsl:call-template name="refine_tt-style"/>
|
4422
4526
|
<xsl:apply-templates/>
|
4423
4527
|
</fo:inline>
|
4424
4528
|
</xsl:template> <!-- tt -->
|
@@ -4437,7 +4541,8 @@
|
|
4437
4541
|
</xsl:template>
|
4438
4542
|
|
4439
4543
|
<xsl:template match="mn:underline">
|
4440
|
-
<fo:inline
|
4544
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
4545
|
+
<xsl:call-template name="refine_underline-style"/>
|
4441
4546
|
<xsl:apply-templates/>
|
4442
4547
|
</fo:inline>
|
4443
4548
|
</xsl:template>
|
@@ -4595,6 +4700,7 @@
|
|
4595
4700
|
|
4596
4701
|
<xsl:template match="mn:del">
|
4597
4702
|
<fo:inline xsl:use-attribute-sets="del-style">
|
4703
|
+
<xsl:call-template name="refine_del-style"/>
|
4598
4704
|
<xsl:apply-templates/>
|
4599
4705
|
</fo:inline>
|
4600
4706
|
</xsl:template>
|
@@ -4604,7 +4710,8 @@
|
|
4604
4710
|
|
4605
4711
|
<!-- highlight text -->
|
4606
4712
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
4607
|
-
<fo:inline
|
4713
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
4714
|
+
<xsl:call-template name="refine_hi-style"/>
|
4608
4715
|
<xsl:apply-templates/>
|
4609
4716
|
</fo:inline>
|
4610
4717
|
</xsl:template>
|
@@ -4690,7 +4797,8 @@
|
|
4690
4797
|
</xsl:template>
|
4691
4798
|
|
4692
4799
|
<xsl:template match="mn:strike">
|
4693
|
-
<fo:inline
|
4800
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
4801
|
+
<xsl:call-template name="refine_strike-style"/>
|
4694
4802
|
<xsl:apply-templates/>
|
4695
4803
|
</fo:inline>
|
4696
4804
|
</xsl:template>
|
@@ -4770,6 +4878,7 @@
|
|
4770
4878
|
|
4771
4879
|
<xsl:template match="mn:pre" name="pre">
|
4772
4880
|
<fo:block xsl:use-attribute-sets="pre-style">
|
4881
|
+
<xsl:call-template name="refine_pre-style"/>
|
4773
4882
|
<xsl:copy-of select="@id"/>
|
4774
4883
|
<xsl:choose>
|
4775
4884
|
|
@@ -4801,6 +4910,9 @@
|
|
4801
4910
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4802
4911
|
</xsl:attribute-set>
|
4803
4912
|
|
4913
|
+
<xsl:template name="refine_permission-style">
|
4914
|
+
</xsl:template>
|
4915
|
+
|
4804
4916
|
<xsl:attribute-set name="permission-name-style">
|
4805
4917
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4806
4918
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -4812,14 +4924,23 @@
|
|
4812
4924
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4813
4925
|
</xsl:attribute-set>
|
4814
4926
|
|
4927
|
+
<xsl:template name="refine_permission-name-style">
|
4928
|
+
</xsl:template>
|
4929
|
+
|
4815
4930
|
<xsl:attribute-set name="permission-label-style">
|
4816
4931
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4817
4932
|
</xsl:attribute-set>
|
4818
4933
|
|
4934
|
+
<xsl:template name="refine_permission-label-style">
|
4935
|
+
</xsl:template>
|
4936
|
+
|
4819
4937
|
<xsl:attribute-set name="requirement-style">
|
4820
4938
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4821
4939
|
</xsl:attribute-set>
|
4822
4940
|
|
4941
|
+
<xsl:template name="refine_requirement-style">
|
4942
|
+
</xsl:template>
|
4943
|
+
|
4823
4944
|
<xsl:attribute-set name="requirement-name-style">
|
4824
4945
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4825
4946
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -4831,10 +4952,19 @@
|
|
4831
4952
|
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
4832
4953
|
</xsl:attribute-set>
|
4833
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
|
+
|
4834
4961
|
<xsl:attribute-set name="requirement-label-style">
|
4835
4962
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4836
4963
|
</xsl:attribute-set>
|
4837
4964
|
|
4965
|
+
<xsl:template name="refine_requirement-label-style">
|
4966
|
+
</xsl:template>
|
4967
|
+
|
4838
4968
|
<xsl:attribute-set name="subject-style">
|
4839
4969
|
</xsl:attribute-set>
|
4840
4970
|
|
@@ -4863,6 +4993,9 @@
|
|
4863
4993
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4864
4994
|
</xsl:attribute-set>
|
4865
4995
|
|
4996
|
+
<xsl:template name="refine_recommendation-style">
|
4997
|
+
</xsl:template>
|
4998
|
+
|
4866
4999
|
<xsl:attribute-set name="recommendation-name-style">
|
4867
5000
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4868
5001
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -4874,16 +5007,23 @@
|
|
4874
5007
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4875
5008
|
</xsl:attribute-set>
|
4876
5009
|
|
5010
|
+
<xsl:template name="refine_recommendation-name-style">
|
5011
|
+
</xsl:template>
|
5012
|
+
|
4877
5013
|
<xsl:attribute-set name="recommendation-label-style">
|
4878
5014
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4879
5015
|
</xsl:attribute-set>
|
4880
5016
|
|
5017
|
+
<xsl:template name="refine_recommendation-label-style">
|
5018
|
+
</xsl:template>
|
5019
|
+
|
4881
5020
|
<!-- ========== -->
|
4882
5021
|
<!-- permission -->
|
4883
5022
|
<!-- ========== -->
|
4884
5023
|
<xsl:template match="mn:permission">
|
4885
5024
|
<xsl:call-template name="setNamedDestination"/>
|
4886
5025
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
5026
|
+
<xsl:call-template name="refine_permission-style"/>
|
4887
5027
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4888
5028
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4889
5029
|
</fo:block>
|
@@ -4892,6 +5032,7 @@
|
|
4892
5032
|
<xsl:template match="mn:permission/mn:fmt-name">
|
4893
5033
|
<xsl:if test="normalize-space() != ''">
|
4894
5034
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
5035
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
4895
5036
|
<xsl:apply-templates/>
|
4896
5037
|
<xsl:text>:</xsl:text>
|
4897
5038
|
</fo:block>
|
@@ -4900,6 +5041,7 @@
|
|
4900
5041
|
|
4901
5042
|
<xsl:template match="mn:permission/mn:label">
|
4902
5043
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
5044
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
4903
5045
|
<xsl:apply-templates/>
|
4904
5046
|
</fo:block>
|
4905
5047
|
</xsl:template>
|
@@ -4912,6 +5054,7 @@
|
|
4912
5054
|
<xsl:template match="mn:requirement">
|
4913
5055
|
<xsl:call-template name="setNamedDestination"/>
|
4914
5056
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
5057
|
+
<xsl:call-template name="refine_requirement-style"/>
|
4915
5058
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4916
5059
|
<xsl:apply-templates select="mn:label"/>
|
4917
5060
|
<xsl:apply-templates select="@obligation"/>
|
@@ -4924,9 +5067,7 @@
|
|
4924
5067
|
<xsl:if test="normalize-space() != ''">
|
4925
5068
|
|
4926
5069
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
4927
|
-
|
4928
|
-
<xsl:attribute name="background-color">white</xsl:attribute>
|
4929
|
-
</xsl:if>
|
5070
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
4930
5071
|
<xsl:apply-templates/>
|
4931
5072
|
<xsl:text>:</xsl:text>
|
4932
5073
|
</fo:block>
|
@@ -4935,6 +5076,7 @@
|
|
4935
5076
|
|
4936
5077
|
<xsl:template match="mn:requirement/mn:label">
|
4937
5078
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
5079
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
4938
5080
|
<xsl:apply-templates/>
|
4939
5081
|
</fo:block>
|
4940
5082
|
</xsl:template>
|
@@ -4960,6 +5102,7 @@
|
|
4960
5102
|
<xsl:template match="mn:recommendation">
|
4961
5103
|
<xsl:call-template name="setNamedDestination"/>
|
4962
5104
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
5105
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
4963
5106
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4964
5107
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4965
5108
|
</fo:block>
|
@@ -4969,6 +5112,7 @@
|
|
4969
5112
|
<xsl:if test="normalize-space() != ''">
|
4970
5113
|
|
4971
5114
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
5115
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
4972
5116
|
<xsl:apply-templates/>
|
4973
5117
|
</fo:block>
|
4974
5118
|
</xsl:if>
|
@@ -4976,6 +5120,7 @@
|
|
4976
5120
|
|
4977
5121
|
<xsl:template match="mn:recommendation/mn:label">
|
4978
5122
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
5123
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
4979
5124
|
<xsl:apply-templates/>
|
4980
5125
|
</fo:block>
|
4981
5126
|
</xsl:template>
|
@@ -5168,36 +5313,66 @@
|
|
5168
5313
|
<xsl:attribute-set name="term-style">
|
5169
5314
|
</xsl:attribute-set> <!-- term-style -->
|
5170
5315
|
|
5316
|
+
<xsl:template name="refine_term-style">
|
5317
|
+
</xsl:template>
|
5318
|
+
|
5171
5319
|
<xsl:attribute-set name="term-name-style">
|
5172
5320
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5173
5321
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5174
5322
|
</xsl:attribute-set> <!-- term-name-style -->
|
5175
5323
|
|
5176
|
-
|
5324
|
+
<xsl:template name="refine_term-name-style">
|
5325
|
+
</xsl:template>
|
5326
|
+
|
5327
|
+
<xsl:attribute-set name="preferred-block-style">
|
5177
5328
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
5178
5329
|
|
5330
|
+
<xsl:template name="refine_preferred-block-style">
|
5331
|
+
</xsl:template>
|
5332
|
+
|
5179
5333
|
<xsl:attribute-set name="preferred-term-style">
|
5180
5334
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5181
5335
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5182
5336
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
5183
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
|
+
|
5184
5344
|
<xsl:attribute-set name="domain-style">
|
5185
5345
|
</xsl:attribute-set> <!-- domain-style -->
|
5186
5346
|
|
5347
|
+
<xsl:template name="refine_domain-style">
|
5348
|
+
</xsl:template>
|
5349
|
+
|
5187
5350
|
<xsl:attribute-set name="admitted-style">
|
5188
5351
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
5189
5352
|
</xsl:attribute-set> <!-- admitted-style -->
|
5190
5353
|
|
5354
|
+
<xsl:template name="refine_admitted-style">
|
5355
|
+
</xsl:template>
|
5356
|
+
|
5191
5357
|
<xsl:attribute-set name="deprecates-style">
|
5192
5358
|
</xsl:attribute-set> <!-- deprecates-style -->
|
5193
5359
|
|
5360
|
+
<xsl:template name="refine_deprecates-style">
|
5361
|
+
</xsl:template>
|
5362
|
+
|
5194
5363
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
5195
5364
|
</xsl:attribute-set>
|
5196
5365
|
|
5366
|
+
<xsl:template name="refine_related-block-style">
|
5367
|
+
</xsl:template>
|
5368
|
+
|
5197
5369
|
<xsl:attribute-set name="definition-style">
|
5198
5370
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
5199
5371
|
</xsl:attribute-set> <!-- definition-style -->
|
5200
5372
|
|
5373
|
+
<xsl:template name="refine_definition-style">
|
5374
|
+
</xsl:template>
|
5375
|
+
|
5201
5376
|
<xsl:attribute-set name="termsource-style">
|
5202
5377
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5203
5378
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
@@ -5210,9 +5385,15 @@
|
|
5210
5385
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5211
5386
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
5212
5387
|
|
5388
|
+
<xsl:template name="refine_termsource-text-style">
|
5389
|
+
</xsl:template>
|
5390
|
+
|
5213
5391
|
<xsl:attribute-set name="origin-style">
|
5214
5392
|
</xsl:attribute-set> <!-- origin-style -->
|
5215
5393
|
|
5394
|
+
<xsl:template name="refine_origin-style">
|
5395
|
+
</xsl:template>
|
5396
|
+
|
5216
5397
|
<!-- ====== -->
|
5217
5398
|
<!-- term -->
|
5218
5399
|
<!-- ====== -->
|
@@ -5228,10 +5409,9 @@
|
|
5228
5409
|
<xsl:template match="mn:term">
|
5229
5410
|
<xsl:call-template name="setNamedDestination"/>
|
5230
5411
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
5412
|
+
<xsl:call-template name="refine_term-style"/>
|
5231
5413
|
<xsl:apply-templates select="mn:fmt-name"/>
|
5232
5414
|
|
5233
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
5234
|
-
</xsl:if>
|
5235
5415
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5236
5416
|
</fo:block>
|
5237
5417
|
</xsl:template>
|
@@ -5307,6 +5487,7 @@
|
|
5307
5487
|
<!-- text SOURCE: -->
|
5308
5488
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
5309
5489
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
5490
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
5310
5491
|
<xsl:value-of select="."/>
|
5311
5492
|
</fo:inline>
|
5312
5493
|
</xsl:template>
|
@@ -5319,6 +5500,7 @@
|
|
5319
5500
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
5320
5501
|
</xsl:if>
|
5321
5502
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
5503
|
+
<xsl:call-template name="refine_origin-style"/>
|
5322
5504
|
<xsl:apply-templates/>
|
5323
5505
|
</fo:inline>
|
5324
5506
|
</fo:basic-link>
|
@@ -5368,9 +5550,12 @@
|
|
5368
5550
|
</xsl:variable>
|
5369
5551
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
5370
5552
|
|
5553
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
5554
|
+
|
5371
5555
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
5372
5556
|
|
5373
5557
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
5558
|
+
<xsl:call-template name="refine_term-name-style"/>
|
5374
5559
|
|
5375
5560
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
5376
5561
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -5381,7 +5566,7 @@
|
|
5381
5566
|
</xsl:if>
|
5382
5567
|
|
5383
5568
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
5384
|
-
<xsl:call-template name="
|
5569
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
5385
5570
|
|
5386
5571
|
<xsl:apply-templates/>
|
5387
5572
|
</fo:block>
|
@@ -5402,22 +5587,18 @@
|
|
5402
5587
|
|
5403
5588
|
<xsl:template match="mn:fmt-admitted">
|
5404
5589
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
5590
|
+
<xsl:call-template name="refine_admitted-style"/>
|
5405
5591
|
<xsl:apply-templates/>
|
5406
5592
|
</fo:block>
|
5407
5593
|
</xsl:template>
|
5408
5594
|
|
5409
5595
|
<xsl:template match="mn:fmt-deprecates">
|
5410
5596
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5597
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
5411
5598
|
<xsl:apply-templates/>
|
5412
5599
|
</fo:block>
|
5413
5600
|
</xsl:template>
|
5414
5601
|
|
5415
|
-
<xsl:template name="setStyle_preferred">
|
5416
|
-
<xsl:if test="mn:strong">
|
5417
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5418
|
-
</xsl:if>
|
5419
|
-
</xsl:template>
|
5420
|
-
|
5421
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. -->
|
5422
5603
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
5423
5604
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -5427,6 +5608,7 @@
|
|
5427
5608
|
|
5428
5609
|
<xsl:template match="mn:fmt-related">
|
5429
5610
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
5611
|
+
<xsl:call-template name="refine_related-block-style"/>
|
5430
5612
|
<xsl:apply-templates/>
|
5431
5613
|
</fo:block>
|
5432
5614
|
</xsl:template>
|
@@ -5441,6 +5623,7 @@
|
|
5441
5623
|
<!-- ========== -->
|
5442
5624
|
<xsl:template match="mn:fmt-definition">
|
5443
5625
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5626
|
+
<xsl:call-template name="refine_definition-style"/>
|
5444
5627
|
<xsl:apply-templates/>
|
5445
5628
|
</fo:block>
|
5446
5629
|
</xsl:template>
|
@@ -5489,6 +5672,9 @@
|
|
5489
5672
|
<xsl:attribute-set name="example-body-style">
|
5490
5673
|
</xsl:attribute-set> <!-- example-body-style -->
|
5491
5674
|
|
5675
|
+
<xsl:template name="refine_example-body-style">
|
5676
|
+
</xsl:template>
|
5677
|
+
|
5492
5678
|
<xsl:attribute-set name="example-name-style">
|
5493
5679
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5494
5680
|
</xsl:attribute-set> <!-- example-name-style -->
|
@@ -5535,6 +5721,8 @@
|
|
5535
5721
|
<xsl:when test="contains($element, 'block')">
|
5536
5722
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
5537
5723
|
|
5724
|
+
<xsl:call-template name="refine_example-p-style"/>
|
5725
|
+
|
5538
5726
|
<xsl:apply-templates/>
|
5539
5727
|
</fo:block>
|
5540
5728
|
</xsl:when>
|
@@ -5586,6 +5774,7 @@
|
|
5586
5774
|
</fo:block>
|
5587
5775
|
|
5588
5776
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5777
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5589
5778
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5590
5779
|
<xsl:variable name="example_body">
|
5591
5780
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -5648,6 +5837,7 @@
|
|
5648
5837
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
5649
5838
|
<!-- display further elements in blocks -->
|
5650
5839
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5840
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5651
5841
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5652
5842
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
5653
5843
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -5898,6 +6088,9 @@
|
|
5898
6088
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
5899
6089
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
5900
6090
|
|
6091
|
+
<xsl:template name="refine_table-fn-number-style">
|
6092
|
+
</xsl:template>
|
6093
|
+
|
5901
6094
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
5902
6095
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5903
6096
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
@@ -5906,30 +6099,12 @@
|
|
5906
6099
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
5907
6100
|
</xsl:template>
|
5908
6101
|
|
5909
|
-
<xsl:attribute-set name="fn-container-body-style">
|
5910
|
-
<xsl:attribute name="text-indent">0</xsl:attribute>
|
5911
|
-
<xsl:attribute name="start-indent">0</xsl:attribute>
|
5912
|
-
</xsl:attribute-set>
|
5913
|
-
|
5914
6102
|
<xsl:attribute-set name="table-fn-body-style">
|
5915
6103
|
</xsl:attribute-set>
|
5916
6104
|
|
5917
|
-
<xsl:
|
5918
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
5919
|
-
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
5920
|
-
|
5921
|
-
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
5922
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5923
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5924
|
-
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
5925
|
-
|
5926
|
-
<xsl:template name="refine_figure-fmt-fn-label-style">
|
6105
|
+
<xsl:template name="refine_table-fn-body-style">
|
5927
6106
|
</xsl:template>
|
5928
6107
|
|
5929
|
-
<xsl:attribute-set name="figure-fn-body-style">
|
5930
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
5931
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5932
|
-
</xsl:attribute-set>
|
5933
6108
|
<!-- ========================== -->
|
5934
6109
|
<!-- END Table styles -->
|
5935
6110
|
<!-- ========================== -->
|
@@ -7211,6 +7386,7 @@
|
|
7211
7386
|
</xsl:apply-templates>
|
7212
7387
|
|
7213
7388
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
7389
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
7214
7390
|
<!-- <xsl:copy-of select="./node()"/> -->
|
7215
7391
|
<xsl:apply-templates/>
|
7216
7392
|
</fo:inline>
|
@@ -7229,6 +7405,7 @@
|
|
7229
7405
|
<xsl:param name="process">false</xsl:param>
|
7230
7406
|
<xsl:if test="$process = 'true'">
|
7231
7407
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
7408
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
7232
7409
|
|
7233
7410
|
<!-- tab is padding-right -->
|
7234
7411
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -8101,10 +8278,22 @@
|
|
8101
8278
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
8102
8279
|
</xsl:attribute-set>
|
8103
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
|
+
|
8104
8287
|
<xsl:attribute-set name="dt-row-style">
|
8105
8288
|
<xsl:attribute name="min-height">8.5mm</xsl:attribute>
|
8106
8289
|
</xsl:attribute-set>
|
8107
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
|
+
|
8108
8297
|
<xsl:attribute-set name="dt-cell-style">
|
8109
8298
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
8110
8299
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -8139,6 +8328,9 @@
|
|
8139
8328
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
8140
8329
|
</xsl:attribute-set> <!-- dl-name-style -->
|
8141
8330
|
|
8331
|
+
<xsl:template name="refine_dl-name-style">
|
8332
|
+
</xsl:template>
|
8333
|
+
|
8142
8334
|
<xsl:attribute-set name="dd-cell-style">
|
8143
8335
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
8144
8336
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
@@ -8181,9 +8373,7 @@
|
|
8181
8373
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
8182
8374
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
8183
8375
|
|
8184
|
-
<xsl:
|
8185
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
8186
|
-
</xsl:if>
|
8376
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
8187
8377
|
|
8188
8378
|
<xsl:call-template name="setBlockSpanAll"/>
|
8189
8379
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -8479,6 +8669,8 @@
|
|
8479
8669
|
<xsl:if test="$process = 'true'">
|
8480
8670
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
8481
8671
|
|
8672
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
8673
|
+
|
8482
8674
|
<xsl:apply-templates/>
|
8483
8675
|
</fo:block>
|
8484
8676
|
</xsl:if>
|
@@ -8667,9 +8859,8 @@
|
|
8667
8859
|
<xsl:param name="split_keep-within-line"/>
|
8668
8860
|
|
8669
8861
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
8670
|
-
<xsl:
|
8671
|
-
|
8672
|
-
</xsl:if>
|
8862
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
8863
|
+
|
8673
8864
|
<xsl:call-template name="insert_dt_cell">
|
8674
8865
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
8675
8866
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -8885,18 +9076,25 @@
|
|
8885
9076
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8886
9077
|
</xsl:attribute-set>
|
8887
9078
|
|
9079
|
+
<xsl:template name="refine_appendix-style">
|
9080
|
+
</xsl:template>
|
9081
|
+
|
8888
9082
|
<xsl:attribute-set name="appendix-example-style">
|
8889
9083
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
8890
9084
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
8891
9085
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
8892
9086
|
</xsl:attribute-set>
|
8893
9087
|
|
9088
|
+
<xsl:template name="refine_appendix-example-style">
|
9089
|
+
</xsl:template>
|
9090
|
+
|
8894
9091
|
<!-- ======================== -->
|
8895
9092
|
<!-- Appendix processing -->
|
8896
9093
|
<!-- ======================== -->
|
8897
9094
|
<xsl:template match="mn:appendix">
|
8898
9095
|
<xsl:call-template name="setNamedDestination"/>
|
8899
9096
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
9097
|
+
<xsl:call-template name="refine_appendix-style"/>
|
8900
9098
|
<xsl:apply-templates select="mn:fmt-title"/>
|
8901
9099
|
</fo:block>
|
8902
9100
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -8915,13 +9113,23 @@
|
|
8915
9113
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
8916
9114
|
<xsl:call-template name="setNamedDestination"/>
|
8917
9115
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
9116
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
8918
9117
|
<xsl:apply-templates select="mn:fmt-name"/>
|
8919
9118
|
</fo:block>
|
8920
9119
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
8921
9120
|
</xsl:template>
|
8922
9121
|
|
8923
9122
|
<xsl:attribute-set name="xref-style">
|
8924
|
-
</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 -->
|
8925
9133
|
|
8926
9134
|
<xsl:template match="mn:fmt-xref">
|
8927
9135
|
<xsl:call-template name="insert_basic_link">
|
@@ -8930,12 +9138,8 @@
|
|
8930
9138
|
<xsl:call-template name="getAltText"/>
|
8931
9139
|
</xsl:variable>
|
8932
9140
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
|
8933
|
-
<xsl:
|
8934
|
-
|
8935
|
-
</xsl:if>
|
8936
|
-
<xsl:if test="parent::mn:add">
|
8937
|
-
<xsl:call-template name="append_add-style"/>
|
8938
|
-
</xsl:if>
|
9141
|
+
<xsl:call-template name="refine_xref-style"/>
|
9142
|
+
|
8939
9143
|
<xsl:apply-templates/>
|
8940
9144
|
</fo:basic-link>
|
8941
9145
|
</xsl:with-param>
|
@@ -9044,13 +9248,13 @@
|
|
9044
9248
|
<xsl:attribute-set name="note-style">
|
9045
9249
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9046
9250
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9047
|
-
</xsl:attribute-set>
|
9251
|
+
</xsl:attribute-set> <!-- note-style -->
|
9048
9252
|
|
9049
9253
|
<xsl:template name="refine_note-style">
|
9050
9254
|
<xsl:if test="ancestor::mn:ul or ancestor::mn:ol and not(ancestor::mn:note[1]/following-sibling::*)">
|
9051
9255
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
9052
9256
|
</xsl:if>
|
9053
|
-
</xsl:template>
|
9257
|
+
</xsl:template> <!-- refine_note-style -->
|
9054
9258
|
|
9055
9259
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
9056
9260
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
@@ -9058,7 +9262,7 @@
|
|
9058
9262
|
<xsl:attribute-set name="note-name-style">
|
9059
9263
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
9060
9264
|
<!-- <xsl:attribute name="padding-right">1mm</xsl:attribute> -->
|
9061
|
-
</xsl:attribute-set>
|
9265
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
9062
9266
|
|
9063
9267
|
<xsl:template name="refine_note-name-style">
|
9064
9268
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -9073,12 +9277,15 @@
|
|
9073
9277
|
<xsl:attribute-set name="note-p-style">
|
9074
9278
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9075
9279
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9076
|
-
</xsl:attribute-set>
|
9280
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
9281
|
+
|
9282
|
+
<xsl:template name="refine_note-p-style">
|
9283
|
+
</xsl:template>
|
9077
9284
|
|
9078
9285
|
<xsl:attribute-set name="termnote-style">
|
9079
9286
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9080
9287
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9081
|
-
</xsl:attribute-set>
|
9288
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
9082
9289
|
|
9083
9290
|
<xsl:template name="refine_termnote-style">
|
9084
9291
|
</xsl:template> <!-- refine_termnote-style -->
|
@@ -9086,7 +9293,7 @@
|
|
9086
9293
|
<xsl:attribute-set name="termnote-name-style">
|
9087
9294
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
9088
9295
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
9089
|
-
</xsl:attribute-set>
|
9296
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
9090
9297
|
|
9091
9298
|
<xsl:template name="refine_termnote-name-style">
|
9092
9299
|
</xsl:template>
|
@@ -9095,6 +9302,9 @@
|
|
9095
9302
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
9096
9303
|
</xsl:attribute-set>
|
9097
9304
|
|
9305
|
+
<xsl:template name="refine_termnote-p-style">
|
9306
|
+
</xsl:template>
|
9307
|
+
|
9098
9308
|
<!-- ====== -->
|
9099
9309
|
<!-- note -->
|
9100
9310
|
<!-- termnote -->
|
@@ -9155,11 +9365,13 @@
|
|
9155
9365
|
<xsl:choose>
|
9156
9366
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
9157
9367
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9368
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9158
9369
|
<xsl:apply-templates/>
|
9159
9370
|
</fo:inline>
|
9160
9371
|
</xsl:when>
|
9161
9372
|
<xsl:otherwise>
|
9162
9373
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9374
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9163
9375
|
<xsl:apply-templates/>
|
9164
9376
|
</fo:block>
|
9165
9377
|
</xsl:otherwise>
|
@@ -9251,11 +9463,13 @@
|
|
9251
9463
|
<xsl:choose>
|
9252
9464
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
9253
9465
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
9466
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9254
9467
|
<xsl:apply-templates/>
|
9255
9468
|
</fo:inline>
|
9256
9469
|
</xsl:when>
|
9257
9470
|
<xsl:otherwise>
|
9258
9471
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
9472
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9259
9473
|
<xsl:apply-templates/>
|
9260
9474
|
</fo:block>
|
9261
9475
|
</xsl:otherwise>
|
@@ -9270,7 +9484,7 @@
|
|
9270
9484
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
9271
9485
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9272
9486
|
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
9273
|
-
</xsl:attribute-set>
|
9487
|
+
</xsl:attribute-set> <!-- quote-style -->
|
9274
9488
|
|
9275
9489
|
<xsl:template name="refine_quote-style">
|
9276
9490
|
</xsl:template>
|
@@ -9280,6 +9494,9 @@
|
|
9280
9494
|
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
9281
9495
|
</xsl:attribute-set>
|
9282
9496
|
|
9497
|
+
<xsl:template name="refine_quote-source-style">
|
9498
|
+
</xsl:template>
|
9499
|
+
|
9283
9500
|
<!-- ====== -->
|
9284
9501
|
<!-- quote -->
|
9285
9502
|
<!-- source -->
|
@@ -9308,6 +9525,7 @@
|
|
9308
9525
|
</fo:block-container>
|
9309
9526
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
9310
9527
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
9528
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
9311
9529
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
9312
9530
|
<xsl:apply-templates select="mn:author"/>
|
9313
9531
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -9370,6 +9588,9 @@
|
|
9370
9588
|
<xsl:attribute-set name="figure-style">
|
9371
9589
|
</xsl:attribute-set>
|
9372
9590
|
|
9591
|
+
<xsl:template name="refine_figure-style">
|
9592
|
+
</xsl:template>
|
9593
|
+
|
9373
9594
|
<xsl:attribute-set name="figure-name-style">
|
9374
9595
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9375
9596
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
@@ -9379,7 +9600,7 @@
|
|
9379
9600
|
<!-- <xsl:attribute name="keep-with-next">always</xsl:attribute> -->
|
9380
9601
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
9381
9602
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9382
|
-
</xsl:attribute-set>
|
9603
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
9383
9604
|
|
9384
9605
|
<xsl:template name="refine_figure-name-style">
|
9385
9606
|
</xsl:template> <!-- refine_figure-name-style -->
|
@@ -9389,7 +9610,7 @@
|
|
9389
9610
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9390
9611
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
9391
9612
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
9392
|
-
</xsl:attribute-set>
|
9613
|
+
</xsl:attribute-set> <!-- image-style -->
|
9393
9614
|
|
9394
9615
|
<xsl:template name="refine_image-style">
|
9395
9616
|
</xsl:template>
|
@@ -9399,14 +9620,51 @@
|
|
9399
9620
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
9400
9621
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
9401
9622
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
9402
|
-
</xsl:attribute-set>
|
9623
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
9624
|
+
|
9625
|
+
<xsl:template name="refine_image-graphic-style">
|
9626
|
+
</xsl:template>
|
9403
9627
|
|
9404
9628
|
<xsl:attribute-set name="figure-source-style">
|
9405
9629
|
</xsl:attribute-set>
|
9406
9630
|
|
9631
|
+
<xsl:template name="refine_figure-source-style">
|
9632
|
+
</xsl:template>
|
9633
|
+
|
9407
9634
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
9408
9635
|
</xsl:attribute-set>
|
9409
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
|
+
|
9410
9668
|
<!-- ============================ -->
|
9411
9669
|
<!-- figure's footnotes rendering -->
|
9412
9670
|
<!-- ============================ -->
|
@@ -9519,9 +9777,8 @@
|
|
9519
9777
|
</fo:table-cell>
|
9520
9778
|
<fo:table-cell>
|
9521
9779
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
9522
|
-
<xsl:
|
9523
|
-
|
9524
|
-
</xsl:if>
|
9780
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
9781
|
+
|
9525
9782
|
<!-- <xsl:copy-of select="./node()"/> -->
|
9526
9783
|
<xsl:apply-templates/>
|
9527
9784
|
</fo:block>
|
@@ -9539,6 +9796,7 @@
|
|
9539
9796
|
<xsl:param name="process">false</xsl:param>
|
9540
9797
|
<xsl:if test="$process = 'true'">
|
9541
9798
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
9799
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
9542
9800
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
9543
9801
|
|
9544
9802
|
<!-- tab is padding-right -->
|
@@ -9576,6 +9834,7 @@
|
|
9576
9834
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
9577
9835
|
</xsl:if>
|
9578
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"/>
|
9579
9838
|
<!-- <xsl:value-of select="@reference"/> -->
|
9580
9839
|
<xsl:apply-templates/>
|
9581
9840
|
</fo:inline>
|
@@ -9621,6 +9880,8 @@
|
|
9621
9880
|
|
9622
9881
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
9623
9882
|
|
9883
|
+
<xsl:call-template name="refine_figure-style"/>
|
9884
|
+
|
9624
9885
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
9625
9886
|
<xsl:call-template name="setIDforNamedDestination"/>
|
9626
9887
|
</xsl:for-each>
|
@@ -9664,6 +9925,7 @@
|
|
9664
9925
|
|
9665
9926
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
9666
9927
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
9928
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
9667
9929
|
<xsl:apply-templates/>
|
9668
9930
|
</fo:block>
|
9669
9931
|
</xsl:template>
|
@@ -9793,6 +10055,8 @@
|
|
9793
10055
|
</xsl:variable>
|
9794
10056
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
9795
10057
|
|
10058
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
10059
|
+
|
9796
10060
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
9797
10061
|
<xsl:variable name="scale">
|
9798
10062
|
<xsl:call-template name="getImageScale">
|
@@ -10492,6 +10756,9 @@
|
|
10492
10756
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10493
10757
|
</xsl:attribute-set> <!-- formula-style -->
|
10494
10758
|
|
10759
|
+
<xsl:template name="refine_formula-style">
|
10760
|
+
</xsl:template>
|
10761
|
+
|
10495
10762
|
<xsl:attribute-set name="formula-stem-block-style">
|
10496
10763
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
10497
10764
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -10561,6 +10828,8 @@
|
|
10561
10828
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
10562
10829
|
<fo:block xsl:use-attribute-sets="formula-style">
|
10563
10830
|
|
10831
|
+
<xsl:call-template name="refine_formula-style"/>
|
10832
|
+
|
10564
10833
|
<fo:table table-layout="fixed" width="100%">
|
10565
10834
|
<fo:table-column column-width="95%"/>
|
10566
10835
|
<fo:table-column column-width="5%"/>
|
@@ -10983,6 +11252,9 @@
|
|
10983
11252
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
10984
11253
|
</xsl:attribute-set> <!-- list-name-style -->
|
10985
11254
|
|
11255
|
+
<xsl:template name="refine_list-name-style">
|
11256
|
+
</xsl:template>
|
11257
|
+
|
10986
11258
|
<xsl:attribute-set name="list-item-style">
|
10987
11259
|
</xsl:attribute-set>
|
10988
11260
|
|
@@ -11287,6 +11559,7 @@
|
|
11287
11559
|
<xsl:param name="process">false</xsl:param>
|
11288
11560
|
<xsl:if test="$process = 'true'">
|
11289
11561
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
11562
|
+
<xsl:call-template name="refine_list-name-style"/>
|
11290
11563
|
<xsl:apply-templates/>
|
11291
11564
|
</fo:block>
|
11292
11565
|
</xsl:if>
|
@@ -11347,25 +11620,46 @@
|
|
11347
11620
|
<!-- END Lists processing -->
|
11348
11621
|
<!-- ===================================== -->
|
11349
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
|
+
|
11350
11637
|
<xsl:attribute-set name="fn-reference-style">
|
11351
11638
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
11352
11639
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11353
11640
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11354
|
-
|
11355
|
-
</xsl:attribute-set>
|
11641
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
11356
11642
|
|
11357
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>
|
11358
11646
|
</xsl:template> <!-- refine_fn-reference-style -->
|
11359
11647
|
|
11360
11648
|
<xsl:attribute-set name="fn-style">
|
11361
11649
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11362
11650
|
</xsl:attribute-set>
|
11363
11651
|
|
11652
|
+
<xsl:template name="refine_fn-style">
|
11653
|
+
</xsl:template>
|
11654
|
+
|
11364
11655
|
<xsl:attribute-set name="fn-num-style">
|
11365
11656
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11366
11657
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
11367
11658
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11368
|
-
</xsl:attribute-set>
|
11659
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
11660
|
+
|
11661
|
+
<xsl:template name="refine_fn-num-style">
|
11662
|
+
</xsl:template>
|
11369
11663
|
|
11370
11664
|
<xsl:attribute-set name="fn-body-style">
|
11371
11665
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -11377,7 +11671,7 @@
|
|
11377
11671
|
<xsl:attribute name="color"><xsl:value-of select="$color_main"/></xsl:attribute>
|
11378
11672
|
<xsl:attribute name="line-height">124%</xsl:attribute>
|
11379
11673
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
11380
|
-
</xsl:attribute-set>
|
11674
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
11381
11675
|
|
11382
11676
|
<xsl:template name="refine_fn-body-style">
|
11383
11677
|
</xsl:template> <!-- refine_fn-body-style -->
|
@@ -11441,10 +11735,12 @@
|
|
11441
11735
|
<xsl:choose>
|
11442
11736
|
<xsl:when test="ancestor::mn:bibitem">
|
11443
11737
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
11738
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
11444
11739
|
</fn_styles>
|
11445
11740
|
</xsl:when>
|
11446
11741
|
<xsl:otherwise>
|
11447
11742
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
11743
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
11448
11744
|
</fn_styles>
|
11449
11745
|
</xsl:otherwise>
|
11450
11746
|
</xsl:choose>
|
@@ -11454,9 +11750,12 @@
|
|
11454
11750
|
<xsl:copy-of select="."/>
|
11455
11751
|
</xsl:for-each>
|
11456
11752
|
|
11457
|
-
|
11753
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11754
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
11458
11755
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
11459
|
-
</xsl:if>
|
11756
|
+
</xsl:if> -->
|
11757
|
+
|
11758
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
11460
11759
|
|
11461
11760
|
<xsl:call-template name="insert_basic_link">
|
11462
11761
|
<xsl:with-param name="element">
|
@@ -11479,10 +11778,12 @@
|
|
11479
11778
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
11480
11779
|
|
11481
11780
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
11781
|
+
<xsl:call-template name="refine_fn-style"/>
|
11482
11782
|
<xsl:copy-of select="$footnote_inline"/>
|
11483
11783
|
<fo:footnote-body role="Note">
|
11484
11784
|
|
11485
11785
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
11786
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
11486
11787
|
|
11487
11788
|
<xsl:variable name="fn_block">
|
11488
11789
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -11584,6 +11885,9 @@
|
|
11584
11885
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11585
11886
|
</xsl:attribute-set> <!-- admonition-style -->
|
11586
11887
|
|
11888
|
+
<xsl:template name="refine_admonition-style">
|
11889
|
+
</xsl:template>
|
11890
|
+
|
11587
11891
|
<xsl:attribute-set name="admonition-container-style">
|
11588
11892
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
11589
11893
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -11591,6 +11895,9 @@
|
|
11591
11895
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
11592
11896
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
11593
11897
|
|
11898
|
+
<xsl:template name="refine_admonition-container-style">
|
11899
|
+
</xsl:template>
|
11900
|
+
|
11594
11901
|
<xsl:attribute-set name="admonition-name-style">
|
11595
11902
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
11596
11903
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -11600,9 +11907,16 @@
|
|
11600
11907
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
11601
11908
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
11602
11909
|
|
11910
|
+
<xsl:template name="refine_admonition-name-style">
|
11911
|
+
</xsl:template>
|
11912
|
+
|
11603
11913
|
<xsl:attribute-set name="admonition-p-style">
|
11604
11914
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
11605
11915
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
11916
|
+
|
11917
|
+
<xsl:template name="refine_admonition-p-style">
|
11918
|
+
</xsl:template>
|
11919
|
+
|
11606
11920
|
<!-- end admonition -->
|
11607
11921
|
|
11608
11922
|
<!-- ================ -->
|
@@ -11612,6 +11926,8 @@
|
|
11612
11926
|
<xsl:call-template name="setNamedDestination"/>
|
11613
11927
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
11614
11928
|
|
11929
|
+
<xsl:call-template name="refine_admonition-style"/>
|
11930
|
+
|
11615
11931
|
<xsl:call-template name="setBlockSpanAll"/>
|
11616
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)"/>
|
11617
11933
|
<xsl:if test="$admonition_color != ''">
|
@@ -11619,10 +11935,14 @@
|
|
11619
11935
|
<xsl:attribute name="color"><xsl:value-of select="$admonition_color"/></xsl:attribute>
|
11620
11936
|
</xsl:if>
|
11621
11937
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
11938
|
+
|
11939
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
11622
11940
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
11941
|
+
<xsl:call-template name="refine_admonition-name-style"/>
|
11623
11942
|
<xsl:call-template name="displayAdmonitionName"/>
|
11624
11943
|
</fo:block>
|
11625
11944
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11945
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
11626
11946
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
11627
11947
|
</fo:block>
|
11628
11948
|
|
@@ -11676,6 +11996,7 @@
|
|
11676
11996
|
|
11677
11997
|
<xsl:template match="mn:admonition/mn:p">
|
11678
11998
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11999
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
11679
12000
|
|
11680
12001
|
<xsl:apply-templates/>
|
11681
12002
|
</fo:block>
|
@@ -11685,6 +12006,13 @@
|
|
11685
12006
|
<!-- END Admonition -->
|
11686
12007
|
<!-- ================ -->
|
11687
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
|
+
|
11688
12016
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
11689
12017
|
<xsl:attribute-set name="bibitem-normative-style">
|
11690
12018
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -11693,6 +12021,9 @@
|
|
11693
12021
|
<xsl:attribute name="line-height">115%</xsl:attribute>
|
11694
12022
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
11695
12023
|
|
12024
|
+
<xsl:template name="refine_bibitem-normative-style">
|
12025
|
+
</xsl:template>
|
12026
|
+
|
11696
12027
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
11697
12028
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
11698
12029
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -11701,9 +12032,15 @@
|
|
11701
12032
|
<xsl:attribute name="provisional-distance-between-starts">13mm</xsl:attribute>
|
11702
12033
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
11703
12034
|
|
12035
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
12036
|
+
</xsl:template>
|
12037
|
+
|
11704
12038
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
11705
12039
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
11706
12040
|
|
12041
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
12042
|
+
</xsl:template>
|
12043
|
+
|
11707
12044
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
11708
12045
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
11709
12046
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -11711,17 +12048,29 @@
|
|
11711
12048
|
<xsl:attribute name="provisional-distance-between-starts">13mm</xsl:attribute>
|
11712
12049
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
11713
12050
|
|
12051
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
12052
|
+
</xsl:template>
|
12053
|
+
|
11714
12054
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
11715
12055
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
11716
12056
|
</xsl:attribute-set>
|
11717
12057
|
|
12058
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
12059
|
+
</xsl:template>
|
12060
|
+
|
11718
12061
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
11719
12062
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
11720
12063
|
</xsl:attribute-set>
|
11721
12064
|
|
12065
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
12066
|
+
</xsl:template>
|
12067
|
+
|
11722
12068
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
11723
12069
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
11724
12070
|
|
12071
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
12072
|
+
</xsl:template>
|
12073
|
+
|
11725
12074
|
<!-- footnote reference number for bibitem, in the text -->
|
11726
12075
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
11727
12076
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -11729,6 +12078,9 @@
|
|
11729
12078
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11730
12079
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
11731
12080
|
|
12081
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
12082
|
+
</xsl:template>
|
12083
|
+
|
11732
12084
|
<!-- footnote number on the page bottom -->
|
11733
12085
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
11734
12086
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -11747,6 +12099,9 @@
|
|
11747
12099
|
<xsl:attribute name="line-height">120%</xsl:attribute>
|
11748
12100
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
11749
12101
|
|
12102
|
+
<xsl:template name="refine_references-non-normative-style">
|
12103
|
+
</xsl:template>
|
12104
|
+
|
11750
12105
|
<!-- ======================= -->
|
11751
12106
|
<!-- Bibliography rendering -->
|
11752
12107
|
<!-- ======================= -->
|
@@ -11788,6 +12143,7 @@
|
|
11788
12143
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
11789
12144
|
|
11790
12145
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
12146
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
11791
12147
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
11792
12148
|
</fo:block>
|
11793
12149
|
</xsl:template> <!-- references -->
|
@@ -11801,18 +12157,22 @@
|
|
11801
12157
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11802
12158
|
<xsl:call-template name="setNamedDestination"/>
|
11803
12159
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
12160
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
12161
|
+
|
11804
12162
|
<xsl:call-template name="processBibitem"/>
|
11805
12163
|
</fo:block>
|
11806
12164
|
|
11807
12165
|
</xsl:template> <!-- bibitem -->
|
11808
12166
|
|
11809
12167
|
<!-- Bibliography (non-normative references) -->
|
11810
|
-
<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">
|
11811
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
|
11812
12170
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
11813
12171
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
11814
12172
|
<xsl:call-template name="setNamedDestination"/>
|
11815
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
|
+
|
11816
12176
|
<fo:list-item>
|
11817
12177
|
<fo:list-item-label end-indent="label-end()">
|
11818
12178
|
<fo:block role="SKIP">
|
@@ -11825,6 +12185,7 @@
|
|
11825
12185
|
</fo:list-item-label>
|
11826
12186
|
<fo:list-item-body start-indent="body-start()">
|
11827
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"/>
|
11828
12189
|
<xsl:call-template name="processBibitem">
|
11829
12190
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11830
12191
|
</xsl:call-template>
|
@@ -11835,12 +12196,17 @@
|
|
11835
12196
|
|
11836
12197
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
11837
12198
|
|
12199
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
12200
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
12201
|
+
|
11838
12202
|
<xsl:template name="insertListItem_Bibitem">
|
11839
12203
|
<xsl:choose>
|
11840
12204
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
11841
12205
|
<xsl:otherwise>
|
11842
12206
|
<xsl:call-template name="setNamedDestination"/>
|
11843
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
|
+
|
11844
12210
|
<fo:list-item-label end-indent="label-end()">
|
11845
12211
|
<fo:block role="SKIP">
|
11846
12212
|
<fo:inline role="SKIP">
|
@@ -11851,16 +12217,18 @@
|
|
11851
12217
|
</fo:block>
|
11852
12218
|
</fo:list-item-label>
|
11853
12219
|
<fo:list-item-body start-indent="body-start()">
|
11854
|
-
<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"/>
|
11855
12222
|
<xsl:call-template name="processBibitem">
|
11856
12223
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11857
12224
|
</xsl:call-template>
|
11858
12225
|
</fo:block>
|
12226
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11859
12227
|
</fo:list-item-body>
|
11860
12228
|
</fo:list-item>
|
11861
12229
|
</xsl:otherwise>
|
11862
12230
|
</xsl:choose>
|
11863
|
-
<xsl:apply-templates select="following-sibling::*[
|
12231
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
11864
12232
|
<xsl:with-param name="skip">false</xsl:with-param>
|
11865
12233
|
</xsl:apply-templates>
|
11866
12234
|
</xsl:template>
|
@@ -11876,25 +12244,16 @@
|
|
11876
12244
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
11877
12245
|
</xsl:apply-templates>
|
11878
12246
|
<xsl:apply-templates select="mn:formattedref"/>
|
12247
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11879
12248
|
<!-- end bibitem processing -->
|
11880
|
-
|
11881
|
-
<xsl:call-template name="processBibliographyNote"/>
|
11882
12249
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11883
12250
|
|
11884
|
-
<xsl:template name="
|
11885
|
-
|
11886
|
-
|
11887
|
-
|
11888
|
-
<xsl:copy> <!-- skip @id -->
|
11889
|
-
<xsl:copy-of select="node()"/>
|
11890
|
-
</xsl:copy>
|
11891
|
-
</xsl:element>
|
11892
|
-
</xsl:variable>
|
11893
|
-
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
11894
|
-
<xsl:call-template name="note"/>
|
11895
|
-
</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]]">
|
11896
12255
|
<xsl:call-template name="note"/>
|
11897
|
-
</xsl:
|
12256
|
+
</xsl:for-each>
|
11898
12257
|
</xsl:template>
|
11899
12258
|
|
11900
12259
|
<xsl:template match="mn:title" mode="title">
|
@@ -12094,11 +12453,17 @@
|
|
12094
12453
|
<!-- Index section styles -->
|
12095
12454
|
<xsl:attribute-set name="indexsect-title-style">
|
12096
12455
|
<xsl:attribute name="role">H1</xsl:attribute>
|
12097
|
-
</xsl:attribute-set>
|
12456
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
12457
|
+
|
12458
|
+
<xsl:template name="refine_indexsect-title-style">
|
12459
|
+
</xsl:template>
|
12098
12460
|
|
12099
12461
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
12100
12462
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
12101
|
-
</xsl:attribute-set>
|
12463
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
12464
|
+
|
12465
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
12466
|
+
</xsl:template>
|
12102
12467
|
<!-- End Index section styles -->
|
12103
12468
|
|
12104
12469
|
<!-- =================== -->
|
@@ -12292,6 +12657,7 @@
|
|
12292
12657
|
|
12293
12658
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
12294
12659
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
12660
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
12295
12661
|
<!-- Index -->
|
12296
12662
|
<xsl:apply-templates/>
|
12297
12663
|
</fo:block>
|
@@ -12300,6 +12666,7 @@
|
|
12300
12666
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
12301
12667
|
<!-- Letter A, B, C, ... -->
|
12302
12668
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
12669
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
12303
12670
|
<xsl:apply-templates/>
|
12304
12671
|
</fo:block>
|
12305
12672
|
</xsl:template>
|
@@ -12507,9 +12874,15 @@
|
|
12507
12874
|
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
12508
12875
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
12509
12876
|
|
12877
|
+
<xsl:template name="refine_toc-leader-style">
|
12878
|
+
</xsl:template>
|
12879
|
+
|
12510
12880
|
<xsl:attribute-set name="toc-pagenumber-style">
|
12511
12881
|
</xsl:attribute-set>
|
12512
12882
|
|
12883
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
12884
|
+
</xsl:template>
|
12885
|
+
|
12513
12886
|
<!-- List of Figures, Tables -->
|
12514
12887
|
<xsl:attribute-set name="toc-listof-title-style">
|
12515
12888
|
<xsl:attribute name="margin-left">-18mm</xsl:attribute>
|
@@ -12525,12 +12898,18 @@
|
|
12525
12898
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
12526
12899
|
</xsl:attribute-set>
|
12527
12900
|
|
12901
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
12902
|
+
</xsl:template>
|
12903
|
+
|
12528
12904
|
<xsl:attribute-set name="toc-listof-item-style">
|
12529
12905
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12530
12906
|
<xsl:attribute name="text-align-last">justify</xsl:attribute>
|
12531
12907
|
<xsl:attribute name="margin-top">2pt</xsl:attribute>
|
12532
12908
|
</xsl:attribute-set>
|
12533
12909
|
|
12910
|
+
<xsl:template name="refine_toc-listof-item-style">
|
12911
|
+
</xsl:template>
|
12912
|
+
|
12534
12913
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
12535
12914
|
<xsl:variable name="nodes_preface_">
|
12536
12915
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -13612,23 +13991,55 @@
|
|
13612
13991
|
<!-- Ruby text (CJK languages) rendering -->
|
13613
13992
|
<!-- ===================================== -->
|
13614
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
|
+
|
13615
14040
|
<xsl:template match="mn:ruby">
|
13616
|
-
<fo:inline-container
|
13617
|
-
<xsl:
|
13618
|
-
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
13619
|
-
</xsl:if>
|
13620
|
-
<xsl:variable name="rt_text" select="mn:rt"/>
|
13621
|
-
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
13622
|
-
<!-- Example: width="2em" -->
|
13623
|
-
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
13624
|
-
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
13625
|
-
<xsl:variable name="text_width">
|
13626
|
-
<xsl:choose>
|
13627
|
-
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
13628
|
-
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
13629
|
-
</xsl:choose>
|
13630
|
-
</xsl:variable>
|
13631
|
-
<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"/>
|
13632
14043
|
|
13633
14044
|
<xsl:choose>
|
13634
14045
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -13646,17 +14057,14 @@
|
|
13646
14057
|
</xsl:template>
|
13647
14058
|
|
13648
14059
|
<xsl:template match="mn:rb">
|
13649
|
-
<fo:block
|
14060
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
13650
14061
|
</xsl:template>
|
13651
14062
|
|
13652
14063
|
<xsl:template match="mn:rt">
|
13653
|
-
<fo:block
|
13654
|
-
<xsl:
|
13655
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
13656
|
-
</xsl:if>
|
14064
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
14065
|
+
<xsl:call-template name="refine_rt-style"/>
|
13657
14066
|
<xsl:apply-templates/>
|
13658
14067
|
</fo:block>
|
13659
|
-
|
13660
14068
|
</xsl:template>
|
13661
14069
|
|
13662
14070
|
<!-- ===================================== -->
|
@@ -13665,6 +14073,18 @@
|
|
13665
14073
|
<!-- ===================================== -->
|
13666
14074
|
<!-- ===================================== -->
|
13667
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
|
+
|
13668
14088
|
<xsl:template name="processPrefaceSectionsDefault">
|
13669
14089
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
13670
14090
|
<xsl:sort select="@displayorder" data-type="number"/>
|