metanorma-iec 2.7.3 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/iec.international-standard.xsl +576 -158
- data/lib/metanorma/iec/isodoc.rng +19 -1
- data/lib/metanorma/iec/version.rb +1 -1
- metadata +2 -2
@@ -3869,10 +3869,16 @@
|
|
3869
3869
|
<xsl:attribute-set name="license-statement-style">
|
3870
3870
|
</xsl:attribute-set> <!-- license-statement-style -->
|
3871
3871
|
|
3872
|
+
<xsl:template name="refine_license-statement-style">
|
3873
|
+
</xsl:template>
|
3874
|
+
|
3872
3875
|
<xsl:attribute-set name="license-statement-title-style">
|
3873
3876
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3874
3877
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
3875
3878
|
|
3879
|
+
<xsl:template name="refine_license-statement-title-style">
|
3880
|
+
</xsl:template>
|
3881
|
+
|
3876
3882
|
<xsl:attribute-set name="license-statement-p-style">
|
3877
3883
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
3878
3884
|
|
@@ -3883,25 +3889,49 @@
|
|
3883
3889
|
<xsl:attribute-set name="legal-statement-style">
|
3884
3890
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
3885
3891
|
|
3892
|
+
<xsl:template name="refine_legal-statement-style">
|
3893
|
+
</xsl:template>
|
3894
|
+
|
3886
3895
|
<xsl:attribute-set name="legal-statement-title-style">
|
3887
3896
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3888
3897
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
3889
3898
|
|
3899
|
+
<xsl:template name="refine_legal-statement-title-style">
|
3900
|
+
</xsl:template>
|
3901
|
+
|
3890
3902
|
<xsl:attribute-set name="legal-statement-p-style">
|
3891
3903
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
3892
3904
|
|
3905
|
+
<xsl:template name="refine_legal-statement-p-style">
|
3906
|
+
<xsl:if test="@align">
|
3907
|
+
<xsl:attribute name="text-align">
|
3908
|
+
<xsl:value-of select="@align"/>
|
3909
|
+
</xsl:attribute>
|
3910
|
+
</xsl:if>
|
3911
|
+
</xsl:template>
|
3912
|
+
|
3893
3913
|
<xsl:attribute-set name="feedback-statement-style">
|
3894
3914
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
3895
3915
|
|
3916
|
+
<xsl:template name="refine_feedback-statement-style">
|
3917
|
+
</xsl:template>
|
3918
|
+
|
3896
3919
|
<xsl:attribute-set name="feedback-statement-title-style">
|
3897
3920
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3898
3921
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3899
3922
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
3900
3923
|
|
3924
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
3925
|
+
|
3926
|
+
</xsl:template>
|
3927
|
+
|
3901
3928
|
<xsl:attribute-set name="feedback-statement-p-style">
|
3902
3929
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
3903
3930
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
3904
3931
|
|
3932
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
3933
|
+
</xsl:template>
|
3934
|
+
|
3905
3935
|
<!-- End boilerplate sections styles -->
|
3906
3936
|
|
3907
3937
|
<!-- ================================= -->
|
@@ -3927,6 +3957,7 @@
|
|
3927
3957
|
|
3928
3958
|
<xsl:template match="mn:license-statement">
|
3929
3959
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
3960
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
3930
3961
|
<xsl:apply-templates/>
|
3931
3962
|
</fo:block>
|
3932
3963
|
</xsl:template> <!-- license-statement -->
|
@@ -3944,6 +3975,7 @@
|
|
3944
3975
|
<xsl:template match="mn:legal-statement">
|
3945
3976
|
<xsl:param name="isLegacy">false</xsl:param>
|
3946
3977
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
3978
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
3947
3979
|
<xsl:apply-templates/>
|
3948
3980
|
</fo:block>
|
3949
3981
|
</xsl:template> <!-- legal-statement -->
|
@@ -3973,6 +4005,7 @@
|
|
3973
4005
|
<xsl:call-template name="getLevel"/>
|
3974
4006
|
</xsl:variable>
|
3975
4007
|
<fo:block role="H{$level}" xsl:use-attribute-sets="feedback-statement-title-style">
|
4008
|
+
<xsl:call-template name="refine_feedback-statement-title-style"/>
|
3976
4009
|
<xsl:apply-templates/>
|
3977
4010
|
</fo:block>
|
3978
4011
|
|
@@ -3981,6 +4014,8 @@
|
|
3981
4014
|
<xsl:template match="mn:feedback-statement//mn:p">
|
3982
4015
|
<xsl:param name="margin"/>
|
3983
4016
|
<fo:block xsl:use-attribute-sets="feedback-statement-p-style">
|
4017
|
+
<xsl:call-template name="refine_feedback-statement-p-style"/>
|
4018
|
+
<!-- <xsl:copy-of select="@id"/> -->
|
3984
4019
|
<xsl:apply-templates/>
|
3985
4020
|
</fo:block>
|
3986
4021
|
|
@@ -4119,6 +4154,27 @@
|
|
4119
4154
|
<xsl:attribute-set name="sourcecode-container-style">
|
4120
4155
|
</xsl:attribute-set>
|
4121
4156
|
|
4157
|
+
<xsl:template name="refine_sourcecode-container-style">
|
4158
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
4159
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4160
|
+
</xsl:if>
|
4161
|
+
|
4162
|
+
<xsl:if test="ancestor::mn:example">
|
4163
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4164
|
+
</xsl:if>
|
4165
|
+
|
4166
|
+
<xsl:copy-of select="@id"/>
|
4167
|
+
|
4168
|
+
<xsl:if test="parent::mn:note">
|
4169
|
+
<xsl:attribute name="margin-left">
|
4170
|
+
<xsl:choose>
|
4171
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
4172
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
4173
|
+
</xsl:choose>
|
4174
|
+
</xsl:attribute>
|
4175
|
+
</xsl:if>
|
4176
|
+
</xsl:template>
|
4177
|
+
|
4122
4178
|
<xsl:attribute-set name="sourcecode-style">
|
4123
4179
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
4124
4180
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -4139,6 +4195,9 @@
|
|
4139
4195
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4140
4196
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
4141
4197
|
|
4198
|
+
<xsl:template name="refine_sourcecode-name-style">
|
4199
|
+
</xsl:template>
|
4200
|
+
|
4142
4201
|
<xsl:template name="add-zero-spaces-equal">
|
4143
4202
|
<xsl:param name="text" select="."/>
|
4144
4203
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -4226,24 +4285,8 @@
|
|
4226
4285
|
<xsl:otherwise>
|
4227
4286
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
4228
4287
|
|
4229
|
-
<xsl:
|
4230
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4231
|
-
</xsl:if>
|
4232
|
-
|
4233
|
-
<xsl:if test="ancestor::mn:example">
|
4234
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4235
|
-
</xsl:if>
|
4288
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
4236
4289
|
|
4237
|
-
<xsl:copy-of select="@id"/>
|
4238
|
-
|
4239
|
-
<xsl:if test="parent::mn:note">
|
4240
|
-
<xsl:attribute name="margin-left">
|
4241
|
-
<xsl:choose>
|
4242
|
-
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
4243
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
4244
|
-
</xsl:choose>
|
4245
|
-
</xsl:attribute>
|
4246
|
-
</xsl:if>
|
4247
4290
|
<fo:block-container margin-left="0mm" role="SKIP">
|
4248
4291
|
|
4249
4292
|
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
@@ -4570,6 +4613,7 @@
|
|
4570
4613
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
4571
4614
|
<xsl:if test="normalize-space() != ''">
|
4572
4615
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4616
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
4573
4617
|
<xsl:apply-templates/>
|
4574
4618
|
</fo:block>
|
4575
4619
|
</xsl:if>
|
@@ -4618,12 +4662,31 @@
|
|
4618
4662
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4619
4663
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
4620
4664
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
4621
|
-
</xsl:attribute-set>
|
4665
|
+
</xsl:attribute-set> <!-- pre-style -->
|
4666
|
+
|
4667
|
+
<xsl:template name="refine_pre-style">
|
4668
|
+
</xsl:template>
|
4622
4669
|
|
4623
4670
|
<xsl:attribute-set name="tt-style">
|
4624
4671
|
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4625
4672
|
</xsl:attribute-set>
|
4626
4673
|
|
4674
|
+
<xsl:template name="refine_tt-style">
|
4675
|
+
<xsl:variable name="_font-size">10 <!-- inherit -->
|
4676
|
+
</xsl:variable>
|
4677
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4678
|
+
<xsl:if test="$font-size != ''">
|
4679
|
+
<xsl:attribute name="font-size">
|
4680
|
+
<xsl:choose>
|
4681
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4682
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4683
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4684
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4685
|
+
</xsl:choose>
|
4686
|
+
</xsl:attribute>
|
4687
|
+
</xsl:if>
|
4688
|
+
</xsl:template>
|
4689
|
+
|
4627
4690
|
<xsl:variable name="color-added-text">
|
4628
4691
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
4629
4692
|
</xsl:variable>
|
@@ -4636,9 +4699,14 @@
|
|
4636
4699
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
4637
4700
|
</xsl:attribute-set>
|
4638
4701
|
|
4702
|
+
<xsl:template name="refine_add-style">
|
4703
|
+
</xsl:template>
|
4704
|
+
|
4639
4705
|
<xsl:variable name="add-style">
|
4640
|
-
|
4641
|
-
|
4706
|
+
<add-style xsl:use-attribute-sets="add-style">
|
4707
|
+
<xsl:call-template name="refine_add-style"/>
|
4708
|
+
</add-style>
|
4709
|
+
</xsl:variable>
|
4642
4710
|
<xsl:template name="append_add-style">
|
4643
4711
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
4644
4712
|
</xsl:template>
|
@@ -4651,24 +4719,77 @@
|
|
4651
4719
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
4652
4720
|
</xsl:attribute-set>
|
4653
4721
|
|
4722
|
+
<xsl:template name="refine_del-style">
|
4723
|
+
</xsl:template>
|
4724
|
+
|
4725
|
+
<xsl:attribute-set name="strong-style">
|
4726
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4727
|
+
</xsl:attribute-set>
|
4728
|
+
|
4729
|
+
<xsl:template name="refine_strong_style">
|
4730
|
+
<xsl:if test="ancestor::*['preferred']">
|
4731
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4732
|
+
</xsl:if>
|
4733
|
+
</xsl:template> <!-- refine_strong_style -->
|
4734
|
+
|
4735
|
+
<xsl:attribute-set name="em-style">
|
4736
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
4737
|
+
</xsl:attribute-set>
|
4738
|
+
|
4739
|
+
<xsl:template name="refine_em_style">
|
4740
|
+
</xsl:template> <!-- refine_em_style -->
|
4741
|
+
|
4742
|
+
<xsl:attribute-set name="sup-style">
|
4743
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4744
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4745
|
+
</xsl:attribute-set>
|
4746
|
+
|
4747
|
+
<xsl:template name="refine_sup-style">
|
4748
|
+
</xsl:template>
|
4749
|
+
|
4750
|
+
<xsl:attribute-set name="sub-style">
|
4751
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4752
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
4753
|
+
</xsl:attribute-set>
|
4754
|
+
|
4755
|
+
<xsl:template name="refine_sub-style">
|
4756
|
+
</xsl:template>
|
4757
|
+
|
4758
|
+
<xsl:attribute-set name="underline-style">
|
4759
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4760
|
+
</xsl:attribute-set>
|
4761
|
+
|
4762
|
+
<xsl:template name="refine_underline-style">
|
4763
|
+
</xsl:template>
|
4764
|
+
|
4765
|
+
<xsl:attribute-set name="hi-style">
|
4766
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
4767
|
+
</xsl:attribute-set>
|
4768
|
+
|
4769
|
+
<xsl:template name="refine_hi-style">
|
4770
|
+
</xsl:template>
|
4771
|
+
|
4772
|
+
<xsl:attribute-set name="strike-style">
|
4773
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
4774
|
+
</xsl:attribute-set>
|
4775
|
+
|
4776
|
+
<xsl:template name="refine_strike-style">
|
4777
|
+
</xsl:template>
|
4778
|
+
|
4654
4779
|
<xsl:template match="mn:br">
|
4655
4780
|
<xsl:value-of select="$linebreak"/>
|
4656
4781
|
</xsl:template>
|
4657
4782
|
|
4658
|
-
|
4659
|
-
<fo:inline
|
4660
|
-
<xsl:call-template name="
|
4783
|
+
<xsl:template match="mn:em">
|
4784
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
4785
|
+
<xsl:call-template name="refine_em_style"/>
|
4661
4786
|
<xsl:apply-templates/>
|
4662
4787
|
</fo:inline>
|
4663
4788
|
</xsl:template>
|
4664
4789
|
|
4665
|
-
<xsl:template name="refine_italic_style">
|
4666
|
-
</xsl:template>
|
4667
|
-
|
4668
4790
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
4669
4791
|
<xsl:param name="split_keep-within-line"/>
|
4670
|
-
<fo:inline
|
4671
|
-
|
4792
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
4672
4793
|
<xsl:call-template name="refine_strong_style"/>
|
4673
4794
|
|
4674
4795
|
<xsl:apply-templates>
|
@@ -4677,44 +4798,27 @@
|
|
4677
4798
|
</fo:inline>
|
4678
4799
|
</xsl:template>
|
4679
4800
|
|
4680
|
-
<xsl:template name="refine_strong_style">
|
4681
|
-
<xsl:if test="ancestor::*['preferred']">
|
4682
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4683
|
-
</xsl:if>
|
4684
|
-
</xsl:template>
|
4685
|
-
|
4686
4801
|
<xsl:template match="*[local-name()='padding']">
|
4687
4802
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
4688
4803
|
</xsl:template>
|
4689
4804
|
|
4690
4805
|
<xsl:template match="mn:sup">
|
4691
|
-
<fo:inline
|
4806
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
4807
|
+
<xsl:call-template name="refine_sup-style"/>
|
4692
4808
|
<xsl:apply-templates/>
|
4693
4809
|
</fo:inline>
|
4694
4810
|
</xsl:template>
|
4695
4811
|
|
4696
4812
|
<xsl:template match="mn:sub">
|
4697
|
-
<fo:inline
|
4813
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
4814
|
+
<xsl:call-template name="refine_sub-style"/>
|
4698
4815
|
<xsl:apply-templates/>
|
4699
4816
|
</fo:inline>
|
4700
4817
|
</xsl:template>
|
4701
4818
|
|
4702
4819
|
<xsl:template match="mn:tt">
|
4703
4820
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
4704
|
-
|
4705
|
-
<xsl:variable name="_font-size">10 <!-- inherit -->
|
4706
|
-
</xsl:variable>
|
4707
|
-
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
4708
|
-
<xsl:if test="$font-size != ''">
|
4709
|
-
<xsl:attribute name="font-size">
|
4710
|
-
<xsl:choose>
|
4711
|
-
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4712
|
-
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4713
|
-
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4714
|
-
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4715
|
-
</xsl:choose>
|
4716
|
-
</xsl:attribute>
|
4717
|
-
</xsl:if>
|
4821
|
+
<xsl:call-template name="refine_tt-style"/>
|
4718
4822
|
<xsl:apply-templates/>
|
4719
4823
|
</fo:inline>
|
4720
4824
|
</xsl:template> <!-- tt -->
|
@@ -4733,7 +4837,8 @@
|
|
4733
4837
|
</xsl:template>
|
4734
4838
|
|
4735
4839
|
<xsl:template match="mn:underline">
|
4736
|
-
<fo:inline
|
4840
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
4841
|
+
<xsl:call-template name="refine_underline-style"/>
|
4737
4842
|
<xsl:apply-templates/>
|
4738
4843
|
</fo:inline>
|
4739
4844
|
</xsl:template>
|
@@ -4891,6 +4996,7 @@
|
|
4891
4996
|
|
4892
4997
|
<xsl:template match="mn:del">
|
4893
4998
|
<fo:inline xsl:use-attribute-sets="del-style">
|
4999
|
+
<xsl:call-template name="refine_del-style"/>
|
4894
5000
|
<xsl:apply-templates/>
|
4895
5001
|
</fo:inline>
|
4896
5002
|
</xsl:template>
|
@@ -4900,7 +5006,8 @@
|
|
4900
5006
|
|
4901
5007
|
<!-- highlight text -->
|
4902
5008
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
4903
|
-
<fo:inline
|
5009
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
5010
|
+
<xsl:call-template name="refine_hi-style"/>
|
4904
5011
|
<xsl:apply-templates/>
|
4905
5012
|
</fo:inline>
|
4906
5013
|
</xsl:template>
|
@@ -4986,7 +5093,8 @@
|
|
4986
5093
|
</xsl:template>
|
4987
5094
|
|
4988
5095
|
<xsl:template match="mn:strike">
|
4989
|
-
<fo:inline
|
5096
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
5097
|
+
<xsl:call-template name="refine_strike-style"/>
|
4990
5098
|
<xsl:apply-templates/>
|
4991
5099
|
</fo:inline>
|
4992
5100
|
</xsl:template>
|
@@ -5066,6 +5174,7 @@
|
|
5066
5174
|
|
5067
5175
|
<xsl:template match="mn:pre" name="pre">
|
5068
5176
|
<fo:block xsl:use-attribute-sets="pre-style">
|
5177
|
+
<xsl:call-template name="refine_pre-style"/>
|
5069
5178
|
<xsl:copy-of select="@id"/>
|
5070
5179
|
<xsl:choose>
|
5071
5180
|
|
@@ -5096,22 +5205,40 @@
|
|
5096
5205
|
<xsl:attribute-set name="permission-style">
|
5097
5206
|
</xsl:attribute-set>
|
5098
5207
|
|
5208
|
+
<xsl:template name="refine_permission-style">
|
5209
|
+
</xsl:template>
|
5210
|
+
|
5099
5211
|
<xsl:attribute-set name="permission-name-style">
|
5100
5212
|
</xsl:attribute-set>
|
5101
5213
|
|
5214
|
+
<xsl:template name="refine_permission-name-style">
|
5215
|
+
</xsl:template>
|
5216
|
+
|
5102
5217
|
<xsl:attribute-set name="permission-label-style">
|
5103
5218
|
</xsl:attribute-set>
|
5104
5219
|
|
5220
|
+
<xsl:template name="refine_permission-label-style">
|
5221
|
+
</xsl:template>
|
5222
|
+
|
5105
5223
|
<xsl:attribute-set name="requirement-style">
|
5106
5224
|
</xsl:attribute-set>
|
5107
5225
|
|
5226
|
+
<xsl:template name="refine_requirement-style">
|
5227
|
+
</xsl:template>
|
5228
|
+
|
5108
5229
|
<xsl:attribute-set name="requirement-name-style">
|
5109
5230
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5110
5231
|
</xsl:attribute-set>
|
5111
5232
|
|
5233
|
+
<xsl:template name="refine_requirement-name-style">
|
5234
|
+
</xsl:template>
|
5235
|
+
|
5112
5236
|
<xsl:attribute-set name="requirement-label-style">
|
5113
5237
|
</xsl:attribute-set>
|
5114
5238
|
|
5239
|
+
<xsl:template name="refine_requirement-label-style">
|
5240
|
+
</xsl:template>
|
5241
|
+
|
5115
5242
|
<xsl:attribute-set name="subject-style">
|
5116
5243
|
</xsl:attribute-set>
|
5117
5244
|
|
@@ -5139,18 +5266,28 @@
|
|
5139
5266
|
<xsl:attribute-set name="recommendation-style">
|
5140
5267
|
</xsl:attribute-set>
|
5141
5268
|
|
5269
|
+
<xsl:template name="refine_recommendation-style">
|
5270
|
+
</xsl:template>
|
5271
|
+
|
5142
5272
|
<xsl:attribute-set name="recommendation-name-style">
|
5143
5273
|
</xsl:attribute-set>
|
5144
5274
|
|
5275
|
+
<xsl:template name="refine_recommendation-name-style">
|
5276
|
+
</xsl:template>
|
5277
|
+
|
5145
5278
|
<xsl:attribute-set name="recommendation-label-style">
|
5146
5279
|
</xsl:attribute-set>
|
5147
5280
|
|
5281
|
+
<xsl:template name="refine_recommendation-label-style">
|
5282
|
+
</xsl:template>
|
5283
|
+
|
5148
5284
|
<!-- ========== -->
|
5149
5285
|
<!-- permission -->
|
5150
5286
|
<!-- ========== -->
|
5151
5287
|
<xsl:template match="mn:permission">
|
5152
5288
|
<xsl:call-template name="setNamedDestination"/>
|
5153
5289
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
5290
|
+
<xsl:call-template name="refine_permission-style"/>
|
5154
5291
|
<xsl:apply-templates select="mn:fmt-name"/>
|
5155
5292
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5156
5293
|
</fo:block>
|
@@ -5159,6 +5296,7 @@
|
|
5159
5296
|
<xsl:template match="mn:permission/mn:fmt-name">
|
5160
5297
|
<xsl:if test="normalize-space() != ''">
|
5161
5298
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
5299
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
5162
5300
|
<xsl:apply-templates/>
|
5163
5301
|
</fo:block>
|
5164
5302
|
</xsl:if>
|
@@ -5166,6 +5304,7 @@
|
|
5166
5304
|
|
5167
5305
|
<xsl:template match="mn:permission/mn:label">
|
5168
5306
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
5307
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
5169
5308
|
<xsl:apply-templates/>
|
5170
5309
|
</fo:block>
|
5171
5310
|
</xsl:template>
|
@@ -5178,6 +5317,7 @@
|
|
5178
5317
|
<xsl:template match="mn:requirement">
|
5179
5318
|
<xsl:call-template name="setNamedDestination"/>
|
5180
5319
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
5320
|
+
<xsl:call-template name="refine_requirement-style"/>
|
5181
5321
|
<xsl:apply-templates select="mn:fmt-name"/>
|
5182
5322
|
<xsl:apply-templates select="mn:label"/>
|
5183
5323
|
<xsl:apply-templates select="@obligation"/>
|
@@ -5190,6 +5330,7 @@
|
|
5190
5330
|
<xsl:if test="normalize-space() != ''">
|
5191
5331
|
|
5192
5332
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
5333
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
5193
5334
|
<xsl:apply-templates/>
|
5194
5335
|
</fo:block>
|
5195
5336
|
</xsl:if>
|
@@ -5197,6 +5338,7 @@
|
|
5197
5338
|
|
5198
5339
|
<xsl:template match="mn:requirement/mn:label">
|
5199
5340
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
5341
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
5200
5342
|
<xsl:apply-templates/>
|
5201
5343
|
</fo:block>
|
5202
5344
|
</xsl:template>
|
@@ -5222,6 +5364,7 @@
|
|
5222
5364
|
<xsl:template match="mn:recommendation">
|
5223
5365
|
<xsl:call-template name="setNamedDestination"/>
|
5224
5366
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
5367
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
5225
5368
|
<xsl:apply-templates select="mn:fmt-name"/>
|
5226
5369
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5227
5370
|
</fo:block>
|
@@ -5231,6 +5374,7 @@
|
|
5231
5374
|
<xsl:if test="normalize-space() != ''">
|
5232
5375
|
|
5233
5376
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
5377
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
5234
5378
|
<xsl:apply-templates/>
|
5235
5379
|
</fo:block>
|
5236
5380
|
</xsl:if>
|
@@ -5238,6 +5382,7 @@
|
|
5238
5382
|
|
5239
5383
|
<xsl:template match="mn:recommendation/mn:label">
|
5240
5384
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
5385
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
5241
5386
|
<xsl:apply-templates/>
|
5242
5387
|
</fo:block>
|
5243
5388
|
</xsl:template>
|
@@ -5418,40 +5563,73 @@
|
|
5418
5563
|
<xsl:attribute-set name="term-style">
|
5419
5564
|
</xsl:attribute-set> <!-- term-style -->
|
5420
5565
|
|
5566
|
+
<xsl:template name="refine_term-style">
|
5567
|
+
</xsl:template>
|
5568
|
+
|
5421
5569
|
<xsl:attribute-set name="term-name-style">
|
5422
5570
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5423
5571
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5424
5572
|
</xsl:attribute-set> <!-- term-name-style -->
|
5425
5573
|
|
5426
|
-
|
5574
|
+
<xsl:template name="refine_term-name-style">
|
5575
|
+
</xsl:template>
|
5576
|
+
|
5577
|
+
<xsl:attribute-set name="preferred-block-style">
|
5427
5578
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
5428
5579
|
<xsl:attribute name="space-before">14pt</xsl:attribute>
|
5429
5580
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
5430
5581
|
|
5582
|
+
<xsl:template name="refine_preferred-block-style">
|
5583
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-preferred]">
|
5584
|
+
<xsl:attribute name="space-before">1pt</xsl:attribute>
|
5585
|
+
</xsl:if>
|
5586
|
+
</xsl:template>
|
5587
|
+
|
5431
5588
|
<xsl:attribute-set name="preferred-term-style">
|
5432
5589
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5433
5590
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5434
5591
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
5435
5592
|
|
5593
|
+
<xsl:template name="refine_preferred-term-style">
|
5594
|
+
<xsl:if test="mn:strong">
|
5595
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5596
|
+
</xsl:if>
|
5597
|
+
</xsl:template>
|
5598
|
+
|
5436
5599
|
<xsl:attribute-set name="domain-style">
|
5437
5600
|
</xsl:attribute-set> <!-- domain-style -->
|
5438
5601
|
|
5602
|
+
<xsl:template name="refine_domain-style">
|
5603
|
+
</xsl:template>
|
5604
|
+
|
5439
5605
|
<xsl:attribute-set name="admitted-style">
|
5440
5606
|
</xsl:attribute-set> <!-- admitted-style -->
|
5441
5607
|
|
5608
|
+
<xsl:template name="refine_admitted-style">
|
5609
|
+
</xsl:template>
|
5610
|
+
|
5442
5611
|
<xsl:attribute-set name="deprecates-style">
|
5443
5612
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
5444
5613
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
5445
5614
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
5446
5615
|
</xsl:attribute-set> <!-- deprecates-style -->
|
5447
5616
|
|
5617
|
+
<xsl:template name="refine_deprecates-style">
|
5618
|
+
</xsl:template>
|
5619
|
+
|
5448
5620
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
5449
5621
|
</xsl:attribute-set>
|
5450
5622
|
|
5623
|
+
<xsl:template name="refine_related-block-style">
|
5624
|
+
</xsl:template>
|
5625
|
+
|
5451
5626
|
<xsl:attribute-set name="definition-style">
|
5452
5627
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5453
5628
|
</xsl:attribute-set> <!-- definition-style -->
|
5454
5629
|
|
5630
|
+
<xsl:template name="refine_definition-style">
|
5631
|
+
</xsl:template>
|
5632
|
+
|
5455
5633
|
<xsl:attribute-set name="termsource-style">
|
5456
5634
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
5457
5635
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
@@ -5463,9 +5641,15 @@
|
|
5463
5641
|
<xsl:attribute-set name="termsource-text-style">
|
5464
5642
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
5465
5643
|
|
5644
|
+
<xsl:template name="refine_termsource-text-style">
|
5645
|
+
</xsl:template>
|
5646
|
+
|
5466
5647
|
<xsl:attribute-set name="origin-style">
|
5467
5648
|
</xsl:attribute-set> <!-- origin-style -->
|
5468
5649
|
|
5650
|
+
<xsl:template name="refine_origin-style">
|
5651
|
+
</xsl:template>
|
5652
|
+
|
5469
5653
|
<!-- ====== -->
|
5470
5654
|
<!-- term -->
|
5471
5655
|
<!-- ====== -->
|
@@ -5481,9 +5665,8 @@
|
|
5481
5665
|
<xsl:template match="mn:term">
|
5482
5666
|
<xsl:call-template name="setNamedDestination"/>
|
5483
5667
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
5668
|
+
<xsl:call-template name="refine_term-style"/>
|
5484
5669
|
|
5485
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
5486
|
-
</xsl:if>
|
5487
5670
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5488
5671
|
</fo:block>
|
5489
5672
|
</xsl:template>
|
@@ -5559,6 +5742,7 @@
|
|
5559
5742
|
<!-- text SOURCE: -->
|
5560
5743
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
5561
5744
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
5745
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
5562
5746
|
<xsl:value-of select="."/>
|
5563
5747
|
</fo:inline>
|
5564
5748
|
</xsl:template>
|
@@ -5571,6 +5755,7 @@
|
|
5571
5755
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
5572
5756
|
</xsl:if>
|
5573
5757
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
5758
|
+
<xsl:call-template name="refine_origin-style"/>
|
5574
5759
|
<xsl:apply-templates/>
|
5575
5760
|
</fo:inline>
|
5576
5761
|
</fo:basic-link>
|
@@ -5619,13 +5804,13 @@
|
|
5619
5804
|
<xsl:call-template name="getLevelTermName"/>
|
5620
5805
|
</xsl:variable>
|
5621
5806
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
5622
|
-
|
5623
|
-
|
5624
|
-
</xsl:if>
|
5807
|
+
|
5808
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
5625
5809
|
|
5626
5810
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
5627
5811
|
|
5628
5812
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
5813
|
+
<xsl:call-template name="refine_term-name-style"/>
|
5629
5814
|
|
5630
5815
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
5631
5816
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -5636,7 +5821,7 @@
|
|
5636
5821
|
</xsl:if>
|
5637
5822
|
|
5638
5823
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
5639
|
-
<xsl:call-template name="
|
5824
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
5640
5825
|
|
5641
5826
|
<xsl:apply-templates/>
|
5642
5827
|
</fo:block>
|
@@ -5657,22 +5842,18 @@
|
|
5657
5842
|
|
5658
5843
|
<xsl:template match="mn:fmt-admitted">
|
5659
5844
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
5845
|
+
<xsl:call-template name="refine_admitted-style"/>
|
5660
5846
|
<xsl:apply-templates/>
|
5661
5847
|
</fo:block>
|
5662
5848
|
</xsl:template>
|
5663
5849
|
|
5664
5850
|
<xsl:template match="mn:fmt-deprecates">
|
5665
5851
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5852
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
5666
5853
|
<xsl:apply-templates/>
|
5667
5854
|
</fo:block>
|
5668
5855
|
</xsl:template>
|
5669
5856
|
|
5670
|
-
<xsl:template name="setStyle_preferred">
|
5671
|
-
<xsl:if test="mn:strong">
|
5672
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
5673
|
-
</xsl:if>
|
5674
|
-
</xsl:template>
|
5675
|
-
|
5676
5857
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
5677
5858
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
5678
5859
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -5682,6 +5863,7 @@
|
|
5682
5863
|
|
5683
5864
|
<xsl:template match="mn:fmt-related">
|
5684
5865
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
5866
|
+
<xsl:call-template name="refine_related-block-style"/>
|
5685
5867
|
<xsl:apply-templates/>
|
5686
5868
|
</fo:block>
|
5687
5869
|
</xsl:template>
|
@@ -5696,6 +5878,7 @@
|
|
5696
5878
|
<!-- ========== -->
|
5697
5879
|
<xsl:template match="mn:fmt-definition">
|
5698
5880
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5881
|
+
<xsl:call-template name="refine_definition-style"/>
|
5699
5882
|
<xsl:apply-templates/>
|
5700
5883
|
</fo:block>
|
5701
5884
|
</xsl:template>
|
@@ -5745,6 +5928,9 @@
|
|
5745
5928
|
<xsl:attribute name="margin-left">10mm</xsl:attribute>
|
5746
5929
|
</xsl:attribute-set> <!-- example-body-style -->
|
5747
5930
|
|
5931
|
+
<xsl:template name="refine_example-body-style">
|
5932
|
+
</xsl:template>
|
5933
|
+
|
5748
5934
|
<xsl:attribute-set name="example-name-style">
|
5749
5935
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5750
5936
|
<xsl:attribute name="padding-right">9mm</xsl:attribute>
|
@@ -5792,6 +5978,8 @@
|
|
5792
5978
|
<xsl:when test="contains($element, 'block')">
|
5793
5979
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
5794
5980
|
|
5981
|
+
<xsl:call-template name="refine_example-p-style"/>
|
5982
|
+
|
5795
5983
|
<xsl:apply-templates/>
|
5796
5984
|
</fo:block>
|
5797
5985
|
</xsl:when>
|
@@ -5849,6 +6037,7 @@
|
|
5849
6037
|
</fo:block>
|
5850
6038
|
|
5851
6039
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
6040
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5852
6041
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5853
6042
|
<xsl:variable name="example_body">
|
5854
6043
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -5911,6 +6100,7 @@
|
|
5911
6100
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
5912
6101
|
<!-- display further elements in blocks -->
|
5913
6102
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
6103
|
+
<xsl:call-template name="refine_example-body-style"/>
|
5914
6104
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5915
6105
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
5916
6106
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -6174,6 +6364,9 @@
|
|
6174
6364
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
6175
6365
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
6176
6366
|
|
6367
|
+
<xsl:template name="refine_table-fn-number-style">
|
6368
|
+
</xsl:template>
|
6369
|
+
|
6177
6370
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
6178
6371
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
6179
6372
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
@@ -6183,33 +6376,12 @@
|
|
6183
6376
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
6184
6377
|
</xsl:template>
|
6185
6378
|
|
6186
|
-
<xsl:attribute-set name="fn-container-body-style">
|
6187
|
-
<xsl:attribute name="text-indent">0</xsl:attribute>
|
6188
|
-
<xsl:attribute name="start-indent">0</xsl:attribute>
|
6189
|
-
</xsl:attribute-set>
|
6190
|
-
|
6191
6379
|
<xsl:attribute-set name="table-fn-body-style">
|
6192
6380
|
</xsl:attribute-set>
|
6193
6381
|
|
6194
|
-
<xsl:
|
6195
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
6196
|
-
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
6197
|
-
|
6198
|
-
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
6199
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
6200
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
6201
|
-
<xsl:attribute name="baseline-shift">65%</xsl:attribute>
|
6202
|
-
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
6203
|
-
|
6204
|
-
<xsl:template name="refine_figure-fmt-fn-label-style">
|
6382
|
+
<xsl:template name="refine_table-fn-body-style">
|
6205
6383
|
</xsl:template>
|
6206
6384
|
|
6207
|
-
<xsl:attribute-set name="figure-fn-body-style">
|
6208
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
6209
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
6210
|
-
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
6211
|
-
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
6212
|
-
</xsl:attribute-set>
|
6213
6385
|
<!-- ========================== -->
|
6214
6386
|
<!-- END Table styles -->
|
6215
6387
|
<!-- ========================== -->
|
@@ -7548,6 +7720,7 @@
|
|
7548
7720
|
</xsl:apply-templates>
|
7549
7721
|
|
7550
7722
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
7723
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
7551
7724
|
<!-- <xsl:copy-of select="./node()"/> -->
|
7552
7725
|
<xsl:apply-templates/>
|
7553
7726
|
</fo:inline>
|
@@ -7566,6 +7739,7 @@
|
|
7566
7739
|
<xsl:param name="process">false</xsl:param>
|
7567
7740
|
<xsl:if test="$process = 'true'">
|
7568
7741
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
7742
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
7569
7743
|
|
7570
7744
|
<!-- tab is padding-right -->
|
7571
7745
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -8437,9 +8611,18 @@
|
|
8437
8611
|
<xsl:attribute-set name="dl-block-style">
|
8438
8612
|
</xsl:attribute-set>
|
8439
8613
|
|
8614
|
+
<xsl:template name="refine_dl-block-style">
|
8615
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
8616
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
8617
|
+
</xsl:if>
|
8618
|
+
</xsl:template>
|
8619
|
+
|
8440
8620
|
<xsl:attribute-set name="dt-row-style">
|
8441
8621
|
</xsl:attribute-set>
|
8442
8622
|
|
8623
|
+
<xsl:template name="refine_dt-row-style">
|
8624
|
+
</xsl:template>
|
8625
|
+
|
8443
8626
|
<xsl:attribute-set name="dt-cell-style">
|
8444
8627
|
</xsl:attribute-set>
|
8445
8628
|
|
@@ -8459,6 +8642,9 @@
|
|
8459
8642
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8460
8643
|
</xsl:attribute-set> <!-- dl-name-style -->
|
8461
8644
|
|
8645
|
+
<xsl:template name="refine_dl-name-style">
|
8646
|
+
</xsl:template>
|
8647
|
+
|
8462
8648
|
<xsl:attribute-set name="dd-cell-style">
|
8463
8649
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
8464
8650
|
</xsl:attribute-set>
|
@@ -8497,9 +8683,7 @@
|
|
8497
8683
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
8498
8684
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
8499
8685
|
|
8500
|
-
<xsl:
|
8501
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
8502
|
-
</xsl:if>
|
8686
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
8503
8687
|
|
8504
8688
|
<xsl:call-template name="setBlockSpanAll"/>
|
8505
8689
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -8799,6 +8983,8 @@
|
|
8799
8983
|
<xsl:if test="$process = 'true'">
|
8800
8984
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
8801
8985
|
|
8986
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
8987
|
+
|
8802
8988
|
<xsl:apply-templates/>
|
8803
8989
|
</fo:block>
|
8804
8990
|
</xsl:if>
|
@@ -8987,6 +9173,8 @@
|
|
8987
9173
|
<xsl:param name="split_keep-within-line"/>
|
8988
9174
|
|
8989
9175
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
9176
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
9177
|
+
|
8990
9178
|
<xsl:call-template name="insert_dt_cell">
|
8991
9179
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
8992
9180
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -9199,17 +9387,24 @@
|
|
9199
9387
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
9200
9388
|
</xsl:attribute-set>
|
9201
9389
|
|
9390
|
+
<xsl:template name="refine_appendix-style">
|
9391
|
+
</xsl:template>
|
9392
|
+
|
9202
9393
|
<xsl:attribute-set name="appendix-example-style">
|
9203
9394
|
<xsl:attribute name="margin-top">14pt</xsl:attribute>
|
9204
9395
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
9205
9396
|
</xsl:attribute-set>
|
9206
9397
|
|
9398
|
+
<xsl:template name="refine_appendix-example-style">
|
9399
|
+
</xsl:template>
|
9400
|
+
|
9207
9401
|
<!-- ======================== -->
|
9208
9402
|
<!-- Appendix processing -->
|
9209
9403
|
<!-- ======================== -->
|
9210
9404
|
<xsl:template match="mn:appendix">
|
9211
9405
|
<xsl:call-template name="setNamedDestination"/>
|
9212
9406
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
9407
|
+
<xsl:call-template name="refine_appendix-style"/>
|
9213
9408
|
<xsl:apply-templates select="mn:fmt-title"/>
|
9214
9409
|
</fo:block>
|
9215
9410
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -9228,13 +9423,23 @@
|
|
9228
9423
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
9229
9424
|
<xsl:call-template name="setNamedDestination"/>
|
9230
9425
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
9426
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
9231
9427
|
<xsl:apply-templates select="mn:fmt-name"/>
|
9232
9428
|
</fo:block>
|
9233
9429
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
9234
9430
|
</xsl:template>
|
9235
9431
|
|
9236
9432
|
<xsl:attribute-set name="xref-style">
|
9237
|
-
</xsl:attribute-set>
|
9433
|
+
</xsl:attribute-set> <!-- xref-style -->
|
9434
|
+
|
9435
|
+
<xsl:template name="refine_xref-style">
|
9436
|
+
<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])">
|
9437
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
9438
|
+
</xsl:if>
|
9439
|
+
<xsl:if test="parent::mn:add">
|
9440
|
+
<xsl:call-template name="append_add-style"/>
|
9441
|
+
</xsl:if>
|
9442
|
+
</xsl:template> <!-- refine_xref-style -->
|
9238
9443
|
|
9239
9444
|
<xsl:template match="mn:fmt-xref">
|
9240
9445
|
<xsl:call-template name="insert_basic_link">
|
@@ -9243,12 +9448,8 @@
|
|
9243
9448
|
<xsl:call-template name="getAltText"/>
|
9244
9449
|
</xsl:variable>
|
9245
9450
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
|
9246
|
-
<xsl:
|
9247
|
-
|
9248
|
-
</xsl:if>
|
9249
|
-
<xsl:if test="parent::mn:add">
|
9250
|
-
<xsl:call-template name="append_add-style"/>
|
9251
|
-
</xsl:if>
|
9451
|
+
<xsl:call-template name="refine_xref-style"/>
|
9452
|
+
|
9252
9453
|
<xsl:apply-templates/>
|
9253
9454
|
</fo:basic-link>
|
9254
9455
|
</xsl:with-param>
|
@@ -9358,17 +9559,17 @@
|
|
9358
9559
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
9359
9560
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
9360
9561
|
<xsl:attribute name="margin-bottom">9pt</xsl:attribute>
|
9361
|
-
</xsl:attribute-set>
|
9562
|
+
</xsl:attribute-set> <!-- note-style -->
|
9362
9563
|
|
9363
9564
|
<xsl:template name="refine_note-style">
|
9364
|
-
</xsl:template>
|
9565
|
+
</xsl:template> <!-- refine_note-style -->
|
9365
9566
|
|
9366
9567
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
9367
9568
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
9368
9569
|
|
9369
9570
|
<xsl:attribute-set name="note-name-style">
|
9370
9571
|
<xsl:attribute name="padding-right">6mm</xsl:attribute>
|
9371
|
-
</xsl:attribute-set>
|
9572
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
9372
9573
|
|
9373
9574
|
<xsl:template name="refine_note-name-style">
|
9374
9575
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -9382,19 +9583,22 @@
|
|
9382
9583
|
|
9383
9584
|
<xsl:attribute-set name="note-p-style">
|
9384
9585
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
9385
|
-
</xsl:attribute-set>
|
9586
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
9587
|
+
|
9588
|
+
<xsl:template name="refine_note-p-style">
|
9589
|
+
</xsl:template>
|
9386
9590
|
|
9387
9591
|
<xsl:attribute-set name="termnote-style">
|
9388
9592
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
9389
9593
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
9390
9594
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
9391
|
-
</xsl:attribute-set>
|
9595
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
9392
9596
|
|
9393
9597
|
<xsl:template name="refine_termnote-style">
|
9394
9598
|
</xsl:template> <!-- refine_termnote-style -->
|
9395
9599
|
|
9396
9600
|
<xsl:attribute-set name="termnote-name-style">
|
9397
|
-
</xsl:attribute-set>
|
9601
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
9398
9602
|
|
9399
9603
|
<xsl:template name="refine_termnote-name-style">
|
9400
9604
|
</xsl:template>
|
@@ -9402,6 +9606,9 @@
|
|
9402
9606
|
<xsl:attribute-set name="termnote-p-style">
|
9403
9607
|
</xsl:attribute-set>
|
9404
9608
|
|
9609
|
+
<xsl:template name="refine_termnote-p-style">
|
9610
|
+
</xsl:template>
|
9611
|
+
|
9405
9612
|
<!-- ====== -->
|
9406
9613
|
<!-- note -->
|
9407
9614
|
<!-- termnote -->
|
@@ -9462,11 +9669,13 @@
|
|
9462
9669
|
<xsl:choose>
|
9463
9670
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
9464
9671
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9672
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9465
9673
|
<xsl:apply-templates/>
|
9466
9674
|
</fo:inline>
|
9467
9675
|
</xsl:when>
|
9468
9676
|
<xsl:otherwise>
|
9469
9677
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
9678
|
+
<xsl:call-template name="refine_note-p-style"/>
|
9470
9679
|
<xsl:apply-templates/>
|
9471
9680
|
</fo:block>
|
9472
9681
|
</xsl:otherwise>
|
@@ -9558,11 +9767,13 @@
|
|
9558
9767
|
<xsl:choose>
|
9559
9768
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
9560
9769
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
9770
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9561
9771
|
<xsl:apply-templates/>
|
9562
9772
|
</fo:inline>
|
9563
9773
|
</xsl:when>
|
9564
9774
|
<xsl:otherwise>
|
9565
9775
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
9776
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
9566
9777
|
<xsl:apply-templates/>
|
9567
9778
|
</fo:block>
|
9568
9779
|
</xsl:otherwise>
|
@@ -9577,7 +9788,7 @@
|
|
9577
9788
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
9578
9789
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
9579
9790
|
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
9580
|
-
</xsl:attribute-set>
|
9791
|
+
</xsl:attribute-set> <!-- quote-style -->
|
9581
9792
|
|
9582
9793
|
<xsl:template name="refine_quote-style">
|
9583
9794
|
</xsl:template>
|
@@ -9589,6 +9800,9 @@
|
|
9589
9800
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
9590
9801
|
</xsl:attribute-set>
|
9591
9802
|
|
9803
|
+
<xsl:template name="refine_quote-source-style">
|
9804
|
+
</xsl:template>
|
9805
|
+
|
9592
9806
|
<!-- ====== -->
|
9593
9807
|
<!-- quote -->
|
9594
9808
|
<!-- source -->
|
@@ -9617,6 +9831,7 @@
|
|
9617
9831
|
</fo:block-container>
|
9618
9832
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
9619
9833
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
9834
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
9620
9835
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
9621
9836
|
<xsl:apply-templates select="mn:author"/>
|
9622
9837
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -9679,6 +9894,9 @@
|
|
9679
9894
|
<xsl:attribute-set name="figure-style">
|
9680
9895
|
</xsl:attribute-set>
|
9681
9896
|
|
9897
|
+
<xsl:template name="refine_figure-style">
|
9898
|
+
</xsl:template>
|
9899
|
+
|
9682
9900
|
<xsl:attribute-set name="figure-name-style">
|
9683
9901
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9684
9902
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -9686,7 +9904,7 @@
|
|
9686
9904
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
9687
9905
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
9688
9906
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
9689
|
-
</xsl:attribute-set>
|
9907
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
9690
9908
|
|
9691
9909
|
<xsl:template name="refine_figure-name-style">
|
9692
9910
|
</xsl:template> <!-- refine_figure-name-style -->
|
@@ -9694,7 +9912,7 @@
|
|
9694
9912
|
<xsl:attribute-set name="image-style">
|
9695
9913
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
9696
9914
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9697
|
-
</xsl:attribute-set>
|
9915
|
+
</xsl:attribute-set> <!-- image-style -->
|
9698
9916
|
|
9699
9917
|
<xsl:template name="refine_image-style">
|
9700
9918
|
</xsl:template>
|
@@ -9705,7 +9923,10 @@
|
|
9705
9923
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
9706
9924
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
9707
9925
|
<xsl:attribute name="width">75%</xsl:attribute>
|
9708
|
-
</xsl:attribute-set>
|
9926
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
9927
|
+
|
9928
|
+
<xsl:template name="refine_image-graphic-style">
|
9929
|
+
</xsl:template>
|
9709
9930
|
|
9710
9931
|
<xsl:attribute-set name="figure-source-style">
|
9711
9932
|
<xsl:attribute name="font-size">6pt</xsl:attribute>
|
@@ -9713,9 +9934,45 @@
|
|
9713
9934
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
9714
9935
|
</xsl:attribute-set>
|
9715
9936
|
|
9937
|
+
<xsl:template name="refine_figure-source-style">
|
9938
|
+
</xsl:template>
|
9939
|
+
|
9716
9940
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
9717
9941
|
</xsl:attribute-set>
|
9718
9942
|
|
9943
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
9944
|
+
</xsl:template>
|
9945
|
+
|
9946
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
9947
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
9948
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
9949
|
+
|
9950
|
+
<xsl:template name="refine_figure-fn-number-style">
|
9951
|
+
</xsl:template>
|
9952
|
+
|
9953
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
9954
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
9955
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
9956
|
+
<xsl:attribute name="baseline-shift">65%</xsl:attribute>
|
9957
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
9958
|
+
|
9959
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
9960
|
+
</xsl:template>
|
9961
|
+
|
9962
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
9963
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
9964
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9965
|
+
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
9966
|
+
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
9967
|
+
</xsl:attribute-set>
|
9968
|
+
|
9969
|
+
<xsl:template name="refine_figure-fn-body-style">
|
9970
|
+
<xsl:variable name="key_iso">true
|
9971
|
+
</xsl:variable>
|
9972
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
9973
|
+
</xsl:if>
|
9974
|
+
</xsl:template>
|
9975
|
+
|
9719
9976
|
<!-- ============================ -->
|
9720
9977
|
<!-- figure's footnotes rendering -->
|
9721
9978
|
<!-- ============================ -->
|
@@ -9829,8 +10086,8 @@
|
|
9829
10086
|
</fo:table-cell>
|
9830
10087
|
<fo:table-cell>
|
9831
10088
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
9832
|
-
<xsl:
|
9833
|
-
|
10089
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
10090
|
+
|
9834
10091
|
<!-- <xsl:copy-of select="./node()"/> -->
|
9835
10092
|
<xsl:apply-templates/>
|
9836
10093
|
</fo:block>
|
@@ -9848,6 +10105,7 @@
|
|
9848
10105
|
<xsl:param name="process">false</xsl:param>
|
9849
10106
|
<xsl:if test="$process = 'true'">
|
9850
10107
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
10108
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
9851
10109
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
9852
10110
|
|
9853
10111
|
<!-- tab is padding-right -->
|
@@ -9886,6 +10144,7 @@
|
|
9886
10144
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
9887
10145
|
</xsl:if>
|
9888
10146
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
10147
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
9889
10148
|
<!-- <xsl:value-of select="@reference"/> -->
|
9890
10149
|
<xsl:apply-templates/>
|
9891
10150
|
</fo:inline>
|
@@ -9933,6 +10192,8 @@
|
|
9933
10192
|
|
9934
10193
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
9935
10194
|
|
10195
|
+
<xsl:call-template name="refine_figure-style"/>
|
10196
|
+
|
9936
10197
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
9937
10198
|
<xsl:call-template name="setIDforNamedDestination"/>
|
9938
10199
|
</xsl:for-each>
|
@@ -9976,6 +10237,7 @@
|
|
9976
10237
|
|
9977
10238
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
9978
10239
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
10240
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
9979
10241
|
<xsl:apply-templates/>
|
9980
10242
|
</fo:block>
|
9981
10243
|
</xsl:template>
|
@@ -9984,6 +10246,7 @@
|
|
9984
10246
|
<!-- figure/source -->
|
9985
10247
|
<xsl:template match="mn:figure/mn:fmt-source" priority="2">
|
9986
10248
|
<fo:block xsl:use-attribute-sets="figure-source-style">
|
10249
|
+
<xsl:call-template name="refine_figure-source-style"/>
|
9987
10250
|
<xsl:apply-templates/>
|
9988
10251
|
</fo:block>
|
9989
10252
|
|
@@ -10108,6 +10371,8 @@
|
|
10108
10371
|
</xsl:variable>
|
10109
10372
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
10110
10373
|
|
10374
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
10375
|
+
|
10111
10376
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
10112
10377
|
<xsl:variable name="scale">
|
10113
10378
|
<xsl:call-template name="getImageScale">
|
@@ -10807,6 +11072,9 @@
|
|
10807
11072
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10808
11073
|
</xsl:attribute-set> <!-- formula-style -->
|
10809
11074
|
|
11075
|
+
<xsl:template name="refine_formula-style">
|
11076
|
+
</xsl:template>
|
11077
|
+
|
10810
11078
|
<xsl:attribute-set name="formula-stem-block-style">
|
10811
11079
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
10812
11080
|
</xsl:attribute-set> <!-- formula-stem-block-style -->
|
@@ -10879,6 +11147,8 @@
|
|
10879
11147
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
10880
11148
|
<fo:block xsl:use-attribute-sets="formula-style">
|
10881
11149
|
|
11150
|
+
<xsl:call-template name="refine_formula-style"/>
|
11151
|
+
|
10882
11152
|
<fo:table table-layout="fixed" width="100%">
|
10883
11153
|
<fo:table-column column-width="95%"/>
|
10884
11154
|
<fo:table-column column-width="5%"/>
|
@@ -11302,6 +11572,9 @@
|
|
11302
11572
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
11303
11573
|
</xsl:attribute-set> <!-- list-name-style -->
|
11304
11574
|
|
11575
|
+
<xsl:template name="refine_list-name-style">
|
11576
|
+
</xsl:template>
|
11577
|
+
|
11305
11578
|
<xsl:attribute-set name="list-item-style">
|
11306
11579
|
</xsl:attribute-set>
|
11307
11580
|
|
@@ -11603,6 +11876,7 @@
|
|
11603
11876
|
<xsl:param name="process">false</xsl:param>
|
11604
11877
|
<xsl:if test="$process = 'true'">
|
11605
11878
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
11879
|
+
<xsl:call-template name="refine_list-name-style"/>
|
11606
11880
|
<xsl:apply-templates/>
|
11607
11881
|
</fo:block>
|
11608
11882
|
</xsl:if>
|
@@ -11663,28 +11937,49 @@
|
|
11663
11937
|
<!-- END Lists processing -->
|
11664
11938
|
<!-- ===================================== -->
|
11665
11939
|
|
11940
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
11941
|
+
</xsl:attribute-set>
|
11942
|
+
|
11943
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
11944
|
+
</xsl:template>
|
11945
|
+
|
11946
|
+
<xsl:attribute-set name="fn-container-body-style">
|
11947
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
11948
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
11949
|
+
</xsl:attribute-set>
|
11950
|
+
|
11951
|
+
<xsl:template name="refine_fn-container-body-style">
|
11952
|
+
</xsl:template>
|
11953
|
+
|
11666
11954
|
<xsl:attribute-set name="fn-reference-style">
|
11667
11955
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
11668
11956
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11669
|
-
|
11670
|
-
</xsl:attribute-set>
|
11957
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
11671
11958
|
|
11672
11959
|
<xsl:template name="refine_fn-reference-style">
|
11673
11960
|
<xsl:if test="ancestor::*[local-name()='table']">
|
11674
11961
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
11675
11962
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
11676
11963
|
</xsl:if>
|
11964
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11965
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
11677
11966
|
</xsl:template> <!-- refine_fn-reference-style -->
|
11678
11967
|
|
11679
11968
|
<xsl:attribute-set name="fn-style">
|
11680
11969
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11681
11970
|
</xsl:attribute-set>
|
11682
11971
|
|
11972
|
+
<xsl:template name="refine_fn-style">
|
11973
|
+
</xsl:template>
|
11974
|
+
|
11683
11975
|
<xsl:attribute-set name="fn-num-style">
|
11684
11976
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11685
11977
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
11686
11978
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
11687
|
-
</xsl:attribute-set>
|
11979
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
11980
|
+
|
11981
|
+
<xsl:template name="refine_fn-num-style">
|
11982
|
+
</xsl:template>
|
11688
11983
|
|
11689
11984
|
<xsl:attribute-set name="fn-body-style">
|
11690
11985
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -11693,7 +11988,7 @@
|
|
11693
11988
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
11694
11989
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
11695
11990
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
11696
|
-
</xsl:attribute-set>
|
11991
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
11697
11992
|
|
11698
11993
|
<xsl:template name="refine_fn-body-style">
|
11699
11994
|
</xsl:template> <!-- refine_fn-body-style -->
|
@@ -11757,10 +12052,12 @@
|
|
11757
12052
|
<xsl:choose>
|
11758
12053
|
<xsl:when test="ancestor::mn:bibitem">
|
11759
12054
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
12055
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
11760
12056
|
</fn_styles>
|
11761
12057
|
</xsl:when>
|
11762
12058
|
<xsl:otherwise>
|
11763
12059
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
12060
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
11764
12061
|
</fn_styles>
|
11765
12062
|
</xsl:otherwise>
|
11766
12063
|
</xsl:choose>
|
@@ -11770,9 +12067,12 @@
|
|
11770
12067
|
<xsl:copy-of select="."/>
|
11771
12068
|
</xsl:for-each>
|
11772
12069
|
|
11773
|
-
|
12070
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
12071
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
11774
12072
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
11775
|
-
</xsl:if>
|
12073
|
+
</xsl:if> -->
|
12074
|
+
|
12075
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
11776
12076
|
|
11777
12077
|
<xsl:call-template name="insert_basic_link">
|
11778
12078
|
<xsl:with-param name="element">
|
@@ -11795,10 +12095,12 @@
|
|
11795
12095
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
11796
12096
|
|
11797
12097
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
12098
|
+
<xsl:call-template name="refine_fn-style"/>
|
11798
12099
|
<xsl:copy-of select="$footnote_inline"/>
|
11799
12100
|
<fo:footnote-body role="Note">
|
11800
12101
|
|
11801
12102
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
12103
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
11802
12104
|
|
11803
12105
|
<xsl:variable name="fn_block">
|
11804
12106
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -11900,6 +12202,9 @@
|
|
11900
12202
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
11901
12203
|
</xsl:attribute-set> <!-- admonition-style -->
|
11902
12204
|
|
12205
|
+
<xsl:template name="refine_admonition-style">
|
12206
|
+
</xsl:template>
|
12207
|
+
|
11903
12208
|
<xsl:attribute-set name="admonition-container-style">
|
11904
12209
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
11905
12210
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -11908,12 +12213,22 @@
|
|
11908
12213
|
<xsl:attribute name="padding-top">2mm</xsl:attribute>
|
11909
12214
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
11910
12215
|
|
12216
|
+
<xsl:template name="refine_admonition-container-style">
|
12217
|
+
</xsl:template>
|
12218
|
+
|
11911
12219
|
<xsl:attribute-set name="admonition-name-style">
|
11912
12220
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
11913
12221
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
11914
12222
|
|
12223
|
+
<xsl:template name="refine_admonition-name-style">
|
12224
|
+
</xsl:template>
|
12225
|
+
|
11915
12226
|
<xsl:attribute-set name="admonition-p-style">
|
11916
12227
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
12228
|
+
|
12229
|
+
<xsl:template name="refine_admonition-p-style">
|
12230
|
+
</xsl:template>
|
12231
|
+
|
11917
12232
|
<!-- end admonition -->
|
11918
12233
|
|
11919
12234
|
<!-- ================ -->
|
@@ -11923,8 +12238,12 @@
|
|
11923
12238
|
<xsl:call-template name="setNamedDestination"/>
|
11924
12239
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
11925
12240
|
|
12241
|
+
<xsl:call-template name="refine_admonition-style"/>
|
12242
|
+
|
11926
12243
|
<xsl:call-template name="setBlockSpanAll"/>
|
11927
12244
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
12245
|
+
|
12246
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
11928
12247
|
<fo:block text-align="justify">
|
11929
12248
|
<fo:inline>
|
11930
12249
|
<xsl:call-template name="displayAdmonitionName"/>
|
@@ -11991,12 +12310,22 @@
|
|
11991
12310
|
<!-- END Admonition -->
|
11992
12311
|
<!-- ================ -->
|
11993
12312
|
|
12313
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
12314
|
+
</xsl:attribute-set>
|
12315
|
+
|
12316
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
12317
|
+
|
12318
|
+
</xsl:template>
|
12319
|
+
|
11994
12320
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
11995
12321
|
<xsl:attribute-set name="bibitem-normative-style">
|
11996
12322
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
11997
12323
|
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
11998
12324
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
11999
12325
|
|
12326
|
+
<xsl:template name="refine_bibitem-normative-style">
|
12327
|
+
</xsl:template>
|
12328
|
+
|
12000
12329
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
12001
12330
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
12002
12331
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -12005,9 +12334,15 @@
|
|
12005
12334
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
12006
12335
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
12007
12336
|
|
12337
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
12338
|
+
</xsl:template>
|
12339
|
+
|
12008
12340
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
12009
12341
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
12010
12342
|
|
12343
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
12344
|
+
</xsl:template>
|
12345
|
+
|
12011
12346
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
12012
12347
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
12013
12348
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -12016,19 +12351,31 @@
|
|
12016
12351
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
12017
12352
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
12018
12353
|
|
12354
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
12355
|
+
</xsl:template>
|
12356
|
+
|
12019
12357
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
12020
12358
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
12021
12359
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
12022
12360
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
12023
12361
|
</xsl:attribute-set>
|
12024
12362
|
|
12363
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
12364
|
+
</xsl:template>
|
12365
|
+
|
12025
12366
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
12026
12367
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
12027
12368
|
</xsl:attribute-set>
|
12028
12369
|
|
12370
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
12371
|
+
</xsl:template>
|
12372
|
+
|
12029
12373
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
12030
12374
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
12031
12375
|
|
12376
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
12377
|
+
</xsl:template>
|
12378
|
+
|
12032
12379
|
<!-- footnote reference number for bibitem, in the text -->
|
12033
12380
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
12034
12381
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -12037,6 +12384,9 @@
|
|
12037
12384
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
12038
12385
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
12039
12386
|
|
12387
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
12388
|
+
</xsl:template>
|
12389
|
+
|
12040
12390
|
<!-- footnote number on the page bottom -->
|
12041
12391
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
12042
12392
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -12056,6 +12406,9 @@
|
|
12056
12406
|
<xsl:attribute-set name="references-non-normative-style">
|
12057
12407
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
12058
12408
|
|
12409
|
+
<xsl:template name="refine_references-non-normative-style">
|
12410
|
+
</xsl:template>
|
12411
|
+
|
12059
12412
|
<!-- ======================= -->
|
12060
12413
|
<!-- Bibliography rendering -->
|
12061
12414
|
<!-- ======================= -->
|
@@ -12097,6 +12450,7 @@
|
|
12097
12450
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
12098
12451
|
|
12099
12452
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
12453
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
12100
12454
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
12101
12455
|
</fo:block>
|
12102
12456
|
<!-- horizontal line -->
|
@@ -12114,18 +12468,22 @@
|
|
12114
12468
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
12115
12469
|
<xsl:call-template name="setNamedDestination"/>
|
12116
12470
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
12471
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
12472
|
+
|
12117
12473
|
<xsl:call-template name="processBibitem"/>
|
12118
12474
|
</fo:block>
|
12119
12475
|
|
12120
12476
|
</xsl:template> <!-- bibitem -->
|
12121
12477
|
|
12122
12478
|
<!-- Bibliography (non-normative references) -->
|
12123
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
12479
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
12124
12480
|
<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
|
12125
12481
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
12126
12482
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
12127
12483
|
<xsl:call-template name="setNamedDestination"/>
|
12128
12484
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
12485
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
12486
|
+
|
12129
12487
|
<fo:list-item>
|
12130
12488
|
<fo:list-item-label end-indent="label-end()">
|
12131
12489
|
<fo:block role="SKIP">
|
@@ -12138,6 +12496,7 @@
|
|
12138
12496
|
</fo:list-item-label>
|
12139
12497
|
<fo:list-item-body start-indent="body-start()">
|
12140
12498
|
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
12499
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
12141
12500
|
<xsl:call-template name="processBibitem">
|
12142
12501
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
12143
12502
|
</xsl:call-template>
|
@@ -12148,12 +12507,17 @@
|
|
12148
12507
|
|
12149
12508
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
12150
12509
|
|
12510
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
12511
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
12512
|
+
|
12151
12513
|
<xsl:template name="insertListItem_Bibitem">
|
12152
12514
|
<xsl:choose>
|
12153
12515
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
12154
12516
|
<xsl:otherwise>
|
12155
12517
|
<xsl:call-template name="setNamedDestination"/>
|
12156
12518
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
12519
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
12520
|
+
|
12157
12521
|
<fo:list-item-label end-indent="label-end()">
|
12158
12522
|
<fo:block role="SKIP">
|
12159
12523
|
<fo:inline role="SKIP">
|
@@ -12164,16 +12528,18 @@
|
|
12164
12528
|
</fo:block>
|
12165
12529
|
</fo:list-item-label>
|
12166
12530
|
<fo:list-item-body start-indent="body-start()">
|
12167
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
12531
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
12532
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
12168
12533
|
<xsl:call-template name="processBibitem">
|
12169
12534
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
12170
12535
|
</xsl:call-template>
|
12171
12536
|
</fo:block>
|
12537
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
12172
12538
|
</fo:list-item-body>
|
12173
12539
|
</fo:list-item>
|
12174
12540
|
</xsl:otherwise>
|
12175
12541
|
</xsl:choose>
|
12176
|
-
<xsl:apply-templates select="following-sibling::*[
|
12542
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
12177
12543
|
<xsl:with-param name="skip">false</xsl:with-param>
|
12178
12544
|
</xsl:apply-templates>
|
12179
12545
|
</xsl:template>
|
@@ -12189,25 +12555,16 @@
|
|
12189
12555
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
12190
12556
|
</xsl:apply-templates>
|
12191
12557
|
<xsl:apply-templates select="mn:formattedref"/>
|
12558
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
12192
12559
|
<!-- end bibitem processing -->
|
12193
|
-
|
12194
|
-
<xsl:call-template name="processBibliographyNote"/>
|
12195
12560
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
12196
12561
|
|
12197
|
-
<xsl:template name="
|
12198
|
-
|
12199
|
-
|
12200
|
-
|
12201
|
-
<xsl:copy> <!-- skip @id -->
|
12202
|
-
<xsl:copy-of select="node()"/>
|
12203
|
-
</xsl:copy>
|
12204
|
-
</xsl:element>
|
12205
|
-
</xsl:variable>
|
12206
|
-
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
12207
|
-
<xsl:call-template name="note"/>
|
12208
|
-
</xsl:for-each> -->
|
12562
|
+
<xsl:template name="processBibitemFollowingNotes">
|
12563
|
+
<!-- current context is bibitem element -->
|
12564
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
12565
|
+
<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]]">
|
12209
12566
|
<xsl:call-template name="note"/>
|
12210
|
-
</xsl:
|
12567
|
+
</xsl:for-each>
|
12211
12568
|
</xsl:template>
|
12212
12569
|
|
12213
12570
|
<xsl:template match="mn:title" mode="title">
|
@@ -12410,14 +12767,20 @@
|
|
12410
12767
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
12411
12768
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
12412
12769
|
<xsl:attribute name="margin-bottom">84pt</xsl:attribute>
|
12413
|
-
</xsl:attribute-set>
|
12770
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
12771
|
+
|
12772
|
+
<xsl:template name="refine_indexsect-title-style">
|
12773
|
+
</xsl:template>
|
12414
12774
|
|
12415
12775
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
12416
12776
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
12417
12777
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
12418
12778
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
12419
12779
|
<xsl:attribute name="margin-bottom">3pt</xsl:attribute>
|
12420
|
-
</xsl:attribute-set>
|
12780
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
12781
|
+
|
12782
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
12783
|
+
</xsl:template>
|
12421
12784
|
<!-- End Index section styles -->
|
12422
12785
|
|
12423
12786
|
<!-- =================== -->
|
@@ -12611,6 +12974,7 @@
|
|
12611
12974
|
|
12612
12975
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
12613
12976
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
12977
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
12614
12978
|
<!-- Index -->
|
12615
12979
|
<xsl:apply-templates/>
|
12616
12980
|
</fo:block>
|
@@ -12619,6 +12983,7 @@
|
|
12619
12983
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
12620
12984
|
<!-- Letter A, B, C, ... -->
|
12621
12985
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
12986
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
12622
12987
|
<xsl:apply-templates/>
|
12623
12988
|
</fo:block>
|
12624
12989
|
</xsl:template>
|
@@ -12850,9 +13215,15 @@
|
|
12850
13215
|
<xsl:attribute name="leader-pattern">dots</xsl:attribute>
|
12851
13216
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
12852
13217
|
|
13218
|
+
<xsl:template name="refine_toc-leader-style">
|
13219
|
+
</xsl:template>
|
13220
|
+
|
12853
13221
|
<xsl:attribute-set name="toc-pagenumber-style">
|
12854
13222
|
</xsl:attribute-set>
|
12855
13223
|
|
13224
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
13225
|
+
</xsl:template>
|
13226
|
+
|
12856
13227
|
<!-- List of Figures, Tables -->
|
12857
13228
|
<xsl:attribute-set name="toc-listof-title-style">
|
12858
13229
|
</xsl:attribute-set>
|
@@ -12863,6 +13234,9 @@
|
|
12863
13234
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
12864
13235
|
</xsl:attribute-set>
|
12865
13236
|
|
13237
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
13238
|
+
</xsl:template>
|
13239
|
+
|
12866
13240
|
<xsl:attribute-set name="toc-listof-item-style">
|
12867
13241
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
12868
13242
|
<xsl:attribute name="text-align-last">justify</xsl:attribute>
|
@@ -12871,6 +13245,9 @@
|
|
12871
13245
|
<xsl:attribute name="text-indent">-8mm</xsl:attribute>
|
12872
13246
|
</xsl:attribute-set>
|
12873
13247
|
|
13248
|
+
<xsl:template name="refine_toc-listof-item-style">
|
13249
|
+
</xsl:template>
|
13250
|
+
|
12874
13251
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
12875
13252
|
<xsl:variable name="nodes_preface_">
|
12876
13253
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -13993,23 +14370,55 @@
|
|
13993
14370
|
<!-- Ruby text (CJK languages) rendering -->
|
13994
14371
|
<!-- ===================================== -->
|
13995
14372
|
<!-- ===================================== -->
|
14373
|
+
|
14374
|
+
<xsl:attribute-set name="ruby-style">
|
14375
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
14376
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
14377
|
+
</xsl:attribute-set>
|
14378
|
+
|
14379
|
+
<xsl:template name="refine_ruby-style">
|
14380
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
14381
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
14382
|
+
</xsl:if>
|
14383
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
14384
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
14385
|
+
<!-- Example: width="2em" -->
|
14386
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
14387
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
14388
|
+
<xsl:variable name="text_width">
|
14389
|
+
<xsl:choose>
|
14390
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
14391
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
14392
|
+
</xsl:choose>
|
14393
|
+
</xsl:variable>
|
14394
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
14395
|
+
</xsl:template> <!-- refine_ruby-style -->
|
14396
|
+
|
14397
|
+
<xsl:attribute-set name="rb-style">
|
14398
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
14399
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
14400
|
+
</xsl:attribute-set>
|
14401
|
+
|
14402
|
+
<xsl:template name="refine_rb-style">
|
14403
|
+
</xsl:template>
|
14404
|
+
|
14405
|
+
<xsl:attribute-set name="rt-style">
|
14406
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
14407
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
14408
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
14409
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
14410
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
14411
|
+
</xsl:attribute-set>
|
14412
|
+
|
14413
|
+
<xsl:template name="refine_rt-style">
|
14414
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
14415
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
14416
|
+
</xsl:if>
|
14417
|
+
</xsl:template>
|
14418
|
+
|
13996
14419
|
<xsl:template match="mn:ruby">
|
13997
|
-
<fo:inline-container
|
13998
|
-
<xsl:
|
13999
|
-
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
14000
|
-
</xsl:if>
|
14001
|
-
<xsl:variable name="rt_text" select="mn:rt"/>
|
14002
|
-
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
14003
|
-
<!-- Example: width="2em" -->
|
14004
|
-
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
14005
|
-
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
14006
|
-
<xsl:variable name="text_width">
|
14007
|
-
<xsl:choose>
|
14008
|
-
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
14009
|
-
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
14010
|
-
</xsl:choose>
|
14011
|
-
</xsl:variable>
|
14012
|
-
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
14420
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
14421
|
+
<xsl:call-template name="refine_ruby-style"/>
|
14013
14422
|
|
14014
14423
|
<xsl:choose>
|
14015
14424
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -14027,17 +14436,14 @@
|
|
14027
14436
|
</xsl:template>
|
14028
14437
|
|
14029
14438
|
<xsl:template match="mn:rb">
|
14030
|
-
<fo:block
|
14439
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
14031
14440
|
</xsl:template>
|
14032
14441
|
|
14033
14442
|
<xsl:template match="mn:rt">
|
14034
|
-
<fo:block
|
14035
|
-
<xsl:
|
14036
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
14037
|
-
</xsl:if>
|
14443
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
14444
|
+
<xsl:call-template name="refine_rt-style"/>
|
14038
14445
|
<xsl:apply-templates/>
|
14039
14446
|
</fo:block>
|
14040
|
-
|
14041
14447
|
</xsl:template>
|
14042
14448
|
|
14043
14449
|
<!-- ===================================== -->
|
@@ -14046,6 +14452,18 @@
|
|
14046
14452
|
<!-- ===================================== -->
|
14047
14453
|
<!-- ===================================== -->
|
14048
14454
|
|
14455
|
+
<xsl:attribute-set name="annex-title-style">
|
14456
|
+
</xsl:attribute-set>
|
14457
|
+
|
14458
|
+
<xsl:template name="refine_annex-title-style">
|
14459
|
+
</xsl:template>
|
14460
|
+
|
14461
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
14462
|
+
</xsl:attribute-set>
|
14463
|
+
|
14464
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
14465
|
+
</xsl:template>
|
14466
|
+
|
14049
14467
|
<xsl:template name="processPrefaceSectionsDefault">
|
14050
14468
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
14051
14469
|
<xsl:sort select="@displayorder" data-type="number"/>
|