metanorma-ribose 2.7.2 → 2.7.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/ribose/ribose.standard.xsl +578 -163
- data/lib/metanorma/ribose/isodoc.rng +19 -1
- data/lib/metanorma/ribose/version.rb +1 -1
- metadata +2 -2
@@ -1002,7 +1002,7 @@
|
|
1002
1002
|
</fo:inline>
|
1003
1003
|
</xsl:if>
|
1004
1004
|
|
1005
|
-
<fo:inline padding-right="4mm"><xsl:if test="self::mn:fmt-preferred"><xsl:call-template name="
|
1005
|
+
<fo:inline padding-right="4mm"><xsl:if test="self::mn:fmt-preferred"><xsl:call-template name="refine_preferred-term-style"/></xsl:if><xsl:apply-templates/></fo:inline>
|
1006
1006
|
|
1007
1007
|
<xsl:variable name="term_kind">
|
1008
1008
|
<xsl:choose>
|
@@ -2880,10 +2880,16 @@
|
|
2880
2880
|
<xsl:attribute-set name="license-statement-style">
|
2881
2881
|
</xsl:attribute-set> <!-- license-statement-style -->
|
2882
2882
|
|
2883
|
+
<xsl:template name="refine_license-statement-style">
|
2884
|
+
</xsl:template>
|
2885
|
+
|
2883
2886
|
<xsl:attribute-set name="license-statement-title-style">
|
2884
2887
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2885
2888
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
2886
2889
|
|
2890
|
+
<xsl:template name="refine_license-statement-title-style">
|
2891
|
+
</xsl:template>
|
2892
|
+
|
2887
2893
|
<xsl:attribute-set name="license-statement-p-style">
|
2888
2894
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
2889
2895
|
|
@@ -2894,6 +2900,9 @@
|
|
2894
2900
|
<xsl:attribute-set name="legal-statement-style">
|
2895
2901
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
2896
2902
|
|
2903
|
+
<xsl:template name="refine_legal-statement-style">
|
2904
|
+
</xsl:template>
|
2905
|
+
|
2897
2906
|
<xsl:attribute-set name="legal-statement-title-style">
|
2898
2907
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2899
2908
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -2901,19 +2910,40 @@
|
|
2901
2910
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2902
2911
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
2903
2912
|
|
2913
|
+
<xsl:template name="refine_legal-statement-title-style">
|
2914
|
+
</xsl:template>
|
2915
|
+
|
2904
2916
|
<xsl:attribute-set name="legal-statement-p-style">
|
2905
2917
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
2906
2918
|
|
2919
|
+
<xsl:template name="refine_legal-statement-p-style">
|
2920
|
+
<xsl:if test="@align">
|
2921
|
+
<xsl:attribute name="text-align">
|
2922
|
+
<xsl:value-of select="@align"/>
|
2923
|
+
</xsl:attribute>
|
2924
|
+
</xsl:if>
|
2925
|
+
</xsl:template>
|
2926
|
+
|
2907
2927
|
<xsl:attribute-set name="feedback-statement-style">
|
2908
2928
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
2909
2929
|
|
2930
|
+
<xsl:template name="refine_feedback-statement-style">
|
2931
|
+
</xsl:template>
|
2932
|
+
|
2910
2933
|
<xsl:attribute-set name="feedback-statement-title-style">
|
2911
2934
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2912
2935
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
2913
2936
|
|
2937
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
2938
|
+
|
2939
|
+
</xsl:template>
|
2940
|
+
|
2914
2941
|
<xsl:attribute-set name="feedback-statement-p-style">
|
2915
2942
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
2916
2943
|
|
2944
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
2945
|
+
</xsl:template>
|
2946
|
+
|
2917
2947
|
<!-- End boilerplate sections styles -->
|
2918
2948
|
|
2919
2949
|
<!-- ================================= -->
|
@@ -2939,6 +2969,7 @@
|
|
2939
2969
|
|
2940
2970
|
<xsl:template match="mn:license-statement">
|
2941
2971
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
2972
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
2942
2973
|
<xsl:apply-templates/>
|
2943
2974
|
</fo:block>
|
2944
2975
|
</xsl:template> <!-- license-statement -->
|
@@ -2956,6 +2987,7 @@
|
|
2956
2987
|
<xsl:template match="mn:legal-statement">
|
2957
2988
|
<xsl:param name="isLegacy">false</xsl:param>
|
2958
2989
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
2990
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
2959
2991
|
<xsl:apply-templates/>
|
2960
2992
|
</fo:block>
|
2961
2993
|
</xsl:template> <!-- legal-statement -->
|
@@ -3137,6 +3169,27 @@
|
|
3137
3169
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
3138
3170
|
</xsl:attribute-set>
|
3139
3171
|
|
3172
|
+
<xsl:template name="refine_sourcecode-container-style">
|
3173
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
3174
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3175
|
+
</xsl:if>
|
3176
|
+
|
3177
|
+
<xsl:if test="ancestor::mn:example">
|
3178
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3179
|
+
</xsl:if>
|
3180
|
+
|
3181
|
+
<xsl:copy-of select="@id"/>
|
3182
|
+
|
3183
|
+
<xsl:if test="parent::mn:note">
|
3184
|
+
<xsl:attribute name="margin-left">
|
3185
|
+
<xsl:choose>
|
3186
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3187
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3188
|
+
</xsl:choose>
|
3189
|
+
</xsl:attribute>
|
3190
|
+
</xsl:if>
|
3191
|
+
</xsl:template>
|
3192
|
+
|
3140
3193
|
<xsl:attribute-set name="sourcecode-style">
|
3141
3194
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
3142
3195
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -3177,6 +3230,9 @@
|
|
3177
3230
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3178
3231
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
3179
3232
|
|
3233
|
+
<xsl:template name="refine_sourcecode-name-style">
|
3234
|
+
</xsl:template>
|
3235
|
+
|
3180
3236
|
<xsl:template name="add-zero-spaces-equal">
|
3181
3237
|
<xsl:param name="text" select="."/>
|
3182
3238
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -3268,24 +3324,8 @@
|
|
3268
3324
|
<xsl:otherwise>
|
3269
3325
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
3270
3326
|
|
3271
|
-
<xsl:
|
3272
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3273
|
-
</xsl:if>
|
3274
|
-
|
3275
|
-
<xsl:if test="ancestor::mn:example">
|
3276
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3277
|
-
</xsl:if>
|
3327
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
3278
3328
|
|
3279
|
-
<xsl:copy-of select="@id"/>
|
3280
|
-
|
3281
|
-
<xsl:if test="parent::mn:note">
|
3282
|
-
<xsl:attribute name="margin-left">
|
3283
|
-
<xsl:choose>
|
3284
|
-
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3285
|
-
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3286
|
-
</xsl:choose>
|
3287
|
-
</xsl:attribute>
|
3288
|
-
</xsl:if>
|
3289
3329
|
<fo:block-container margin-left="0mm" role="SKIP">
|
3290
3330
|
<xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name BEFORE content -->
|
3291
3331
|
|
@@ -3612,6 +3652,7 @@
|
|
3612
3652
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
3613
3653
|
<xsl:if test="normalize-space() != ''">
|
3614
3654
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
3655
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
3615
3656
|
<xsl:apply-templates/>
|
3616
3657
|
</fo:block>
|
3617
3658
|
</xsl:if>
|
@@ -3660,12 +3701,35 @@
|
|
3660
3701
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
3661
3702
|
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3662
3703
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
3663
|
-
</xsl:attribute-set>
|
3704
|
+
</xsl:attribute-set> <!-- pre-style -->
|
3705
|
+
|
3706
|
+
<xsl:template name="refine_pre-style">
|
3707
|
+
</xsl:template>
|
3664
3708
|
|
3665
3709
|
<xsl:attribute-set name="tt-style">
|
3666
3710
|
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3667
3711
|
</xsl:attribute-set>
|
3668
3712
|
|
3713
|
+
<xsl:template name="refine_tt-style">
|
3714
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
3715
|
+
<xsl:choose>
|
3716
|
+
<xsl:when test="ancestor::mn:table">inherit</xsl:when>
|
3717
|
+
<xsl:otherwise>95%</xsl:otherwise> <!-- 110% -->
|
3718
|
+
</xsl:choose>
|
3719
|
+
</xsl:variable>
|
3720
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
3721
|
+
<xsl:if test="$font-size != ''">
|
3722
|
+
<xsl:attribute name="font-size">
|
3723
|
+
<xsl:choose>
|
3724
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
3725
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
3726
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
3727
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
3728
|
+
</xsl:choose>
|
3729
|
+
</xsl:attribute>
|
3730
|
+
</xsl:if>
|
3731
|
+
</xsl:template>
|
3732
|
+
|
3669
3733
|
<xsl:variable name="color-added-text">
|
3670
3734
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
3671
3735
|
</xsl:variable>
|
@@ -3678,9 +3742,14 @@
|
|
3678
3742
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
3679
3743
|
</xsl:attribute-set>
|
3680
3744
|
|
3745
|
+
<xsl:template name="refine_add-style">
|
3746
|
+
</xsl:template>
|
3747
|
+
|
3681
3748
|
<xsl:variable name="add-style">
|
3682
|
-
|
3683
|
-
|
3749
|
+
<add-style xsl:use-attribute-sets="add-style">
|
3750
|
+
<xsl:call-template name="refine_add-style"/>
|
3751
|
+
</add-style>
|
3752
|
+
</xsl:variable>
|
3684
3753
|
<xsl:template name="append_add-style">
|
3685
3754
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
3686
3755
|
</xsl:template>
|
@@ -3693,24 +3762,81 @@
|
|
3693
3762
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
3694
3763
|
</xsl:attribute-set>
|
3695
3764
|
|
3765
|
+
<xsl:template name="refine_del-style">
|
3766
|
+
</xsl:template>
|
3767
|
+
|
3768
|
+
<xsl:attribute-set name="strong-style">
|
3769
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3770
|
+
</xsl:attribute-set>
|
3771
|
+
|
3772
|
+
<xsl:template name="refine_strong_style">
|
3773
|
+
<xsl:if test="not(parent::mn:fmt-termsource)">
|
3774
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
3775
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
3776
|
+
</xsl:if>
|
3777
|
+
<xsl:if test="ancestor::*['preferred']">
|
3778
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
3779
|
+
</xsl:if>
|
3780
|
+
</xsl:template> <!-- refine_strong_style -->
|
3781
|
+
|
3782
|
+
<xsl:attribute-set name="em-style">
|
3783
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
3784
|
+
</xsl:attribute-set>
|
3785
|
+
|
3786
|
+
<xsl:template name="refine_em_style">
|
3787
|
+
</xsl:template> <!-- refine_em_style -->
|
3788
|
+
|
3789
|
+
<xsl:attribute-set name="sup-style">
|
3790
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
3791
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
3792
|
+
</xsl:attribute-set>
|
3793
|
+
|
3794
|
+
<xsl:template name="refine_sup-style">
|
3795
|
+
</xsl:template>
|
3796
|
+
|
3797
|
+
<xsl:attribute-set name="sub-style">
|
3798
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
3799
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
3800
|
+
</xsl:attribute-set>
|
3801
|
+
|
3802
|
+
<xsl:template name="refine_sub-style">
|
3803
|
+
</xsl:template>
|
3804
|
+
|
3805
|
+
<xsl:attribute-set name="underline-style">
|
3806
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
3807
|
+
</xsl:attribute-set>
|
3808
|
+
|
3809
|
+
<xsl:template name="refine_underline-style">
|
3810
|
+
</xsl:template>
|
3811
|
+
|
3812
|
+
<xsl:attribute-set name="hi-style">
|
3813
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
3814
|
+
</xsl:attribute-set>
|
3815
|
+
|
3816
|
+
<xsl:template name="refine_hi-style">
|
3817
|
+
</xsl:template>
|
3818
|
+
|
3819
|
+
<xsl:attribute-set name="strike-style">
|
3820
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
3821
|
+
</xsl:attribute-set>
|
3822
|
+
|
3823
|
+
<xsl:template name="refine_strike-style">
|
3824
|
+
</xsl:template>
|
3825
|
+
|
3696
3826
|
<xsl:template match="mn:br">
|
3697
3827
|
<xsl:value-of select="$linebreak"/>
|
3698
3828
|
</xsl:template>
|
3699
3829
|
|
3700
|
-
|
3701
|
-
<fo:inline
|
3702
|
-
<xsl:call-template name="
|
3830
|
+
<xsl:template match="mn:em">
|
3831
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
3832
|
+
<xsl:call-template name="refine_em_style"/>
|
3703
3833
|
<xsl:apply-templates/>
|
3704
3834
|
</fo:inline>
|
3705
3835
|
</xsl:template>
|
3706
3836
|
|
3707
|
-
<xsl:template name="refine_italic_style">
|
3708
|
-
</xsl:template>
|
3709
|
-
|
3710
3837
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
3711
3838
|
<xsl:param name="split_keep-within-line"/>
|
3712
|
-
<fo:inline
|
3713
|
-
|
3839
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
3714
3840
|
<xsl:call-template name="refine_strong_style"/>
|
3715
3841
|
|
3716
3842
|
<xsl:apply-templates>
|
@@ -3719,52 +3845,27 @@
|
|
3719
3845
|
</fo:inline>
|
3720
3846
|
</xsl:template>
|
3721
3847
|
|
3722
|
-
<xsl:template name="refine_strong_style">
|
3723
|
-
<xsl:if test="not(parent::mn:fmt-termsource)">
|
3724
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
3725
|
-
<xsl:attribute name="color">black</xsl:attribute>
|
3726
|
-
</xsl:if>
|
3727
|
-
<xsl:if test="ancestor::*['preferred']">
|
3728
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
3729
|
-
</xsl:if>
|
3730
|
-
</xsl:template>
|
3731
|
-
|
3732
3848
|
<xsl:template match="*[local-name()='padding']">
|
3733
3849
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
3734
3850
|
</xsl:template>
|
3735
3851
|
|
3736
3852
|
<xsl:template match="mn:sup">
|
3737
|
-
<fo:inline
|
3853
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
3854
|
+
<xsl:call-template name="refine_sup-style"/>
|
3738
3855
|
<xsl:apply-templates/>
|
3739
3856
|
</fo:inline>
|
3740
3857
|
</xsl:template>
|
3741
3858
|
|
3742
3859
|
<xsl:template match="mn:sub">
|
3743
|
-
<fo:inline
|
3860
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
3861
|
+
<xsl:call-template name="refine_sub-style"/>
|
3744
3862
|
<xsl:apply-templates/>
|
3745
3863
|
</fo:inline>
|
3746
3864
|
</xsl:template>
|
3747
3865
|
|
3748
3866
|
<xsl:template match="mn:tt">
|
3749
3867
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
3750
|
-
|
3751
|
-
<xsl:variable name="_font-size"> <!-- inherit -->
|
3752
|
-
<xsl:choose>
|
3753
|
-
<xsl:when test="ancestor::mn:table">inherit</xsl:when>
|
3754
|
-
<xsl:otherwise>95%</xsl:otherwise> <!-- 110% -->
|
3755
|
-
</xsl:choose>
|
3756
|
-
</xsl:variable>
|
3757
|
-
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
3758
|
-
<xsl:if test="$font-size != ''">
|
3759
|
-
<xsl:attribute name="font-size">
|
3760
|
-
<xsl:choose>
|
3761
|
-
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
3762
|
-
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
3763
|
-
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
3764
|
-
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
3765
|
-
</xsl:choose>
|
3766
|
-
</xsl:attribute>
|
3767
|
-
</xsl:if>
|
3868
|
+
<xsl:call-template name="refine_tt-style"/>
|
3768
3869
|
<xsl:apply-templates/>
|
3769
3870
|
</fo:inline>
|
3770
3871
|
</xsl:template> <!-- tt -->
|
@@ -3783,7 +3884,8 @@
|
|
3783
3884
|
</xsl:template>
|
3784
3885
|
|
3785
3886
|
<xsl:template match="mn:underline">
|
3786
|
-
<fo:inline
|
3887
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
3888
|
+
<xsl:call-template name="refine_underline-style"/>
|
3787
3889
|
<xsl:apply-templates/>
|
3788
3890
|
</fo:inline>
|
3789
3891
|
</xsl:template>
|
@@ -3941,6 +4043,7 @@
|
|
3941
4043
|
|
3942
4044
|
<xsl:template match="mn:del">
|
3943
4045
|
<fo:inline xsl:use-attribute-sets="del-style">
|
4046
|
+
<xsl:call-template name="refine_del-style"/>
|
3944
4047
|
<xsl:apply-templates/>
|
3945
4048
|
</fo:inline>
|
3946
4049
|
</xsl:template>
|
@@ -3950,7 +4053,8 @@
|
|
3950
4053
|
|
3951
4054
|
<!-- highlight text -->
|
3952
4055
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
3953
|
-
<fo:inline
|
4056
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
4057
|
+
<xsl:call-template name="refine_hi-style"/>
|
3954
4058
|
<xsl:apply-templates/>
|
3955
4059
|
</fo:inline>
|
3956
4060
|
</xsl:template>
|
@@ -4036,7 +4140,8 @@
|
|
4036
4140
|
</xsl:template>
|
4037
4141
|
|
4038
4142
|
<xsl:template match="mn:strike">
|
4039
|
-
<fo:inline
|
4143
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
4144
|
+
<xsl:call-template name="refine_strike-style"/>
|
4040
4145
|
<xsl:apply-templates/>
|
4041
4146
|
</fo:inline>
|
4042
4147
|
</xsl:template>
|
@@ -4116,6 +4221,7 @@
|
|
4116
4221
|
|
4117
4222
|
<xsl:template match="mn:pre" name="pre">
|
4118
4223
|
<fo:block xsl:use-attribute-sets="pre-style">
|
4224
|
+
<xsl:call-template name="refine_pre-style"/>
|
4119
4225
|
<xsl:copy-of select="@id"/>
|
4120
4226
|
<xsl:choose>
|
4121
4227
|
|
@@ -4146,22 +4252,40 @@
|
|
4146
4252
|
<xsl:attribute-set name="permission-style">
|
4147
4253
|
</xsl:attribute-set>
|
4148
4254
|
|
4255
|
+
<xsl:template name="refine_permission-style">
|
4256
|
+
</xsl:template>
|
4257
|
+
|
4149
4258
|
<xsl:attribute-set name="permission-name-style">
|
4150
4259
|
</xsl:attribute-set>
|
4151
4260
|
|
4261
|
+
<xsl:template name="refine_permission-name-style">
|
4262
|
+
</xsl:template>
|
4263
|
+
|
4152
4264
|
<xsl:attribute-set name="permission-label-style">
|
4153
4265
|
</xsl:attribute-set>
|
4154
4266
|
|
4267
|
+
<xsl:template name="refine_permission-label-style">
|
4268
|
+
</xsl:template>
|
4269
|
+
|
4155
4270
|
<xsl:attribute-set name="requirement-style">
|
4156
4271
|
</xsl:attribute-set>
|
4157
4272
|
|
4273
|
+
<xsl:template name="refine_requirement-style">
|
4274
|
+
</xsl:template>
|
4275
|
+
|
4158
4276
|
<xsl:attribute-set name="requirement-name-style">
|
4159
4277
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4160
4278
|
</xsl:attribute-set>
|
4161
4279
|
|
4280
|
+
<xsl:template name="refine_requirement-name-style">
|
4281
|
+
</xsl:template>
|
4282
|
+
|
4162
4283
|
<xsl:attribute-set name="requirement-label-style">
|
4163
4284
|
</xsl:attribute-set>
|
4164
4285
|
|
4286
|
+
<xsl:template name="refine_requirement-label-style">
|
4287
|
+
</xsl:template>
|
4288
|
+
|
4165
4289
|
<xsl:attribute-set name="subject-style">
|
4166
4290
|
</xsl:attribute-set>
|
4167
4291
|
|
@@ -4189,18 +4313,28 @@
|
|
4189
4313
|
<xsl:attribute-set name="recommendation-style">
|
4190
4314
|
</xsl:attribute-set>
|
4191
4315
|
|
4316
|
+
<xsl:template name="refine_recommendation-style">
|
4317
|
+
</xsl:template>
|
4318
|
+
|
4192
4319
|
<xsl:attribute-set name="recommendation-name-style">
|
4193
4320
|
</xsl:attribute-set>
|
4194
4321
|
|
4322
|
+
<xsl:template name="refine_recommendation-name-style">
|
4323
|
+
</xsl:template>
|
4324
|
+
|
4195
4325
|
<xsl:attribute-set name="recommendation-label-style">
|
4196
4326
|
</xsl:attribute-set>
|
4197
4327
|
|
4328
|
+
<xsl:template name="refine_recommendation-label-style">
|
4329
|
+
</xsl:template>
|
4330
|
+
|
4198
4331
|
<!-- ========== -->
|
4199
4332
|
<!-- permission -->
|
4200
4333
|
<!-- ========== -->
|
4201
4334
|
<xsl:template match="mn:permission">
|
4202
4335
|
<xsl:call-template name="setNamedDestination"/>
|
4203
4336
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
4337
|
+
<xsl:call-template name="refine_permission-style"/>
|
4204
4338
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4205
4339
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4206
4340
|
</fo:block>
|
@@ -4209,6 +4343,7 @@
|
|
4209
4343
|
<xsl:template match="mn:permission/mn:fmt-name">
|
4210
4344
|
<xsl:if test="normalize-space() != ''">
|
4211
4345
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
4346
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
4212
4347
|
<xsl:apply-templates/>
|
4213
4348
|
</fo:block>
|
4214
4349
|
</xsl:if>
|
@@ -4216,6 +4351,7 @@
|
|
4216
4351
|
|
4217
4352
|
<xsl:template match="mn:permission/mn:label">
|
4218
4353
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
4354
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
4219
4355
|
<xsl:apply-templates/>
|
4220
4356
|
</fo:block>
|
4221
4357
|
</xsl:template>
|
@@ -4228,6 +4364,7 @@
|
|
4228
4364
|
<xsl:template match="mn:requirement">
|
4229
4365
|
<xsl:call-template name="setNamedDestination"/>
|
4230
4366
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
4367
|
+
<xsl:call-template name="refine_requirement-style"/>
|
4231
4368
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4232
4369
|
<xsl:apply-templates select="mn:label"/>
|
4233
4370
|
<xsl:apply-templates select="@obligation"/>
|
@@ -4240,6 +4377,7 @@
|
|
4240
4377
|
<xsl:if test="normalize-space() != ''">
|
4241
4378
|
|
4242
4379
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
4380
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
4243
4381
|
<xsl:apply-templates/>
|
4244
4382
|
</fo:block>
|
4245
4383
|
</xsl:if>
|
@@ -4247,6 +4385,7 @@
|
|
4247
4385
|
|
4248
4386
|
<xsl:template match="mn:requirement/mn:label">
|
4249
4387
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
4388
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
4250
4389
|
<xsl:apply-templates/>
|
4251
4390
|
</fo:block>
|
4252
4391
|
</xsl:template>
|
@@ -4272,6 +4411,7 @@
|
|
4272
4411
|
<xsl:template match="mn:recommendation">
|
4273
4412
|
<xsl:call-template name="setNamedDestination"/>
|
4274
4413
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
4414
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
4275
4415
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4276
4416
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4277
4417
|
</fo:block>
|
@@ -4281,6 +4421,7 @@
|
|
4281
4421
|
<xsl:if test="normalize-space() != ''">
|
4282
4422
|
|
4283
4423
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
4424
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
4284
4425
|
<xsl:apply-templates/>
|
4285
4426
|
</fo:block>
|
4286
4427
|
</xsl:if>
|
@@ -4288,6 +4429,7 @@
|
|
4288
4429
|
|
4289
4430
|
<xsl:template match="mn:recommendation/mn:label">
|
4290
4431
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
4432
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
4291
4433
|
<xsl:apply-templates/>
|
4292
4434
|
</fo:block>
|
4293
4435
|
</xsl:template>
|
@@ -4468,41 +4610,71 @@
|
|
4468
4610
|
<xsl:attribute-set name="term-style">
|
4469
4611
|
</xsl:attribute-set> <!-- term-style -->
|
4470
4612
|
|
4613
|
+
<xsl:template name="refine_term-style">
|
4614
|
+
</xsl:template>
|
4615
|
+
|
4471
4616
|
<xsl:attribute-set name="term-name-style">
|
4472
4617
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4473
4618
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4474
4619
|
</xsl:attribute-set> <!-- term-name-style -->
|
4475
4620
|
|
4476
|
-
|
4621
|
+
<xsl:template name="refine_term-name-style">
|
4622
|
+
</xsl:template>
|
4623
|
+
|
4624
|
+
<xsl:attribute-set name="preferred-block-style">
|
4477
4625
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
4478
4626
|
|
4627
|
+
<xsl:template name="refine_preferred-block-style">
|
4628
|
+
</xsl:template>
|
4629
|
+
|
4479
4630
|
<xsl:attribute-set name="preferred-term-style">
|
4480
4631
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4481
4632
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4482
4633
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
4483
4634
|
|
4635
|
+
<xsl:template name="refine_preferred-term-style">
|
4636
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
4637
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
4638
|
+
|
4639
|
+
</xsl:template>
|
4640
|
+
|
4484
4641
|
<xsl:attribute-set name="domain-style">
|
4485
4642
|
</xsl:attribute-set> <!-- domain-style -->
|
4486
4643
|
|
4644
|
+
<xsl:template name="refine_domain-style">
|
4645
|
+
</xsl:template>
|
4646
|
+
|
4487
4647
|
<xsl:attribute-set name="admitted-style">
|
4488
4648
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4489
4649
|
<xsl:attribute name="color">black</xsl:attribute>
|
4490
4650
|
</xsl:attribute-set> <!-- admitted-style -->
|
4491
4651
|
|
4652
|
+
<xsl:template name="refine_admitted-style">
|
4653
|
+
</xsl:template>
|
4654
|
+
|
4492
4655
|
<xsl:attribute-set name="deprecates-style">
|
4493
4656
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4494
4657
|
<xsl:attribute name="color">black</xsl:attribute>
|
4495
4658
|
</xsl:attribute-set> <!-- deprecates-style -->
|
4496
4659
|
|
4660
|
+
<xsl:template name="refine_deprecates-style">
|
4661
|
+
</xsl:template>
|
4662
|
+
|
4497
4663
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
4498
4664
|
</xsl:attribute-set>
|
4499
4665
|
|
4666
|
+
<xsl:template name="refine_related-block-style">
|
4667
|
+
</xsl:template>
|
4668
|
+
|
4500
4669
|
<xsl:attribute-set name="definition-style">
|
4501
4670
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4502
4671
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
4503
4672
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
4504
4673
|
</xsl:attribute-set> <!-- definition-style -->
|
4505
4674
|
|
4675
|
+
<xsl:template name="refine_definition-style">
|
4676
|
+
</xsl:template>
|
4677
|
+
|
4506
4678
|
<xsl:attribute-set name="termsource-style">
|
4507
4679
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4508
4680
|
</xsl:attribute-set> <!-- termsource-style -->
|
@@ -4514,9 +4686,15 @@
|
|
4514
4686
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4515
4687
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
4516
4688
|
|
4689
|
+
<xsl:template name="refine_termsource-text-style">
|
4690
|
+
</xsl:template>
|
4691
|
+
|
4517
4692
|
<xsl:attribute-set name="origin-style">
|
4518
4693
|
</xsl:attribute-set> <!-- origin-style -->
|
4519
4694
|
|
4695
|
+
<xsl:template name="refine_origin-style">
|
4696
|
+
</xsl:template>
|
4697
|
+
|
4520
4698
|
<!-- ====== -->
|
4521
4699
|
<!-- term -->
|
4522
4700
|
<!-- ====== -->
|
@@ -4532,9 +4710,8 @@
|
|
4532
4710
|
<xsl:template match="mn:term">
|
4533
4711
|
<xsl:call-template name="setNamedDestination"/>
|
4534
4712
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
4713
|
+
<xsl:call-template name="refine_term-style"/>
|
4535
4714
|
|
4536
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
4537
|
-
</xsl:if>
|
4538
4715
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4539
4716
|
</fo:block>
|
4540
4717
|
</xsl:template>
|
@@ -4610,6 +4787,7 @@
|
|
4610
4787
|
<!-- text SOURCE: -->
|
4611
4788
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
4612
4789
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
4790
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
4613
4791
|
<xsl:value-of select="."/>
|
4614
4792
|
</fo:inline>
|
4615
4793
|
</xsl:template>
|
@@ -4622,6 +4800,7 @@
|
|
4622
4800
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4623
4801
|
</xsl:if>
|
4624
4802
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
4803
|
+
<xsl:call-template name="refine_origin-style"/>
|
4625
4804
|
<xsl:apply-templates/>
|
4626
4805
|
</fo:inline>
|
4627
4806
|
</fo:basic-link>
|
@@ -4671,9 +4850,12 @@
|
|
4671
4850
|
</xsl:variable>
|
4672
4851
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
4673
4852
|
|
4853
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
4854
|
+
|
4674
4855
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
4675
4856
|
|
4676
4857
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
4858
|
+
<xsl:call-template name="refine_term-name-style"/>
|
4677
4859
|
|
4678
4860
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
4679
4861
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -4684,7 +4866,7 @@
|
|
4684
4866
|
</xsl:if>
|
4685
4867
|
|
4686
4868
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
4687
|
-
<xsl:call-template name="
|
4869
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
4688
4870
|
|
4689
4871
|
<xsl:apply-templates/>
|
4690
4872
|
</fo:block>
|
@@ -4705,22 +4887,18 @@
|
|
4705
4887
|
|
4706
4888
|
<xsl:template match="mn:fmt-admitted">
|
4707
4889
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
4890
|
+
<xsl:call-template name="refine_admitted-style"/>
|
4708
4891
|
<xsl:apply-templates/>
|
4709
4892
|
</fo:block>
|
4710
4893
|
</xsl:template>
|
4711
4894
|
|
4712
4895
|
<xsl:template match="mn:fmt-deprecates">
|
4713
4896
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
4897
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
4714
4898
|
<xsl:apply-templates/>
|
4715
4899
|
</fo:block>
|
4716
4900
|
</xsl:template>
|
4717
4901
|
|
4718
|
-
<xsl:template name="setStyle_preferred">
|
4719
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
4720
|
-
<xsl:attribute name="color">black</xsl:attribute>
|
4721
|
-
|
4722
|
-
</xsl:template>
|
4723
|
-
|
4724
4902
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
4725
4903
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
4726
4904
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -4730,6 +4908,7 @@
|
|
4730
4908
|
|
4731
4909
|
<xsl:template match="mn:fmt-related">
|
4732
4910
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
4911
|
+
<xsl:call-template name="refine_related-block-style"/>
|
4733
4912
|
<xsl:apply-templates/>
|
4734
4913
|
</fo:block>
|
4735
4914
|
</xsl:template>
|
@@ -4744,6 +4923,7 @@
|
|
4744
4923
|
<!-- ========== -->
|
4745
4924
|
<xsl:template match="mn:fmt-definition">
|
4746
4925
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
4926
|
+
<xsl:call-template name="refine_definition-style"/>
|
4747
4927
|
<xsl:apply-templates/>
|
4748
4928
|
</fo:block>
|
4749
4929
|
</xsl:template>
|
@@ -4797,6 +4977,9 @@
|
|
4797
4977
|
<xsl:attribute-set name="example-body-style">
|
4798
4978
|
</xsl:attribute-set> <!-- example-body-style -->
|
4799
4979
|
|
4980
|
+
<xsl:template name="refine_example-body-style">
|
4981
|
+
</xsl:template>
|
4982
|
+
|
4800
4983
|
<xsl:attribute-set name="example-name-style">
|
4801
4984
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4802
4985
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
@@ -4845,6 +5028,8 @@
|
|
4845
5028
|
<xsl:when test="contains($element, 'block')">
|
4846
5029
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
4847
5030
|
|
5031
|
+
<xsl:call-template name="refine_example-p-style"/>
|
5032
|
+
|
4848
5033
|
<xsl:apply-templates/>
|
4849
5034
|
</fo:block>
|
4850
5035
|
</xsl:when>
|
@@ -4896,6 +5081,7 @@
|
|
4896
5081
|
</fo:block>
|
4897
5082
|
|
4898
5083
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5084
|
+
<xsl:call-template name="refine_example-body-style"/>
|
4899
5085
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
4900
5086
|
<xsl:variable name="example_body">
|
4901
5087
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -4958,6 +5144,7 @@
|
|
4958
5144
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
4959
5145
|
<!-- display further elements in blocks -->
|
4960
5146
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5147
|
+
<xsl:call-template name="refine_example-body-style"/>
|
4961
5148
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
4962
5149
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
4963
5150
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -5204,6 +5391,9 @@
|
|
5204
5391
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
5205
5392
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
5206
5393
|
|
5394
|
+
<xsl:template name="refine_table-fn-number-style">
|
5395
|
+
</xsl:template>
|
5396
|
+
|
5207
5397
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
5208
5398
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5209
5399
|
</xsl:attribute-set> <!-- table-fmt-fn-label-style -->
|
@@ -5211,30 +5401,12 @@
|
|
5211
5401
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
5212
5402
|
</xsl:template>
|
5213
5403
|
|
5214
|
-
<xsl:attribute-set name="fn-container-body-style">
|
5215
|
-
<xsl:attribute name="text-indent">0</xsl:attribute>
|
5216
|
-
<xsl:attribute name="start-indent">0</xsl:attribute>
|
5217
|
-
</xsl:attribute-set>
|
5218
|
-
|
5219
5404
|
<xsl:attribute-set name="table-fn-body-style">
|
5220
5405
|
</xsl:attribute-set>
|
5221
5406
|
|
5222
|
-
<xsl:
|
5223
|
-
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
5224
|
-
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
5225
|
-
|
5226
|
-
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
5227
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5228
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5229
|
-
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
5230
|
-
|
5231
|
-
<xsl:template name="refine_figure-fmt-fn-label-style">
|
5407
|
+
<xsl:template name="refine_table-fn-body-style">
|
5232
5408
|
</xsl:template>
|
5233
5409
|
|
5234
|
-
<xsl:attribute-set name="figure-fn-body-style">
|
5235
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
5236
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5237
|
-
</xsl:attribute-set>
|
5238
5410
|
<!-- ========================== -->
|
5239
5411
|
<!-- END Table styles -->
|
5240
5412
|
<!-- ========================== -->
|
@@ -6511,6 +6683,7 @@
|
|
6511
6683
|
</xsl:apply-templates>
|
6512
6684
|
|
6513
6685
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
6686
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
6514
6687
|
<!-- <xsl:copy-of select="./node()"/> -->
|
6515
6688
|
<xsl:apply-templates/>
|
6516
6689
|
</fo:inline>
|
@@ -6529,6 +6702,7 @@
|
|
6529
6702
|
<xsl:param name="process">false</xsl:param>
|
6530
6703
|
<xsl:if test="$process = 'true'">
|
6531
6704
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
6705
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
6532
6706
|
|
6533
6707
|
<!-- tab is padding-right -->
|
6534
6708
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -7400,10 +7574,19 @@
|
|
7400
7574
|
<xsl:attribute-set name="dl-block-style">
|
7401
7575
|
</xsl:attribute-set>
|
7402
7576
|
|
7577
|
+
<xsl:template name="refine_dl-block-style">
|
7578
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
7579
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
7580
|
+
</xsl:if>
|
7581
|
+
</xsl:template>
|
7582
|
+
|
7403
7583
|
<xsl:attribute-set name="dt-row-style">
|
7404
7584
|
<xsl:attribute name="min-height">7mm</xsl:attribute>
|
7405
7585
|
</xsl:attribute-set>
|
7406
7586
|
|
7587
|
+
<xsl:template name="refine_dt-row-style">
|
7588
|
+
</xsl:template>
|
7589
|
+
|
7407
7590
|
<xsl:attribute-set name="dt-cell-style">
|
7408
7591
|
</xsl:attribute-set>
|
7409
7592
|
|
@@ -7426,6 +7609,9 @@
|
|
7426
7609
|
<xsl:attribute name="color">black</xsl:attribute>
|
7427
7610
|
</xsl:attribute-set> <!-- dl-name-style -->
|
7428
7611
|
|
7612
|
+
<xsl:template name="refine_dl-name-style">
|
7613
|
+
</xsl:template>
|
7614
|
+
|
7429
7615
|
<xsl:attribute-set name="dd-cell-style">
|
7430
7616
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
7431
7617
|
</xsl:attribute-set>
|
@@ -7464,9 +7650,7 @@
|
|
7464
7650
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
7465
7651
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
7466
7652
|
|
7467
|
-
<xsl:
|
7468
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
7469
|
-
</xsl:if>
|
7653
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
7470
7654
|
|
7471
7655
|
<xsl:call-template name="setBlockSpanAll"/>
|
7472
7656
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -7762,6 +7946,8 @@
|
|
7762
7946
|
<xsl:if test="$process = 'true'">
|
7763
7947
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
7764
7948
|
|
7949
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
7950
|
+
|
7765
7951
|
<xsl:apply-templates/>
|
7766
7952
|
</fo:block>
|
7767
7953
|
</xsl:if>
|
@@ -7950,6 +8136,8 @@
|
|
7950
8136
|
<xsl:param name="split_keep-within-line"/>
|
7951
8137
|
|
7952
8138
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
8139
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
8140
|
+
|
7953
8141
|
<xsl:call-template name="insert_dt_cell">
|
7954
8142
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
7955
8143
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -8164,18 +8352,25 @@
|
|
8164
8352
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8165
8353
|
</xsl:attribute-set>
|
8166
8354
|
|
8355
|
+
<xsl:template name="refine_appendix-style">
|
8356
|
+
</xsl:template>
|
8357
|
+
|
8167
8358
|
<xsl:attribute-set name="appendix-example-style">
|
8168
8359
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
8169
8360
|
<xsl:attribute name="color">black</xsl:attribute>
|
8170
8361
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8171
8362
|
</xsl:attribute-set>
|
8172
8363
|
|
8364
|
+
<xsl:template name="refine_appendix-example-style">
|
8365
|
+
</xsl:template>
|
8366
|
+
|
8173
8367
|
<!-- ======================== -->
|
8174
8368
|
<!-- Appendix processing -->
|
8175
8369
|
<!-- ======================== -->
|
8176
8370
|
<xsl:template match="mn:appendix">
|
8177
8371
|
<xsl:call-template name="setNamedDestination"/>
|
8178
8372
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
8373
|
+
<xsl:call-template name="refine_appendix-style"/>
|
8179
8374
|
<xsl:apply-templates select="mn:fmt-title"/>
|
8180
8375
|
</fo:block>
|
8181
8376
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -8194,13 +8389,23 @@
|
|
8194
8389
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
8195
8390
|
<xsl:call-template name="setNamedDestination"/>
|
8196
8391
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
8392
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
8197
8393
|
<xsl:apply-templates select="mn:fmt-name"/>
|
8198
8394
|
</fo:block>
|
8199
8395
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
8200
8396
|
</xsl:template>
|
8201
8397
|
|
8202
8398
|
<xsl:attribute-set name="xref-style">
|
8203
|
-
</xsl:attribute-set>
|
8399
|
+
</xsl:attribute-set> <!-- xref-style -->
|
8400
|
+
|
8401
|
+
<xsl:template name="refine_xref-style">
|
8402
|
+
<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])">
|
8403
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
8404
|
+
</xsl:if>
|
8405
|
+
<xsl:if test="parent::mn:add">
|
8406
|
+
<xsl:call-template name="append_add-style"/>
|
8407
|
+
</xsl:if>
|
8408
|
+
</xsl:template> <!-- refine_xref-style -->
|
8204
8409
|
|
8205
8410
|
<xsl:template match="mn:fmt-xref">
|
8206
8411
|
<xsl:call-template name="insert_basic_link">
|
@@ -8209,12 +8414,8 @@
|
|
8209
8414
|
<xsl:call-template name="getAltText"/>
|
8210
8415
|
</xsl:variable>
|
8211
8416
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
|
8212
|
-
<xsl:
|
8213
|
-
|
8214
|
-
</xsl:if>
|
8215
|
-
<xsl:if test="parent::mn:add">
|
8216
|
-
<xsl:call-template name="append_add-style"/>
|
8217
|
-
</xsl:if>
|
8417
|
+
<xsl:call-template name="refine_xref-style"/>
|
8418
|
+
|
8218
8419
|
<xsl:apply-templates/>
|
8219
8420
|
</fo:basic-link>
|
8220
8421
|
</xsl:with-param>
|
@@ -8323,14 +8524,14 @@
|
|
8323
8524
|
<xsl:attribute-set name="note-style">
|
8324
8525
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8325
8526
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8326
|
-
</xsl:attribute-set>
|
8527
|
+
</xsl:attribute-set> <!-- note-style -->
|
8327
8528
|
|
8328
8529
|
<xsl:template name="refine_note-style">
|
8329
8530
|
<xsl:if test="ancestor::mn:ul or ancestor::mn:ol and not(ancestor::mn:note[1]/following-sibling::*)">
|
8330
8531
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
8331
8532
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
8332
8533
|
</xsl:if>
|
8333
|
-
</xsl:template>
|
8534
|
+
</xsl:template> <!-- refine_note-style -->
|
8334
8535
|
|
8335
8536
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
8336
8537
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
@@ -8339,7 +8540,7 @@
|
|
8339
8540
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8340
8541
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
8341
8542
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
8342
|
-
</xsl:attribute-set>
|
8543
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
8343
8544
|
|
8344
8545
|
<xsl:template name="refine_note-name-style">
|
8345
8546
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -8356,11 +8557,14 @@
|
|
8356
8557
|
<xsl:attribute-set name="note-p-style">
|
8357
8558
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8358
8559
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8359
|
-
</xsl:attribute-set>
|
8560
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
8561
|
+
|
8562
|
+
<xsl:template name="refine_note-p-style">
|
8563
|
+
</xsl:template>
|
8360
8564
|
|
8361
8565
|
<xsl:attribute-set name="termnote-style">
|
8362
8566
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
8363
|
-
</xsl:attribute-set>
|
8567
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
8364
8568
|
|
8365
8569
|
<xsl:template name="refine_termnote-style">
|
8366
8570
|
</xsl:template> <!-- refine_termnote-style -->
|
@@ -8369,7 +8573,7 @@
|
|
8369
8573
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8370
8574
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
8371
8575
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
8372
|
-
</xsl:attribute-set>
|
8576
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
8373
8577
|
|
8374
8578
|
<xsl:template name="refine_termnote-name-style">
|
8375
8579
|
</xsl:template>
|
@@ -8377,6 +8581,9 @@
|
|
8377
8581
|
<xsl:attribute-set name="termnote-p-style">
|
8378
8582
|
</xsl:attribute-set>
|
8379
8583
|
|
8584
|
+
<xsl:template name="refine_termnote-p-style">
|
8585
|
+
</xsl:template>
|
8586
|
+
|
8380
8587
|
<!-- ====== -->
|
8381
8588
|
<!-- note -->
|
8382
8589
|
<!-- termnote -->
|
@@ -8437,11 +8644,13 @@
|
|
8437
8644
|
<xsl:choose>
|
8438
8645
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
8439
8646
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8647
|
+
<xsl:call-template name="refine_note-p-style"/>
|
8440
8648
|
<xsl:apply-templates/>
|
8441
8649
|
</fo:inline>
|
8442
8650
|
</xsl:when>
|
8443
8651
|
<xsl:otherwise>
|
8444
8652
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8653
|
+
<xsl:call-template name="refine_note-p-style"/>
|
8445
8654
|
<xsl:apply-templates/>
|
8446
8655
|
</fo:block>
|
8447
8656
|
</xsl:otherwise>
|
@@ -8533,11 +8742,13 @@
|
|
8533
8742
|
<xsl:choose>
|
8534
8743
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
8535
8744
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
8745
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
8536
8746
|
<xsl:apply-templates/>
|
8537
8747
|
</fo:inline>
|
8538
8748
|
</xsl:when>
|
8539
8749
|
<xsl:otherwise>
|
8540
8750
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
8751
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
8541
8752
|
<xsl:apply-templates/>
|
8542
8753
|
</fo:block>
|
8543
8754
|
</xsl:otherwise>
|
@@ -8552,7 +8763,7 @@
|
|
8552
8763
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
8553
8764
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8554
8765
|
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
8555
|
-
</xsl:attribute-set>
|
8766
|
+
</xsl:attribute-set> <!-- quote-style -->
|
8556
8767
|
|
8557
8768
|
<xsl:template name="refine_quote-style">
|
8558
8769
|
</xsl:template>
|
@@ -8562,6 +8773,9 @@
|
|
8562
8773
|
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
8563
8774
|
</xsl:attribute-set>
|
8564
8775
|
|
8776
|
+
<xsl:template name="refine_quote-source-style">
|
8777
|
+
</xsl:template>
|
8778
|
+
|
8565
8779
|
<!-- ====== -->
|
8566
8780
|
<!-- quote -->
|
8567
8781
|
<!-- source -->
|
@@ -8590,6 +8804,7 @@
|
|
8590
8804
|
</fo:block-container>
|
8591
8805
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
8592
8806
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
8807
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
8593
8808
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
8594
8809
|
<xsl:apply-templates select="mn:author"/>
|
8595
8810
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -8659,6 +8874,9 @@
|
|
8659
8874
|
<xsl:attribute name="margin-bottom">3mm</xsl:attribute>
|
8660
8875
|
</xsl:attribute-set>
|
8661
8876
|
|
8877
|
+
<xsl:template name="refine_figure-style">
|
8878
|
+
</xsl:template>
|
8879
|
+
|
8662
8880
|
<xsl:attribute-set name="figure-name-style">
|
8663
8881
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
8664
8882
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
@@ -8668,7 +8886,7 @@
|
|
8668
8886
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8669
8887
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8670
8888
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
8671
|
-
</xsl:attribute-set>
|
8889
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
8672
8890
|
|
8673
8891
|
<xsl:template name="refine_figure-name-style">
|
8674
8892
|
</xsl:template> <!-- refine_figure-name-style -->
|
@@ -8676,7 +8894,7 @@
|
|
8676
8894
|
<xsl:attribute-set name="image-style">
|
8677
8895
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
8678
8896
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
8679
|
-
</xsl:attribute-set>
|
8897
|
+
</xsl:attribute-set> <!-- image-style -->
|
8680
8898
|
|
8681
8899
|
<xsl:template name="refine_image-style">
|
8682
8900
|
</xsl:template>
|
@@ -8686,14 +8904,51 @@
|
|
8686
8904
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
8687
8905
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
8688
8906
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
8689
|
-
</xsl:attribute-set>
|
8907
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
8908
|
+
|
8909
|
+
<xsl:template name="refine_image-graphic-style">
|
8910
|
+
</xsl:template>
|
8690
8911
|
|
8691
8912
|
<xsl:attribute-set name="figure-source-style">
|
8692
8913
|
</xsl:attribute-set>
|
8693
8914
|
|
8915
|
+
<xsl:template name="refine_figure-source-style">
|
8916
|
+
</xsl:template>
|
8917
|
+
|
8694
8918
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
8695
8919
|
</xsl:attribute-set>
|
8696
8920
|
|
8921
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
8922
|
+
</xsl:template>
|
8923
|
+
|
8924
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
8925
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
8926
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
8927
|
+
|
8928
|
+
<xsl:template name="refine_figure-fn-number-style">
|
8929
|
+
</xsl:template>
|
8930
|
+
|
8931
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
8932
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
8933
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
8934
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
8935
|
+
|
8936
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
8937
|
+
</xsl:template>
|
8938
|
+
|
8939
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
8940
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
8941
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8942
|
+
</xsl:attribute-set>
|
8943
|
+
|
8944
|
+
<xsl:template name="refine_figure-fn-body-style">
|
8945
|
+
<xsl:variable name="key_iso">
|
8946
|
+
</xsl:variable>
|
8947
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
8948
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
8949
|
+
</xsl:if>
|
8950
|
+
</xsl:template>
|
8951
|
+
|
8697
8952
|
<!-- ============================ -->
|
8698
8953
|
<!-- figure's footnotes rendering -->
|
8699
8954
|
<!-- ============================ -->
|
@@ -8806,9 +9061,8 @@
|
|
8806
9061
|
</fo:table-cell>
|
8807
9062
|
<fo:table-cell>
|
8808
9063
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
8809
|
-
<xsl:
|
8810
|
-
|
8811
|
-
</xsl:if>
|
9064
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
9065
|
+
|
8812
9066
|
<!-- <xsl:copy-of select="./node()"/> -->
|
8813
9067
|
<xsl:apply-templates/>
|
8814
9068
|
</fo:block>
|
@@ -8826,6 +9080,7 @@
|
|
8826
9080
|
<xsl:param name="process">false</xsl:param>
|
8827
9081
|
<xsl:if test="$process = 'true'">
|
8828
9082
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
9083
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
8829
9084
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
8830
9085
|
|
8831
9086
|
<!-- tab is padding-right -->
|
@@ -8863,6 +9118,7 @@
|
|
8863
9118
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
8864
9119
|
</xsl:if>
|
8865
9120
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
9121
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
8866
9122
|
<!-- <xsl:value-of select="@reference"/> -->
|
8867
9123
|
<xsl:apply-templates/>
|
8868
9124
|
</fo:inline>
|
@@ -8911,6 +9167,8 @@
|
|
8911
9167
|
|
8912
9168
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
8913
9169
|
|
9170
|
+
<xsl:call-template name="refine_figure-style"/>
|
9171
|
+
|
8914
9172
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
8915
9173
|
<xsl:call-template name="setIDforNamedDestination"/>
|
8916
9174
|
</xsl:for-each>
|
@@ -8953,6 +9211,7 @@
|
|
8953
9211
|
|
8954
9212
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
8955
9213
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
9214
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
8956
9215
|
<xsl:apply-templates/>
|
8957
9216
|
</fo:block>
|
8958
9217
|
</xsl:template>
|
@@ -9082,6 +9341,8 @@
|
|
9082
9341
|
</xsl:variable>
|
9083
9342
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
9084
9343
|
|
9344
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
9345
|
+
|
9085
9346
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
9086
9347
|
<xsl:variable name="scale">
|
9087
9348
|
<xsl:call-template name="getImageScale">
|
@@ -9781,6 +10042,9 @@
|
|
9781
10042
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9782
10043
|
</xsl:attribute-set> <!-- formula-style -->
|
9783
10044
|
|
10045
|
+
<xsl:template name="refine_formula-style">
|
10046
|
+
</xsl:template>
|
10047
|
+
|
9784
10048
|
<xsl:attribute-set name="formula-stem-block-style">
|
9785
10049
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9786
10050
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -9851,6 +10115,8 @@
|
|
9851
10115
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
9852
10116
|
<fo:block xsl:use-attribute-sets="formula-style">
|
9853
10117
|
|
10118
|
+
<xsl:call-template name="refine_formula-style"/>
|
10119
|
+
|
9854
10120
|
<fo:table table-layout="fixed" width="100%">
|
9855
10121
|
<fo:table-column column-width="95%"/>
|
9856
10122
|
<fo:table-column column-width="5%"/>
|
@@ -10271,6 +10537,9 @@
|
|
10271
10537
|
<xsl:attribute name="color">black</xsl:attribute>
|
10272
10538
|
</xsl:attribute-set> <!-- list-name-style -->
|
10273
10539
|
|
10540
|
+
<xsl:template name="refine_list-name-style">
|
10541
|
+
</xsl:template>
|
10542
|
+
|
10274
10543
|
<xsl:attribute-set name="list-item-style">
|
10275
10544
|
<xsl:attribute name="space-after">4pt</xsl:attribute>
|
10276
10545
|
</xsl:attribute-set>
|
@@ -10573,6 +10842,7 @@
|
|
10573
10842
|
<xsl:param name="process">false</xsl:param>
|
10574
10843
|
<xsl:if test="$process = 'true'">
|
10575
10844
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
10845
|
+
<xsl:call-template name="refine_list-name-style"/>
|
10576
10846
|
<xsl:apply-templates/>
|
10577
10847
|
</fo:block>
|
10578
10848
|
</xsl:if>
|
@@ -10633,27 +10903,48 @@
|
|
10633
10903
|
<!-- END Lists processing -->
|
10634
10904
|
<!-- ===================================== -->
|
10635
10905
|
|
10906
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
10907
|
+
</xsl:attribute-set>
|
10908
|
+
|
10909
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
10910
|
+
</xsl:template>
|
10911
|
+
|
10912
|
+
<xsl:attribute-set name="fn-container-body-style">
|
10913
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
10914
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
10915
|
+
</xsl:attribute-set>
|
10916
|
+
|
10917
|
+
<xsl:template name="refine_fn-container-body-style">
|
10918
|
+
</xsl:template>
|
10919
|
+
|
10636
10920
|
<xsl:attribute-set name="fn-reference-style">
|
10637
10921
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
10638
10922
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10639
10923
|
<xsl:attribute name="font-size">70%</xsl:attribute>
|
10640
10924
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10641
10925
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
10642
|
-
|
10643
|
-
</xsl:attribute-set>
|
10926
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
10644
10927
|
|
10645
10928
|
<xsl:template name="refine_fn-reference-style">
|
10929
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
10930
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
10646
10931
|
</xsl:template> <!-- refine_fn-reference-style -->
|
10647
10932
|
|
10648
10933
|
<xsl:attribute-set name="fn-style">
|
10649
10934
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10650
10935
|
</xsl:attribute-set>
|
10651
10936
|
|
10937
|
+
<xsl:template name="refine_fn-style">
|
10938
|
+
</xsl:template>
|
10939
|
+
|
10652
10940
|
<xsl:attribute-set name="fn-num-style">
|
10653
10941
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10654
10942
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
10655
10943
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10656
|
-
</xsl:attribute-set>
|
10944
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
10945
|
+
|
10946
|
+
<xsl:template name="refine_fn-num-style">
|
10947
|
+
</xsl:template>
|
10657
10948
|
|
10658
10949
|
<xsl:attribute-set name="fn-body-style">
|
10659
10950
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -10664,7 +10955,7 @@
|
|
10664
10955
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10665
10956
|
<xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
|
10666
10957
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
10667
|
-
</xsl:attribute-set>
|
10958
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
10668
10959
|
|
10669
10960
|
<xsl:template name="refine_fn-body-style">
|
10670
10961
|
</xsl:template> <!-- refine_fn-body-style -->
|
@@ -10728,10 +11019,12 @@
|
|
10728
11019
|
<xsl:choose>
|
10729
11020
|
<xsl:when test="ancestor::mn:bibitem">
|
10730
11021
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
11022
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
10731
11023
|
</fn_styles>
|
10732
11024
|
</xsl:when>
|
10733
11025
|
<xsl:otherwise>
|
10734
11026
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
11027
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
10735
11028
|
</fn_styles>
|
10736
11029
|
</xsl:otherwise>
|
10737
11030
|
</xsl:choose>
|
@@ -10741,9 +11034,12 @@
|
|
10741
11034
|
<xsl:copy-of select="."/>
|
10742
11035
|
</xsl:for-each>
|
10743
11036
|
|
10744
|
-
|
11037
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11038
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
10745
11039
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
10746
|
-
</xsl:if>
|
11040
|
+
</xsl:if> -->
|
11041
|
+
|
11042
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
10747
11043
|
|
10748
11044
|
<xsl:call-template name="insert_basic_link">
|
10749
11045
|
<xsl:with-param name="element">
|
@@ -10766,10 +11062,12 @@
|
|
10766
11062
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
10767
11063
|
|
10768
11064
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
11065
|
+
<xsl:call-template name="refine_fn-style"/>
|
10769
11066
|
<xsl:copy-of select="$footnote_inline"/>
|
10770
11067
|
<fo:footnote-body role="Note">
|
10771
11068
|
|
10772
11069
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
11070
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
10773
11071
|
|
10774
11072
|
<xsl:variable name="fn_block">
|
10775
11073
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -10871,6 +11169,9 @@
|
|
10871
11169
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10872
11170
|
</xsl:attribute-set> <!-- admonition-style -->
|
10873
11171
|
|
11172
|
+
<xsl:template name="refine_admonition-style">
|
11173
|
+
</xsl:template>
|
11174
|
+
|
10874
11175
|
<xsl:attribute-set name="admonition-container-style">
|
10875
11176
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
10876
11177
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -10878,6 +11179,9 @@
|
|
10878
11179
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
10879
11180
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
10880
11181
|
|
11182
|
+
<xsl:template name="refine_admonition-container-style">
|
11183
|
+
</xsl:template>
|
11184
|
+
|
10881
11185
|
<xsl:attribute-set name="admonition-name-style">
|
10882
11186
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
10883
11187
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -10887,9 +11191,16 @@
|
|
10887
11191
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
10888
11192
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
10889
11193
|
|
11194
|
+
<xsl:template name="refine_admonition-name-style">
|
11195
|
+
</xsl:template>
|
11196
|
+
|
10890
11197
|
<xsl:attribute-set name="admonition-p-style">
|
10891
11198
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
10892
11199
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
11200
|
+
|
11201
|
+
<xsl:template name="refine_admonition-p-style">
|
11202
|
+
</xsl:template>
|
11203
|
+
|
10893
11204
|
<!-- end admonition -->
|
10894
11205
|
|
10895
11206
|
<!-- ================ -->
|
@@ -10899,12 +11210,18 @@
|
|
10899
11210
|
<xsl:call-template name="setNamedDestination"/>
|
10900
11211
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
10901
11212
|
|
11213
|
+
<xsl:call-template name="refine_admonition-style"/>
|
11214
|
+
|
10902
11215
|
<xsl:call-template name="setBlockSpanAll"/>
|
10903
11216
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
11217
|
+
|
11218
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
10904
11219
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
11220
|
+
<xsl:call-template name="refine_admonition-name-style"/>
|
10905
11221
|
<xsl:call-template name="displayAdmonitionName"/>
|
10906
11222
|
</fo:block>
|
10907
11223
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11224
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
10908
11225
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
10909
11226
|
</fo:block>
|
10910
11227
|
|
@@ -10958,6 +11275,7 @@
|
|
10958
11275
|
|
10959
11276
|
<xsl:template match="mn:admonition/mn:p">
|
10960
11277
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11278
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
10961
11279
|
|
10962
11280
|
<xsl:apply-templates/>
|
10963
11281
|
</fo:block>
|
@@ -10967,12 +11285,22 @@
|
|
10967
11285
|
<!-- END Admonition -->
|
10968
11286
|
<!-- ================ -->
|
10969
11287
|
|
11288
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
11289
|
+
</xsl:attribute-set>
|
11290
|
+
|
11291
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
11292
|
+
|
11293
|
+
</xsl:template>
|
11294
|
+
|
10970
11295
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
10971
11296
|
<xsl:attribute-set name="bibitem-normative-style">
|
10972
11297
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10973
11298
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
10974
11299
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
10975
11300
|
|
11301
|
+
<xsl:template name="refine_bibitem-normative-style">
|
11302
|
+
</xsl:template>
|
11303
|
+
|
10976
11304
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
10977
11305
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
10978
11306
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -10981,9 +11309,15 @@
|
|
10981
11309
|
<xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
|
10982
11310
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
10983
11311
|
|
11312
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
11313
|
+
</xsl:template>
|
11314
|
+
|
10984
11315
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
10985
11316
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
10986
11317
|
|
11318
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
11319
|
+
</xsl:template>
|
11320
|
+
|
10987
11321
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
10988
11322
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
10989
11323
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -10992,18 +11326,30 @@
|
|
10992
11326
|
<xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
|
10993
11327
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
10994
11328
|
|
11329
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
11330
|
+
</xsl:template>
|
11331
|
+
|
10995
11332
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
10996
11333
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10997
11334
|
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
10998
11335
|
</xsl:attribute-set>
|
10999
11336
|
|
11337
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
11338
|
+
</xsl:template>
|
11339
|
+
|
11000
11340
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
11001
11341
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
11002
11342
|
</xsl:attribute-set>
|
11003
11343
|
|
11344
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
11345
|
+
</xsl:template>
|
11346
|
+
|
11004
11347
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
11005
11348
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
11006
11349
|
|
11350
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
11351
|
+
</xsl:template>
|
11352
|
+
|
11007
11353
|
<!-- footnote reference number for bibitem, in the text -->
|
11008
11354
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
11009
11355
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -11011,6 +11357,9 @@
|
|
11011
11357
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11012
11358
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
11013
11359
|
|
11360
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
11361
|
+
</xsl:template>
|
11362
|
+
|
11014
11363
|
<!-- footnote number on the page bottom -->
|
11015
11364
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
11016
11365
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -11029,6 +11378,9 @@
|
|
11029
11378
|
<xsl:attribute-set name="references-non-normative-style">
|
11030
11379
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
11031
11380
|
|
11381
|
+
<xsl:template name="refine_references-non-normative-style">
|
11382
|
+
</xsl:template>
|
11383
|
+
|
11032
11384
|
<!-- ======================= -->
|
11033
11385
|
<!-- Bibliography rendering -->
|
11034
11386
|
<!-- ======================= -->
|
@@ -11070,6 +11422,7 @@
|
|
11070
11422
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
11071
11423
|
|
11072
11424
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
11425
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
11073
11426
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
11074
11427
|
</fo:block>
|
11075
11428
|
</xsl:template> <!-- references -->
|
@@ -11083,16 +11436,19 @@
|
|
11083
11436
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11084
11437
|
<xsl:call-template name="setNamedDestination"/>
|
11085
11438
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
11439
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
11440
|
+
|
11086
11441
|
<xsl:call-template name="processBibitem"/>
|
11087
11442
|
</fo:block>
|
11088
11443
|
|
11089
11444
|
</xsl:template> <!-- bibitem -->
|
11090
11445
|
|
11091
11446
|
<!-- Bibliography (non-normative references) -->
|
11092
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
11447
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
11093
11448
|
<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 -->
|
11094
11449
|
<xsl:call-template name="setNamedDestination"/>
|
11095
11450
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
11451
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
11096
11452
|
<fo:list-item>
|
11097
11453
|
<fo:list-item-label end-indent="label-end()">
|
11098
11454
|
<fo:block>
|
@@ -11107,8 +11463,8 @@
|
|
11107
11463
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11108
11464
|
</xsl:apply-templates>
|
11109
11465
|
<xsl:apply-templates select="mn:formattedref"/>
|
11110
|
-
<xsl:call-template name="processBibliographyNote"/>
|
11111
11466
|
</fo:block>
|
11467
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11112
11468
|
</fo:list-item-body>
|
11113
11469
|
</fo:list-item>
|
11114
11470
|
</fo:list-block>
|
@@ -11116,12 +11472,17 @@
|
|
11116
11472
|
|
11117
11473
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
11118
11474
|
|
11475
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
11476
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
11477
|
+
|
11119
11478
|
<xsl:template name="insertListItem_Bibitem">
|
11120
11479
|
<xsl:choose>
|
11121
11480
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
11122
11481
|
<xsl:otherwise>
|
11123
11482
|
<xsl:call-template name="setNamedDestination"/>
|
11124
11483
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
11484
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
11485
|
+
|
11125
11486
|
<fo:list-item-label end-indent="label-end()">
|
11126
11487
|
<fo:block role="SKIP">
|
11127
11488
|
<fo:inline role="SKIP">
|
@@ -11132,16 +11493,18 @@
|
|
11132
11493
|
</fo:block>
|
11133
11494
|
</fo:list-item-label>
|
11134
11495
|
<fo:list-item-body start-indent="body-start()">
|
11135
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
11496
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
11497
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
11136
11498
|
<xsl:call-template name="processBibitem">
|
11137
11499
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11138
11500
|
</xsl:call-template>
|
11139
11501
|
</fo:block>
|
11502
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11140
11503
|
</fo:list-item-body>
|
11141
11504
|
</fo:list-item>
|
11142
11505
|
</xsl:otherwise>
|
11143
11506
|
</xsl:choose>
|
11144
|
-
<xsl:apply-templates select="following-sibling::*[
|
11507
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
11145
11508
|
<xsl:with-param name="skip">false</xsl:with-param>
|
11146
11509
|
</xsl:apply-templates>
|
11147
11510
|
</xsl:template>
|
@@ -11157,25 +11520,16 @@
|
|
11157
11520
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
11158
11521
|
</xsl:apply-templates>
|
11159
11522
|
<xsl:apply-templates select="mn:formattedref"/>
|
11523
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11160
11524
|
<!-- end bibitem processing -->
|
11161
|
-
|
11162
|
-
<xsl:call-template name="processBibliographyNote"/>
|
11163
11525
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11164
11526
|
|
11165
|
-
<xsl:template name="
|
11166
|
-
|
11167
|
-
|
11168
|
-
|
11169
|
-
<xsl:copy> <!-- skip @id -->
|
11170
|
-
<xsl:copy-of select="node()"/>
|
11171
|
-
</xsl:copy>
|
11172
|
-
</xsl:element>
|
11173
|
-
</xsl:variable>
|
11174
|
-
<!-- <xsl:for-each select="xalan:nodeset($note_node)//mn:note">
|
11175
|
-
<xsl:call-template name="note"/>
|
11176
|
-
</xsl:for-each> -->
|
11527
|
+
<xsl:template name="processBibitemFollowingNotes">
|
11528
|
+
<!-- current context is bibitem element -->
|
11529
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
11530
|
+
<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]]">
|
11177
11531
|
<xsl:call-template name="note"/>
|
11178
|
-
</xsl:
|
11532
|
+
</xsl:for-each>
|
11179
11533
|
</xsl:template>
|
11180
11534
|
|
11181
11535
|
<xsl:template match="mn:title" mode="title">
|
@@ -11375,11 +11729,17 @@
|
|
11375
11729
|
<!-- Index section styles -->
|
11376
11730
|
<xsl:attribute-set name="indexsect-title-style">
|
11377
11731
|
<xsl:attribute name="role">H1</xsl:attribute>
|
11378
|
-
</xsl:attribute-set>
|
11732
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
11733
|
+
|
11734
|
+
<xsl:template name="refine_indexsect-title-style">
|
11735
|
+
</xsl:template>
|
11379
11736
|
|
11380
11737
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
11381
11738
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
11382
|
-
</xsl:attribute-set>
|
11739
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
11740
|
+
|
11741
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
11742
|
+
</xsl:template>
|
11383
11743
|
<!-- End Index section styles -->
|
11384
11744
|
|
11385
11745
|
<!-- =================== -->
|
@@ -11573,6 +11933,7 @@
|
|
11573
11933
|
|
11574
11934
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
11575
11935
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
11936
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
11576
11937
|
<!-- Index -->
|
11577
11938
|
<xsl:apply-templates/>
|
11578
11939
|
</fo:block>
|
@@ -11581,6 +11942,7 @@
|
|
11581
11942
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
11582
11943
|
<!-- Letter A, B, C, ... -->
|
11583
11944
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
11945
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
11584
11946
|
<xsl:apply-templates/>
|
11585
11947
|
</fo:block>
|
11586
11948
|
</xsl:template>
|
@@ -11800,10 +12162,16 @@
|
|
11800
12162
|
<xsl:attribute name="rule-thickness">0.2mm</xsl:attribute>
|
11801
12163
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
11802
12164
|
|
12165
|
+
<xsl:template name="refine_toc-leader-style">
|
12166
|
+
</xsl:template>
|
12167
|
+
|
11803
12168
|
<xsl:attribute-set name="toc-pagenumber-style">
|
11804
12169
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
11805
12170
|
</xsl:attribute-set>
|
11806
12171
|
|
12172
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
12173
|
+
</xsl:template>
|
12174
|
+
|
11807
12175
|
<!-- List of Figures, Tables -->
|
11808
12176
|
<xsl:attribute-set name="toc-listof-title-style">
|
11809
12177
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
@@ -11820,6 +12188,9 @@
|
|
11820
12188
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
11821
12189
|
</xsl:attribute-set>
|
11822
12190
|
|
12191
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
12192
|
+
</xsl:template>
|
12193
|
+
|
11823
12194
|
<xsl:attribute-set name="toc-listof-item-style">
|
11824
12195
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
11825
12196
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
@@ -11827,6 +12198,9 @@
|
|
11827
12198
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
11828
12199
|
</xsl:attribute-set>
|
11829
12200
|
|
12201
|
+
<xsl:template name="refine_toc-listof-item-style">
|
12202
|
+
</xsl:template>
|
12203
|
+
|
11830
12204
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
11831
12205
|
<xsl:variable name="nodes_preface_">
|
11832
12206
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -12934,23 +13308,55 @@
|
|
12934
13308
|
<!-- Ruby text (CJK languages) rendering -->
|
12935
13309
|
<!-- ===================================== -->
|
12936
13310
|
<!-- ===================================== -->
|
13311
|
+
|
13312
|
+
<xsl:attribute-set name="ruby-style">
|
13313
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
13314
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
13315
|
+
</xsl:attribute-set>
|
13316
|
+
|
13317
|
+
<xsl:template name="refine_ruby-style">
|
13318
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
13319
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
13320
|
+
</xsl:if>
|
13321
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
13322
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
13323
|
+
<!-- Example: width="2em" -->
|
13324
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
13325
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
13326
|
+
<xsl:variable name="text_width">
|
13327
|
+
<xsl:choose>
|
13328
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
13329
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
13330
|
+
</xsl:choose>
|
13331
|
+
</xsl:variable>
|
13332
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
13333
|
+
</xsl:template> <!-- refine_ruby-style -->
|
13334
|
+
|
13335
|
+
<xsl:attribute-set name="rb-style">
|
13336
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
13337
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
13338
|
+
</xsl:attribute-set>
|
13339
|
+
|
13340
|
+
<xsl:template name="refine_rb-style">
|
13341
|
+
</xsl:template>
|
13342
|
+
|
13343
|
+
<xsl:attribute-set name="rt-style">
|
13344
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
13345
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
13346
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
13347
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
13348
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
13349
|
+
</xsl:attribute-set>
|
13350
|
+
|
13351
|
+
<xsl:template name="refine_rt-style">
|
13352
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
13353
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
13354
|
+
</xsl:if>
|
13355
|
+
</xsl:template>
|
13356
|
+
|
12937
13357
|
<xsl:template match="mn:ruby">
|
12938
|
-
<fo:inline-container
|
12939
|
-
<xsl:
|
12940
|
-
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
12941
|
-
</xsl:if>
|
12942
|
-
<xsl:variable name="rt_text" select="mn:rt"/>
|
12943
|
-
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
12944
|
-
<!-- Example: width="2em" -->
|
12945
|
-
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
12946
|
-
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
12947
|
-
<xsl:variable name="text_width">
|
12948
|
-
<xsl:choose>
|
12949
|
-
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
12950
|
-
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
12951
|
-
</xsl:choose>
|
12952
|
-
</xsl:variable>
|
12953
|
-
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
13358
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
13359
|
+
<xsl:call-template name="refine_ruby-style"/>
|
12954
13360
|
|
12955
13361
|
<xsl:choose>
|
12956
13362
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -12968,17 +13374,14 @@
|
|
12968
13374
|
</xsl:template>
|
12969
13375
|
|
12970
13376
|
<xsl:template match="mn:rb">
|
12971
|
-
<fo:block
|
13377
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
12972
13378
|
</xsl:template>
|
12973
13379
|
|
12974
13380
|
<xsl:template match="mn:rt">
|
12975
|
-
<fo:block
|
12976
|
-
<xsl:
|
12977
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
12978
|
-
</xsl:if>
|
13381
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
13382
|
+
<xsl:call-template name="refine_rt-style"/>
|
12979
13383
|
<xsl:apply-templates/>
|
12980
13384
|
</fo:block>
|
12981
|
-
|
12982
13385
|
</xsl:template>
|
12983
13386
|
|
12984
13387
|
<!-- ===================================== -->
|
@@ -12987,6 +13390,18 @@
|
|
12987
13390
|
<!-- ===================================== -->
|
12988
13391
|
<!-- ===================================== -->
|
12989
13392
|
|
13393
|
+
<xsl:attribute-set name="annex-title-style">
|
13394
|
+
</xsl:attribute-set>
|
13395
|
+
|
13396
|
+
<xsl:template name="refine_annex-title-style">
|
13397
|
+
</xsl:template>
|
13398
|
+
|
13399
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
13400
|
+
</xsl:attribute-set>
|
13401
|
+
|
13402
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
13403
|
+
</xsl:template>
|
13404
|
+
|
12990
13405
|
<xsl:template name="processPrefaceSectionsDefault">
|
12991
13406
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
12992
13407
|
<xsl:sort select="@displayorder" data-type="number"/>
|