metanorma-ribose 2.7.2 → 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/ribose/html/htmlstyle.css +24 -30
- data/lib/isodoc/ribose/ribose.standard.xsl +819 -252
- data/lib/metanorma/ribose/isodoc.rng +44 -19
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma.yml +4 -1
- metadata +2 -2
@@ -350,9 +350,13 @@
|
|
350
350
|
<xsl:variable name="toc_and_boilerplate">
|
351
351
|
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:clause[@type = 'toc']"/>
|
352
352
|
|
353
|
+
<!-- <xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:copyright-statement"/>
|
354
|
+
|
353
355
|
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement"/>
|
356
|
+
|
357
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:feedback-statement"/> -->
|
354
358
|
|
355
|
-
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate
|
359
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/*"/>
|
356
360
|
</xsl:variable>
|
357
361
|
|
358
362
|
<xsl:if test="normalize-space($toc_and_boilerplate) != ''">
|
@@ -388,9 +392,9 @@
|
|
388
392
|
<xsl:call-template name="insertHeaderFooter">
|
389
393
|
<xsl:with-param name="section">main</xsl:with-param>
|
390
394
|
</xsl:call-template>
|
391
|
-
<fo:flow flow-name="xsl-region-body">
|
395
|
+
<fo:flow flow-name="xsl-region-body" role="SKIP">
|
392
396
|
|
393
|
-
<fo:block line-height="130%">
|
397
|
+
<fo:block line-height="130%" role="SKIP">
|
394
398
|
|
395
399
|
<!-- <xsl:apply-templates select="/mn:metanorma/mn:preface/mn:abstract" />
|
396
400
|
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:foreword" />
|
@@ -410,6 +414,8 @@
|
|
410
414
|
</xsl:for-each>
|
411
415
|
</xsl:for-each>
|
412
416
|
|
417
|
+
<xsl:call-template name="back-page"/>
|
418
|
+
|
413
419
|
</fo:root>
|
414
420
|
</xsl:template>
|
415
421
|
|
@@ -500,9 +506,17 @@
|
|
500
506
|
<xsl:if test="string-length($title) > 80">
|
501
507
|
<xsl:attribute name="margin-right">-30mm</xsl:attribute>
|
502
508
|
</xsl:if>
|
503
|
-
|
504
|
-
|
505
|
-
|
509
|
+
|
510
|
+
<xsl:variable name="titles">
|
511
|
+
<xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and (@type = 'intro' or not(@type))]"/>
|
512
|
+
<xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and @type = 'main'][last()]"/>
|
513
|
+
</xsl:variable>
|
514
|
+
<xsl:for-each select="xalan:nodeset($titles)/mn:title">
|
515
|
+
<fo:block font-size="27pt" font-weight="bold" role="H1">
|
516
|
+
<xsl:apply-templates/><xsl:if test="position() != last()"><xsl:value-of select="$nonbreak_space_em_dash"/></xsl:if>
|
517
|
+
</fo:block>
|
518
|
+
</xsl:for-each>
|
519
|
+
|
506
520
|
<fo:block space-before="9pt" font-size="16.8pt" font-weight="600">
|
507
521
|
<xsl:value-of select="$docnumber_version"/>
|
508
522
|
</fo:block>
|
@@ -511,6 +525,9 @@
|
|
511
525
|
</fo:page-sequence>
|
512
526
|
</xsl:template> <!-- END: cover-page -->
|
513
527
|
|
528
|
+
<xsl:template name="back-page">
|
529
|
+
</xsl:template>
|
530
|
+
|
514
531
|
<xsl:template name="processPrefaceAndMainSectionsRibose_items">
|
515
532
|
<xsl:variable name="updated_xml_step_move_pagebreak">
|
516
533
|
|
@@ -598,12 +615,8 @@
|
|
598
615
|
</fo:block>
|
599
616
|
</xsl:template>
|
600
617
|
|
601
|
-
<xsl:template match="mn:title" mode="cover_page">
|
602
|
-
<xsl:apply-templates/>
|
603
|
-
</xsl:template>
|
604
|
-
|
605
618
|
<xsl:template match="mn:preface/mn:clause[@type = 'toc']" name="toc" priority="3">
|
606
|
-
<fo:block role="
|
619
|
+
<fo:block role="SKIP">
|
607
620
|
<xsl:apply-templates/>
|
608
621
|
|
609
622
|
<xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
|
@@ -611,7 +624,7 @@
|
|
611
624
|
<xsl:if test="$contents//mnx:item[@display = 'true']">
|
612
625
|
|
613
626
|
<fo:block-container xsl:use-attribute-sets="toc-style">
|
614
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
627
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
615
628
|
<xsl:for-each select="$contents//mnx:item[@display = 'true']">
|
616
629
|
<fo:block xsl:use-attribute-sets="toc-item-style">
|
617
630
|
|
@@ -744,18 +757,20 @@
|
|
744
757
|
<!-- ============================= -->
|
745
758
|
<!-- ============================= -->
|
746
759
|
|
760
|
+
<xsl:template match="mn:copyright-statement" priority="2"/>
|
761
|
+
|
762
|
+
<xsl:template match="mn:legal-statement" priority="2">
|
763
|
+
<xsl:apply-templates/>
|
764
|
+
</xsl:template>
|
765
|
+
|
747
766
|
<xsl:template match="mn:feedback-statement" priority="2">
|
748
|
-
<fo:block-container
|
767
|
+
<fo:block-container xsl:use-attribute-sets="feedback-statement-style">
|
749
768
|
<fo:block>
|
750
769
|
<xsl:apply-templates/>
|
751
770
|
</fo:block>
|
752
771
|
</fo:block-container>
|
753
772
|
</xsl:template>
|
754
773
|
|
755
|
-
<xsl:template match="mn:legal-statement" priority="2">
|
756
|
-
<xsl:apply-templates/>
|
757
|
-
</xsl:template>
|
758
|
-
|
759
774
|
<!-- ====== -->
|
760
775
|
<!-- title -->
|
761
776
|
<!-- ====== -->
|
@@ -843,20 +858,21 @@
|
|
843
858
|
|
844
859
|
<xsl:choose>
|
845
860
|
<xsl:when test="$level = 1">
|
846
|
-
<fo:block-container margin-left="-15mm">
|
847
|
-
<fo:block-container margin-left="0mm">
|
848
|
-
<fo:table width="100%" table-layout="fixed">
|
861
|
+
<fo:block-container margin-left="-15mm" role="SKIP">
|
862
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
863
|
+
<fo:table width="100%" table-layout="fixed" role="SKIP">
|
849
864
|
<fo:table-column column-width="15mm"/>
|
850
865
|
<fo:table-column column-width="150mm"/>
|
851
|
-
<fo:table-body>
|
852
|
-
<fo:table-row>
|
853
|
-
<fo:table-cell text-align="left">
|
854
|
-
<fo:block>
|
866
|
+
<fo:table-body role="SKIP">
|
867
|
+
<fo:table-row role="SKIP">
|
868
|
+
<fo:table-cell text-align="left" role="SKIP">
|
869
|
+
<fo:block role="SKIP">
|
870
|
+
<xsl:call-template name="setIDforNamedDestinationInline"/>
|
855
871
|
<xsl:call-template name="extractSection"/><!-- section number 1 2 3 ... -->
|
856
872
|
</fo:block>
|
857
873
|
</fo:table-cell>
|
858
|
-
<fo:table-cell>
|
859
|
-
<fo:block>
|
874
|
+
<fo:table-cell role="SKIP">
|
875
|
+
<fo:block role="SKIP">
|
860
876
|
<xsl:call-template name="extractTitle"/> <!-- section title -->
|
861
877
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
862
878
|
</fo:block>
|
@@ -868,6 +884,7 @@
|
|
868
884
|
</fo:block-container>
|
869
885
|
</xsl:when>
|
870
886
|
<xsl:otherwise>
|
887
|
+
<xsl:call-template name="setIDforNamedDestinationInline"/>
|
871
888
|
<xsl:apply-templates/>
|
872
889
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
873
890
|
</xsl:otherwise>
|
@@ -889,7 +906,9 @@
|
|
889
906
|
</xsl:template> -->
|
890
907
|
|
891
908
|
<xsl:template match="mn:terms" priority="3">
|
892
|
-
<
|
909
|
+
<xsl:if test="not(ancestor::*[@type = 'terms'])">
|
910
|
+
<fo:block break-after="page"/>
|
911
|
+
</xsl:if>
|
893
912
|
<fo:block id="{@id}">
|
894
913
|
<xsl:apply-templates/>
|
895
914
|
</fo:block>
|
@@ -907,6 +926,8 @@
|
|
907
926
|
<xsl:otherwise>fo:block</xsl:otherwise>
|
908
927
|
</xsl:choose>
|
909
928
|
</xsl:variable>
|
929
|
+
|
930
|
+
<xsl:call-template name="setNamedDestination"/>
|
910
931
|
<xsl:element name="{$element-name}">
|
911
932
|
<xsl:attribute name="id">
|
912
933
|
<xsl:value-of select="@id"/>
|
@@ -944,11 +965,11 @@
|
|
944
965
|
</xsl:template>
|
945
966
|
|
946
967
|
<xsl:template match="mn:ul | mn:ol" mode="list" priority="2">
|
947
|
-
<fo:block-container>
|
948
|
-
<fo:block-container margin-left="0mm">
|
968
|
+
<fo:block-container role="SKIP">
|
969
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
949
970
|
<xsl:choose>
|
950
971
|
<xsl:when test="not(ancestor::mn:ul) and not(ancestor::mn:ol)">
|
951
|
-
<fo:block padding-bottom="12pt" padding-top="4pt">
|
972
|
+
<fo:block padding-bottom="12pt" padding-top="4pt" role="SKIP">
|
952
973
|
<xsl:call-template name="listProcessing"/>
|
953
974
|
</fo:block>
|
954
975
|
</xsl:when>
|
@@ -982,27 +1003,16 @@
|
|
982
1003
|
</xsl:template>
|
983
1004
|
|
984
1005
|
<xsl:template match="mn:fmt-preferred | mn:fmt-deprecates | mn:fmt-admitted" priority="2">
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
<xsl:variable name="font-size">
|
989
|
-
<xsl:choose>
|
990
|
-
<xsl:when test="$level >= 2">13pt</xsl:when>
|
991
|
-
<xsl:otherwise>12pt</xsl:otherwise>
|
992
|
-
</xsl:choose>
|
993
|
-
</xsl:variable>
|
994
|
-
<xsl:variable name="levelTerm">
|
995
|
-
<xsl:call-template name="getLevelTermName"/>
|
996
|
-
</xsl:variable>
|
997
|
-
<fo:block font-weight="bold" color="black" font-size="{$font-size}" keep-with-next="always" role="H{$levelTerm}"> <!-- 600 - semibold -->
|
1006
|
+
|
1007
|
+
<fo:block xsl:use-attribute-sets="preferred-style">
|
1008
|
+
<xsl:call-template name="refine_preferred-style"/>
|
998
1009
|
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-name]">
|
999
|
-
<xsl:attribute name="space-before">11mm</xsl:attribute>
|
1000
1010
|
<fo:inline padding-right="1mm">
|
1001
1011
|
<xsl:apply-templates select="ancestor::mn:term[1]/mn:fmt-name"/>
|
1002
1012
|
</fo:inline>
|
1003
1013
|
</xsl:if>
|
1004
1014
|
|
1005
|
-
<fo:inline padding-right="4mm"><xsl:if test="self::mn:fmt-preferred"><xsl:call-template name="
|
1015
|
+
<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
1016
|
|
1007
1017
|
<xsl:variable name="term_kind">
|
1008
1018
|
<xsl:choose>
|
@@ -1030,52 +1040,54 @@
|
|
1030
1040
|
</fo:inline>
|
1031
1041
|
</fo:block>
|
1032
1042
|
</fo:inline-container>
|
1033
|
-
|
1034
1043
|
</fo:block>
|
1035
1044
|
</xsl:template>
|
1036
1045
|
|
1037
1046
|
<xsl:template match="mn:references[not(@normative='true')]" priority="3">
|
1038
1047
|
<fo:block break-after="page"/>
|
1039
|
-
<fo:block id="{@id}">
|
1040
|
-
<fo:table width="100%" table-layout="fixed">
|
1048
|
+
<fo:block id="{@id}" role="SKIP">
|
1049
|
+
<fo:table width="100%" table-layout="fixed" role="Sect">
|
1041
1050
|
<fo:table-column column-width="100%"/>
|
1042
|
-
<fo:table-header>
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1048
|
-
<xsl:attribute name="margin-bottom">16pt</xsl:attribute>
|
1049
|
-
<xsl:attribute name="color">black</xsl:attribute>
|
1050
|
-
<xsl:attribute name="line-height">125%</xsl:attribute>
|
1051
|
+
<fo:table-header role="SKIP">
|
1052
|
+
<!-- repeat table header on each page -->
|
1053
|
+
<fo:table-row role="SKIP">
|
1054
|
+
<fo:table-cell text-align="left" role="SKIP">
|
1055
|
+
<fo:block xsl:use-attribute-sets="references-non-normative-title-style"> <!-- Bibliography section title -->
|
1051
1056
|
<xsl:apply-templates select="mn:fmt-title/node()"/>
|
1052
1057
|
</fo:block>
|
1053
1058
|
</fo:table-cell>
|
1054
1059
|
</fo:table-row>
|
1055
1060
|
</fo:table-header>
|
1056
|
-
<fo:table-body>
|
1057
|
-
<fo:table-row>
|
1058
|
-
<fo:table-cell text-align="left">
|
1059
|
-
<fo:block>
|
1061
|
+
<fo:table-body role="SKIP">
|
1062
|
+
<fo:table-row role="SKIP">
|
1063
|
+
<fo:table-cell text-align="left" role="SKIP">
|
1064
|
+
<fo:block role="L">
|
1060
1065
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
1061
1066
|
</fo:block>
|
1062
1067
|
</fo:table-cell>
|
1063
1068
|
</fo:table-row>
|
1064
1069
|
</fo:table-body>
|
1065
1070
|
</fo:table>
|
1066
|
-
|
1067
1071
|
</fo:block>
|
1068
1072
|
</xsl:template>
|
1069
1073
|
|
1070
1074
|
<xsl:template match="*[self::mn:table or self::mn:figure or self::mn:sourcecode]/mn:fmt-name/node()[1][self::text()]" priority="2">
|
1075
|
+
<xsl:variable name="styles_">
|
1076
|
+
<xsl:choose>
|
1077
|
+
<xsl:when test="ancestor::mn:table"><styles xsl:use-attribute-sets="table-number-style"><xsl:call-template name="refine_table-number-style"/></styles></xsl:when>
|
1078
|
+
<xsl:when test="ancestor::mn:figure"><styles xsl:use-attribute-sets="figure-number-style"><xsl:call-template name="refine_figure-number-style"/></styles></xsl:when>
|
1079
|
+
<xsl:when test="ancestor::mn:sourcecode"><styles xsl:use-attribute-sets="sourcecode-number-style"><xsl:call-template name="refine_sourcecode-number-style"/></styles></xsl:when>
|
1080
|
+
</xsl:choose>
|
1081
|
+
</xsl:variable>
|
1082
|
+
<xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
|
1071
1083
|
<xsl:choose>
|
1072
1084
|
<xsl:when test="contains(., '—')">
|
1073
1085
|
<xsl:variable name="name_number" select="normalize-space(translate(substring-before(., '—'), ' ', ' '))"/>
|
1074
|
-
<fo:inline
|
1086
|
+
<fo:inline><xsl:copy-of select="$styles/styles/@*"/><xsl:value-of select="$name_number"/><xsl:text>:</xsl:text></fo:inline>
|
1075
1087
|
<xsl:value-of select="substring-after(., '—')"/>
|
1076
1088
|
</xsl:when>
|
1077
1089
|
<xsl:when test="starts-with(., 'Figure ') or starts-with(., 'Table ')">
|
1078
|
-
<fo:inline
|
1090
|
+
<fo:inline><xsl:copy-of select="$styles/styles/@*"/><xsl:value-of select="."/></fo:inline>
|
1079
1091
|
</xsl:when>
|
1080
1092
|
<xsl:otherwise>
|
1081
1093
|
<xsl:value-of select="."/>
|
@@ -1084,17 +1096,12 @@
|
|
1084
1096
|
</xsl:template>
|
1085
1097
|
|
1086
1098
|
<xsl:template match="mn:clause" priority="2">
|
1087
|
-
<xsl:
|
1088
|
-
<xsl:call-template name="
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
<xsl:if test="$level >= 4">
|
1094
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
1095
|
-
</xsl:if>
|
1096
|
-
<fo:block-container margin-left="0mm">
|
1097
|
-
<fo:block>
|
1099
|
+
<fo:block-container xsl:use-attribute-sets="clause-style">
|
1100
|
+
<xsl:call-template name="refine_clause-style"/>
|
1101
|
+
|
1102
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
1103
|
+
<xsl:call-template name="setNamedDestination"/>
|
1104
|
+
<fo:block role="SKIP">
|
1098
1105
|
<xsl:call-template name="setId"/>
|
1099
1106
|
<xsl:call-template name="addReviewHelper"/>
|
1100
1107
|
<xsl:apply-templates/>
|
@@ -1105,11 +1112,21 @@
|
|
1105
1112
|
|
1106
1113
|
<xsl:template name="insertHeaderFooter">
|
1107
1114
|
<xsl:param name="section"/>
|
1115
|
+
|
1116
|
+
<xsl:call-template name="insertHoneycomb">
|
1117
|
+
<xsl:with-param name="section" select="$section"/>
|
1118
|
+
</xsl:call-template>
|
1119
|
+
|
1120
|
+
<xsl:call-template name="insertFooter"/>
|
1121
|
+
</xsl:template>
|
1122
|
+
|
1123
|
+
<xsl:template name="insertHoneycomb">
|
1124
|
+
<xsl:param name="section"/>
|
1108
1125
|
<!-- LT - left top -->
|
1109
1126
|
<!-- RT - right top -->
|
1110
1127
|
<!-- LB - left bottom -->
|
1111
1128
|
<!-- RB - right bottom -->
|
1112
|
-
<xsl:variable name="width">170,26</xsl:variable>
|
1129
|
+
<!-- <xsl:variable name="width">170,26</xsl:variable> -->
|
1113
1130
|
<xsl:variable name="left_left">-28.02</xsl:variable>
|
1114
1131
|
<xsl:variable name="left_right">72</xsl:variable>
|
1115
1132
|
<xsl:variable name="top_top">-25.75</xsl:variable>
|
@@ -1201,19 +1218,36 @@
|
|
1201
1218
|
</fo:block>
|
1202
1219
|
</fo:block-container>
|
1203
1220
|
</fo:static-content>
|
1204
|
-
|
1205
|
-
<xsl:call-template name="insertFooter"/>
|
1206
1221
|
</xsl:template>
|
1207
1222
|
|
1208
1223
|
<xsl:template name="insertFooter">
|
1209
|
-
<xsl:param name="invert"/>
|
1224
|
+
<!-- <xsl:param name="invert"/> -->
|
1210
1225
|
<xsl:variable name="footerText">
|
1211
1226
|
<xsl:text>Ribose</xsl:text>
|
1212
1227
|
<xsl:text> </xsl:text>
|
1213
|
-
<xsl:call-template name="
|
1214
|
-
<xsl:with-param name="str"
|
1228
|
+
<xsl:call-template name="capitalizeWords">
|
1229
|
+
<xsl:with-param name="str">
|
1230
|
+
<xsl:choose>
|
1231
|
+
<xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:doctype-alias">
|
1232
|
+
<xsl:value-of select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:doctype-alias"/>
|
1233
|
+
</xsl:when>
|
1234
|
+
<xsl:otherwise>
|
1235
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:ext/mn:doctype"/>
|
1236
|
+
</xsl:otherwise>
|
1237
|
+
</xsl:choose>
|
1238
|
+
</xsl:with-param>
|
1215
1239
|
</xsl:call-template>
|
1216
1240
|
</xsl:variable>
|
1241
|
+
<xsl:call-template name="insertFooterOdd">
|
1242
|
+
<xsl:with-param name="footerText" select="$footerText"/>
|
1243
|
+
</xsl:call-template>
|
1244
|
+
<xsl:call-template name="insertFooterEven">
|
1245
|
+
<xsl:with-param name="footerText" select="$footerText"/>
|
1246
|
+
</xsl:call-template>
|
1247
|
+
</xsl:template>
|
1248
|
+
|
1249
|
+
<xsl:template name="insertFooterOdd">
|
1250
|
+
<xsl:param name="footerText"/>
|
1217
1251
|
<fo:static-content flow-name="footer-odd" role="artifact">
|
1218
1252
|
<fo:block-container font-size="8pt" height="100%" color="black">
|
1219
1253
|
<fo:block text-align-last="justify" margin-right="1mm">
|
@@ -1226,14 +1260,18 @@
|
|
1226
1260
|
</fo:block>
|
1227
1261
|
</fo:block-container>
|
1228
1262
|
</fo:static-content>
|
1263
|
+
</xsl:template>
|
1264
|
+
|
1265
|
+
<xsl:template name="insertFooterEven">
|
1266
|
+
<xsl:param name="footerText"/>
|
1229
1267
|
<fo:static-content flow-name="footer-even" role="artifact">
|
1230
1268
|
<fo:block-container font-size="8pt" height="100%" color="black">
|
1231
1269
|
<fo:block text-align-last="justify" margin-right="1mm">
|
1232
1270
|
<fo:inline padding-right="11mm"><fo:page-number/></fo:inline>
|
1233
1271
|
<fo:inline>
|
1234
|
-
<xsl:if test="$invert = 'true'">
|
1272
|
+
<!-- <xsl:if test="$invert = 'true'">
|
1235
1273
|
<xsl:attribute name="color">white</xsl:attribute>
|
1236
|
-
</xsl:if>
|
1274
|
+
</xsl:if> -->
|
1237
1275
|
<xsl:value-of select="$footerText"/>
|
1238
1276
|
</fo:inline>
|
1239
1277
|
<fo:inline keep-together.within-line="always">
|
@@ -1529,6 +1567,7 @@
|
|
1529
1567
|
<xsl:variable name="en_dash">–</xsl:variable>
|
1530
1568
|
<xsl:variable name="em_dash">—</xsl:variable>
|
1531
1569
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
1570
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
1532
1571
|
<xsl:variable name="cr"> </xsl:variable>
|
1533
1572
|
<xsl:variable name="lf">
|
1534
1573
|
</xsl:variable>
|
@@ -1614,11 +1653,12 @@
|
|
1614
1653
|
<xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable>
|
1615
1654
|
<xsl:variable name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable>
|
1616
1655
|
<xsl:attribute-set name="root-style">
|
1617
|
-
<xsl:attribute name="font-family">
|
1656
|
+
<xsl:attribute name="font-family">Open Sans, Source Sans 3, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
1618
1657
|
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
1619
1658
|
<xsl:attribute name="font-weight">300</xsl:attribute>
|
1620
1659
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1621
1660
|
<xsl:attribute name="color">rgb(88, 88, 90)</xsl:attribute>
|
1661
|
+
<xsl:attribute name="font-selection-strategy">character-by-character</xsl:attribute>
|
1622
1662
|
</xsl:attribute-set> <!-- root-style -->
|
1623
1663
|
|
1624
1664
|
<xsl:template name="insertRootStyle">
|
@@ -2073,6 +2113,7 @@
|
|
2073
2113
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
2074
2114
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
2075
2115
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2116
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2076
2117
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
2077
2118
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
2078
2119
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -2087,10 +2128,10 @@
|
|
2087
2128
|
|
2088
2129
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
2089
2130
|
|
2090
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
2131
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
2091
2132
|
<xsl:copy>
|
2092
2133
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
2093
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
2134
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
2094
2135
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
2095
2136
|
</xsl:copy>
|
2096
2137
|
</xsl:template>
|
@@ -2880,10 +2921,16 @@
|
|
2880
2921
|
<xsl:attribute-set name="license-statement-style">
|
2881
2922
|
</xsl:attribute-set> <!-- license-statement-style -->
|
2882
2923
|
|
2924
|
+
<xsl:template name="refine_license-statement-style">
|
2925
|
+
</xsl:template>
|
2926
|
+
|
2883
2927
|
<xsl:attribute-set name="license-statement-title-style">
|
2884
2928
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2885
2929
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
2886
2930
|
|
2931
|
+
<xsl:template name="refine_license-statement-title-style">
|
2932
|
+
</xsl:template>
|
2933
|
+
|
2887
2934
|
<xsl:attribute-set name="license-statement-p-style">
|
2888
2935
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
2889
2936
|
|
@@ -2894,6 +2941,9 @@
|
|
2894
2941
|
<xsl:attribute-set name="legal-statement-style">
|
2895
2942
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
2896
2943
|
|
2944
|
+
<xsl:template name="refine_legal-statement-style">
|
2945
|
+
</xsl:template>
|
2946
|
+
|
2897
2947
|
<xsl:attribute-set name="legal-statement-title-style">
|
2898
2948
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2899
2949
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -2901,19 +2951,43 @@
|
|
2901
2951
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2902
2952
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
2903
2953
|
|
2954
|
+
<xsl:template name="refine_legal-statement-title-style">
|
2955
|
+
</xsl:template>
|
2956
|
+
|
2904
2957
|
<xsl:attribute-set name="legal-statement-p-style">
|
2905
2958
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
2906
2959
|
|
2960
|
+
<xsl:template name="refine_legal-statement-p-style">
|
2961
|
+
<xsl:if test="@align">
|
2962
|
+
<xsl:attribute name="text-align">
|
2963
|
+
<xsl:value-of select="@align"/>
|
2964
|
+
</xsl:attribute>
|
2965
|
+
</xsl:if>
|
2966
|
+
</xsl:template>
|
2967
|
+
|
2907
2968
|
<xsl:attribute-set name="feedback-statement-style">
|
2969
|
+
<xsl:attribute name="border">1pt solid black</xsl:attribute>
|
2970
|
+
<xsl:attribute name="padding">1mm</xsl:attribute>
|
2971
|
+
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
2908
2972
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
2909
2973
|
|
2974
|
+
<xsl:template name="refine_feedback-statement-style">
|
2975
|
+
</xsl:template>
|
2976
|
+
|
2910
2977
|
<xsl:attribute-set name="feedback-statement-title-style">
|
2911
2978
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2912
2979
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
2913
2980
|
|
2981
|
+
<xsl:template name="refine_feedback-statement-title-style">
|
2982
|
+
|
2983
|
+
</xsl:template>
|
2984
|
+
|
2914
2985
|
<xsl:attribute-set name="feedback-statement-p-style">
|
2915
2986
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
2916
2987
|
|
2988
|
+
<xsl:template name="refine_feedback-statement-p-style">
|
2989
|
+
</xsl:template>
|
2990
|
+
|
2917
2991
|
<!-- End boilerplate sections styles -->
|
2918
2992
|
|
2919
2993
|
<!-- ================================= -->
|
@@ -2939,6 +3013,7 @@
|
|
2939
3013
|
|
2940
3014
|
<xsl:template match="mn:license-statement">
|
2941
3015
|
<fo:block xsl:use-attribute-sets="license-statement-style">
|
3016
|
+
<xsl:call-template name="refine_license-statement-style"/>
|
2942
3017
|
<xsl:apply-templates/>
|
2943
3018
|
</fo:block>
|
2944
3019
|
</xsl:template> <!-- license-statement -->
|
@@ -2956,6 +3031,7 @@
|
|
2956
3031
|
<xsl:template match="mn:legal-statement">
|
2957
3032
|
<xsl:param name="isLegacy">false</xsl:param>
|
2958
3033
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
3034
|
+
<xsl:call-template name="refine_legal-statement-style"/>
|
2959
3035
|
<xsl:apply-templates/>
|
2960
3036
|
</fo:block>
|
2961
3037
|
</xsl:template> <!-- legal-statement -->
|
@@ -3137,13 +3213,33 @@
|
|
3137
3213
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
3138
3214
|
</xsl:attribute-set>
|
3139
3215
|
|
3216
|
+
<xsl:template name="refine_sourcecode-container-style">
|
3217
|
+
<xsl:if test="not(ancestor::mn:li) or ancestor::mn:example">
|
3218
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3219
|
+
</xsl:if>
|
3220
|
+
|
3221
|
+
<xsl:if test="ancestor::mn:example">
|
3222
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3223
|
+
</xsl:if>
|
3224
|
+
|
3225
|
+
<xsl:copy-of select="@id"/>
|
3226
|
+
|
3227
|
+
<xsl:if test="parent::mn:note">
|
3228
|
+
<xsl:attribute name="margin-left">
|
3229
|
+
<xsl:choose>
|
3230
|
+
<xsl:when test="not(ancestor::mn:table)"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
3231
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
3232
|
+
</xsl:choose>
|
3233
|
+
</xsl:attribute>
|
3234
|
+
</xsl:if>
|
3235
|
+
</xsl:template>
|
3236
|
+
|
3140
3237
|
<xsl:attribute-set name="sourcecode-style">
|
3141
3238
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
3142
3239
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
3143
3240
|
<xsl:attribute name="role">Code</xsl:attribute>
|
3144
3241
|
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3145
3242
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
3146
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3147
3243
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
3148
3244
|
</xsl:attribute-set> <!-- sourcecode-style -->
|
3149
3245
|
|
@@ -3162,6 +3258,16 @@
|
|
3162
3258
|
</xsl:if>
|
3163
3259
|
</xsl:template> <!-- refine_sourcecode-style -->
|
3164
3260
|
|
3261
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
3262
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3263
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
3264
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
3265
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
3266
|
+
</xsl:attribute-set>
|
3267
|
+
|
3268
|
+
<xsl:template name="refine_sourcecode-number-style">
|
3269
|
+
</xsl:template>
|
3270
|
+
|
3165
3271
|
<xsl:attribute-set name="sourcecode-name-style">
|
3166
3272
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
3167
3273
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -3177,6 +3283,9 @@
|
|
3177
3283
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3178
3284
|
</xsl:attribute-set> <!-- sourcecode-name-style -->
|
3179
3285
|
|
3286
|
+
<xsl:template name="refine_sourcecode-name-style">
|
3287
|
+
</xsl:template>
|
3288
|
+
|
3180
3289
|
<xsl:template name="add-zero-spaces-equal">
|
3181
3290
|
<xsl:param name="text" select="."/>
|
3182
3291
|
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
|
@@ -3268,24 +3377,8 @@
|
|
3268
3377
|
<xsl:otherwise>
|
3269
3378
|
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
3270
3379
|
|
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>
|
3278
|
-
|
3279
|
-
<xsl:copy-of select="@id"/>
|
3380
|
+
<xsl:call-template name="refine_sourcecode-container-style"/>
|
3280
3381
|
|
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
3382
|
<fo:block-container margin-left="0mm" role="SKIP">
|
3290
3383
|
<xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name BEFORE content -->
|
3291
3384
|
|
@@ -3612,6 +3705,7 @@
|
|
3612
3705
|
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
3613
3706
|
<xsl:if test="normalize-space() != ''">
|
3614
3707
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
3708
|
+
<xsl:call-template name="refine_sourcecode-name-style"/>
|
3615
3709
|
<xsl:apply-templates/>
|
3616
3710
|
</fo:block>
|
3617
3711
|
</xsl:if>
|
@@ -3660,12 +3754,35 @@
|
|
3660
3754
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
3661
3755
|
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3662
3756
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
3663
|
-
</xsl:attribute-set>
|
3757
|
+
</xsl:attribute-set> <!-- pre-style -->
|
3758
|
+
|
3759
|
+
<xsl:template name="refine_pre-style">
|
3760
|
+
</xsl:template>
|
3664
3761
|
|
3665
3762
|
<xsl:attribute-set name="tt-style">
|
3666
3763
|
<xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
3667
3764
|
</xsl:attribute-set>
|
3668
3765
|
|
3766
|
+
<xsl:template name="refine_tt-style">
|
3767
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
3768
|
+
<xsl:choose>
|
3769
|
+
<xsl:when test="ancestor::mn:table">inherit</xsl:when>
|
3770
|
+
<xsl:otherwise>95%</xsl:otherwise> <!-- 110% -->
|
3771
|
+
</xsl:choose>
|
3772
|
+
</xsl:variable>
|
3773
|
+
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
3774
|
+
<xsl:if test="$font-size != ''">
|
3775
|
+
<xsl:attribute name="font-size">
|
3776
|
+
<xsl:choose>
|
3777
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
3778
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
3779
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
3780
|
+
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
3781
|
+
</xsl:choose>
|
3782
|
+
</xsl:attribute>
|
3783
|
+
</xsl:if>
|
3784
|
+
</xsl:template>
|
3785
|
+
|
3669
3786
|
<xsl:variable name="color-added-text">
|
3670
3787
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
3671
3788
|
</xsl:variable>
|
@@ -3678,9 +3795,14 @@
|
|
3678
3795
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
3679
3796
|
</xsl:attribute-set>
|
3680
3797
|
|
3798
|
+
<xsl:template name="refine_add-style">
|
3799
|
+
</xsl:template>
|
3800
|
+
|
3681
3801
|
<xsl:variable name="add-style">
|
3682
|
-
|
3683
|
-
|
3802
|
+
<add-style xsl:use-attribute-sets="add-style">
|
3803
|
+
<xsl:call-template name="refine_add-style"/>
|
3804
|
+
</add-style>
|
3805
|
+
</xsl:variable>
|
3684
3806
|
<xsl:template name="append_add-style">
|
3685
3807
|
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
|
3686
3808
|
</xsl:template>
|
@@ -3693,24 +3815,81 @@
|
|
3693
3815
|
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
3694
3816
|
</xsl:attribute-set>
|
3695
3817
|
|
3818
|
+
<xsl:template name="refine_del-style">
|
3819
|
+
</xsl:template>
|
3820
|
+
|
3821
|
+
<xsl:attribute-set name="strong-style">
|
3822
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3823
|
+
</xsl:attribute-set>
|
3824
|
+
|
3825
|
+
<xsl:template name="refine_strong_style">
|
3826
|
+
<xsl:if test="not(parent::mn:fmt-termsource)">
|
3827
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
3828
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
3829
|
+
</xsl:if>
|
3830
|
+
<xsl:if test="ancestor::*['preferred']">
|
3831
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
3832
|
+
</xsl:if>
|
3833
|
+
</xsl:template> <!-- refine_strong_style -->
|
3834
|
+
|
3835
|
+
<xsl:attribute-set name="em-style">
|
3836
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
3837
|
+
</xsl:attribute-set>
|
3838
|
+
|
3839
|
+
<xsl:template name="refine_em_style">
|
3840
|
+
</xsl:template> <!-- refine_em_style -->
|
3841
|
+
|
3842
|
+
<xsl:attribute-set name="sup-style">
|
3843
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
3844
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
3845
|
+
</xsl:attribute-set>
|
3846
|
+
|
3847
|
+
<xsl:template name="refine_sup-style">
|
3848
|
+
</xsl:template>
|
3849
|
+
|
3850
|
+
<xsl:attribute-set name="sub-style">
|
3851
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
3852
|
+
<xsl:attribute name="vertical-align">sub</xsl:attribute>
|
3853
|
+
</xsl:attribute-set>
|
3854
|
+
|
3855
|
+
<xsl:template name="refine_sub-style">
|
3856
|
+
</xsl:template>
|
3857
|
+
|
3858
|
+
<xsl:attribute-set name="underline-style">
|
3859
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
3860
|
+
</xsl:attribute-set>
|
3861
|
+
|
3862
|
+
<xsl:template name="refine_underline-style">
|
3863
|
+
</xsl:template>
|
3864
|
+
|
3865
|
+
<xsl:attribute-set name="hi-style">
|
3866
|
+
<xsl:attribute name="background-color">yellow</xsl:attribute>
|
3867
|
+
</xsl:attribute-set>
|
3868
|
+
|
3869
|
+
<xsl:template name="refine_hi-style">
|
3870
|
+
</xsl:template>
|
3871
|
+
|
3872
|
+
<xsl:attribute-set name="strike-style">
|
3873
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
3874
|
+
</xsl:attribute-set>
|
3875
|
+
|
3876
|
+
<xsl:template name="refine_strike-style">
|
3877
|
+
</xsl:template>
|
3878
|
+
|
3696
3879
|
<xsl:template match="mn:br">
|
3697
3880
|
<xsl:value-of select="$linebreak"/>
|
3698
3881
|
</xsl:template>
|
3699
3882
|
|
3700
|
-
|
3701
|
-
<fo:inline
|
3702
|
-
<xsl:call-template name="
|
3883
|
+
<xsl:template match="mn:em">
|
3884
|
+
<fo:inline xsl:use-attribute-sets="em-style">
|
3885
|
+
<xsl:call-template name="refine_em_style"/>
|
3703
3886
|
<xsl:apply-templates/>
|
3704
3887
|
</fo:inline>
|
3705
3888
|
</xsl:template>
|
3706
3889
|
|
3707
|
-
<xsl:template name="refine_italic_style">
|
3708
|
-
</xsl:template>
|
3709
|
-
|
3710
3890
|
<xsl:template match="mn:strong | *[local-name()='b']">
|
3711
3891
|
<xsl:param name="split_keep-within-line"/>
|
3712
|
-
<fo:inline
|
3713
|
-
|
3892
|
+
<fo:inline xsl:use-attribute-sets="strong-style">
|
3714
3893
|
<xsl:call-template name="refine_strong_style"/>
|
3715
3894
|
|
3716
3895
|
<xsl:apply-templates>
|
@@ -3719,52 +3898,27 @@
|
|
3719
3898
|
</fo:inline>
|
3720
3899
|
</xsl:template>
|
3721
3900
|
|
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
3901
|
<xsl:template match="*[local-name()='padding']">
|
3733
3902
|
<fo:inline padding-right="{@value}"> </fo:inline>
|
3734
3903
|
</xsl:template>
|
3735
3904
|
|
3736
3905
|
<xsl:template match="mn:sup">
|
3737
|
-
<fo:inline
|
3906
|
+
<fo:inline xsl:use-attribute-sets="sup-style">
|
3907
|
+
<xsl:call-template name="refine_sup-style"/>
|
3738
3908
|
<xsl:apply-templates/>
|
3739
3909
|
</fo:inline>
|
3740
3910
|
</xsl:template>
|
3741
3911
|
|
3742
3912
|
<xsl:template match="mn:sub">
|
3743
|
-
<fo:inline
|
3913
|
+
<fo:inline xsl:use-attribute-sets="sub-style">
|
3914
|
+
<xsl:call-template name="refine_sub-style"/>
|
3744
3915
|
<xsl:apply-templates/>
|
3745
3916
|
</fo:inline>
|
3746
3917
|
</xsl:template>
|
3747
3918
|
|
3748
3919
|
<xsl:template match="mn:tt">
|
3749
3920
|
<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>
|
3921
|
+
<xsl:call-template name="refine_tt-style"/>
|
3768
3922
|
<xsl:apply-templates/>
|
3769
3923
|
</fo:inline>
|
3770
3924
|
</xsl:template> <!-- tt -->
|
@@ -3783,7 +3937,8 @@
|
|
3783
3937
|
</xsl:template>
|
3784
3938
|
|
3785
3939
|
<xsl:template match="mn:underline">
|
3786
|
-
<fo:inline
|
3940
|
+
<fo:inline xsl:use-attribute-sets="underline-style">
|
3941
|
+
<xsl:call-template name="refine_underline-style"/>
|
3787
3942
|
<xsl:apply-templates/>
|
3788
3943
|
</fo:inline>
|
3789
3944
|
</xsl:template>
|
@@ -3941,6 +4096,7 @@
|
|
3941
4096
|
|
3942
4097
|
<xsl:template match="mn:del">
|
3943
4098
|
<fo:inline xsl:use-attribute-sets="del-style">
|
4099
|
+
<xsl:call-template name="refine_del-style"/>
|
3944
4100
|
<xsl:apply-templates/>
|
3945
4101
|
</fo:inline>
|
3946
4102
|
</xsl:template>
|
@@ -3950,7 +4106,8 @@
|
|
3950
4106
|
|
3951
4107
|
<!-- highlight text -->
|
3952
4108
|
<xsl:template match="mn:hi | mn:span[@class = 'fmt-hi']" priority="3">
|
3953
|
-
<fo:inline
|
4109
|
+
<fo:inline xsl:use-attribute-sets="hi-style">
|
4110
|
+
<xsl:call-template name="refine_hi-style"/>
|
3954
4111
|
<xsl:apply-templates/>
|
3955
4112
|
</fo:inline>
|
3956
4113
|
</xsl:template>
|
@@ -4036,7 +4193,8 @@
|
|
4036
4193
|
</xsl:template>
|
4037
4194
|
|
4038
4195
|
<xsl:template match="mn:strike">
|
4039
|
-
<fo:inline
|
4196
|
+
<fo:inline xsl:use-attribute-sets="strike-style">
|
4197
|
+
<xsl:call-template name="refine_strike-style"/>
|
4040
4198
|
<xsl:apply-templates/>
|
4041
4199
|
</fo:inline>
|
4042
4200
|
</xsl:template>
|
@@ -4116,6 +4274,7 @@
|
|
4116
4274
|
|
4117
4275
|
<xsl:template match="mn:pre" name="pre">
|
4118
4276
|
<fo:block xsl:use-attribute-sets="pre-style">
|
4277
|
+
<xsl:call-template name="refine_pre-style"/>
|
4119
4278
|
<xsl:copy-of select="@id"/>
|
4120
4279
|
<xsl:choose>
|
4121
4280
|
|
@@ -4146,22 +4305,40 @@
|
|
4146
4305
|
<xsl:attribute-set name="permission-style">
|
4147
4306
|
</xsl:attribute-set>
|
4148
4307
|
|
4308
|
+
<xsl:template name="refine_permission-style">
|
4309
|
+
</xsl:template>
|
4310
|
+
|
4149
4311
|
<xsl:attribute-set name="permission-name-style">
|
4150
4312
|
</xsl:attribute-set>
|
4151
4313
|
|
4314
|
+
<xsl:template name="refine_permission-name-style">
|
4315
|
+
</xsl:template>
|
4316
|
+
|
4152
4317
|
<xsl:attribute-set name="permission-label-style">
|
4153
4318
|
</xsl:attribute-set>
|
4154
4319
|
|
4320
|
+
<xsl:template name="refine_permission-label-style">
|
4321
|
+
</xsl:template>
|
4322
|
+
|
4155
4323
|
<xsl:attribute-set name="requirement-style">
|
4156
4324
|
</xsl:attribute-set>
|
4157
4325
|
|
4326
|
+
<xsl:template name="refine_requirement-style">
|
4327
|
+
</xsl:template>
|
4328
|
+
|
4158
4329
|
<xsl:attribute-set name="requirement-name-style">
|
4159
4330
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4160
4331
|
</xsl:attribute-set>
|
4161
4332
|
|
4333
|
+
<xsl:template name="refine_requirement-name-style">
|
4334
|
+
</xsl:template>
|
4335
|
+
|
4162
4336
|
<xsl:attribute-set name="requirement-label-style">
|
4163
4337
|
</xsl:attribute-set>
|
4164
4338
|
|
4339
|
+
<xsl:template name="refine_requirement-label-style">
|
4340
|
+
</xsl:template>
|
4341
|
+
|
4165
4342
|
<xsl:attribute-set name="subject-style">
|
4166
4343
|
</xsl:attribute-set>
|
4167
4344
|
|
@@ -4189,18 +4366,28 @@
|
|
4189
4366
|
<xsl:attribute-set name="recommendation-style">
|
4190
4367
|
</xsl:attribute-set>
|
4191
4368
|
|
4369
|
+
<xsl:template name="refine_recommendation-style">
|
4370
|
+
</xsl:template>
|
4371
|
+
|
4192
4372
|
<xsl:attribute-set name="recommendation-name-style">
|
4193
4373
|
</xsl:attribute-set>
|
4194
4374
|
|
4375
|
+
<xsl:template name="refine_recommendation-name-style">
|
4376
|
+
</xsl:template>
|
4377
|
+
|
4195
4378
|
<xsl:attribute-set name="recommendation-label-style">
|
4196
4379
|
</xsl:attribute-set>
|
4197
4380
|
|
4381
|
+
<xsl:template name="refine_recommendation-label-style">
|
4382
|
+
</xsl:template>
|
4383
|
+
|
4198
4384
|
<!-- ========== -->
|
4199
4385
|
<!-- permission -->
|
4200
4386
|
<!-- ========== -->
|
4201
4387
|
<xsl:template match="mn:permission">
|
4202
4388
|
<xsl:call-template name="setNamedDestination"/>
|
4203
4389
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
4390
|
+
<xsl:call-template name="refine_permission-style"/>
|
4204
4391
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4205
4392
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4206
4393
|
</fo:block>
|
@@ -4209,6 +4396,7 @@
|
|
4209
4396
|
<xsl:template match="mn:permission/mn:fmt-name">
|
4210
4397
|
<xsl:if test="normalize-space() != ''">
|
4211
4398
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
4399
|
+
<xsl:call-template name="refine_permission-name-style"/>
|
4212
4400
|
<xsl:apply-templates/>
|
4213
4401
|
</fo:block>
|
4214
4402
|
</xsl:if>
|
@@ -4216,6 +4404,7 @@
|
|
4216
4404
|
|
4217
4405
|
<xsl:template match="mn:permission/mn:label">
|
4218
4406
|
<fo:block xsl:use-attribute-sets="permission-label-style">
|
4407
|
+
<xsl:call-template name="refine_permission-label-style"/>
|
4219
4408
|
<xsl:apply-templates/>
|
4220
4409
|
</fo:block>
|
4221
4410
|
</xsl:template>
|
@@ -4228,6 +4417,7 @@
|
|
4228
4417
|
<xsl:template match="mn:requirement">
|
4229
4418
|
<xsl:call-template name="setNamedDestination"/>
|
4230
4419
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
4420
|
+
<xsl:call-template name="refine_requirement-style"/>
|
4231
4421
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4232
4422
|
<xsl:apply-templates select="mn:label"/>
|
4233
4423
|
<xsl:apply-templates select="@obligation"/>
|
@@ -4240,6 +4430,7 @@
|
|
4240
4430
|
<xsl:if test="normalize-space() != ''">
|
4241
4431
|
|
4242
4432
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
4433
|
+
<xsl:call-template name="refine_requirement-name-style"/>
|
4243
4434
|
<xsl:apply-templates/>
|
4244
4435
|
</fo:block>
|
4245
4436
|
</xsl:if>
|
@@ -4247,6 +4438,7 @@
|
|
4247
4438
|
|
4248
4439
|
<xsl:template match="mn:requirement/mn:label">
|
4249
4440
|
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
4441
|
+
<xsl:call-template name="refine_requirement-label-style"/>
|
4250
4442
|
<xsl:apply-templates/>
|
4251
4443
|
</fo:block>
|
4252
4444
|
</xsl:template>
|
@@ -4272,6 +4464,7 @@
|
|
4272
4464
|
<xsl:template match="mn:recommendation">
|
4273
4465
|
<xsl:call-template name="setNamedDestination"/>
|
4274
4466
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
4467
|
+
<xsl:call-template name="refine_recommendation-style"/>
|
4275
4468
|
<xsl:apply-templates select="mn:fmt-name"/>
|
4276
4469
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4277
4470
|
</fo:block>
|
@@ -4281,6 +4474,7 @@
|
|
4281
4474
|
<xsl:if test="normalize-space() != ''">
|
4282
4475
|
|
4283
4476
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
4477
|
+
<xsl:call-template name="refine_recommendation-name-style"/>
|
4284
4478
|
<xsl:apply-templates/>
|
4285
4479
|
</fo:block>
|
4286
4480
|
</xsl:if>
|
@@ -4288,6 +4482,7 @@
|
|
4288
4482
|
|
4289
4483
|
<xsl:template match="mn:recommendation/mn:label">
|
4290
4484
|
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
4485
|
+
<xsl:call-template name="refine_recommendation-label-style"/>
|
4291
4486
|
<xsl:apply-templates/>
|
4292
4487
|
</fo:block>
|
4293
4488
|
</xsl:template>
|
@@ -4468,41 +4663,97 @@
|
|
4468
4663
|
<xsl:attribute-set name="term-style">
|
4469
4664
|
</xsl:attribute-set> <!-- term-style -->
|
4470
4665
|
|
4666
|
+
<xsl:template name="refine_term-style">
|
4667
|
+
</xsl:template>
|
4668
|
+
|
4471
4669
|
<xsl:attribute-set name="term-name-style">
|
4472
4670
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4473
4671
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4474
4672
|
</xsl:attribute-set> <!-- term-name-style -->
|
4475
4673
|
|
4476
|
-
|
4674
|
+
<xsl:template name="refine_term-name-style">
|
4675
|
+
</xsl:template>
|
4676
|
+
|
4677
|
+
<xsl:attribute-set name="preferred-style">
|
4678
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4679
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
4680
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4681
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
4682
|
+
|
4683
|
+
<xsl:template name="refine_preferred-style">
|
4684
|
+
<xsl:variable name="level">
|
4685
|
+
<xsl:call-template name="getLevel"/>
|
4686
|
+
</xsl:variable>
|
4687
|
+
<xsl:variable name="font-size">
|
4688
|
+
<xsl:choose>
|
4689
|
+
<xsl:when test="$level >= 2">13pt</xsl:when>
|
4690
|
+
<xsl:otherwise>12pt</xsl:otherwise>
|
4691
|
+
</xsl:choose>
|
4692
|
+
</xsl:variable>
|
4693
|
+
<xsl:variable name="levelTerm">
|
4694
|
+
<xsl:call-template name="getLevelTermName"/>
|
4695
|
+
</xsl:variable>
|
4696
|
+
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
4697
|
+
<xsl:attribute name="role">H<xsl:value-of select="$levelTerm"/></xsl:attribute>
|
4698
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-name]">
|
4699
|
+
<xsl:attribute name="space-before">11mm</xsl:attribute>
|
4700
|
+
</xsl:if>
|
4701
|
+
</xsl:template>
|
4702
|
+
|
4703
|
+
<xsl:attribute-set name="preferred-block-style">
|
4477
4704
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
4478
4705
|
|
4706
|
+
<xsl:template name="refine_preferred-block-style">
|
4707
|
+
</xsl:template>
|
4708
|
+
|
4479
4709
|
<xsl:attribute-set name="preferred-term-style">
|
4480
4710
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4481
4711
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4482
4712
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
4483
4713
|
|
4714
|
+
<xsl:template name="refine_preferred-term-style">
|
4715
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
4716
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
4717
|
+
|
4718
|
+
</xsl:template>
|
4719
|
+
|
4484
4720
|
<xsl:attribute-set name="domain-style">
|
4485
4721
|
</xsl:attribute-set> <!-- domain-style -->
|
4486
4722
|
|
4723
|
+
<xsl:template name="refine_domain-style">
|
4724
|
+
</xsl:template>
|
4725
|
+
|
4487
4726
|
<xsl:attribute-set name="admitted-style">
|
4488
4727
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4489
4728
|
<xsl:attribute name="color">black</xsl:attribute>
|
4490
4729
|
</xsl:attribute-set> <!-- admitted-style -->
|
4491
4730
|
|
4731
|
+
<xsl:template name="refine_admitted-style">
|
4732
|
+
</xsl:template>
|
4733
|
+
|
4492
4734
|
<xsl:attribute-set name="deprecates-style">
|
4493
4735
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4494
4736
|
<xsl:attribute name="color">black</xsl:attribute>
|
4495
4737
|
</xsl:attribute-set> <!-- deprecates-style -->
|
4496
4738
|
|
4739
|
+
<xsl:template name="refine_deprecates-style">
|
4740
|
+
</xsl:template>
|
4741
|
+
|
4497
4742
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
4498
4743
|
</xsl:attribute-set>
|
4499
4744
|
|
4745
|
+
<xsl:template name="refine_related-block-style">
|
4746
|
+
</xsl:template>
|
4747
|
+
|
4500
4748
|
<xsl:attribute-set name="definition-style">
|
4501
4749
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4502
4750
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
4503
4751
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
4504
4752
|
</xsl:attribute-set> <!-- definition-style -->
|
4505
4753
|
|
4754
|
+
<xsl:template name="refine_definition-style">
|
4755
|
+
</xsl:template>
|
4756
|
+
|
4506
4757
|
<xsl:attribute-set name="termsource-style">
|
4507
4758
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4508
4759
|
</xsl:attribute-set> <!-- termsource-style -->
|
@@ -4514,9 +4765,15 @@
|
|
4514
4765
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4515
4766
|
</xsl:attribute-set> <!-- termsource-text-style -->
|
4516
4767
|
|
4768
|
+
<xsl:template name="refine_termsource-text-style">
|
4769
|
+
</xsl:template>
|
4770
|
+
|
4517
4771
|
<xsl:attribute-set name="origin-style">
|
4518
4772
|
</xsl:attribute-set> <!-- origin-style -->
|
4519
4773
|
|
4774
|
+
<xsl:template name="refine_origin-style">
|
4775
|
+
</xsl:template>
|
4776
|
+
|
4520
4777
|
<!-- ====== -->
|
4521
4778
|
<!-- term -->
|
4522
4779
|
<!-- ====== -->
|
@@ -4532,9 +4789,8 @@
|
|
4532
4789
|
<xsl:template match="mn:term">
|
4533
4790
|
<xsl:call-template name="setNamedDestination"/>
|
4534
4791
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
4792
|
+
<xsl:call-template name="refine_term-style"/>
|
4535
4793
|
|
4536
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
4537
|
-
</xsl:if>
|
4538
4794
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4539
4795
|
</fo:block>
|
4540
4796
|
</xsl:template>
|
@@ -4610,6 +4866,7 @@
|
|
4610
4866
|
<!-- text SOURCE: -->
|
4611
4867
|
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
4612
4868
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
4869
|
+
<xsl:call-template name="refine_termsource-text-style"/>
|
4613
4870
|
<xsl:value-of select="."/>
|
4614
4871
|
</fo:inline>
|
4615
4872
|
</xsl:template>
|
@@ -4622,6 +4879,7 @@
|
|
4622
4879
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4623
4880
|
</xsl:if>
|
4624
4881
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
4882
|
+
<xsl:call-template name="refine_origin-style"/>
|
4625
4883
|
<xsl:apply-templates/>
|
4626
4884
|
</fo:inline>
|
4627
4885
|
</fo:basic-link>
|
@@ -4671,9 +4929,12 @@
|
|
4671
4929
|
</xsl:variable>
|
4672
4930
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
4673
4931
|
|
4932
|
+
<xsl:call-template name="refine_preferred-block-style"/>
|
4933
|
+
|
4674
4934
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
4675
4935
|
|
4676
4936
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
4937
|
+
<xsl:call-template name="refine_term-name-style"/>
|
4677
4938
|
|
4678
4939
|
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
4679
4940
|
<xsl:call-template name="setIDforNamedDestination"/>
|
@@ -4684,7 +4945,7 @@
|
|
4684
4945
|
</xsl:if>
|
4685
4946
|
|
4686
4947
|
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
4687
|
-
<xsl:call-template name="
|
4948
|
+
<xsl:call-template name="refine_preferred-term-style"/>
|
4688
4949
|
|
4689
4950
|
<xsl:apply-templates/>
|
4690
4951
|
</fo:block>
|
@@ -4705,22 +4966,18 @@
|
|
4705
4966
|
|
4706
4967
|
<xsl:template match="mn:fmt-admitted">
|
4707
4968
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
4969
|
+
<xsl:call-template name="refine_admitted-style"/>
|
4708
4970
|
<xsl:apply-templates/>
|
4709
4971
|
</fo:block>
|
4710
4972
|
</xsl:template>
|
4711
4973
|
|
4712
4974
|
<xsl:template match="mn:fmt-deprecates">
|
4713
4975
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
4976
|
+
<xsl:call-template name="refine_deprecates-style"/>
|
4714
4977
|
<xsl:apply-templates/>
|
4715
4978
|
</fo:block>
|
4716
4979
|
</xsl:template>
|
4717
4980
|
|
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
4981
|
<!-- 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
4982
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
4726
4983
|
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
@@ -4730,6 +4987,7 @@
|
|
4730
4987
|
|
4731
4988
|
<xsl:template match="mn:fmt-related">
|
4732
4989
|
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
4990
|
+
<xsl:call-template name="refine_related-block-style"/>
|
4733
4991
|
<xsl:apply-templates/>
|
4734
4992
|
</fo:block>
|
4735
4993
|
</xsl:template>
|
@@ -4744,6 +5002,7 @@
|
|
4744
5002
|
<!-- ========== -->
|
4745
5003
|
<xsl:template match="mn:fmt-definition">
|
4746
5004
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5005
|
+
<xsl:call-template name="refine_definition-style"/>
|
4747
5006
|
<xsl:apply-templates/>
|
4748
5007
|
</fo:block>
|
4749
5008
|
</xsl:template>
|
@@ -4797,7 +5056,11 @@
|
|
4797
5056
|
<xsl:attribute-set name="example-body-style">
|
4798
5057
|
</xsl:attribute-set> <!-- example-body-style -->
|
4799
5058
|
|
5059
|
+
<xsl:template name="refine_example-body-style">
|
5060
|
+
</xsl:template>
|
5061
|
+
|
4800
5062
|
<xsl:attribute-set name="example-name-style">
|
5063
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4801
5064
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4802
5065
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4803
5066
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
@@ -4845,6 +5108,8 @@
|
|
4845
5108
|
<xsl:when test="contains($element, 'block')">
|
4846
5109
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
4847
5110
|
|
5111
|
+
<xsl:call-template name="refine_example-p-style"/>
|
5112
|
+
|
4848
5113
|
<xsl:apply-templates/>
|
4849
5114
|
</fo:block>
|
4850
5115
|
</xsl:when>
|
@@ -4896,6 +5161,7 @@
|
|
4896
5161
|
</fo:block>
|
4897
5162
|
|
4898
5163
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5164
|
+
<xsl:call-template name="refine_example-body-style"/>
|
4899
5165
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
4900
5166
|
<xsl:variable name="example_body">
|
4901
5167
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
@@ -4958,6 +5224,7 @@
|
|
4958
5224
|
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
4959
5225
|
<!-- display further elements in blocks -->
|
4960
5226
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5227
|
+
<xsl:call-template name="refine_example-body-style"/>
|
4961
5228
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
4962
5229
|
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
4963
5230
|
<xsl:with-param name="fo_element" select="'block'"/>
|
@@ -5081,6 +5348,16 @@
|
|
5081
5348
|
<xsl:call-template name="setBordersTableArray"/>
|
5082
5349
|
</xsl:template> <!-- refine_table-style -->
|
5083
5350
|
|
5351
|
+
<xsl:attribute-set name="table-number-style">
|
5352
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5353
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
5354
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
5355
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
5356
|
+
</xsl:attribute-set>
|
5357
|
+
|
5358
|
+
<xsl:template name="refine_table-number-style">
|
5359
|
+
</xsl:template>
|
5360
|
+
|
5084
5361
|
<xsl:attribute-set name="table-name-style">
|
5085
5362
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
5086
5363
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -5204,6 +5481,9 @@
|
|
5204
5481
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
5205
5482
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
5206
5483
|
|
5484
|
+
<xsl:template name="refine_table-fn-number-style">
|
5485
|
+
</xsl:template>
|
5486
|
+
|
5207
5487
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
5208
5488
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5209
5489
|
</xsl:attribute-set> <!-- table-fmt-fn-label-style -->
|
@@ -5211,30 +5491,12 @@
|
|
5211
5491
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
5212
5492
|
</xsl:template>
|
5213
5493
|
|
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
5494
|
<xsl:attribute-set name="table-fn-body-style">
|
5220
5495
|
</xsl:attribute-set>
|
5221
5496
|
|
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">
|
5497
|
+
<xsl:template name="refine_table-fn-body-style">
|
5232
5498
|
</xsl:template>
|
5233
5499
|
|
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
5500
|
<!-- ========================== -->
|
5239
5501
|
<!-- END Table styles -->
|
5240
5502
|
<!-- ========================== -->
|
@@ -5550,7 +5812,7 @@
|
|
5550
5812
|
|
5551
5813
|
</fo:block>
|
5552
5814
|
|
5553
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5815
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
5554
5816
|
<xsl:if test="$continued = 'true'">
|
5555
5817
|
|
5556
5818
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -6511,6 +6773,7 @@
|
|
6511
6773
|
</xsl:apply-templates>
|
6512
6774
|
|
6513
6775
|
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
6776
|
+
<xsl:call-template name="refine_table-fn-body-style"/>
|
6514
6777
|
<!-- <xsl:copy-of select="./node()"/> -->
|
6515
6778
|
<xsl:apply-templates/>
|
6516
6779
|
</fo:inline>
|
@@ -6529,6 +6792,7 @@
|
|
6529
6792
|
<xsl:param name="process">false</xsl:param>
|
6530
6793
|
<xsl:if test="$process = 'true'">
|
6531
6794
|
<fo:inline xsl:use-attribute-sets="table-fn-number-style" role="SKIP">
|
6795
|
+
<xsl:call-template name="refine_table-fn-number-style"/>
|
6532
6796
|
|
6533
6797
|
<!-- tab is padding-right -->
|
6534
6798
|
<xsl:apply-templates select=".//mn:tab">
|
@@ -7400,10 +7664,19 @@
|
|
7400
7664
|
<xsl:attribute-set name="dl-block-style">
|
7401
7665
|
</xsl:attribute-set>
|
7402
7666
|
|
7667
|
+
<xsl:template name="refine_dl-block-style">
|
7668
|
+
<xsl:if test="@key = 'true' and ancestor::mn:figure">
|
7669
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
7670
|
+
</xsl:if>
|
7671
|
+
</xsl:template>
|
7672
|
+
|
7403
7673
|
<xsl:attribute-set name="dt-row-style">
|
7404
7674
|
<xsl:attribute name="min-height">7mm</xsl:attribute>
|
7405
7675
|
</xsl:attribute-set>
|
7406
7676
|
|
7677
|
+
<xsl:template name="refine_dt-row-style">
|
7678
|
+
</xsl:template>
|
7679
|
+
|
7407
7680
|
<xsl:attribute-set name="dt-cell-style">
|
7408
7681
|
</xsl:attribute-set>
|
7409
7682
|
|
@@ -7426,6 +7699,9 @@
|
|
7426
7699
|
<xsl:attribute name="color">black</xsl:attribute>
|
7427
7700
|
</xsl:attribute-set> <!-- dl-name-style -->
|
7428
7701
|
|
7702
|
+
<xsl:template name="refine_dl-name-style">
|
7703
|
+
</xsl:template>
|
7704
|
+
|
7429
7705
|
<xsl:attribute-set name="dd-cell-style">
|
7430
7706
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
7431
7707
|
</xsl:attribute-set>
|
@@ -7464,9 +7740,7 @@
|
|
7464
7740
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
7465
7741
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
7466
7742
|
|
7467
|
-
<xsl:
|
7468
|
-
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
7469
|
-
</xsl:if>
|
7743
|
+
<xsl:call-template name="refine_dl-block-style"/>
|
7470
7744
|
|
7471
7745
|
<xsl:call-template name="setBlockSpanAll"/>
|
7472
7746
|
<xsl:if test="not(ancestor::mn:quote)">
|
@@ -7762,6 +8036,8 @@
|
|
7762
8036
|
<xsl:if test="$process = 'true'">
|
7763
8037
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
7764
8038
|
|
8039
|
+
<xsl:call-template name="refine_dl-name-style"/>
|
8040
|
+
|
7765
8041
|
<xsl:apply-templates/>
|
7766
8042
|
</fo:block>
|
7767
8043
|
</xsl:if>
|
@@ -7950,6 +8226,8 @@
|
|
7950
8226
|
<xsl:param name="split_keep-within-line"/>
|
7951
8227
|
|
7952
8228
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
8229
|
+
<xsl:call-template name="refine_dt-row-style"/>
|
8230
|
+
|
7953
8231
|
<xsl:call-template name="insert_dt_cell">
|
7954
8232
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
7955
8233
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -8164,18 +8442,25 @@
|
|
8164
8442
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8165
8443
|
</xsl:attribute-set>
|
8166
8444
|
|
8445
|
+
<xsl:template name="refine_appendix-style">
|
8446
|
+
</xsl:template>
|
8447
|
+
|
8167
8448
|
<xsl:attribute-set name="appendix-example-style">
|
8168
8449
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
8169
8450
|
<xsl:attribute name="color">black</xsl:attribute>
|
8170
8451
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8171
8452
|
</xsl:attribute-set>
|
8172
8453
|
|
8454
|
+
<xsl:template name="refine_appendix-example-style">
|
8455
|
+
</xsl:template>
|
8456
|
+
|
8173
8457
|
<!-- ======================== -->
|
8174
8458
|
<!-- Appendix processing -->
|
8175
8459
|
<!-- ======================== -->
|
8176
8460
|
<xsl:template match="mn:appendix">
|
8177
8461
|
<xsl:call-template name="setNamedDestination"/>
|
8178
8462
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
8463
|
+
<xsl:call-template name="refine_appendix-style"/>
|
8179
8464
|
<xsl:apply-templates select="mn:fmt-title"/>
|
8180
8465
|
</fo:block>
|
8181
8466
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
@@ -8194,13 +8479,23 @@
|
|
8194
8479
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
8195
8480
|
<xsl:call-template name="setNamedDestination"/>
|
8196
8481
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
8482
|
+
<xsl:call-template name="refine_appendix-example-style"/>
|
8197
8483
|
<xsl:apply-templates select="mn:fmt-name"/>
|
8198
8484
|
</fo:block>
|
8199
8485
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
8200
8486
|
</xsl:template>
|
8201
8487
|
|
8202
8488
|
<xsl:attribute-set name="xref-style">
|
8203
|
-
</xsl:attribute-set>
|
8489
|
+
</xsl:attribute-set> <!-- xref-style -->
|
8490
|
+
|
8491
|
+
<xsl:template name="refine_xref-style">
|
8492
|
+
<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])">
|
8493
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
8494
|
+
</xsl:if>
|
8495
|
+
<xsl:if test="parent::mn:add">
|
8496
|
+
<xsl:call-template name="append_add-style"/>
|
8497
|
+
</xsl:if>
|
8498
|
+
</xsl:template> <!-- refine_xref-style -->
|
8204
8499
|
|
8205
8500
|
<xsl:template match="mn:fmt-xref">
|
8206
8501
|
<xsl:call-template name="insert_basic_link">
|
@@ -8209,12 +8504,8 @@
|
|
8209
8504
|
<xsl:call-template name="getAltText"/>
|
8210
8505
|
</xsl:variable>
|
8211
8506
|
<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>
|
8507
|
+
<xsl:call-template name="refine_xref-style"/>
|
8508
|
+
|
8218
8509
|
<xsl:apply-templates/>
|
8219
8510
|
</fo:basic-link>
|
8220
8511
|
</xsl:with-param>
|
@@ -8323,14 +8614,14 @@
|
|
8323
8614
|
<xsl:attribute-set name="note-style">
|
8324
8615
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8325
8616
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8326
|
-
</xsl:attribute-set>
|
8617
|
+
</xsl:attribute-set> <!-- note-style -->
|
8327
8618
|
|
8328
8619
|
<xsl:template name="refine_note-style">
|
8329
8620
|
<xsl:if test="ancestor::mn:ul or ancestor::mn:ol and not(ancestor::mn:note[1]/following-sibling::*)">
|
8330
8621
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
8331
8622
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
8332
8623
|
</xsl:if>
|
8333
|
-
</xsl:template>
|
8624
|
+
</xsl:template> <!-- refine_note-style -->
|
8334
8625
|
|
8335
8626
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
8336
8627
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
@@ -8339,7 +8630,7 @@
|
|
8339
8630
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8340
8631
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
8341
8632
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
8342
|
-
</xsl:attribute-set>
|
8633
|
+
</xsl:attribute-set> <!-- note-name-style -->
|
8343
8634
|
|
8344
8635
|
<xsl:template name="refine_note-name-style">
|
8345
8636
|
</xsl:template> <!-- refine_note-name-style -->
|
@@ -8356,11 +8647,14 @@
|
|
8356
8647
|
<xsl:attribute-set name="note-p-style">
|
8357
8648
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8358
8649
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8359
|
-
</xsl:attribute-set>
|
8650
|
+
</xsl:attribute-set> <!-- note-p-style -->
|
8651
|
+
|
8652
|
+
<xsl:template name="refine_note-p-style">
|
8653
|
+
</xsl:template>
|
8360
8654
|
|
8361
8655
|
<xsl:attribute-set name="termnote-style">
|
8362
8656
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
8363
|
-
</xsl:attribute-set>
|
8657
|
+
</xsl:attribute-set> <!-- termnote-style -->
|
8364
8658
|
|
8365
8659
|
<xsl:template name="refine_termnote-style">
|
8366
8660
|
</xsl:template> <!-- refine_termnote-style -->
|
@@ -8369,7 +8663,7 @@
|
|
8369
8663
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8370
8664
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
8371
8665
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
8372
|
-
</xsl:attribute-set>
|
8666
|
+
</xsl:attribute-set> <!-- termnote-name-style -->
|
8373
8667
|
|
8374
8668
|
<xsl:template name="refine_termnote-name-style">
|
8375
8669
|
</xsl:template>
|
@@ -8377,6 +8671,9 @@
|
|
8377
8671
|
<xsl:attribute-set name="termnote-p-style">
|
8378
8672
|
</xsl:attribute-set>
|
8379
8673
|
|
8674
|
+
<xsl:template name="refine_termnote-p-style">
|
8675
|
+
</xsl:template>
|
8676
|
+
|
8380
8677
|
<!-- ====== -->
|
8381
8678
|
<!-- note -->
|
8382
8679
|
<!-- termnote -->
|
@@ -8437,11 +8734,13 @@
|
|
8437
8734
|
<xsl:choose>
|
8438
8735
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
8439
8736
|
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8737
|
+
<xsl:call-template name="refine_note-p-style"/>
|
8440
8738
|
<xsl:apply-templates/>
|
8441
8739
|
</fo:inline>
|
8442
8740
|
</xsl:when>
|
8443
8741
|
<xsl:otherwise>
|
8444
8742
|
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8743
|
+
<xsl:call-template name="refine_note-p-style"/>
|
8445
8744
|
<xsl:apply-templates/>
|
8446
8745
|
</fo:block>
|
8447
8746
|
</xsl:otherwise>
|
@@ -8533,11 +8832,13 @@
|
|
8533
8832
|
<xsl:choose>
|
8534
8833
|
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
8535
8834
|
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
8835
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
8536
8836
|
<xsl:apply-templates/>
|
8537
8837
|
</fo:inline>
|
8538
8838
|
</xsl:when>
|
8539
8839
|
<xsl:otherwise>
|
8540
8840
|
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
8841
|
+
<xsl:call-template name="refine_termnote-p-style"/>
|
8541
8842
|
<xsl:apply-templates/>
|
8542
8843
|
</fo:block>
|
8543
8844
|
</xsl:otherwise>
|
@@ -8552,7 +8853,7 @@
|
|
8552
8853
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
8553
8854
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8554
8855
|
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
8555
|
-
</xsl:attribute-set>
|
8856
|
+
</xsl:attribute-set> <!-- quote-style -->
|
8556
8857
|
|
8557
8858
|
<xsl:template name="refine_quote-style">
|
8558
8859
|
</xsl:template>
|
@@ -8562,6 +8863,9 @@
|
|
8562
8863
|
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
8563
8864
|
</xsl:attribute-set>
|
8564
8865
|
|
8866
|
+
<xsl:template name="refine_quote-source-style">
|
8867
|
+
</xsl:template>
|
8868
|
+
|
8565
8869
|
<!-- ====== -->
|
8566
8870
|
<!-- quote -->
|
8567
8871
|
<!-- source -->
|
@@ -8590,6 +8894,7 @@
|
|
8590
8894
|
</fo:block-container>
|
8591
8895
|
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
8592
8896
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
8897
|
+
<xsl:call-template name="refine_quote-source-style"/>
|
8593
8898
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
8594
8899
|
<xsl:apply-templates select="mn:author"/>
|
8595
8900
|
<xsl:apply-templates select="mn:fmt-source"/>
|
@@ -8659,6 +8964,19 @@
|
|
8659
8964
|
<xsl:attribute name="margin-bottom">3mm</xsl:attribute>
|
8660
8965
|
</xsl:attribute-set>
|
8661
8966
|
|
8967
|
+
<xsl:template name="refine_figure-style">
|
8968
|
+
</xsl:template>
|
8969
|
+
|
8970
|
+
<xsl:attribute-set name="figure-number-style">
|
8971
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
8972
|
+
<xsl:attribute name="font-style">normal</xsl:attribute>
|
8973
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
8974
|
+
<xsl:attribute name="text-transform">uppercase</xsl:attribute>
|
8975
|
+
</xsl:attribute-set>
|
8976
|
+
|
8977
|
+
<xsl:template name="refine_figure-number-style">
|
8978
|
+
</xsl:template>
|
8979
|
+
|
8662
8980
|
<xsl:attribute-set name="figure-name-style">
|
8663
8981
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
8664
8982
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
@@ -8668,7 +8986,7 @@
|
|
8668
8986
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
8669
8987
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
8670
8988
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
8671
|
-
</xsl:attribute-set>
|
8989
|
+
</xsl:attribute-set> <!-- figure-name-style -->
|
8672
8990
|
|
8673
8991
|
<xsl:template name="refine_figure-name-style">
|
8674
8992
|
</xsl:template> <!-- refine_figure-name-style -->
|
@@ -8676,7 +8994,7 @@
|
|
8676
8994
|
<xsl:attribute-set name="image-style">
|
8677
8995
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
8678
8996
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
8679
|
-
</xsl:attribute-set>
|
8997
|
+
</xsl:attribute-set> <!-- image-style -->
|
8680
8998
|
|
8681
8999
|
<xsl:template name="refine_image-style">
|
8682
9000
|
</xsl:template>
|
@@ -8686,14 +9004,51 @@
|
|
8686
9004
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
8687
9005
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
8688
9006
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
8689
|
-
</xsl:attribute-set>
|
9007
|
+
</xsl:attribute-set> <!-- image-graphic-style -->
|
9008
|
+
|
9009
|
+
<xsl:template name="refine_image-graphic-style">
|
9010
|
+
</xsl:template>
|
8690
9011
|
|
8691
9012
|
<xsl:attribute-set name="figure-source-style">
|
8692
9013
|
</xsl:attribute-set>
|
8693
9014
|
|
9015
|
+
<xsl:template name="refine_figure-source-style">
|
9016
|
+
</xsl:template>
|
9017
|
+
|
8694
9018
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
8695
9019
|
</xsl:attribute-set>
|
8696
9020
|
|
9021
|
+
<xsl:template name="refine_figure-pseudocode-p-style">
|
9022
|
+
</xsl:template>
|
9023
|
+
|
9024
|
+
<xsl:attribute-set name="figure-fn-number-style">
|
9025
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
9026
|
+
</xsl:attribute-set> <!-- figure-fn-number-style -->
|
9027
|
+
|
9028
|
+
<xsl:template name="refine_figure-fn-number-style">
|
9029
|
+
</xsl:template>
|
9030
|
+
|
9031
|
+
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
9032
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
9033
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
9034
|
+
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
9035
|
+
|
9036
|
+
<xsl:template name="refine_figure-fmt-fn-label-style">
|
9037
|
+
</xsl:template>
|
9038
|
+
|
9039
|
+
<xsl:attribute-set name="figure-fn-body-style">
|
9040
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
9041
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9042
|
+
</xsl:attribute-set>
|
9043
|
+
|
9044
|
+
<xsl:template name="refine_figure-fn-body-style">
|
9045
|
+
<xsl:variable name="key_iso">
|
9046
|
+
</xsl:variable>
|
9047
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
9048
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
9049
|
+
</xsl:if>
|
9050
|
+
</xsl:template>
|
9051
|
+
|
8697
9052
|
<!-- ============================ -->
|
8698
9053
|
<!-- figure's footnotes rendering -->
|
8699
9054
|
<!-- ============================ -->
|
@@ -8806,9 +9161,8 @@
|
|
8806
9161
|
</fo:table-cell>
|
8807
9162
|
<fo:table-cell>
|
8808
9163
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
8809
|
-
<xsl:
|
8810
|
-
|
8811
|
-
</xsl:if>
|
9164
|
+
<xsl:call-template name="refine_figure-fn-body-style"/>
|
9165
|
+
|
8812
9166
|
<!-- <xsl:copy-of select="./node()"/> -->
|
8813
9167
|
<xsl:apply-templates/>
|
8814
9168
|
</fo:block>
|
@@ -8826,6 +9180,7 @@
|
|
8826
9180
|
<xsl:param name="process">false</xsl:param>
|
8827
9181
|
<xsl:if test="$process = 'true'">
|
8828
9182
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style" role="SKIP">
|
9183
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
8829
9184
|
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
8830
9185
|
|
8831
9186
|
<!-- tab is padding-right -->
|
@@ -8863,6 +9218,7 @@
|
|
8863
9218
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
8864
9219
|
</xsl:if>
|
8865
9220
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
9221
|
+
<xsl:call-template name="refine_figure-fn-number-style"/>
|
8866
9222
|
<!-- <xsl:value-of select="@reference"/> -->
|
8867
9223
|
<xsl:apply-templates/>
|
8868
9224
|
</fo:inline>
|
@@ -8911,6 +9267,8 @@
|
|
8911
9267
|
|
8912
9268
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
8913
9269
|
|
9270
|
+
<xsl:call-template name="refine_figure-style"/>
|
9271
|
+
|
8914
9272
|
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
8915
9273
|
<xsl:call-template name="setIDforNamedDestination"/>
|
8916
9274
|
</xsl:for-each>
|
@@ -8953,6 +9311,7 @@
|
|
8953
9311
|
|
8954
9312
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
8955
9313
|
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
9314
|
+
<xsl:call-template name="refine_figure-pseudocode-p-style"/>
|
8956
9315
|
<xsl:apply-templates/>
|
8957
9316
|
</fo:block>
|
8958
9317
|
</xsl:template>
|
@@ -9082,6 +9441,8 @@
|
|
9082
9441
|
</xsl:variable>
|
9083
9442
|
<xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
|
9084
9443
|
|
9444
|
+
<xsl:call-template name="refine_image-graphic-style"/>
|
9445
|
+
|
9085
9446
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::mn:table)">
|
9086
9447
|
<xsl:variable name="scale">
|
9087
9448
|
<xsl:call-template name="getImageScale">
|
@@ -9781,6 +10142,9 @@
|
|
9781
10142
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
9782
10143
|
</xsl:attribute-set> <!-- formula-style -->
|
9783
10144
|
|
10145
|
+
<xsl:template name="refine_formula-style">
|
10146
|
+
</xsl:template>
|
10147
|
+
|
9784
10148
|
<xsl:attribute-set name="formula-stem-block-style">
|
9785
10149
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
9786
10150
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
@@ -9851,6 +10215,8 @@
|
|
9851
10215
|
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
9852
10216
|
<fo:block xsl:use-attribute-sets="formula-style">
|
9853
10217
|
|
10218
|
+
<xsl:call-template name="refine_formula-style"/>
|
10219
|
+
|
9854
10220
|
<fo:table table-layout="fixed" width="100%">
|
9855
10221
|
<fo:table-column column-width="95%"/>
|
9856
10222
|
<fo:table-column column-width="5%"/>
|
@@ -10271,6 +10637,9 @@
|
|
10271
10637
|
<xsl:attribute name="color">black</xsl:attribute>
|
10272
10638
|
</xsl:attribute-set> <!-- list-name-style -->
|
10273
10639
|
|
10640
|
+
<xsl:template name="refine_list-name-style">
|
10641
|
+
</xsl:template>
|
10642
|
+
|
10274
10643
|
<xsl:attribute-set name="list-item-style">
|
10275
10644
|
<xsl:attribute name="space-after">4pt</xsl:attribute>
|
10276
10645
|
</xsl:attribute-set>
|
@@ -10573,6 +10942,7 @@
|
|
10573
10942
|
<xsl:param name="process">false</xsl:param>
|
10574
10943
|
<xsl:if test="$process = 'true'">
|
10575
10944
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
10945
|
+
<xsl:call-template name="refine_list-name-style"/>
|
10576
10946
|
<xsl:apply-templates/>
|
10577
10947
|
</fo:block>
|
10578
10948
|
</xsl:if>
|
@@ -10633,27 +11003,48 @@
|
|
10633
11003
|
<!-- END Lists processing -->
|
10634
11004
|
<!-- ===================================== -->
|
10635
11005
|
|
11006
|
+
<xsl:attribute-set name="footnote-separator-leader-style">
|
11007
|
+
</xsl:attribute-set>
|
11008
|
+
|
11009
|
+
<xsl:template name="refine_footnote-separator-leader-style">
|
11010
|
+
</xsl:template>
|
11011
|
+
|
11012
|
+
<xsl:attribute-set name="fn-container-body-style">
|
11013
|
+
<xsl:attribute name="text-indent">0</xsl:attribute>
|
11014
|
+
<xsl:attribute name="start-indent">0</xsl:attribute>
|
11015
|
+
</xsl:attribute-set>
|
11016
|
+
|
11017
|
+
<xsl:template name="refine_fn-container-body-style">
|
11018
|
+
</xsl:template>
|
11019
|
+
|
10636
11020
|
<xsl:attribute-set name="fn-reference-style">
|
10637
11021
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
10638
11022
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10639
11023
|
<xsl:attribute name="font-size">70%</xsl:attribute>
|
10640
11024
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10641
11025
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
10642
|
-
|
10643
|
-
</xsl:attribute-set>
|
11026
|
+
</xsl:attribute-set> <!-- fn-reference-style -->
|
10644
11027
|
|
10645
11028
|
<xsl:template name="refine_fn-reference-style">
|
11029
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11030
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
10646
11031
|
</xsl:template> <!-- refine_fn-reference-style -->
|
10647
11032
|
|
10648
11033
|
<xsl:attribute-set name="fn-style">
|
10649
11034
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10650
11035
|
</xsl:attribute-set>
|
10651
11036
|
|
11037
|
+
<xsl:template name="refine_fn-style">
|
11038
|
+
</xsl:template>
|
11039
|
+
|
10652
11040
|
<xsl:attribute-set name="fn-num-style">
|
10653
11041
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10654
11042
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
10655
11043
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10656
|
-
</xsl:attribute-set>
|
11044
|
+
</xsl:attribute-set> <!-- fn-num-style -->
|
11045
|
+
|
11046
|
+
<xsl:template name="refine_fn-num-style">
|
11047
|
+
</xsl:template>
|
10657
11048
|
|
10658
11049
|
<xsl:attribute-set name="fn-body-style">
|
10659
11050
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
@@ -10664,7 +11055,7 @@
|
|
10664
11055
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10665
11056
|
<xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
|
10666
11057
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
10667
|
-
</xsl:attribute-set>
|
11058
|
+
</xsl:attribute-set> <!-- fn-body-style" -->
|
10668
11059
|
|
10669
11060
|
<xsl:template name="refine_fn-body-style">
|
10670
11061
|
</xsl:template> <!-- refine_fn-body-style -->
|
@@ -10728,10 +11119,12 @@
|
|
10728
11119
|
<xsl:choose>
|
10729
11120
|
<xsl:when test="ancestor::mn:bibitem">
|
10730
11121
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
11122
|
+
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
10731
11123
|
</fn_styles>
|
10732
11124
|
</xsl:when>
|
10733
11125
|
<xsl:otherwise>
|
10734
11126
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
11127
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
10735
11128
|
</fn_styles>
|
10736
11129
|
</xsl:otherwise>
|
10737
11130
|
</xsl:choose>
|
@@ -10741,9 +11134,12 @@
|
|
10741
11134
|
<xsl:copy-of select="."/>
|
10742
11135
|
</xsl:for-each>
|
10743
11136
|
|
10744
|
-
|
11137
|
+
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11138
|
+
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
10745
11139
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
10746
|
-
</xsl:if>
|
11140
|
+
</xsl:if> -->
|
11141
|
+
|
11142
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
|
10747
11143
|
|
10748
11144
|
<xsl:call-template name="insert_basic_link">
|
10749
11145
|
<xsl:with-param name="element">
|
@@ -10766,10 +11162,12 @@
|
|
10766
11162
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false' or $footnote_body_from_table = 'true'">
|
10767
11163
|
|
10768
11164
|
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
11165
|
+
<xsl:call-template name="refine_fn-style"/>
|
10769
11166
|
<xsl:copy-of select="$footnote_inline"/>
|
10770
11167
|
<fo:footnote-body role="Note">
|
10771
11168
|
|
10772
11169
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
11170
|
+
<xsl:call-template name="refine_fn-container-body-style"/>
|
10773
11171
|
|
10774
11172
|
<xsl:variable name="fn_block">
|
10775
11173
|
<xsl:call-template name="refine_fn-body-style"/>
|
@@ -10871,6 +11269,9 @@
|
|
10871
11269
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10872
11270
|
</xsl:attribute-set> <!-- admonition-style -->
|
10873
11271
|
|
11272
|
+
<xsl:template name="refine_admonition-style">
|
11273
|
+
</xsl:template>
|
11274
|
+
|
10874
11275
|
<xsl:attribute-set name="admonition-container-style">
|
10875
11276
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
10876
11277
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -10878,6 +11279,9 @@
|
|
10878
11279
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
10879
11280
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
10880
11281
|
|
11282
|
+
<xsl:template name="refine_admonition-container-style">
|
11283
|
+
</xsl:template>
|
11284
|
+
|
10881
11285
|
<xsl:attribute-set name="admonition-name-style">
|
10882
11286
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
10883
11287
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -10887,9 +11291,16 @@
|
|
10887
11291
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
10888
11292
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
10889
11293
|
|
11294
|
+
<xsl:template name="refine_admonition-name-style">
|
11295
|
+
</xsl:template>
|
11296
|
+
|
10890
11297
|
<xsl:attribute-set name="admonition-p-style">
|
10891
11298
|
<xsl:attribute name="font-style">italic</xsl:attribute>
|
10892
11299
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
11300
|
+
|
11301
|
+
<xsl:template name="refine_admonition-p-style">
|
11302
|
+
</xsl:template>
|
11303
|
+
|
10893
11304
|
<!-- end admonition -->
|
10894
11305
|
|
10895
11306
|
<!-- ================ -->
|
@@ -10899,12 +11310,18 @@
|
|
10899
11310
|
<xsl:call-template name="setNamedDestination"/>
|
10900
11311
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
10901
11312
|
|
11313
|
+
<xsl:call-template name="refine_admonition-style"/>
|
11314
|
+
|
10902
11315
|
<xsl:call-template name="setBlockSpanAll"/>
|
10903
11316
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
11317
|
+
|
11318
|
+
<xsl:call-template name="refine_admonition-container-style"/>
|
10904
11319
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
11320
|
+
<xsl:call-template name="refine_admonition-name-style"/>
|
10905
11321
|
<xsl:call-template name="displayAdmonitionName"/>
|
10906
11322
|
</fo:block>
|
10907
11323
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11324
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
10908
11325
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
10909
11326
|
</fo:block>
|
10910
11327
|
|
@@ -10958,6 +11375,7 @@
|
|
10958
11375
|
|
10959
11376
|
<xsl:template match="mn:admonition/mn:p">
|
10960
11377
|
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11378
|
+
<xsl:call-template name="refine_admonition-p-style"/>
|
10961
11379
|
|
10962
11380
|
<xsl:apply-templates/>
|
10963
11381
|
</fo:block>
|
@@ -10967,12 +11385,29 @@
|
|
10967
11385
|
<!-- END Admonition -->
|
10968
11386
|
<!-- ================ -->
|
10969
11387
|
|
11388
|
+
<xsl:attribute-set name="references-non-normative-title-style">
|
11389
|
+
<xsl:attribute name="margin-left">-15mm</xsl:attribute>
|
11390
|
+
<xsl:attribute name="role">H1</xsl:attribute>
|
11391
|
+
<xsl:attribute name="font-size">22pt</xsl:attribute>
|
11392
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
11393
|
+
<xsl:attribute name="margin-bottom">16pt</xsl:attribute>
|
11394
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
11395
|
+
<xsl:attribute name="line-height">125%</xsl:attribute>
|
11396
|
+
</xsl:attribute-set>
|
11397
|
+
|
11398
|
+
<xsl:template name="refine_references-non-normative-title-style">
|
11399
|
+
|
11400
|
+
</xsl:template>
|
11401
|
+
|
10970
11402
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
10971
11403
|
<xsl:attribute-set name="bibitem-normative-style">
|
10972
11404
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10973
11405
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
10974
11406
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
10975
11407
|
|
11408
|
+
<xsl:template name="refine_bibitem-normative-style">
|
11409
|
+
</xsl:template>
|
11410
|
+
|
10976
11411
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
10977
11412
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
10978
11413
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
@@ -10981,29 +11416,67 @@
|
|
10981
11416
|
<xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
|
10982
11417
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
10983
11418
|
|
11419
|
+
<xsl:template name="refine_bibitem-normative-list-style">
|
11420
|
+
</xsl:template>
|
11421
|
+
|
10984
11422
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
10985
11423
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
10986
11424
|
|
11425
|
+
<xsl:template name="refine_bibitem-non-normative-style">
|
11426
|
+
</xsl:template>
|
11427
|
+
|
10987
11428
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
10988
11429
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
10989
11430
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
10990
11431
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10991
11432
|
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
10992
11433
|
<xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
|
11434
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
10993
11435
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
10994
11436
|
|
11437
|
+
<xsl:template name="refine_bibitem-non-normative-list-style">
|
11438
|
+
<xsl:variable name="last_bibitem_bibliotag">
|
11439
|
+
<xsl:apply-templates select="following-sibling::mn:bibitem[not(@hidden='true')][last()]/mn:biblio-tag">
|
11440
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
11441
|
+
</xsl:apply-templates>
|
11442
|
+
<xsl:if test="not(following-sibling::mn:bibitem[not(@hidden='true')][last()]/mn:biblio-tag)">
|
11443
|
+
<xsl:apply-templates select="mn:biblio-tag">
|
11444
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
11445
|
+
</xsl:apply-templates>
|
11446
|
+
</xsl:if>
|
11447
|
+
</xsl:variable>
|
11448
|
+
<xsl:variable name="last_bibitem_bibliotag_number_length" select="string-length(translate($last_bibitem_bibliotag, '[] ', ''))"/>
|
11449
|
+
<xsl:if test="$last_bibitem_bibliotag_number_length > 1">
|
11450
|
+
<xsl:attribute name="provisional-distance-between-starts">
|
11451
|
+
<xsl:choose>
|
11452
|
+
<xsl:when test="$last_bibitem_bibliotag_number_length = 2">9.2mm</xsl:when>
|
11453
|
+
<xsl:when test="$last_bibitem_bibliotag_number_length >= 3">11mm</xsl:when>
|
11454
|
+
</xsl:choose>
|
11455
|
+
</xsl:attribute>
|
11456
|
+
</xsl:if>
|
11457
|
+
</xsl:template>
|
11458
|
+
|
10995
11459
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
10996
11460
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
10997
11461
|
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
10998
11462
|
</xsl:attribute-set>
|
10999
11463
|
|
11464
|
+
<xsl:template name="refine_bibitem-non-normative-list-item-style">
|
11465
|
+
</xsl:template>
|
11466
|
+
|
11000
11467
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
11001
11468
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
11002
11469
|
</xsl:attribute-set>
|
11003
11470
|
|
11471
|
+
<xsl:template name="refine_bibitem-normative-list-body-style">
|
11472
|
+
</xsl:template>
|
11473
|
+
|
11004
11474
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
11005
11475
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
11006
11476
|
|
11477
|
+
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
11478
|
+
</xsl:template>
|
11479
|
+
|
11007
11480
|
<!-- footnote reference number for bibitem, in the text -->
|
11008
11481
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
11009
11482
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
@@ -11011,6 +11484,9 @@
|
|
11011
11484
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
11012
11485
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
11013
11486
|
|
11487
|
+
<xsl:template name="refine_bibitem-note-fn-style">
|
11488
|
+
</xsl:template>
|
11489
|
+
|
11014
11490
|
<!-- footnote number on the page bottom -->
|
11015
11491
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
11016
11492
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
@@ -11029,6 +11505,9 @@
|
|
11029
11505
|
<xsl:attribute-set name="references-non-normative-style">
|
11030
11506
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
11031
11507
|
|
11508
|
+
<xsl:template name="refine_references-non-normative-style">
|
11509
|
+
</xsl:template>
|
11510
|
+
|
11032
11511
|
<!-- ======================= -->
|
11033
11512
|
<!-- Bibliography rendering -->
|
11034
11513
|
<!-- ======================= -->
|
@@ -11070,6 +11549,7 @@
|
|
11070
11549
|
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
11071
11550
|
|
11072
11551
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
11552
|
+
<xsl:call-template name="refine_references-non-normative-style"/>
|
11073
11553
|
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
11074
11554
|
</fo:block>
|
11075
11555
|
</xsl:template> <!-- references -->
|
@@ -11083,19 +11563,23 @@
|
|
11083
11563
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][self::mn:bibitem] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11084
11564
|
<xsl:call-template name="setNamedDestination"/>
|
11085
11565
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
11566
|
+
<xsl:call-template name="refine_bibitem-normative-style"/>
|
11567
|
+
|
11086
11568
|
<xsl:call-template name="processBibitem"/>
|
11087
11569
|
</fo:block>
|
11088
11570
|
|
11089
11571
|
</xsl:template> <!-- bibitem -->
|
11090
11572
|
|
11091
11573
|
<!-- Bibliography (non-normative references) -->
|
11092
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem
|
11574
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:bibitem" name="bibitem_non_normative" priority="2">
|
11093
11575
|
<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
11576
|
<xsl:call-template name="setNamedDestination"/>
|
11577
|
+
<!-- continue from <xsl:template match="mn:references[not(@normative='true')]" priority="3"> -->
|
11095
11578
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
11579
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-style"/>
|
11096
11580
|
<fo:list-item>
|
11097
11581
|
<fo:list-item-label end-indent="label-end()">
|
11098
|
-
<fo:block>
|
11582
|
+
<fo:block role="SKIP">
|
11099
11583
|
<xsl:apply-templates select="mn:biblio-tag">
|
11100
11584
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
11101
11585
|
</xsl:apply-templates>
|
@@ -11107,8 +11591,8 @@
|
|
11107
11591
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11108
11592
|
</xsl:apply-templates>
|
11109
11593
|
<xsl:apply-templates select="mn:formattedref"/>
|
11110
|
-
<xsl:call-template name="processBibliographyNote"/>
|
11111
11594
|
</fo:block>
|
11595
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11112
11596
|
</fo:list-item-body>
|
11113
11597
|
</fo:list-item>
|
11114
11598
|
</fo:list-block>
|
@@ -11116,12 +11600,17 @@
|
|
11116
11600
|
|
11117
11601
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
11118
11602
|
|
11603
|
+
<!-- bibitem's notes will be processing in 'processBibitemFollowingNotes' -->
|
11604
|
+
<xsl:template match="mn:references/mn:note" priority="2"/> <!-- [not(@normative='true')] -->
|
11605
|
+
|
11119
11606
|
<xsl:template name="insertListItem_Bibitem">
|
11120
11607
|
<xsl:choose>
|
11121
11608
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
11122
11609
|
<xsl:otherwise>
|
11123
11610
|
<xsl:call-template name="setNamedDestination"/>
|
11124
11611
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
11612
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-item-style"/>
|
11613
|
+
|
11125
11614
|
<fo:list-item-label end-indent="label-end()">
|
11126
11615
|
<fo:block role="SKIP">
|
11127
11616
|
<fo:inline role="SKIP">
|
@@ -11132,16 +11621,18 @@
|
|
11132
11621
|
</fo:block>
|
11133
11622
|
</fo:list-item-label>
|
11134
11623
|
<fo:list-item-body start-indent="body-start()">
|
11135
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP"
|
11624
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style"> <!-- role="SKIP" -->
|
11625
|
+
<xsl:call-template name="refine_bibitem-non-normative-list-body-style"/>
|
11136
11626
|
<xsl:call-template name="processBibitem">
|
11137
11627
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11138
11628
|
</xsl:call-template>
|
11139
11629
|
</fo:block>
|
11630
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11140
11631
|
</fo:list-item-body>
|
11141
11632
|
</fo:list-item>
|
11142
11633
|
</xsl:otherwise>
|
11143
11634
|
</xsl:choose>
|
11144
|
-
<xsl:apply-templates select="following-sibling::*[
|
11635
|
+
<xsl:apply-templates select="following-sibling::*[self::mn:bibitem][1]">
|
11145
11636
|
<xsl:with-param name="skip">false</xsl:with-param>
|
11146
11637
|
</xsl:apply-templates>
|
11147
11638
|
</xsl:template>
|
@@ -11157,25 +11648,16 @@
|
|
11157
11648
|
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
11158
11649
|
</xsl:apply-templates>
|
11159
11650
|
<xsl:apply-templates select="mn:formattedref"/>
|
11651
|
+
<xsl:call-template name="processBibitemFollowingNotes"/>
|
11160
11652
|
<!-- end bibitem processing -->
|
11161
|
-
|
11162
|
-
<xsl:call-template name="processBibliographyNote"/>
|
11163
11653
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11164
11654
|
|
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> -->
|
11655
|
+
<xsl:template name="processBibitemFollowingNotes">
|
11656
|
+
<!-- current context is bibitem element -->
|
11657
|
+
<xsl:variable name="bibitem_id" select="@id"/>
|
11658
|
+
<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
11659
|
<xsl:call-template name="note"/>
|
11178
|
-
</xsl:
|
11660
|
+
</xsl:for-each>
|
11179
11661
|
</xsl:template>
|
11180
11662
|
|
11181
11663
|
<xsl:template match="mn:title" mode="title">
|
@@ -11375,11 +11857,17 @@
|
|
11375
11857
|
<!-- Index section styles -->
|
11376
11858
|
<xsl:attribute-set name="indexsect-title-style">
|
11377
11859
|
<xsl:attribute name="role">H1</xsl:attribute>
|
11378
|
-
</xsl:attribute-set>
|
11860
|
+
</xsl:attribute-set> <!-- indexsect-title-style -->
|
11861
|
+
|
11862
|
+
<xsl:template name="refine_indexsect-title-style">
|
11863
|
+
</xsl:template>
|
11379
11864
|
|
11380
11865
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
11381
11866
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
11382
|
-
</xsl:attribute-set>
|
11867
|
+
</xsl:attribute-set> <!-- indexsect-clause-title-style -->
|
11868
|
+
|
11869
|
+
<xsl:template name="refine_indexsect-clause-title-style">
|
11870
|
+
</xsl:template>
|
11383
11871
|
<!-- End Index section styles -->
|
11384
11872
|
|
11385
11873
|
<!-- =================== -->
|
@@ -11573,6 +12061,7 @@
|
|
11573
12061
|
|
11574
12062
|
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
11575
12063
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
12064
|
+
<xsl:call-template name="refine_indexsect-title-style"/>
|
11576
12065
|
<!-- Index -->
|
11577
12066
|
<xsl:apply-templates/>
|
11578
12067
|
</fo:block>
|
@@ -11581,6 +12070,7 @@
|
|
11581
12070
|
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
11582
12071
|
<!-- Letter A, B, C, ... -->
|
11583
12072
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
12073
|
+
<xsl:call-template name="refine_indexsect-clause-title-style"/>
|
11584
12074
|
<xsl:apply-templates/>
|
11585
12075
|
</fo:block>
|
11586
12076
|
</xsl:template>
|
@@ -11744,6 +12234,7 @@
|
|
11744
12234
|
<xsl:attribute-set name="toc-style">
|
11745
12235
|
<xsl:attribute name="margin-left">32mm</xsl:attribute>
|
11746
12236
|
<xsl:attribute name="margin-right">-17mm</xsl:attribute>
|
12237
|
+
<xsl:attribute name="role">TOC</xsl:attribute>
|
11747
12238
|
</xsl:attribute-set>
|
11748
12239
|
|
11749
12240
|
<xsl:template name="refine_toc-style">
|
@@ -11800,10 +12291,16 @@
|
|
11800
12291
|
<xsl:attribute name="rule-thickness">0.2mm</xsl:attribute>
|
11801
12292
|
</xsl:attribute-set> <!-- END: toc-leader-style -->
|
11802
12293
|
|
12294
|
+
<xsl:template name="refine_toc-leader-style">
|
12295
|
+
</xsl:template>
|
12296
|
+
|
11803
12297
|
<xsl:attribute-set name="toc-pagenumber-style">
|
11804
12298
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
11805
12299
|
</xsl:attribute-set>
|
11806
12300
|
|
12301
|
+
<xsl:template name="refine_toc-pagenumber-style">
|
12302
|
+
</xsl:template>
|
12303
|
+
|
11807
12304
|
<!-- List of Figures, Tables -->
|
11808
12305
|
<xsl:attribute-set name="toc-listof-title-style">
|
11809
12306
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
@@ -11820,6 +12317,9 @@
|
|
11820
12317
|
<xsl:attribute-set name="toc-listof-item-block-style">
|
11821
12318
|
</xsl:attribute-set>
|
11822
12319
|
|
12320
|
+
<xsl:template name="refine_toc-listof-item-block-style">
|
12321
|
+
</xsl:template>
|
12322
|
+
|
11823
12323
|
<xsl:attribute-set name="toc-listof-item-style">
|
11824
12324
|
<xsl:attribute name="role">TOCI</xsl:attribute>
|
11825
12325
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
@@ -11827,6 +12327,9 @@
|
|
11827
12327
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
11828
12328
|
</xsl:attribute-set>
|
11829
12329
|
|
12330
|
+
<xsl:template name="refine_toc-listof-item-style">
|
12331
|
+
</xsl:template>
|
12332
|
+
|
11830
12333
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
11831
12334
|
<xsl:variable name="nodes_preface_">
|
11832
12335
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition or @type = 'toc')]">
|
@@ -12934,23 +13437,55 @@
|
|
12934
13437
|
<!-- Ruby text (CJK languages) rendering -->
|
12935
13438
|
<!-- ===================================== -->
|
12936
13439
|
<!-- ===================================== -->
|
13440
|
+
|
13441
|
+
<xsl:attribute-set name="ruby-style">
|
13442
|
+
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
13443
|
+
<xsl:attribute name="last-line-end-indent">0mm</xsl:attribute>
|
13444
|
+
</xsl:attribute-set>
|
13445
|
+
|
13446
|
+
<xsl:template name="refine_ruby-style">
|
13447
|
+
<xsl:if test="not(ancestor::mn:ruby)">
|
13448
|
+
<xsl:attribute name="alignment-baseline">central</xsl:attribute>
|
13449
|
+
</xsl:if>
|
13450
|
+
<xsl:variable name="rt_text" select="mn:rt"/>
|
13451
|
+
<xsl:variable name="rb_text" select=".//mn:rb[not(mn:ruby)]"/>
|
13452
|
+
<!-- Example: width="2em" -->
|
13453
|
+
<xsl:variable name="text_rt_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rt_text, $font_main, 6)"/>
|
13454
|
+
<xsl:variable name="text_rb_width" select="java:org.metanorma.fop.Util.getStringWidthByFontSize($rb_text, $font_main, 10)"/>
|
13455
|
+
<xsl:variable name="text_width">
|
13456
|
+
<xsl:choose>
|
13457
|
+
<xsl:when test="$text_rt_width >= $text_rb_width"><xsl:value-of select="$text_rt_width"/></xsl:when>
|
13458
|
+
<xsl:otherwise><xsl:value-of select="$text_rb_width"/></xsl:otherwise>
|
13459
|
+
</xsl:choose>
|
13460
|
+
</xsl:variable>
|
13461
|
+
<xsl:attribute name="width"><xsl:value-of select="$text_width div 10"/>em</xsl:attribute>
|
13462
|
+
</xsl:template> <!-- refine_ruby-style -->
|
13463
|
+
|
13464
|
+
<xsl:attribute-set name="rb-style">
|
13465
|
+
<xsl:attribute name="line-height">1em</xsl:attribute>
|
13466
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
13467
|
+
</xsl:attribute-set>
|
13468
|
+
|
13469
|
+
<xsl:template name="refine_rb-style">
|
13470
|
+
</xsl:template>
|
13471
|
+
|
13472
|
+
<xsl:attribute-set name="rt-style">
|
13473
|
+
<xsl:attribute name="font-size">0.5em</xsl:attribute>
|
13474
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
13475
|
+
<xsl:attribute name="line-height">1.2em</xsl:attribute>
|
13476
|
+
<xsl:attribute name="space-before">-1.4em</xsl:attribute>
|
13477
|
+
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
|
13478
|
+
</xsl:attribute-set>
|
13479
|
+
|
13480
|
+
<xsl:template name="refine_rt-style">
|
13481
|
+
<xsl:if test="ancestor::mn:ruby[last()]//mn:ruby or ancestor::mn:rb">
|
13482
|
+
<xsl:attribute name="space-before">0em</xsl:attribute>
|
13483
|
+
</xsl:if>
|
13484
|
+
</xsl:template>
|
13485
|
+
|
12937
13486
|
<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>
|
13487
|
+
<fo:inline-container xsl:use-attribute-sets="ruby-style">
|
13488
|
+
<xsl:call-template name="refine_ruby-style"/>
|
12954
13489
|
|
12955
13490
|
<xsl:choose>
|
12956
13491
|
<xsl:when test="ancestor::mn:ruby">
|
@@ -12968,17 +13503,14 @@
|
|
12968
13503
|
</xsl:template>
|
12969
13504
|
|
12970
13505
|
<xsl:template match="mn:rb">
|
12971
|
-
<fo:block
|
13506
|
+
<fo:block xsl:use-attribute-sets="rb-style"><xsl:call-template name="refine_rb-style"/><xsl:apply-templates/></fo:block>
|
12972
13507
|
</xsl:template>
|
12973
13508
|
|
12974
13509
|
<xsl:template match="mn:rt">
|
12975
|
-
<fo:block
|
12976
|
-
<xsl:
|
12977
|
-
<xsl:attribute name="space-before">0em</xsl:attribute>
|
12978
|
-
</xsl:if>
|
13510
|
+
<fo:block xsl:use-attribute-sets="rt-style"> <!-- -->
|
13511
|
+
<xsl:call-template name="refine_rt-style"/>
|
12979
13512
|
<xsl:apply-templates/>
|
12980
13513
|
</fo:block>
|
12981
|
-
|
12982
13514
|
</xsl:template>
|
12983
13515
|
|
12984
13516
|
<!-- ===================================== -->
|
@@ -12987,6 +13519,18 @@
|
|
12987
13519
|
<!-- ===================================== -->
|
12988
13520
|
<!-- ===================================== -->
|
12989
13521
|
|
13522
|
+
<xsl:attribute-set name="annex-title-style">
|
13523
|
+
</xsl:attribute-set>
|
13524
|
+
|
13525
|
+
<xsl:template name="refine_annex-title-style">
|
13526
|
+
</xsl:template>
|
13527
|
+
|
13528
|
+
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
13529
|
+
</xsl:attribute-set>
|
13530
|
+
|
13531
|
+
<xsl:template name="refine_p-zzSTDTitle1-style">
|
13532
|
+
</xsl:template>
|
13533
|
+
|
12990
13534
|
<xsl:template name="processPrefaceSectionsDefault">
|
12991
13535
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
12992
13536
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13325,13 +13869,32 @@
|
|
13325
13869
|
</xsl:choose>
|
13326
13870
|
</xsl:template>
|
13327
13871
|
|
13872
|
+
<xsl:attribute-set name="clause-style">
|
13873
|
+
|
13874
|
+
</xsl:attribute-set>
|
13875
|
+
|
13876
|
+
<xsl:template name="refine_clause-style">
|
13877
|
+
<xsl:variable name="level">
|
13878
|
+
<xsl:call-template name="getLevel">
|
13879
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
13880
|
+
</xsl:call-template>
|
13881
|
+
</xsl:variable>
|
13882
|
+
<xsl:if test="$level >= 4">
|
13883
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
13884
|
+
</xsl:if>
|
13885
|
+
</xsl:template>
|
13886
|
+
|
13328
13887
|
<!-- main sections -->
|
13329
13888
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
13889
|
+
<xsl:if test="@type = 'terms'">
|
13890
|
+
<fo:block break-after="page"/>
|
13891
|
+
</xsl:if>
|
13330
13892
|
<xsl:call-template name="setNamedDestination"/>
|
13331
|
-
<fo:block>
|
13893
|
+
<fo:block role="Sect">
|
13332
13894
|
<xsl:call-template name="setId"/>
|
13333
13895
|
|
13334
13896
|
<xsl:call-template name="sections_element_style"/>
|
13897
|
+
<xsl:call-template name="addTagElementT"/>
|
13335
13898
|
|
13336
13899
|
<xsl:call-template name="addReviewHelper"/>
|
13337
13900
|
|
@@ -13456,6 +14019,10 @@
|
|
13456
14019
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
13457
14020
|
</xsl:template>
|
13458
14021
|
|
14022
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
14023
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
14024
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
14025
|
+
|
13459
14026
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
13460
14027
|
<xsl:template name="insert_basic_link">
|
13461
14028
|
<xsl:param name="element"/>
|