metanorma-ogc 2.7.7 → 2.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.best-practice.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.community-practice.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.community-standard.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.other.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.policy.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.reference-model.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.release-notes.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.standard.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.test-suite.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.user-guide.xsl +793 -1346
- data/lib/isodoc/ogc/ogc.white-paper.xsl +755 -1286
- data/lib/isodoc/ogc/presentation_sections.rb +5 -5
- data/lib/isodoc/ogc/presentation_xml_convert.rb +9 -6
- data/lib/metanorma/ogc/cleanup.rb +2 -6
- data/lib/metanorma/ogc/converter.rb +2 -2
- data/lib/metanorma/ogc/isodoc.rng +19 -2
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:ogc="https://www.metanorma.org/ns/standoc" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:redirect="http://xml.apache.org/xalan/redirect" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java redirect" extension-element-prefixes="redirect" version="1.0">
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:ogc="https://www.metanorma.org/ns/standoc" xmlns:mn="https://www.metanorma.org/ns/xslt" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:redirect="http://xml.apache.org/xalan/redirect" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java redirect" extension-element-prefixes="redirect" version="1.0">
|
2
2
|
|
3
3
|
<xsl:output version="1.0" method="xml" encoding="UTF-8" indent="no"/>
|
4
4
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
</xsl:attribute-set>
|
69
69
|
|
70
70
|
<xsl:variable name="contents_">
|
71
|
-
<contents>
|
71
|
+
<mn:contents>
|
72
72
|
<!-- Abstract, Keywords, Preface, Submitting Organizations, Submitters -->
|
73
73
|
<xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
|
74
74
|
|
@@ -76,12 +76,11 @@
|
|
76
76
|
<xsl:apply-templates select="//ogc:indexsect" mode="contents"/>
|
77
77
|
|
78
78
|
<xsl:call-template name="processTablesFigures_Contents"/>
|
79
|
-
</contents>
|
79
|
+
</mn:contents>
|
80
80
|
</xsl:variable>
|
81
81
|
<xsl:variable name="contents" select="xalan:nodeset($contents_)"/>
|
82
82
|
|
83
83
|
<xsl:template match="/">
|
84
|
-
<xsl:call-template name="namespaceCheck"/>
|
85
84
|
|
86
85
|
<fo:root xml:lang="{$lang}">
|
87
86
|
<xsl:variable name="root-style">
|
@@ -382,13 +381,13 @@
|
|
382
381
|
<xsl:if test="count(*) = 1 and *[local-name() = 'title']"> <!-- if there isn't user ToC -->
|
383
382
|
|
384
383
|
<xsl:variable name="margin-left">3.9</xsl:variable>
|
385
|
-
<xsl:for-each select="$contents//item[@display = 'true']">
|
384
|
+
<xsl:for-each select="$contents//mn:item[@display = 'true']">
|
386
385
|
<fo:block margin-top="8pt" margin-bottom="5pt" margin-left="{(@level - 1) * $margin-left}mm" text-align-last="justify" role="TOCI">
|
387
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{title}">
|
386
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{mn:title}">
|
388
387
|
<xsl:if test="@section != ''">
|
389
388
|
<xsl:value-of select="@section"/><xsl:text> </xsl:text>
|
390
389
|
</xsl:if>
|
391
|
-
<xsl:apply-templates select="title"/>
|
390
|
+
<xsl:apply-templates select="mn:title"/>
|
392
391
|
<fo:inline keep-together.within-line="always">
|
393
392
|
<fo:leader leader-pattern="dots"/>
|
394
393
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
@@ -494,12 +493,12 @@
|
|
494
493
|
<xsl:value-of select="local-name()"/>
|
495
494
|
</xsl:variable>
|
496
495
|
|
497
|
-
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}" display="{$display}">
|
498
|
-
<title>
|
496
|
+
<mn:item id="{@id}" level="{$level}" section="{$section}" type="{$type}" display="{$display}">
|
497
|
+
<mn:title>
|
499
498
|
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
500
|
-
</title>
|
499
|
+
</mn:title>
|
501
500
|
<xsl:apply-templates mode="contents"/>
|
502
|
-
</item>
|
501
|
+
</mn:item>
|
503
502
|
</xsl:if>
|
504
503
|
|
505
504
|
</xsl:template>
|
@@ -767,34 +766,25 @@
|
|
767
766
|
</xsl:choose>
|
768
767
|
</xsl:template>
|
769
768
|
|
770
|
-
|
769
|
+
<!-- https://www.metanorma.org/ns/standoc -->
|
770
|
+
<xsl:variable name="namespace_full" select="namespace-uri(//*[local-name() = 'metanorma'][1])"/>
|
771
771
|
|
772
|
-
|
773
|
-
|
774
|
-
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[local-name() = 'metanorma'][1])"/></xsl:when>
|
775
|
-
<xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/standoc -->
|
776
|
-
</xsl:choose>
|
777
|
-
</xsl:variable>
|
778
|
-
<xsl:variable name="namespace_full" select="normalize-space($namespace_full_)"/>
|
772
|
+
<!-- https://www.metanorma.org/ns/xsl -->
|
773
|
+
<xsl:variable name="namespace_mn_xsl">https://www.metanorma.org/ns/xslt</xsl:variable>
|
779
774
|
|
780
|
-
<xsl:variable name="
|
781
|
-
<xsl:choose>
|
782
|
-
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[local-name() = 'metanorma'][1])"/></xsl:when>
|
783
|
-
<xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: metanorma (former iso-standard) -->
|
784
|
-
</xsl:choose>
|
785
|
-
</xsl:variable>
|
786
|
-
<xsl:variable name="root_element" select="normalize-space($root_element_)"/>
|
775
|
+
<xsl:variable name="root_element">metanorma</xsl:variable>
|
787
776
|
|
777
|
+
<!---examples: 2013, 2024 -->
|
788
778
|
<xsl:variable name="document_scheme" select="normalize-space(//*[local-name() = 'metanorma']/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'document-scheme']/*[local-name() = 'value'])"/>
|
789
779
|
|
790
780
|
<!-- external parameters -->
|
791
|
-
|
792
781
|
<xsl:param name="svg_images"/> <!-- svg images array -->
|
793
782
|
<xsl:variable name="images" select="document($svg_images)"/>
|
794
783
|
<xsl:param name="basepath"/> <!-- base path for images -->
|
795
784
|
<xsl:param name="inputxml_basepath"/> <!-- input xml file path -->
|
796
785
|
<xsl:param name="inputxml_filename"/> <!-- input xml file name -->
|
797
786
|
<xsl:param name="output_path"/> <!-- output PDF file name -->
|
787
|
+
<xsl:param name="outputpdf_basepath"/> <!-- output PDF folder -->
|
798
788
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
799
789
|
<xsl:param name="syntax-highlight">false</xsl:param> <!-- syntax highlighting feature, default - off -->
|
800
790
|
<xsl:param name="add_math_as_text">true</xsl:param> <!-- add math in text behind svg formula, to copy-paste formula from PDF as text -->
|
@@ -841,20 +831,13 @@
|
|
841
831
|
|
842
832
|
<xsl:param name="table_if_debug">false</xsl:param> <!-- set 'true' to put debug width data before table or dl -->
|
843
833
|
|
844
|
-
|
845
|
-
|
834
|
+
<!-- don't remove and rename this variable, it's using in mn2pdf tool -->
|
835
|
+
<xsl:variable name="isApplyAutolayoutAlgorithm_">true
|
846
836
|
</xsl:variable>
|
847
837
|
<xsl:variable name="isApplyAutolayoutAlgorithm" select="normalize-space($isApplyAutolayoutAlgorithm_)"/>
|
848
838
|
|
849
|
-
<xsl:variable name="
|
850
|
-
|
851
|
-
<xsl:when test="$isApplyAutolayoutAlgorithm = 'true'">
|
852
|
-
<xsl:value-of select="normalize-space($table_if) = 'true'"/>
|
853
|
-
</xsl:when>
|
854
|
-
<xsl:otherwise>false</xsl:otherwise>
|
855
|
-
</xsl:choose>
|
856
|
-
</xsl:variable>
|
857
|
-
<xsl:variable name="isGenerateTableIF" select="normalize-space($isGenerateTableIF_)"/>
|
839
|
+
<xsl:variable name="isGenerateTableIF"><xsl:value-of select="$table_if"/></xsl:variable>
|
840
|
+
<!-- <xsl:variable name="isGenerateTableIF" select="normalize-space(normalize-space($table_if) = 'true' and 1 = 1)"/> -->
|
858
841
|
|
859
842
|
<xsl:variable name="lang">
|
860
843
|
<xsl:call-template name="getLang"/>
|
@@ -906,8 +889,7 @@
|
|
906
889
|
<xsl:variable name="pageWidth_">
|
907
890
|
<xsl:choose>
|
908
891
|
<xsl:when test="$papersize_width != ''"><xsl:value-of select="$papersize_width"/></xsl:when>
|
909
|
-
<xsl:otherwise>
|
910
|
-
215.9
|
892
|
+
<xsl:otherwise>215.9
|
911
893
|
</xsl:otherwise>
|
912
894
|
</xsl:choose>
|
913
895
|
</xsl:variable>
|
@@ -917,8 +899,7 @@
|
|
917
899
|
<xsl:variable name="pageHeight_">
|
918
900
|
<xsl:choose>
|
919
901
|
<xsl:when test="$papersize_height != ''"><xsl:value-of select="$papersize_height"/></xsl:when>
|
920
|
-
<xsl:otherwise>
|
921
|
-
279.4
|
902
|
+
<xsl:otherwise>279.4
|
922
903
|
</xsl:otherwise>
|
923
904
|
</xsl:choose>
|
924
905
|
</xsl:variable>
|
@@ -927,23 +908,19 @@
|
|
927
908
|
<!-- Page margins in mm (just digits, without 'mm')-->
|
928
909
|
<!-- marginLeftRight1 and marginLeftRight2 - is left or right margin depends on odd/even page,
|
929
910
|
for example, left margin on odd page and right margin on even page -->
|
930
|
-
<xsl:variable name="marginLeftRight1_">
|
931
|
-
25.4
|
911
|
+
<xsl:variable name="marginLeftRight1_">25.4
|
932
912
|
</xsl:variable>
|
933
913
|
<xsl:variable name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/>
|
934
914
|
|
935
|
-
<xsl:variable name="marginLeftRight2_">
|
936
|
-
25.4
|
915
|
+
<xsl:variable name="marginLeftRight2_">25.4
|
937
916
|
</xsl:variable>
|
938
917
|
<xsl:variable name="marginLeftRight2" select="normalize-space($marginLeftRight2_)"/>
|
939
918
|
|
940
|
-
<xsl:variable name="marginTop_">
|
941
|
-
25.4
|
919
|
+
<xsl:variable name="marginTop_">25.4
|
942
920
|
</xsl:variable>
|
943
921
|
<xsl:variable name="marginTop" select="normalize-space($marginTop_)"/>
|
944
922
|
|
945
|
-
<xsl:variable name="marginBottom_">
|
946
|
-
25.4
|
923
|
+
<xsl:variable name="marginBottom_">25.4
|
947
924
|
</xsl:variable>
|
948
925
|
<xsl:variable name="marginBottom" select="normalize-space($marginBottom_)"/>
|
949
926
|
|
@@ -992,13 +969,10 @@
|
|
992
969
|
<title-toc lang="zh">目次</title-toc>
|
993
970
|
|
994
971
|
<title-part lang="en">
|
995
|
-
|
996
972
|
</title-part>
|
997
973
|
<title-part lang="fr">
|
998
|
-
|
999
974
|
</title-part>
|
1000
975
|
<title-part lang="ru">
|
1001
|
-
|
1002
976
|
</title-part>
|
1003
977
|
<title-part lang="zh">第 # 部分:</title-part>
|
1004
978
|
|
@@ -1094,11 +1068,9 @@
|
|
1094
1068
|
<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>
|
1095
1069
|
<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>
|
1096
1070
|
<xsl:attribute-set name="root-style">
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1101
|
-
|
1071
|
+
<xsl:attribute name="font-family">Roboto, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
1072
|
+
<xsl:attribute name="font-family-generic">Sans</xsl:attribute>
|
1073
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1102
1074
|
</xsl:attribute-set> <!-- root-style -->
|
1103
1075
|
|
1104
1076
|
<xsl:template name="insertRootStyle">
|
@@ -1186,43 +1158,33 @@
|
|
1186
1158
|
|
1187
1159
|
<!-- Preface sections styles -->
|
1188
1160
|
<xsl:attribute-set name="copyright-statement-style">
|
1189
|
-
|
1190
1161
|
</xsl:attribute-set> <!-- copyright-statement-style -->
|
1191
1162
|
|
1192
1163
|
<xsl:attribute-set name="copyright-statement-title-style">
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1197
|
-
|
1164
|
+
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
1165
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1166
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1198
1167
|
</xsl:attribute-set> <!-- copyright-statement-title-style -->
|
1199
1168
|
|
1200
1169
|
<xsl:attribute-set name="copyright-statement-p-style">
|
1201
|
-
|
1202
|
-
<xsl:attribute name="text-align">left</xsl:attribute>
|
1203
|
-
|
1170
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
1204
1171
|
</xsl:attribute-set> <!-- copyright-statement-p-style -->
|
1205
1172
|
|
1206
1173
|
<xsl:attribute-set name="license-statement-style">
|
1207
|
-
|
1208
1174
|
</xsl:attribute-set>
|
1209
1175
|
|
1210
1176
|
<xsl:attribute-set name="license-statement-title-style">
|
1211
1177
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1217
|
-
|
1178
|
+
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
1179
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1180
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1181
|
+
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1218
1182
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
1219
1183
|
|
1220
1184
|
<xsl:attribute-set name="license-statement-p-style">
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
<xsl:attribute name="line-height">135%</xsl:attribute>
|
1225
|
-
|
1185
|
+
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
1186
|
+
<xsl:attribute name="margin-top">14pt</xsl:attribute>
|
1187
|
+
<xsl:attribute name="line-height">135%</xsl:attribute>
|
1226
1188
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
1227
1189
|
|
1228
1190
|
<xsl:attribute-set name="legal-statement-style">
|
@@ -1231,121 +1193,93 @@
|
|
1231
1193
|
|
1232
1194
|
<xsl:attribute-set name="legal-statement-title-style">
|
1233
1195
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1238
|
-
|
1196
|
+
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
1197
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1198
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1239
1199
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
1240
1200
|
|
1241
1201
|
<xsl:attribute-set name="legal-statement-p-style">
|
1242
|
-
|
1243
|
-
<xsl:attribute name="text-align">left</xsl:attribute>
|
1244
|
-
|
1202
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
1245
1203
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
1246
1204
|
|
1247
1205
|
<xsl:attribute-set name="feedback-statement-style">
|
1248
|
-
|
1249
1206
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
1250
1207
|
|
1251
1208
|
<xsl:attribute-set name="feedback-statement-title-style">
|
1252
1209
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1253
|
-
|
1254
1210
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
1255
1211
|
|
1256
1212
|
<xsl:attribute-set name="feedback-statement-p-style">
|
1257
|
-
|
1258
1213
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
1259
1214
|
|
1260
1215
|
<!-- End Preface sections styles -->
|
1261
1216
|
|
1262
1217
|
<xsl:attribute-set name="link-style">
|
1263
|
-
|
1264
|
-
|
1265
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1266
|
-
|
1218
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1219
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1267
1220
|
</xsl:attribute-set>
|
1268
1221
|
|
1269
1222
|
<xsl:template name="refine_link-style">
|
1270
|
-
|
1271
1223
|
</xsl:template> <!-- refine_link-style -->
|
1272
1224
|
|
1273
1225
|
<xsl:attribute-set name="sourcecode-container-style">
|
1274
|
-
|
1275
1226
|
</xsl:attribute-set>
|
1276
1227
|
|
1277
1228
|
<xsl:attribute-set name="sourcecode-style">
|
1278
1229
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
1279
1230
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
1280
1231
|
<xsl:attribute name="role">Code</xsl:attribute>
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
<xsl:attribute name="line-height">113%</xsl:attribute>
|
1286
|
-
|
1232
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
1233
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1234
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1235
|
+
<xsl:attribute name="line-height">113%</xsl:attribute>
|
1287
1236
|
</xsl:attribute-set>
|
1288
1237
|
|
1289
1238
|
<xsl:template name="refine_sourcecode-style">
|
1290
|
-
|
1291
1239
|
</xsl:template> <!-- refine_sourcecode-style -->
|
1292
1240
|
|
1293
1241
|
<xsl:attribute-set name="pre-style">
|
1294
1242
|
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
1295
1243
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1296
|
-
|
1297
|
-
<xsl:attribute name="line-height">113%</xsl:attribute>
|
1298
|
-
|
1244
|
+
<xsl:attribute name="line-height">113%</xsl:attribute>
|
1299
1245
|
</xsl:attribute-set>
|
1300
1246
|
|
1301
1247
|
<xsl:attribute-set name="permission-style">
|
1302
|
-
|
1303
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1304
|
-
|
1248
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1305
1249
|
</xsl:attribute-set>
|
1306
1250
|
|
1307
1251
|
<xsl:attribute-set name="permission-name-style">
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1317
|
-
|
1252
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1253
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1254
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1255
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
1256
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
1257
|
+
<xsl:attribute name="margin-bottom">1mm</xsl:attribute>
|
1258
|
+
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
1259
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1318
1260
|
</xsl:attribute-set>
|
1319
1261
|
|
1320
1262
|
<xsl:attribute-set name="permission-label-style">
|
1321
|
-
|
1322
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1323
|
-
|
1263
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1324
1264
|
</xsl:attribute-set>
|
1325
1265
|
|
1326
1266
|
<xsl:attribute-set name="requirement-style">
|
1327
|
-
|
1328
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1329
|
-
|
1267
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1330
1268
|
</xsl:attribute-set>
|
1331
1269
|
|
1332
1270
|
<xsl:attribute-set name="requirement-name-style">
|
1333
1271
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
1342
|
-
|
1272
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1273
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1274
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1275
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
1276
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
1277
|
+
<xsl:attribute name="margin-bottom">1mm</xsl:attribute>
|
1278
|
+
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
1343
1279
|
</xsl:attribute-set>
|
1344
1280
|
|
1345
1281
|
<xsl:attribute-set name="requirement-label-style">
|
1346
|
-
|
1347
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1348
|
-
|
1282
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1349
1283
|
</xsl:attribute-set>
|
1350
1284
|
|
1351
1285
|
<xsl:attribute-set name="subject-style">
|
@@ -1373,145 +1307,115 @@
|
|
1373
1307
|
</xsl:attribute-set>
|
1374
1308
|
|
1375
1309
|
<xsl:attribute-set name="recommendation-style">
|
1376
|
-
|
1377
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1378
|
-
|
1310
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1379
1311
|
</xsl:attribute-set>
|
1380
1312
|
|
1381
1313
|
<xsl:attribute-set name="recommendation-name-style">
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1391
|
-
|
1314
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1315
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1316
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1317
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
1318
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
1319
|
+
<xsl:attribute name="margin-bottom">1mm</xsl:attribute>
|
1320
|
+
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
1321
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1392
1322
|
</xsl:attribute-set>
|
1393
1323
|
|
1394
1324
|
<xsl:attribute-set name="recommendation-label-style">
|
1395
|
-
|
1396
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1397
|
-
|
1325
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1398
1326
|
</xsl:attribute-set>
|
1399
1327
|
|
1400
1328
|
<xsl:attribute-set name="termexample-style">
|
1401
|
-
|
1402
|
-
|
1403
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1404
|
-
|
1329
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1330
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1405
1331
|
</xsl:attribute-set>
|
1406
1332
|
|
1407
1333
|
<xsl:template name="refine_termexample-style">
|
1408
|
-
|
1409
1334
|
</xsl:template>
|
1410
1335
|
|
1411
1336
|
<xsl:attribute-set name="example-style">
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
<xsl:attribute name="margin-right">12.5mm</xsl:attribute>
|
1416
|
-
|
1337
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1338
|
+
<xsl:attribute name="margin-left">12.5mm</xsl:attribute>
|
1339
|
+
<xsl:attribute name="margin-right">12.5mm</xsl:attribute>
|
1417
1340
|
</xsl:attribute-set> <!-- example-style -->
|
1418
1341
|
|
1419
1342
|
<xsl:template name="refine_example-style">
|
1420
|
-
|
1421
1343
|
</xsl:template> <!-- refine_example-style -->
|
1422
1344
|
|
1423
1345
|
<xsl:attribute-set name="example-body-style">
|
1424
|
-
|
1425
1346
|
</xsl:attribute-set> <!-- example-body-style -->
|
1426
1347
|
|
1427
1348
|
<xsl:attribute-set name="example-name-style">
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1434
|
-
|
1349
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1350
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1351
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1352
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1353
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1435
1354
|
</xsl:attribute-set> <!-- example-name-style -->
|
1436
1355
|
|
1437
1356
|
<xsl:template name="refine_example-name-style">
|
1438
|
-
|
1439
1357
|
</xsl:template>
|
1440
1358
|
|
1441
1359
|
<xsl:attribute-set name="example-p-style">
|
1442
|
-
|
1443
|
-
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
1360
|
+
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
1444
1361
|
|
1445
1362
|
</xsl:attribute-set> <!-- example-p-style -->
|
1446
1363
|
|
1447
1364
|
<xsl:template name="refine_example-p-style">
|
1448
|
-
|
1449
1365
|
</xsl:template> <!-- refine_example-p-style -->
|
1450
1366
|
|
1451
1367
|
<xsl:attribute-set name="termexample-name-style">
|
1452
|
-
|
1453
|
-
<xsl:attribute name="padding-right">10mm</xsl:attribute>
|
1454
|
-
|
1368
|
+
<xsl:attribute name="padding-right">10mm</xsl:attribute>
|
1455
1369
|
</xsl:attribute-set> <!-- termexample-name-style -->
|
1456
1370
|
|
1457
1371
|
<xsl:template name="refine_termexample-name-style">
|
1458
|
-
|
1459
1372
|
</xsl:template>
|
1460
1373
|
|
1461
1374
|
<!-- ========================== -->
|
1462
1375
|
<!-- Table styles -->
|
1463
1376
|
<!-- ========================== -->
|
1464
1377
|
<xsl:variable name="table-border_">
|
1465
|
-
|
1466
1378
|
</xsl:variable>
|
1467
1379
|
<xsl:variable name="table-border" select="normalize-space($table-border_)"/>
|
1468
1380
|
|
1469
1381
|
<xsl:variable name="table-cell-border_">
|
1470
|
-
|
1471
1382
|
</xsl:variable>
|
1472
1383
|
<xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
|
1473
1384
|
|
1474
1385
|
<xsl:attribute-set name="table-container-style">
|
1475
1386
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1476
1387
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1477
|
-
|
1478
|
-
|
1479
|
-
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
1480
|
-
|
1388
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1389
|
+
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
1481
1390
|
</xsl:attribute-set> <!-- table-container-style -->
|
1482
1391
|
|
1483
1392
|
<xsl:template name="refine_table-container-style">
|
1484
1393
|
<xsl:param name="margin-side"/>
|
1485
|
-
|
1486
1394
|
<!-- end table block-container attributes -->
|
1487
1395
|
</xsl:template> <!-- refine_table-container-style -->
|
1488
1396
|
|
1489
1397
|
<xsl:attribute-set name="table-style">
|
1490
1398
|
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
|
1491
1399
|
<xsl:attribute name="table-layout">fixed</xsl:attribute>
|
1492
|
-
|
1493
1400
|
</xsl:attribute-set><!-- table-style -->
|
1494
1401
|
|
1495
1402
|
<xsl:template name="refine_table-style">
|
1496
1403
|
<xsl:param name="margin-side"/>
|
1497
1404
|
|
1498
1405
|
<xsl:call-template name="setBordersTableArray"/>
|
1499
|
-
|
1500
1406
|
</xsl:template> <!-- refine_table-style -->
|
1501
1407
|
|
1502
1408
|
<xsl:attribute-set name="table-name-style">
|
1503
1409
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
1504
1410
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1514
|
-
|
1411
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1412
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
1413
|
+
<xsl:attribute name="color">rgb(68, 84, 106)</xsl:attribute>
|
1414
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1415
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
1416
|
+
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1417
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1418
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1515
1419
|
</xsl:attribute-set> <!-- table-name-style -->
|
1516
1420
|
|
1517
1421
|
<xsl:template name="refine_table-name-style">
|
@@ -1519,31 +1423,25 @@
|
|
1519
1423
|
<xsl:if test="$continued = 'true'">
|
1520
1424
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
1521
1425
|
</xsl:if>
|
1522
|
-
|
1523
1426
|
</xsl:template> <!-- refine_table-name-style -->
|
1524
1427
|
|
1525
1428
|
<xsl:attribute-set name="table-row-style">
|
1526
1429
|
<xsl:attribute name="min-height">4mm</xsl:attribute>
|
1527
|
-
|
1528
1430
|
</xsl:attribute-set>
|
1529
1431
|
|
1530
1432
|
<xsl:attribute-set name="table-header-row-style" use-attribute-sets="table-row-style">
|
1531
1433
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1532
|
-
|
1533
1434
|
</xsl:attribute-set>
|
1534
1435
|
|
1535
1436
|
<xsl:template name="refine_table-header-row-style">
|
1536
1437
|
|
1537
1438
|
<xsl:call-template name="setBordersTableArray"/>
|
1538
|
-
|
1539
1439
|
</xsl:template> <!-- refine_table-header-row-style -->
|
1540
1440
|
|
1541
1441
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
1542
|
-
|
1543
1442
|
</xsl:attribute-set>
|
1544
1443
|
|
1545
1444
|
<xsl:template name="refine_table-footer-row-style">
|
1546
|
-
|
1547
1445
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
1548
1446
|
|
1549
1447
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
@@ -1553,7 +1451,6 @@
|
|
1553
1451
|
<xsl:template name="refine_table-body-row-style">
|
1554
1452
|
|
1555
1453
|
<xsl:call-template name="setBordersTableArray"/>
|
1556
|
-
|
1557
1454
|
</xsl:template> <!-- refine_table-body-row-style -->
|
1558
1455
|
|
1559
1456
|
<xsl:attribute-set name="table-header-cell-style">
|
@@ -1561,13 +1458,11 @@
|
|
1561
1458
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
1562
1459
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1563
1460
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
<xsl:attribute name="height">5mm</xsl:attribute>
|
1570
|
-
|
1461
|
+
<xsl:attribute name="padding">1mm</xsl:attribute>
|
1462
|
+
<xsl:attribute name="background-color">rgb(0, 51, 102)</xsl:attribute>
|
1463
|
+
<xsl:attribute name="color">white</xsl:attribute>
|
1464
|
+
<xsl:attribute name="border">solid 0.5pt rgb(153, 153, 153)</xsl:attribute>
|
1465
|
+
<xsl:attribute name="height">5mm</xsl:attribute>
|
1571
1466
|
</xsl:attribute-set> <!-- table-header-cell-style -->
|
1572
1467
|
|
1573
1468
|
<xsl:template name="refine_table-header-cell-style">
|
@@ -1579,18 +1474,15 @@
|
|
1579
1474
|
</xsl:if>
|
1580
1475
|
|
1581
1476
|
<xsl:call-template name="setTableCellAttributes"/>
|
1582
|
-
|
1583
1477
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
1584
1478
|
|
1585
1479
|
<xsl:attribute-set name="table-cell-style">
|
1586
1480
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
1587
1481
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
1588
1482
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
<xsl:attribute name="height">5mm</xsl:attribute>
|
1593
|
-
|
1483
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
1484
|
+
<xsl:attribute name="border">solid 0.5pt rgb(153, 153, 153)</xsl:attribute>
|
1485
|
+
<xsl:attribute name="height">5mm</xsl:attribute>
|
1594
1486
|
</xsl:attribute-set> <!-- table-cell-style -->
|
1595
1487
|
|
1596
1488
|
<xsl:template name="refine_table-cell-style">
|
@@ -1599,8 +1491,6 @@
|
|
1599
1491
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1600
1492
|
</xsl:if>
|
1601
1493
|
|
1602
|
-
<!-- bsi -->
|
1603
|
-
|
1604
1494
|
<xsl:call-template name="setBordersTableArray"/>
|
1605
1495
|
|
1606
1496
|
</xsl:template> <!-- refine_table-cell-style -->
|
@@ -1610,56 +1500,44 @@
|
|
1610
1500
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
1611
1501
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1612
1502
|
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
1613
|
-
|
1614
1503
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
1615
1504
|
|
1616
1505
|
<xsl:template name="refine_table-footer-cell-style">
|
1617
|
-
|
1618
1506
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
1619
1507
|
|
1620
1508
|
<xsl:attribute-set name="table-note-style">
|
1621
1509
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1622
1510
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1623
|
-
|
1624
1511
|
</xsl:attribute-set><!-- table-note-style -->
|
1625
1512
|
|
1626
1513
|
<xsl:template name="refine_table-note-style">
|
1627
|
-
|
1628
1514
|
</xsl:template> <!-- refine_table-note-style -->
|
1629
1515
|
|
1630
1516
|
<xsl:attribute-set name="table-fn-style">
|
1631
1517
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1632
|
-
|
1633
1518
|
</xsl:attribute-set> <!-- table-fn-style -->
|
1634
1519
|
|
1635
1520
|
<xsl:template name="refine_table-fn-style">
|
1636
|
-
|
1637
1521
|
</xsl:template>
|
1638
1522
|
|
1639
1523
|
<xsl:attribute-set name="table-fn-number-style">
|
1640
1524
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
1641
|
-
|
1642
1525
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
1643
1526
|
|
1644
1527
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
1645
1528
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1646
|
-
|
1647
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1648
|
-
|
1529
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1649
1530
|
</xsl:attribute-set> <!-- table-fmt-fn-label-style -->
|
1650
1531
|
|
1651
1532
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
1652
|
-
|
1653
1533
|
</xsl:template>
|
1654
1534
|
|
1655
1535
|
<xsl:attribute-set name="fn-container-body-style">
|
1656
1536
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
1657
1537
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
1658
|
-
|
1659
1538
|
</xsl:attribute-set>
|
1660
1539
|
|
1661
1540
|
<xsl:attribute-set name="table-fn-body-style">
|
1662
|
-
|
1663
1541
|
</xsl:attribute-set>
|
1664
1542
|
|
1665
1543
|
<xsl:attribute-set name="figure-fn-number-style">
|
@@ -1669,17 +1547,14 @@
|
|
1669
1547
|
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
1670
1548
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1671
1549
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1672
|
-
|
1673
1550
|
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
1674
1551
|
|
1675
1552
|
<xsl:template name="refine_figure-fmt-fn-label-style">
|
1676
|
-
|
1677
1553
|
</xsl:template>
|
1678
1554
|
|
1679
1555
|
<xsl:attribute-set name="figure-fn-body-style">
|
1680
1556
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
1681
1557
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1682
|
-
|
1683
1558
|
</xsl:attribute-set>
|
1684
1559
|
<!-- ========================== -->
|
1685
1560
|
<!-- END Table styles -->
|
@@ -1690,48 +1565,37 @@
|
|
1690
1565
|
<!-- ========================== -->
|
1691
1566
|
|
1692
1567
|
<xsl:attribute-set name="dl-block-style">
|
1693
|
-
|
1694
1568
|
</xsl:attribute-set>
|
1695
1569
|
|
1696
1570
|
<xsl:attribute-set name="dt-row-style">
|
1697
|
-
|
1698
1571
|
</xsl:attribute-set>
|
1699
1572
|
|
1700
1573
|
<xsl:attribute-set name="dt-cell-style">
|
1701
|
-
|
1702
1574
|
</xsl:attribute-set>
|
1703
1575
|
|
1704
1576
|
<xsl:template name="refine_dt-cell-style">
|
1705
|
-
|
1706
1577
|
</xsl:template> <!-- refine_dt-cell-style -->
|
1707
1578
|
|
1708
1579
|
<xsl:attribute-set name="dt-block-style">
|
1709
1580
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1710
|
-
|
1711
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1712
|
-
|
1581
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1713
1582
|
</xsl:attribute-set>
|
1714
1583
|
|
1715
1584
|
<xsl:template name="refine_dt-block-style">
|
1716
|
-
|
1717
1585
|
</xsl:template> <!-- refine_dt-block-style -->
|
1718
1586
|
|
1719
1587
|
<xsl:attribute-set name="dl-name-style">
|
1720
1588
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1721
1589
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1722
|
-
|
1723
|
-
|
1724
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1725
|
-
|
1590
|
+
<xsl:attribute name="color">rgb(68, 84, 106)</xsl:attribute>
|
1591
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1726
1592
|
</xsl:attribute-set> <!-- dl-name-style -->
|
1727
1593
|
|
1728
1594
|
<xsl:attribute-set name="dd-cell-style">
|
1729
1595
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
1730
|
-
|
1731
1596
|
</xsl:attribute-set>
|
1732
1597
|
|
1733
1598
|
<xsl:template name="refine_dd-cell-style">
|
1734
|
-
|
1735
1599
|
</xsl:template> <!-- refine_dd-cell-style -->
|
1736
1600
|
|
1737
1601
|
<!-- ========================== -->
|
@@ -1739,265 +1603,199 @@
|
|
1739
1603
|
<!-- ========================== -->
|
1740
1604
|
|
1741
1605
|
<xsl:attribute-set name="appendix-style">
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1747
|
-
|
1606
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1607
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1608
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1609
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1748
1610
|
</xsl:attribute-set>
|
1749
1611
|
|
1750
1612
|
<xsl:attribute-set name="appendix-example-style">
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1755
|
-
|
1613
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1614
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1615
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1756
1616
|
</xsl:attribute-set>
|
1757
1617
|
|
1758
1618
|
<xsl:attribute-set name="xref-style">
|
1759
|
-
|
1760
|
-
|
1761
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1762
|
-
|
1619
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1620
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1763
1621
|
</xsl:attribute-set>
|
1764
1622
|
|
1765
1623
|
<xsl:attribute-set name="eref-style">
|
1766
|
-
|
1767
|
-
|
1768
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1769
|
-
|
1624
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1625
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1770
1626
|
</xsl:attribute-set>
|
1771
1627
|
|
1772
1628
|
<xsl:template name="refine_eref-style">
|
1773
1629
|
<xsl:variable name="citeas" select="java:replaceAll(java:java.lang.String.new(@citeas),'^\[?(.+?)\]?$','$1')"/> <!-- remove leading and trailing brackets -->
|
1774
1630
|
<xsl:variable name="text" select="normalize-space()"/>
|
1775
|
-
|
1776
1631
|
</xsl:template> <!-- refine_eref-style -->
|
1777
1632
|
|
1778
1633
|
<xsl:attribute-set name="note-style">
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
<xsl:attribute name="line-height">115%</xsl:attribute>
|
1784
|
-
|
1634
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1635
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1636
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1637
|
+
<xsl:attribute name="line-height">115%</xsl:attribute>
|
1785
1638
|
</xsl:attribute-set>
|
1786
1639
|
|
1787
1640
|
<xsl:template name="refine_note-style">
|
1788
|
-
|
1789
|
-
<xsl:
|
1790
|
-
|
1791
|
-
</xsl:if>
|
1792
|
-
|
1641
|
+
<xsl:if test="ancestor::ogc:ul or ancestor::ogc:ol and not(ancestor::ogc:note[1]/following-sibling::*)">
|
1642
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
1643
|
+
</xsl:if>
|
1793
1644
|
</xsl:template>
|
1794
1645
|
|
1795
1646
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
1796
1647
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
1797
1648
|
|
1798
1649
|
<xsl:attribute-set name="note-name-style">
|
1799
|
-
|
1800
|
-
<!-- <xsl:attribute name="padding-right">4mm</xsl:attribute> -->
|
1801
|
-
|
1650
|
+
<!-- <xsl:attribute name="padding-right">4mm</xsl:attribute> -->
|
1802
1651
|
</xsl:attribute-set>
|
1803
1652
|
|
1804
1653
|
<xsl:template name="refine_note-name-style">
|
1805
|
-
|
1806
1654
|
</xsl:template> <!-- refine_note-name-style -->
|
1807
1655
|
|
1808
1656
|
<xsl:attribute-set name="table-note-name-style">
|
1809
1657
|
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
1810
|
-
|
1811
1658
|
</xsl:attribute-set>
|
1812
1659
|
|
1813
1660
|
<xsl:template name="refine_table-note-name-style">
|
1814
|
-
|
1815
1661
|
</xsl:template> <!-- refine_table-note-name-style -->
|
1816
1662
|
|
1817
1663
|
<xsl:attribute-set name="note-p-style">
|
1818
|
-
|
1819
|
-
|
1820
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1821
|
-
|
1664
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1665
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1822
1666
|
</xsl:attribute-set>
|
1823
1667
|
|
1824
1668
|
<xsl:attribute-set name="termnote-style">
|
1825
|
-
|
1826
|
-
|
1827
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1828
|
-
|
1669
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1670
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1829
1671
|
</xsl:attribute-set>
|
1830
1672
|
|
1831
1673
|
<xsl:template name="refine_termnote-style">
|
1832
|
-
|
1833
1674
|
</xsl:template> <!-- refine_termnote-style -->
|
1834
1675
|
|
1835
1676
|
<xsl:attribute-set name="termnote-name-style">
|
1836
|
-
|
1837
1677
|
</xsl:attribute-set>
|
1838
1678
|
|
1839
1679
|
<xsl:template name="refine_termnote-name-style">
|
1840
|
-
|
1841
|
-
<!-- <xsl:if test="$namespace = 'ieee'">
|
1842
|
-
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
1843
|
-
</xsl:if> -->
|
1844
|
-
|
1845
1680
|
</xsl:template>
|
1846
1681
|
|
1847
1682
|
<xsl:attribute-set name="termnote-p-style">
|
1848
|
-
|
1849
|
-
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
1850
|
-
|
1683
|
+
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
1851
1684
|
</xsl:attribute-set>
|
1852
1685
|
|
1853
1686
|
<xsl:attribute-set name="quote-style">
|
1854
1687
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
1855
1688
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
1856
|
-
|
1857
|
-
|
1858
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
1859
|
-
|
1689
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1690
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
1860
1691
|
</xsl:attribute-set>
|
1861
1692
|
|
1862
1693
|
<xsl:template name="refine_quote-style">
|
1863
|
-
|
1864
1694
|
</xsl:template>
|
1865
1695
|
|
1866
1696
|
<xsl:attribute-set name="quote-source-style">
|
1867
1697
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
1868
|
-
|
1869
|
-
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
1870
|
-
|
1698
|
+
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
1871
1699
|
</xsl:attribute-set>
|
1872
1700
|
|
1873
1701
|
<xsl:attribute-set name="termsource-style">
|
1874
|
-
|
1875
|
-
|
1876
|
-
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1877
|
-
|
1702
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1703
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1878
1704
|
</xsl:attribute-set>
|
1879
1705
|
|
1880
1706
|
<xsl:template name="refine_termsource-style">
|
1881
|
-
|
1882
1707
|
</xsl:template> <!-- refine_termsource-style -->
|
1883
1708
|
|
1884
1709
|
<xsl:attribute-set name="termsource-text-style">
|
1885
|
-
|
1886
1710
|
</xsl:attribute-set>
|
1887
1711
|
|
1888
1712
|
<xsl:attribute-set name="origin-style">
|
1889
|
-
|
1890
|
-
|
1891
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1892
|
-
|
1713
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1714
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1893
1715
|
</xsl:attribute-set>
|
1894
1716
|
|
1895
1717
|
<xsl:attribute-set name="term-style">
|
1896
|
-
|
1897
1718
|
</xsl:attribute-set>
|
1898
1719
|
|
1899
1720
|
<xsl:attribute-set name="term-name-style">
|
1900
1721
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1901
1722
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1902
|
-
|
1903
1723
|
</xsl:attribute-set>
|
1904
1724
|
|
1905
1725
|
<xsl:attribute-set name="figure-block-style">
|
1906
1726
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
1907
|
-
|
1908
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1909
|
-
|
1727
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1910
1728
|
</xsl:attribute-set>
|
1911
1729
|
|
1912
1730
|
<xsl:template name="refine_figure-block-style">
|
1913
|
-
|
1914
1731
|
</xsl:template>
|
1915
1732
|
|
1916
1733
|
<xsl:attribute-set name="figure-style">
|
1917
|
-
|
1918
1734
|
</xsl:attribute-set>
|
1919
1735
|
|
1920
1736
|
<xsl:attribute-set name="figure-name-style">
|
1921
1737
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1931
|
-
|
1738
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1739
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
1740
|
+
<xsl:attribute name="color">rgb(68, 84, 106)</xsl:attribute>
|
1741
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1742
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
1743
|
+
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1744
|
+
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
1745
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1932
1746
|
</xsl:attribute-set>
|
1933
1747
|
|
1934
1748
|
<xsl:template name="refine_figure-name-style">
|
1935
|
-
|
1936
1749
|
</xsl:template> <!-- refine_figure-name-style -->
|
1937
1750
|
|
1938
1751
|
<xsl:attribute-set name="figure-source-style">
|
1939
|
-
|
1940
1752
|
</xsl:attribute-set>
|
1941
1753
|
|
1942
1754
|
<!-- Formula's styles -->
|
1943
1755
|
<xsl:attribute-set name="formula-style">
|
1944
1756
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1945
1757
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1946
|
-
|
1947
1758
|
</xsl:attribute-set> <!-- formula-style -->
|
1948
1759
|
|
1949
1760
|
<xsl:attribute-set name="formula-stem-block-style">
|
1950
1761
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
1951
|
-
|
1952
|
-
|
1953
|
-
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
1954
|
-
|
1762
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
1763
|
+
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
1955
1764
|
</xsl:attribute-set> <!-- formula-stem-block-style -->
|
1956
1765
|
|
1957
1766
|
<xsl:template name="refine_formula-stem-block-style">
|
1958
|
-
|
1959
1767
|
</xsl:template> <!-- refine_formula-stem-block-style -->
|
1960
1768
|
|
1961
1769
|
<xsl:attribute-set name="formula-stem-number-style">
|
1962
1770
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
1963
|
-
|
1964
1771
|
</xsl:attribute-set> <!-- formula-stem-number-style -->
|
1965
1772
|
<!-- End Formula's styles -->
|
1966
1773
|
|
1967
1774
|
<xsl:template name="refine_formula-stem-number-style">
|
1968
|
-
|
1969
1775
|
</xsl:template>
|
1970
1776
|
|
1971
1777
|
<xsl:attribute-set name="image-style">
|
1972
1778
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
1973
1779
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
1974
|
-
|
1975
|
-
|
1976
|
-
<xsl:attribute name="space-after">0pt</xsl:attribute>
|
1977
|
-
|
1780
|
+
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
1781
|
+
<xsl:attribute name="space-after">0pt</xsl:attribute>
|
1978
1782
|
</xsl:attribute-set>
|
1979
1783
|
|
1980
1784
|
<xsl:template name="refine_image-style">
|
1981
|
-
|
1982
1785
|
</xsl:template>
|
1983
1786
|
|
1984
1787
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
1985
|
-
|
1986
1788
|
</xsl:attribute-set>
|
1987
1789
|
|
1988
1790
|
<xsl:attribute-set name="image-graphic-style">
|
1989
1791
|
<xsl:attribute name="width">100%</xsl:attribute>
|
1990
1792
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
1991
1793
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1992
|
-
|
1993
|
-
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1994
|
-
|
1794
|
+
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1995
1795
|
</xsl:attribute-set>
|
1996
1796
|
|
1997
1797
|
<xsl:attribute-set name="tt-style">
|
1998
|
-
|
1999
|
-
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
2000
|
-
|
1798
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
2001
1799
|
</xsl:attribute-set>
|
2002
1800
|
|
2003
1801
|
<xsl:attribute-set name="sourcecode-name-style">
|
@@ -2006,56 +1804,44 @@
|
|
2006
1804
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
2007
1805
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2008
1806
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
2009
|
-
|
2010
1807
|
</xsl:attribute-set>
|
2011
1808
|
|
2012
1809
|
<xsl:attribute-set name="preferred-block-style">
|
2013
|
-
|
2014
1810
|
</xsl:attribute-set>
|
2015
1811
|
|
2016
1812
|
<xsl:attribute-set name="preferred-term-style">
|
2017
1813
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2018
1814
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2019
|
-
|
2020
|
-
<xsl:attribute name="line-height">1</xsl:attribute>
|
2021
|
-
|
1815
|
+
<xsl:attribute name="line-height">1</xsl:attribute>
|
2022
1816
|
</xsl:attribute-set>
|
2023
1817
|
|
2024
1818
|
<xsl:attribute-set name="domain-style">
|
2025
|
-
|
2026
1819
|
</xsl:attribute-set>
|
2027
1820
|
|
2028
1821
|
<xsl:attribute-set name="admitted-style">
|
2029
|
-
|
2030
|
-
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
2031
|
-
|
1822
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
2032
1823
|
</xsl:attribute-set>
|
2033
1824
|
|
2034
1825
|
<xsl:attribute-set name="deprecates-style">
|
2035
|
-
|
2036
1826
|
</xsl:attribute-set>
|
2037
1827
|
|
2038
1828
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
2039
1829
|
</xsl:attribute-set>
|
2040
1830
|
|
2041
1831
|
<xsl:attribute-set name="definition-style">
|
2042
|
-
|
2043
|
-
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
2044
|
-
|
1832
|
+
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
2045
1833
|
</xsl:attribute-set>
|
2046
1834
|
|
2047
1835
|
<xsl:variable name="color-added-text">
|
2048
1836
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
2049
1837
|
</xsl:variable>
|
2050
1838
|
<xsl:attribute-set name="add-style">
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
<!-- <xsl:attribute name="color">black</xsl:attribute>
|
1839
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
1840
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1841
|
+
<!-- <xsl:attribute name="color">black</xsl:attribute>
|
2055
1842
|
<xsl:attribute name="background-color"><xsl:value-of select="$color-added-text"/></xsl:attribute>
|
2056
1843
|
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
2057
1844
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
2058
|
-
|
2059
1845
|
</xsl:attribute-set>
|
2060
1846
|
|
2061
1847
|
<xsl:variable name="add-style">
|
@@ -2075,57 +1861,43 @@
|
|
2075
1861
|
|
2076
1862
|
<xsl:attribute-set name="mathml-style">
|
2077
1863
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
2078
|
-
|
2079
1864
|
</xsl:attribute-set>
|
2080
1865
|
|
2081
1866
|
<xsl:template name="refine_mathml-style">
|
2082
|
-
|
2083
1867
|
</xsl:template>
|
2084
1868
|
|
2085
1869
|
<xsl:attribute-set name="list-style">
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
<xsl:attribute name="line-height">115%</xsl:attribute>
|
2090
|
-
|
1870
|
+
<xsl:attribute name="provisional-distance-between-starts">6.5mm</xsl:attribute>
|
1871
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1872
|
+
<xsl:attribute name="line-height">115%</xsl:attribute>
|
2091
1873
|
</xsl:attribute-set> <!-- list-style -->
|
2092
1874
|
|
2093
1875
|
<xsl:template name="refine_list-style">
|
2094
|
-
|
2095
1876
|
</xsl:template> <!-- refine_list-style -->
|
2096
1877
|
|
2097
1878
|
<xsl:attribute-set name="list-name-style">
|
2098
1879
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2099
|
-
|
2100
|
-
|
2101
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2102
|
-
|
1880
|
+
<xsl:attribute name="color">rgb(68, 84, 106)</xsl:attribute>
|
1881
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2103
1882
|
</xsl:attribute-set> <!-- list-name-style -->
|
2104
1883
|
|
2105
1884
|
<xsl:attribute-set name="list-item-style">
|
2106
|
-
|
2107
1885
|
</xsl:attribute-set>
|
2108
1886
|
|
2109
1887
|
<xsl:template name="refine_list-item-style">
|
2110
|
-
|
2111
1888
|
</xsl:template> <!-- refine_list-item-style -->
|
2112
1889
|
|
2113
1890
|
<xsl:attribute-set name="list-item-label-style">
|
2114
|
-
|
2115
1891
|
</xsl:attribute-set>
|
2116
1892
|
|
2117
1893
|
<xsl:template name="refine_list-item-label-style">
|
2118
|
-
|
2119
1894
|
</xsl:template> <!-- refine_list-item-label-style -->
|
2120
1895
|
|
2121
1896
|
<xsl:attribute-set name="list-item-body-style">
|
2122
|
-
|
2123
|
-
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
2124
|
-
|
1897
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
2125
1898
|
</xsl:attribute-set>
|
2126
1899
|
|
2127
1900
|
<xsl:template name="refine_list-item-body-style">
|
2128
|
-
|
2129
1901
|
</xsl:template> <!-- refine_list-item-body-style -->
|
2130
1902
|
|
2131
1903
|
<xsl:attribute-set name="toc-style">
|
@@ -2135,15 +1907,13 @@
|
|
2135
1907
|
<xsl:attribute-set name="fn-reference-style">
|
2136
1908
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
2137
1909
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1910
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1911
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1912
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2142
1913
|
|
2143
1914
|
</xsl:attribute-set>
|
2144
1915
|
|
2145
1916
|
<xsl:template name="refine_fn-reference-style">
|
2146
|
-
|
2147
1917
|
</xsl:template> <!-- refine_fn-reference-style -->
|
2148
1918
|
|
2149
1919
|
<xsl:attribute-set name="fn-style">
|
@@ -2152,10 +1922,8 @@
|
|
2152
1922
|
|
2153
1923
|
<xsl:attribute-set name="fn-num-style">
|
2154
1924
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
2155
|
-
|
2156
|
-
|
2157
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2158
|
-
|
1925
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
1926
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2159
1927
|
</xsl:attribute-set>
|
2160
1928
|
|
2161
1929
|
<xsl:attribute-set name="fn-body-style">
|
@@ -2163,131 +1931,100 @@
|
|
2163
1931
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
2164
1932
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
2165
1933
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
2171
|
-
|
1934
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1935
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1936
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
1937
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
2172
1938
|
</xsl:attribute-set>
|
2173
1939
|
|
2174
1940
|
<xsl:template name="refine_fn-body-style">
|
2175
|
-
|
2176
1941
|
</xsl:template> <!-- refine_fn-body-style -->
|
2177
1942
|
|
2178
1943
|
<xsl:attribute-set name="fn-body-num-style">
|
2179
1944
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
2180
|
-
|
2181
|
-
|
2182
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2183
|
-
|
1945
|
+
<xsl:attribute name="font-size">60%</xsl:attribute>
|
1946
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2184
1947
|
</xsl:attribute-set> <!-- fn-body-num-style -->
|
2185
1948
|
|
2186
1949
|
<xsl:template name="refine_fn-body-num-style">
|
2187
|
-
|
2188
1950
|
</xsl:template> <!-- refine_fn-body-num-style -->
|
2189
1951
|
|
2190
1952
|
<!-- admonition -->
|
2191
1953
|
<xsl:attribute-set name="admonition-style">
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
2195
|
-
|
2196
|
-
|
2197
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2198
|
-
|
1954
|
+
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
1955
|
+
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
1956
|
+
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
1957
|
+
<xsl:attribute name="margin-right">16mm</xsl:attribute>
|
1958
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2199
1959
|
</xsl:attribute-set> <!-- admonition-style -->
|
2200
1960
|
|
2201
1961
|
<xsl:attribute-set name="admonition-container-style">
|
2202
1962
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2203
1963
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2204
|
-
|
2205
|
-
|
2206
|
-
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
2207
|
-
|
1964
|
+
<xsl:attribute name="padding">2mm</xsl:attribute>
|
1965
|
+
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
2208
1966
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
2209
1967
|
|
2210
1968
|
<xsl:attribute-set name="admonition-name-style">
|
2211
1969
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2215
|
-
|
2216
|
-
|
2217
|
-
<xsl:attribute name="text-align">center</xsl:attribute>
|
2218
|
-
|
1970
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1971
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1972
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1973
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
1974
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
2219
1975
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
2220
1976
|
|
2221
1977
|
<xsl:attribute-set name="admonition-p-style">
|
2222
|
-
|
2223
|
-
<xsl:attribute name="font-style">italic</xsl:attribute>
|
2224
|
-
|
1978
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
2225
1979
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
2226
1980
|
<!-- end admonition -->
|
2227
1981
|
|
2228
1982
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
2229
1983
|
<xsl:attribute-set name="bibitem-normative-style">
|
2230
|
-
|
2231
|
-
|
2232
|
-
|
2233
|
-
|
2234
|
-
<xsl:attribute name="line-height">115%</xsl:attribute>
|
2235
|
-
|
1984
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1985
|
+
<xsl:attribute name="start-indent">12mm</xsl:attribute>
|
1986
|
+
<xsl:attribute name="text-indent">-12mm</xsl:attribute>
|
1987
|
+
<xsl:attribute name="line-height">115%</xsl:attribute>
|
2236
1988
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
2237
1989
|
|
2238
1990
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
2239
1991
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
2240
1992
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
2241
1993
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2242
|
-
|
2243
|
-
<!-- <xsl:if test="$namespace = 'ieee'">
|
2244
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2245
|
-
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
|
2246
|
-
</xsl:if> -->
|
2247
|
-
|
2248
1994
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
2249
1995
|
|
2250
1996
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
2251
|
-
|
2252
1997
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
2253
1998
|
|
2254
1999
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
2255
2000
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
2256
2001
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
2257
2002
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2258
|
-
|
2259
2003
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
2260
2004
|
|
2261
2005
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
2262
2006
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2263
|
-
|
2264
2007
|
</xsl:attribute-set>
|
2265
2008
|
|
2266
2009
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
2267
2010
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
2268
|
-
|
2269
2011
|
</xsl:attribute-set>
|
2270
2012
|
|
2271
2013
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
2272
|
-
|
2273
2014
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
2274
2015
|
|
2275
2016
|
<!-- footnote reference number for bibitem, in the text -->
|
2276
2017
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
2277
2018
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
2278
2019
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
2279
|
-
|
2280
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2281
|
-
|
2020
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2282
2021
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
2283
2022
|
|
2284
2023
|
<!-- footnote number on the page bottom -->
|
2285
2024
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
2286
2025
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
2287
|
-
|
2288
|
-
|
2289
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2290
|
-
|
2026
|
+
<xsl:attribute name="font-size">60%</xsl:attribute>
|
2027
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
2291
2028
|
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
2292
2029
|
|
2293
2030
|
<!-- footnote body (text) on the page bottom -->
|
@@ -2295,13 +2032,10 @@
|
|
2295
2032
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2296
2033
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2297
2034
|
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
2298
|
-
|
2299
2035
|
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
2300
2036
|
|
2301
2037
|
<xsl:attribute-set name="references-non-normative-style">
|
2302
|
-
|
2303
|
-
<xsl:attribute name="line-height">120%</xsl:attribute>
|
2304
|
-
|
2038
|
+
<xsl:attribute name="line-height">120%</xsl:attribute>
|
2305
2039
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
2306
2040
|
|
2307
2041
|
<!-- Highlight.js syntax GitHub styles -->
|
@@ -2461,12 +2195,10 @@
|
|
2461
2195
|
<!-- Index section styles -->
|
2462
2196
|
<xsl:attribute-set name="indexsect-title-style">
|
2463
2197
|
<xsl:attribute name="role">H1</xsl:attribute>
|
2464
|
-
|
2465
2198
|
</xsl:attribute-set>
|
2466
2199
|
|
2467
2200
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
2468
2201
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2469
|
-
|
2470
2202
|
</xsl:attribute-set>
|
2471
2203
|
|
2472
2204
|
<!-- End Index section styles -->
|
@@ -2543,47 +2275,47 @@
|
|
2543
2275
|
</xsl:template>
|
2544
2276
|
|
2545
2277
|
<xsl:template name="processTables_Contents">
|
2546
|
-
<tables>
|
2278
|
+
<mn:tables>
|
2547
2279
|
<xsl:for-each select="//*[local-name() = 'table'][not(ancestor::*[local-name() = 'metanorma-extension'])][@id and *[local-name() = 'name'] and normalize-space(@id) != '']">
|
2548
2280
|
<xsl:choose>
|
2549
2281
|
<xsl:when test="*[local-name() = 'fmt-name']">
|
2550
2282
|
<xsl:variable name="fmt_name">
|
2551
2283
|
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_step1"/>
|
2552
2284
|
</xsl:variable>
|
2553
|
-
<table id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
2285
|
+
<mn:table id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
2554
2286
|
<xsl:copy-of select="$fmt_name"/>
|
2555
|
-
</table>
|
2287
|
+
</mn:table>
|
2556
2288
|
</xsl:when>
|
2557
2289
|
<xsl:otherwise>
|
2558
|
-
<table id="{@id}" alt-text="{*[local-name() = 'name']}">
|
2290
|
+
<mn:table id="{@id}" alt-text="{*[local-name() = 'name']}">
|
2559
2291
|
<xsl:copy-of select="*[local-name() = 'name']"/>
|
2560
|
-
</table>
|
2292
|
+
</mn:table>
|
2561
2293
|
</xsl:otherwise>
|
2562
2294
|
</xsl:choose>
|
2563
2295
|
</xsl:for-each>
|
2564
|
-
</tables>
|
2296
|
+
</mn:tables>
|
2565
2297
|
</xsl:template>
|
2566
2298
|
|
2567
2299
|
<xsl:template name="processFigures_Contents">
|
2568
|
-
<figures>
|
2300
|
+
<mn:figures>
|
2569
2301
|
<xsl:for-each select="//*[local-name() = 'figure'][@id and *[local-name() = 'name'] and not(@unnumbered = 'true') and normalize-space(@id) != ''] | //*[@id and starts-with(*[local-name() = 'name'], 'Figure ') and normalize-space(@id) != '']">
|
2570
2302
|
<xsl:choose>
|
2571
2303
|
<xsl:when test="*[local-name() = 'fmt-name']">
|
2572
2304
|
<xsl:variable name="fmt_name">
|
2573
2305
|
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_step1"/>
|
2574
2306
|
</xsl:variable>
|
2575
|
-
<figure id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
2307
|
+
<mn:figure id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
2576
2308
|
<xsl:copy-of select="$fmt_name"/>
|
2577
|
-
</figure>
|
2309
|
+
</mn:figure>
|
2578
2310
|
</xsl:when>
|
2579
2311
|
<xsl:otherwise>
|
2580
|
-
<figure id="{@id}" alt-text="{*[local-name() = 'name']}">
|
2312
|
+
<mn:figure id="{@id}" alt-text="{*[local-name() = 'name']}">
|
2581
2313
|
<xsl:copy-of select="*[local-name() = 'name']"/>
|
2582
|
-
</figure>
|
2314
|
+
</mn:figure>
|
2583
2315
|
</xsl:otherwise>
|
2584
2316
|
</xsl:choose>
|
2585
2317
|
</xsl:for-each>
|
2586
|
-
</figures>
|
2318
|
+
</mn:figures>
|
2587
2319
|
</xsl:template>
|
2588
2320
|
|
2589
2321
|
<xsl:template name="processPrefaceSectionsDefault">
|
@@ -2602,7 +2334,6 @@
|
|
2602
2334
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
2603
2335
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2604
2336
|
<xsl:apply-templates select="."/>
|
2605
|
-
|
2606
2337
|
</xsl:for-each>
|
2607
2338
|
|
2608
2339
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
@@ -2709,7 +2440,6 @@
|
|
2709
2440
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
2710
2441
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2711
2442
|
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
2712
|
-
|
2713
2443
|
</xsl:for-each>
|
2714
2444
|
</xsl:element>
|
2715
2445
|
</xsl:element>
|
@@ -2843,7 +2573,6 @@
|
|
2843
2573
|
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak">
|
2844
2574
|
<xsl:with-param name="page_sequence_at_top">true</xsl:with-param>
|
2845
2575
|
</xsl:apply-templates>
|
2846
|
-
|
2847
2576
|
</xsl:for-each>
|
2848
2577
|
</xsl:element>
|
2849
2578
|
|
@@ -2883,19 +2612,17 @@
|
|
2883
2612
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
|
2884
2613
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
|
2885
2614
|
<xsl:template match="text()" name="text">
|
2886
|
-
|
2887
|
-
|
2888
|
-
|
2889
|
-
|
2890
|
-
|
2891
|
-
|
2892
|
-
|
2893
|
-
|
2894
|
-
|
2895
|
-
|
2896
|
-
|
2897
|
-
</xsl:choose>
|
2898
|
-
|
2615
|
+
<xsl:choose>
|
2616
|
+
<xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when>
|
2617
|
+
<xsl:otherwise>
|
2618
|
+
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_fo_inline_keep-together_within-line_open,'$1',$tag_fo_inline_keep-together_within-line_close))"/>
|
2619
|
+
<xsl:call-template name="replace_fo_inline_tags">
|
2620
|
+
<xsl:with-param name="tag_open" select="$tag_fo_inline_keep-together_within-line_open"/>
|
2621
|
+
<xsl:with-param name="tag_close" select="$tag_fo_inline_keep-together_within-line_close"/>
|
2622
|
+
<xsl:with-param name="text" select="$text"/>
|
2623
|
+
</xsl:call-template>
|
2624
|
+
</xsl:otherwise>
|
2625
|
+
</xsl:choose>
|
2899
2626
|
</xsl:template>
|
2900
2627
|
|
2901
2628
|
<xsl:template name="replace_fo_inline_tags">
|
@@ -2949,7 +2676,7 @@
|
|
2949
2676
|
<xsl:with-param name="keep_sep">true</xsl:with-param>
|
2950
2677
|
</xsl:call-template>
|
2951
2678
|
</xsl:variable>
|
2952
|
-
<xsl:for-each select="xalan:nodeset($items)/item">
|
2679
|
+
<xsl:for-each select="xalan:nodeset($items)/mn:item">
|
2953
2680
|
<xsl:choose>
|
2954
2681
|
<xsl:when test=". = $sep">
|
2955
2682
|
<xsl:value-of select="$sep"/><xsl:value-of select="$zero_width_space"/>
|
@@ -2978,28 +2705,25 @@
|
|
2978
2705
|
</xsl:template> <!-- copyright-statement -->
|
2979
2706
|
|
2980
2707
|
<xsl:template match="*[local-name()='copyright-statement']//*[local-name()='title']">
|
2981
|
-
|
2982
|
-
|
2983
|
-
|
2984
|
-
|
2985
|
-
|
2986
|
-
|
2987
|
-
</fo:block>
|
2708
|
+
<xsl:variable name="level">
|
2709
|
+
<xsl:call-template name="getLevel"/>
|
2710
|
+
</xsl:variable>
|
2711
|
+
<fo:block role="H{$level}" xsl:use-attribute-sets="copyright-statement-title-style">
|
2712
|
+
<xsl:apply-templates/>
|
2713
|
+
</fo:block>
|
2988
2714
|
|
2989
2715
|
</xsl:template> <!-- copyright-statement//title -->
|
2990
2716
|
|
2991
2717
|
<xsl:template match="*[local-name()='copyright-statement']//*[local-name()='p']">
|
2718
|
+
<fo:block xsl:use-attribute-sets="copyright-statement-p-style">
|
2719
|
+
<xsl:if test="@align">
|
2720
|
+
<xsl:attribute name="text-align">
|
2721
|
+
<xsl:value-of select="@align"/>
|
2722
|
+
</xsl:attribute>
|
2723
|
+
</xsl:if>
|
2992
2724
|
|
2993
|
-
|
2994
|
-
|
2995
|
-
<xsl:if test="@align">
|
2996
|
-
<xsl:attribute name="text-align">
|
2997
|
-
<xsl:value-of select="@align"/>
|
2998
|
-
</xsl:attribute>
|
2999
|
-
</xsl:if>
|
3000
|
-
|
3001
|
-
<xsl:apply-templates/>
|
3002
|
-
</fo:block>
|
2725
|
+
<xsl:apply-templates/>
|
2726
|
+
</fo:block>
|
3003
2727
|
|
3004
2728
|
</xsl:template> <!-- copyright-statement//p -->
|
3005
2729
|
|
@@ -3010,63 +2734,57 @@
|
|
3010
2734
|
</xsl:template> <!-- license-statement -->
|
3011
2735
|
|
3012
2736
|
<xsl:template match="*[local-name()='license-statement']//*[local-name()='title']">
|
3013
|
-
|
3014
|
-
|
3015
|
-
|
3016
|
-
|
3017
|
-
|
3018
|
-
|
3019
|
-
</fo:block>
|
2737
|
+
<xsl:variable name="level">
|
2738
|
+
<xsl:call-template name="getLevel"/>
|
2739
|
+
</xsl:variable>
|
2740
|
+
<fo:block role="H{$level}" xsl:use-attribute-sets="license-statement-title-style">
|
2741
|
+
<xsl:apply-templates/>
|
2742
|
+
</fo:block>
|
3020
2743
|
|
3021
2744
|
</xsl:template> <!-- license-statement/title -->
|
3022
2745
|
|
3023
2746
|
<xsl:template match="*[local-name()='license-statement']//*[local-name()='p']">
|
2747
|
+
<fo:block xsl:use-attribute-sets="license-statement-p-style">
|
2748
|
+
<xsl:if test="following-sibling::*[local-name() = 'p']">
|
2749
|
+
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
2750
|
+
</xsl:if>
|
3024
2751
|
|
3025
|
-
|
3026
|
-
|
3027
|
-
<xsl:if test="following-sibling::*[local-name() = 'p']">
|
3028
|
-
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
3029
|
-
</xsl:if>
|
3030
|
-
|
3031
|
-
<xsl:apply-templates/>
|
3032
|
-
</fo:block>
|
2752
|
+
<xsl:apply-templates/>
|
2753
|
+
</fo:block>
|
3033
2754
|
|
3034
2755
|
</xsl:template> <!-- license-statement/p -->
|
3035
2756
|
|
3036
2757
|
<xsl:template match="*[local-name()='legal-statement']">
|
3037
2758
|
<xsl:param name="isLegacy">false</xsl:param>
|
3038
2759
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
3039
|
-
|
3040
2760
|
<xsl:apply-templates/>
|
3041
2761
|
</fo:block>
|
3042
2762
|
</xsl:template> <!-- legal-statement -->
|
3043
2763
|
|
3044
2764
|
<xsl:template match="*[local-name()='legal-statement']//*[local-name()='title']">
|
3045
|
-
|
3046
|
-
|
3047
|
-
|
3048
|
-
|
3049
|
-
|
3050
|
-
|
3051
|
-
|
3052
|
-
</fo:block>
|
2765
|
+
<!-- ogc-white-paper rsd -->
|
2766
|
+
<xsl:variable name="level">
|
2767
|
+
<xsl:call-template name="getLevel"/>
|
2768
|
+
</xsl:variable>
|
2769
|
+
<fo:block role="H{$level}" xsl:use-attribute-sets="legal-statement-title-style">
|
2770
|
+
<xsl:apply-templates/>
|
2771
|
+
</fo:block>
|
3053
2772
|
|
3054
2773
|
</xsl:template> <!-- legal-statement/title -->
|
3055
2774
|
|
3056
2775
|
<xsl:template match="*[local-name()='legal-statement']//*[local-name()='p']">
|
3057
2776
|
<xsl:param name="margin"/>
|
2777
|
+
<!-- csa -->
|
2778
|
+
<fo:block xsl:use-attribute-sets="legal-statement-p-style">
|
3058
2779
|
|
3059
|
-
|
3060
|
-
<
|
3061
|
-
|
3062
|
-
|
3063
|
-
|
3064
|
-
<xsl:value-of select="@align"/>
|
3065
|
-
</xsl:attribute>
|
3066
|
-
</xsl:if>
|
2780
|
+
<xsl:if test="@align">
|
2781
|
+
<xsl:attribute name="text-align">
|
2782
|
+
<xsl:value-of select="@align"/>
|
2783
|
+
</xsl:attribute>
|
2784
|
+
</xsl:if>
|
3067
2785
|
|
3068
|
-
|
3069
|
-
|
2786
|
+
<xsl:apply-templates/>
|
2787
|
+
</fo:block>
|
3070
2788
|
|
3071
2789
|
</xsl:template> <!-- legal-statement/p -->
|
3072
2790
|
|
@@ -3077,20 +2795,16 @@
|
|
3077
2795
|
</xsl:template> <!-- feedback-statement -->
|
3078
2796
|
|
3079
2797
|
<xsl:template match="*[local-name()='feedback-statement']//*[local-name()='title']">
|
3080
|
-
|
3081
|
-
|
3082
|
-
<xsl:call-template name="title"/>
|
3083
|
-
|
2798
|
+
<!-- process in the template 'title' -->
|
2799
|
+
<xsl:call-template name="title"/>
|
3084
2800
|
</xsl:template>
|
3085
2801
|
|
3086
2802
|
<xsl:template match="*[local-name()='feedback-statement']//*[local-name()='p']">
|
3087
2803
|
<xsl:param name="margin"/>
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
</xsl:call-template>
|
3093
|
-
|
2804
|
+
<!-- process in the template 'paragraph' -->
|
2805
|
+
<xsl:call-template name="paragraph">
|
2806
|
+
<xsl:with-param name="margin" select="$margin"/>
|
2807
|
+
</xsl:call-template>
|
3094
2808
|
</xsl:template>
|
3095
2809
|
|
3096
2810
|
<!-- ================================= -->
|
@@ -3143,7 +2857,6 @@
|
|
3143
2857
|
<xsl:template match="*[local-name()='table']" name="table">
|
3144
2858
|
|
3145
2859
|
<xsl:variable name="table-preamble">
|
3146
|
-
|
3147
2860
|
</xsl:variable>
|
3148
2861
|
|
3149
2862
|
<xsl:variable name="table">
|
@@ -3161,8 +2874,7 @@
|
|
3161
2874
|
|
3162
2875
|
<!-- Display table's name before table as standalone block -->
|
3163
2876
|
<!-- $namespace = 'iso' or -->
|
3164
|
-
|
3165
|
-
<xsl:call-template name="table_name_fn_display"/>
|
2877
|
+
<xsl:call-template name="table_name_fn_display"/>
|
3166
2878
|
|
3167
2879
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/tr[1]/td)"/>
|
3168
2880
|
|
@@ -3216,12 +2928,11 @@
|
|
3216
2928
|
<xsl:variable name="table_width_default">100%</xsl:variable>
|
3217
2929
|
<xsl:variable name="table_width">
|
3218
2930
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
3224
|
-
</xsl:choose>
|
2931
|
+
<xsl:choose>
|
2932
|
+
<xsl:when test="@width = 'full-page-width' or @width = 'text-width'">100%</xsl:when>
|
2933
|
+
<xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
|
2934
|
+
<xsl:otherwise><xsl:value-of select="$table_width_default"/></xsl:otherwise>
|
2935
|
+
</xsl:choose>
|
3225
2936
|
|
3226
2937
|
</xsl:variable>
|
3227
2938
|
|
@@ -3335,8 +3046,7 @@
|
|
3335
3046
|
<xsl:with-param name="colgroup" select="$colgroup"/>
|
3336
3047
|
</xsl:call-template>
|
3337
3048
|
</xsl:for-each>
|
3338
|
-
|
3339
|
-
<xsl:apply-templates select="*[local-name()='name']"/>
|
3049
|
+
<xsl:apply-templates select="*[local-name()='name']"/>
|
3340
3050
|
|
3341
3051
|
<!-- https://github.com/metanorma/metanorma-plateau/issues/171
|
3342
3052
|
<xsl:if test="$namespace = 'plateau'">
|
@@ -3367,23 +3077,22 @@
|
|
3367
3077
|
<xsl:when test="@width and @width != 'full-page-width' and @width != 'text-width'">
|
3368
3078
|
|
3369
3079
|
<!-- centered table when table name is centered (see table-name-style) -->
|
3370
|
-
|
3371
|
-
<xsl:
|
3372
|
-
<xsl:
|
3373
|
-
|
3374
|
-
<
|
3375
|
-
<xsl:
|
3376
|
-
|
3377
|
-
|
3378
|
-
</xsl:call-template>
|
3379
|
-
<xsl:copy-of select="$table"/>
|
3380
|
-
</fo:block>
|
3381
|
-
</xsl:when>
|
3382
|
-
<xsl:otherwise>
|
3383
|
-
<xsl:copy-of select="$table-preamble"/>
|
3080
|
+
<xsl:choose>
|
3081
|
+
<xsl:when test="$isAdded = 'true' or $isDeleted = 'true'">
|
3082
|
+
<xsl:copy-of select="$table-preamble"/>
|
3083
|
+
<fo:block>
|
3084
|
+
<xsl:call-template name="setTrackChangesStyles">
|
3085
|
+
<xsl:with-param name="isAdded" select="$isAdded"/>
|
3086
|
+
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
3087
|
+
</xsl:call-template>
|
3384
3088
|
<xsl:copy-of select="$table"/>
|
3385
|
-
</
|
3386
|
-
</xsl:
|
3089
|
+
</fo:block>
|
3090
|
+
</xsl:when>
|
3091
|
+
<xsl:otherwise>
|
3092
|
+
<xsl:copy-of select="$table-preamble"/>
|
3093
|
+
<xsl:copy-of select="$table"/>
|
3094
|
+
</xsl:otherwise>
|
3095
|
+
</xsl:choose>
|
3387
3096
|
|
3388
3097
|
</xsl:when>
|
3389
3098
|
<xsl:otherwise>
|
@@ -3409,7 +3118,6 @@
|
|
3409
3118
|
</xsl:template>
|
3410
3119
|
|
3411
3120
|
<xsl:template name="setBordersTableArray">
|
3412
|
-
|
3413
3121
|
</xsl:template>
|
3414
3122
|
|
3415
3123
|
<!-- table/name-->
|
@@ -3418,51 +3126,50 @@
|
|
3418
3126
|
<xsl:param name="cols-count"/>
|
3419
3127
|
<xsl:if test="normalize-space() != ''">
|
3420
3128
|
|
3421
|
-
|
3129
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
3422
3130
|
|
3423
|
-
|
3424
|
-
|
3425
|
-
|
3426
|
-
|
3427
|
-
<xsl:choose>
|
3428
|
-
<xsl:when test="$continued = 'true'">
|
3131
|
+
<xsl:call-template name="refine_table-name-style">
|
3132
|
+
<xsl:with-param name="continued" select="$continued"/>
|
3133
|
+
</xsl:call-template>
|
3429
3134
|
|
3430
|
-
|
3431
|
-
|
3432
|
-
|
3433
|
-
|
3434
|
-
|
3135
|
+
<xsl:choose>
|
3136
|
+
<xsl:when test="$continued = 'true'">
|
3137
|
+
</xsl:when>
|
3138
|
+
<xsl:otherwise>
|
3139
|
+
<xsl:apply-templates/>
|
3140
|
+
</xsl:otherwise>
|
3141
|
+
</xsl:choose>
|
3435
3142
|
|
3436
|
-
|
3143
|
+
</fo:block>
|
3437
3144
|
|
3438
|
-
|
3439
|
-
|
3145
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
3146
|
+
<xsl:if test="$continued = 'true'">
|
3440
3147
|
|
3441
|
-
|
3148
|
+
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
3442
3149
|
|
3443
|
-
|
3444
|
-
|
3445
|
-
|
3446
|
-
|
3447
|
-
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3462
|
-
|
3150
|
+
<xsl:choose>
|
3151
|
+
<xsl:when test="string(number($cols-count)) != 'NaN'">
|
3152
|
+
<fo:table width="100%" table-layout="fixed" role="SKIP">
|
3153
|
+
<fo:table-body role="SKIP">
|
3154
|
+
<fo:table-row>
|
3155
|
+
<fo:table-cell role="TH" number-columns-spanned="{$cols-count}">
|
3156
|
+
<fo:block text-align="right" role="SKIP">
|
3157
|
+
<xsl:apply-templates select="../*[local-name() = 'note'][@type = 'units']/node()"/>
|
3158
|
+
</fo:block>
|
3159
|
+
</fo:table-cell>
|
3160
|
+
</fo:table-row>
|
3161
|
+
</fo:table-body>
|
3162
|
+
</fo:table>
|
3163
|
+
</xsl:when>
|
3164
|
+
<xsl:otherwise>
|
3165
|
+
<fo:block text-align="right">
|
3166
|
+
<xsl:apply-templates select="../*[local-name() = 'note'][@type = 'units']/node()"/>
|
3167
|
+
</fo:block>
|
3168
|
+
</xsl:otherwise>
|
3169
|
+
</xsl:choose>
|
3463
3170
|
|
3464
|
-
|
3465
|
-
|
3171
|
+
</xsl:if>
|
3172
|
+
<!-- </xsl:if> -->
|
3466
3173
|
|
3467
3174
|
</xsl:if>
|
3468
3175
|
</xsl:template> <!-- table/name -->
|
@@ -3837,7 +3544,6 @@
|
|
3837
3544
|
<xsl:template match="*[local-name()='thead']">
|
3838
3545
|
<xsl:param name="cols-count"/>
|
3839
3546
|
<fo:table-header>
|
3840
|
-
|
3841
3547
|
<xsl:apply-templates/>
|
3842
3548
|
</fo:table-header>
|
3843
3549
|
</xsl:template> <!-- thead -->
|
@@ -3851,21 +3557,20 @@
|
|
3851
3557
|
|
3852
3558
|
<xsl:call-template name="refine_table-header-title-style"/>
|
3853
3559
|
|
3854
|
-
|
3855
|
-
|
3856
|
-
|
3857
|
-
|
3560
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
3561
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
3562
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
3563
|
+
</xsl:apply-templates>
|
3858
3564
|
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3565
|
+
<xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
|
3566
|
+
<fo:block role="SKIP"/>
|
3567
|
+
</xsl:if>
|
3862
3568
|
|
3863
3569
|
</fo:table-cell>
|
3864
3570
|
</fo:table-row>
|
3865
3571
|
</xsl:template> <!-- table-header-title -->
|
3866
3572
|
|
3867
3573
|
<xsl:template name="refine_table-header-title-style">
|
3868
|
-
|
3869
3574
|
</xsl:template> <!-- refine_table-header-title-style -->
|
3870
3575
|
|
3871
3576
|
<xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -3895,7 +3600,6 @@
|
|
3895
3600
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'][not(@type = 'units')] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3896
3601
|
|
3897
3602
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
3898
|
-
|
3899
3603
|
</xsl:variable>
|
3900
3604
|
|
3901
3605
|
<xsl:if test="$isNoteOrFnExist = 'true' or normalize-space($isNoteOrFnExistShowAfterTable) = 'true'">
|
@@ -3957,26 +3661,19 @@
|
|
3957
3661
|
<xsl:call-template name="setBordersTableArray"/>
|
3958
3662
|
|
3959
3663
|
<!-- fn will be processed inside 'note' processing -->
|
3960
|
-
|
3961
|
-
|
3962
|
-
|
3963
|
-
|
3964
|
-
|
3965
|
-
<xsl:apply-templates select="../*[local-name()='p']"/>
|
3966
|
-
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
3967
|
-
<xsl:apply-templates select="../*[local-name()='note'][not(@type = 'units')]"/>
|
3968
|
-
<xsl:apply-templates select="../*[local-name()='example']"/>
|
3969
|
-
<xsl:apply-templates select="../*[local-name()='source']"/>
|
3664
|
+
<xsl:apply-templates select="../*[local-name()='p']"/>
|
3665
|
+
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
3666
|
+
<xsl:apply-templates select="../*[local-name()='note'][not(@type = 'units')]"/>
|
3667
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
3668
|
+
<xsl:apply-templates select="../*[local-name()='source']"/>
|
3970
3669
|
|
3971
3670
|
<xsl:variable name="isDisplayRowSeparator">
|
3972
|
-
|
3973
3671
|
</xsl:variable>
|
3974
3672
|
|
3975
3673
|
<!-- horizontal row separator -->
|
3976
3674
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
3977
3675
|
<xsl:if test="(../*[local-name()='note'][not(@type = 'units')] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
3978
3676
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
3979
|
-
|
3980
3677
|
<xsl:call-template name="setBordersTableArray"/>
|
3981
3678
|
<fo:block font-size="1pt"> </fo:block>
|
3982
3679
|
</fo:block-container>
|
@@ -3984,11 +3681,8 @@
|
|
3984
3681
|
</xsl:if>
|
3985
3682
|
|
3986
3683
|
<!-- fn processing -->
|
3987
|
-
|
3988
|
-
|
3989
|
-
<xsl:copy-of select="$table_fn_block"/>
|
3990
|
-
|
3991
|
-
<!-- for PAS display Notes after footnotes -->
|
3684
|
+
<!-- <xsl:call-template name="table_fn_display" /> -->
|
3685
|
+
<xsl:copy-of select="$table_fn_block"/>
|
3992
3686
|
|
3993
3687
|
</fo:table-cell>
|
3994
3688
|
</fo:table-row>
|
@@ -4115,7 +3809,7 @@
|
|
4115
3809
|
<xsl:with-param name="pText" select="$border_under_row_"/>
|
4116
3810
|
</xsl:call-template>
|
4117
3811
|
</xsl:variable>
|
4118
|
-
<xsl:if test="xalan:nodeset($border_under_row)/item[. = normalize-space($row_num)]">
|
3812
|
+
<xsl:if test="xalan:nodeset($border_under_row)/mn:item[. = normalize-space($row_num)]">
|
4119
3813
|
<xsl:attribute name="border-bottom"><xsl:value-of select="$table-border"/></xsl:attribute>
|
4120
3814
|
</xsl:if>
|
4121
3815
|
</xsl:when>
|
@@ -4232,7 +3926,7 @@
|
|
4232
3926
|
</xsl:variable>
|
4233
3927
|
<xsl:variable name="quot">"</xsl:variable>
|
4234
3928
|
<xsl:variable name="styles_">
|
4235
|
-
<xsl:for-each select="xalan:nodeset($styles__)/item">
|
3929
|
+
<xsl:for-each select="xalan:nodeset($styles__)/mn:item">
|
4236
3930
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
4237
3931
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
4238
3932
|
<xsl:if test="$key = 'color' or $key = 'background-color' or $key = 'border' or $key = 'border-top' or $key = 'border-right' or $key = 'border-left' or $key = 'border-bottom' or $key = 'border-style' or $key = 'border-width' or $key = 'border-color' or $key = 'border-top-style' or $key = 'border-top-width' or $key = 'border-top-color' or $key = 'border-right-style' or $key = 'border-right-width' or $key = 'border-right-color' or $key = 'border-left-style' or $key = 'border-left-width' or $key = 'border-left-color' or $key = 'border-bottom-style' or $key = 'border-bottom-width' or $key = 'border-bottom-color'">
|
@@ -4282,9 +3976,7 @@
|
|
4282
3976
|
<fo:block role="SKIP">
|
4283
3977
|
|
4284
3978
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
4285
|
-
|
4286
|
-
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
4287
|
-
|
3979
|
+
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
4288
3980
|
</xsl:if>
|
4289
3981
|
|
4290
3982
|
<xsl:apply-templates/>
|
@@ -4299,25 +3991,23 @@
|
|
4299
3991
|
|
4300
3992
|
<!-- table/note, table/example, table/tfoot//note, table/tfoot//example -->
|
4301
3993
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example'] | *[local-name()='table']/*[local-name()='tfoot']//*[local-name()='note' or local-name() = 'example']" priority="2">
|
3994
|
+
<xsl:call-template name="setNamedDestination"/>
|
3995
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
3996
|
+
<xsl:copy-of select="@id"/>
|
4302
3997
|
|
4303
|
-
|
4304
|
-
<fo:block xsl:use-attribute-sets="table-note-style">
|
4305
|
-
<xsl:copy-of select="@id"/>
|
4306
|
-
|
4307
|
-
<xsl:call-template name="refine_table-note-style"/>
|
4308
|
-
|
4309
|
-
<!-- Table's note/example name (NOTE, for example) -->
|
4310
|
-
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
3998
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4311
3999
|
|
4312
|
-
|
4000
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4001
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4313
4002
|
|
4314
|
-
|
4003
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4315
4004
|
|
4316
|
-
|
4005
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4317
4006
|
|
4318
|
-
|
4319
|
-
</fo:block>
|
4007
|
+
</fo:inline>
|
4320
4008
|
|
4009
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4010
|
+
</fo:block>
|
4321
4011
|
</xsl:template> <!-- table/note -->
|
4322
4012
|
|
4323
4013
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p'] | *[local-name()='table']/*[local-name()='tfoot']//*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
@@ -4362,9 +4052,7 @@
|
|
4362
4052
|
<xsl:variable name="current_fn_number" select="@reference"/>
|
4363
4053
|
|
4364
4054
|
<xsl:variable name="current_fn_number_text">
|
4365
|
-
|
4366
|
-
<xsl:value-of select="$current_fn_number"/>
|
4367
|
-
|
4055
|
+
<xsl:value-of select="$current_fn_number"/>
|
4368
4056
|
</xsl:variable>
|
4369
4057
|
|
4370
4058
|
<xsl:variable name="ref_id" select="@target"/>
|
@@ -4376,12 +4064,10 @@
|
|
4376
4064
|
<xsl:choose>
|
4377
4065
|
<xsl:when test="ancestor::*[local-name() = 'bibitem']">
|
4378
4066
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
4379
|
-
|
4380
4067
|
</fn_styles>
|
4381
4068
|
</xsl:when>
|
4382
4069
|
<xsl:otherwise>
|
4383
4070
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
4384
|
-
|
4385
4071
|
</fn_styles>
|
4386
4072
|
</xsl:otherwise>
|
4387
4073
|
</xsl:choose>
|
@@ -4399,7 +4085,6 @@
|
|
4399
4085
|
<xsl:with-param name="element">
|
4400
4086
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
|
4401
4087
|
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
|
4402
|
-
|
4403
4088
|
<xsl:copy-of select="$current_fn_number_text"/>
|
4404
4089
|
|
4405
4090
|
</fo:inline>
|
@@ -4437,10 +4122,9 @@
|
|
4437
4122
|
<here><xsl:copy-of select="$footnotes"/></here> -->
|
4438
4123
|
<xsl:apply-templates select="$footnotes/*[local-name() = 'fmt-fn-body'][@id = $ref_id]"/>
|
4439
4124
|
</xsl:variable>
|
4440
|
-
|
4441
|
-
|
4442
|
-
|
4443
|
-
</fo:block>
|
4125
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
4126
|
+
<xsl:copy-of select="$fn_block"/>
|
4127
|
+
</fo:block>
|
4444
4128
|
|
4445
4129
|
</fo:block-container>
|
4446
4130
|
</fo:footnote-body>
|
@@ -4517,21 +4201,20 @@
|
|
4517
4201
|
<xsl:variable name="reference" select="@reference"/>
|
4518
4202
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> --> <!-- only unique reference puts in note-->
|
4519
4203
|
<xsl:for-each select="..//*[local-name() = 'fmt-footnote-container']/*[local-name() = 'fmt-fn-body']">
|
4204
|
+
<fo:block xsl:use-attribute-sets="table-fn-style">
|
4205
|
+
<xsl:copy-of select="@id"/>
|
4206
|
+
<xsl:call-template name="refine_table-fn-style"/>
|
4520
4207
|
|
4521
|
-
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4525
|
-
<xsl:apply-templates select=".//*[local-name() = 'fmt-fn-label']">
|
4526
|
-
<xsl:with-param name="process">true</xsl:with-param>
|
4527
|
-
</xsl:apply-templates>
|
4208
|
+
<xsl:apply-templates select=".//*[local-name() = 'fmt-fn-label']">
|
4209
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
4210
|
+
</xsl:apply-templates>
|
4528
4211
|
|
4529
|
-
|
4530
|
-
|
4531
|
-
|
4532
|
-
|
4212
|
+
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
4213
|
+
<!-- <xsl:copy-of select="./node()"/> -->
|
4214
|
+
<xsl:apply-templates/>
|
4215
|
+
</fo:inline>
|
4533
4216
|
|
4534
|
-
|
4217
|
+
</fo:block>
|
4535
4218
|
|
4536
4219
|
<!-- </xsl:if> -->
|
4537
4220
|
</xsl:for-each>
|
@@ -4584,7 +4267,6 @@
|
|
4584
4267
|
<xsl:param name="process">false</xsl:param>
|
4585
4268
|
<xsl:if test="$process = 'true'">
|
4586
4269
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
4587
|
-
|
4588
4270
|
</xsl:if>
|
4589
4271
|
</xsl:template>
|
4590
4272
|
|
@@ -4668,7 +4350,6 @@
|
|
4668
4350
|
<xsl:if test="xalan:nodeset($references)//*[local-name() = 'fmt-fn-body']">
|
4669
4351
|
|
4670
4352
|
<xsl:variable name="key_iso">
|
4671
|
-
|
4672
4353
|
</xsl:variable>
|
4673
4354
|
|
4674
4355
|
<fo:block>
|
@@ -4714,7 +4395,6 @@
|
|
4714
4395
|
<fo:table width="95%" table-layout="fixed">
|
4715
4396
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
4716
4397
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4717
|
-
|
4718
4398
|
</xsl:if>
|
4719
4399
|
<xsl:choose>
|
4720
4400
|
<!-- if there 'dl', then set same columns width -->
|
@@ -4738,23 +4418,19 @@
|
|
4738
4418
|
<fo:table-row>
|
4739
4419
|
<fo:table-cell>
|
4740
4420
|
<fo:block>
|
4741
|
-
|
4742
|
-
|
4743
|
-
|
4744
|
-
|
4745
|
-
|
4746
|
-
</fo:inline>
|
4421
|
+
<fo:inline id="{@id}" xsl:use-attribute-sets="figure-fmt-fn-label-style">
|
4422
|
+
<!-- <xsl:attribute name="padding-right">0mm</xsl:attribute> -->
|
4423
|
+
<!-- <xsl:value-of select="@reference"/> -->
|
4424
|
+
<xsl:value-of select="normalize-space(.//*[local-name() = 'fmt-fn-label'])"/>
|
4425
|
+
</fo:inline>
|
4747
4426
|
|
4748
4427
|
</fo:block>
|
4749
4428
|
</fo:table-cell>
|
4750
4429
|
<fo:table-cell>
|
4751
4430
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
4752
4431
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
4753
|
-
|
4754
|
-
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
4755
|
-
|
4432
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
4756
4433
|
</xsl:if>
|
4757
|
-
|
4758
4434
|
<!-- <xsl:copy-of select="./node()"/> -->
|
4759
4435
|
<xsl:apply-templates/>
|
4760
4436
|
</fo:block>
|
@@ -4804,11 +4480,9 @@
|
|
4804
4480
|
<!-- figure/dl[@key = 'true']/dt/p/sup -->
|
4805
4481
|
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'dl'][@key = 'true']/*[local-name() = 'dt']/ *[local-name() = 'p'][count(node()[normalize-space() != '']) = 1]/*[local-name() = 'sup']" priority="3">
|
4806
4482
|
<xsl:variable name="key_iso">
|
4807
|
-
|
4808
4483
|
</xsl:variable>
|
4809
4484
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
4810
4485
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4811
|
-
|
4812
4486
|
</xsl:if>
|
4813
4487
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
4814
4488
|
<!-- <xsl:value-of select="@reference"/> -->
|
@@ -4854,8 +4528,7 @@
|
|
4854
4528
|
<xsl:text>※</xsl:text>
|
4855
4529
|
</xsl:if> -->
|
4856
4530
|
<!-- <xsl:value-of select="@reference"/> -->
|
4857
|
-
|
4858
|
-
<xsl:value-of select="normalize-space(*[local-name() = 'fmt-fn-label'])"/>
|
4531
|
+
<xsl:value-of select="normalize-space(*[local-name() = 'fmt-fn-label'])"/>
|
4859
4532
|
|
4860
4533
|
<!-- <xsl:if test="$namespace = 'bsi'">
|
4861
4534
|
<xsl:text>)</xsl:text>
|
@@ -4927,10 +4600,9 @@
|
|
4927
4600
|
</xsl:if>
|
4928
4601
|
|
4929
4602
|
<xsl:call-template name="setBlockSpanAll"/>
|
4930
|
-
|
4931
|
-
|
4932
|
-
|
4933
|
-
</xsl:if>
|
4603
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
4604
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4605
|
+
</xsl:if>
|
4934
4606
|
|
4935
4607
|
<xsl:if test="ancestor::*[local-name() = 'sourcecode']">
|
4936
4608
|
<!-- set font-size as sourcecode font-size -->
|
@@ -4951,7 +4623,6 @@
|
|
4951
4623
|
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
4952
4624
|
</xsl:choose>
|
4953
4625
|
</xsl:attribute>
|
4954
|
-
|
4955
4626
|
</xsl:if>
|
4956
4627
|
|
4957
4628
|
<xsl:call-template name="setTrackChangesStyles">
|
@@ -4960,37 +4631,32 @@
|
|
4960
4631
|
</xsl:call-template>
|
4961
4632
|
|
4962
4633
|
<fo:block-container margin-left="0mm" role="SKIP">
|
4963
|
-
|
4964
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4634
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4965
4635
|
|
4966
4636
|
<xsl:variable name="parent" select="local-name(..)"/>
|
4967
4637
|
|
4968
|
-
<xsl:variable name="key_iso">
|
4969
|
-
<!-- and (not(../@class) or ../@class !='pseudocode') -->
|
4638
|
+
<xsl:variable name="key_iso"> <!-- and (not(../@class) or ../@class !='pseudocode') -->
|
4970
4639
|
</xsl:variable>
|
4971
4640
|
|
4972
4641
|
<xsl:variable name="onlyOneComponent" select="normalize-space($parent = 'formula' and count(*[local-name()='dt']) = 1)"/>
|
4973
4642
|
|
4974
4643
|
<xsl:choose>
|
4975
4644
|
<xsl:when test="$onlyOneComponent = 'true'"> <!-- only one component -->
|
4976
|
-
|
4977
|
-
|
4978
|
-
|
4979
|
-
<!-- <xsl:variable name="title-where">
|
4645
|
+
<fo:block margin-bottom="12pt" text-align="left">
|
4646
|
+
<!-- <xsl:variable name="title-where">
|
4980
4647
|
<xsl:call-template name="getLocalizedString">
|
4981
4648
|
<xsl:with-param name="key">where</xsl:with-param>
|
4982
4649
|
</xsl:call-template>
|
4983
4650
|
</xsl:variable>
|
4984
4651
|
<xsl:value-of select="$title-where"/> -->
|
4985
|
-
|
4986
|
-
|
4987
|
-
|
4988
|
-
|
4989
|
-
|
4990
|
-
|
4991
|
-
|
4992
|
-
|
4993
|
-
|
4652
|
+
<xsl:apply-templates select="preceding-sibling::*[1][local-name() = 'p' and @keep-with-next = 'true']/node()"/>
|
4653
|
+
<xsl:text> </xsl:text>
|
4654
|
+
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
4655
|
+
<xsl:if test="*[local-name()='dd']/node()[normalize-space() != ''][1][self::text()]">
|
4656
|
+
<xsl:text> </xsl:text>
|
4657
|
+
</xsl:if>
|
4658
|
+
<xsl:apply-templates select="*[local-name()='dd']/node()" mode="inline"/>
|
4659
|
+
</fo:block>
|
4994
4660
|
</xsl:when> <!-- END: only one component -->
|
4995
4661
|
<xsl:when test="$parent = 'formula'"> <!-- a few components -->
|
4996
4662
|
<fo:block margin-bottom="12pt" text-align="left">
|
@@ -5010,19 +4676,17 @@
|
|
5010
4676
|
<xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')"> <!-- definition list in a figure -->
|
5011
4677
|
<!-- Presentation XML contains 'Key' caption, https://github.com/metanorma/isodoc/issues/607 -->
|
5012
4678
|
<xsl:if test="not(preceding-sibling::*[1][local-name() = 'p' and @keep-with-next])"> <!-- for old Presentation XML -->
|
4679
|
+
<fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
|
5013
4680
|
|
5014
|
-
|
5015
|
-
|
5016
|
-
<xsl:call-template name="refine_figure_key_style"/>
|
5017
|
-
|
5018
|
-
<xsl:variable name="title-key">
|
5019
|
-
<xsl:call-template name="getLocalizedString">
|
5020
|
-
<xsl:with-param name="key">key</xsl:with-param>
|
5021
|
-
</xsl:call-template>
|
5022
|
-
</xsl:variable>
|
5023
|
-
<xsl:value-of select="$title-key"/>
|
5024
|
-
</fo:block>
|
4681
|
+
<xsl:call-template name="refine_figure_key_style"/>
|
5025
4682
|
|
4683
|
+
<xsl:variable name="title-key">
|
4684
|
+
<xsl:call-template name="getLocalizedString">
|
4685
|
+
<xsl:with-param name="key">key</xsl:with-param>
|
4686
|
+
</xsl:call-template>
|
4687
|
+
</xsl:variable>
|
4688
|
+
<xsl:value-of select="$title-key"/>
|
4689
|
+
</fo:block>
|
5026
4690
|
</xsl:if>
|
5027
4691
|
</xsl:when> <!-- END: definition list in a figure -->
|
5028
4692
|
</xsl:choose>
|
@@ -5055,12 +4719,10 @@
|
|
5055
4719
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
5056
4720
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
5057
4721
|
</xsl:if>
|
5058
|
-
|
5059
4722
|
<xsl:choose>
|
5060
4723
|
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"/>
|
5061
4724
|
<xsl:when test="normalize-space($key_iso) = 'true'">
|
5062
4725
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
5063
|
-
|
5064
4726
|
</xsl:when>
|
5065
4727
|
</xsl:choose>
|
5066
4728
|
|
@@ -5165,17 +4827,15 @@
|
|
5165
4827
|
<xsl:call-template name="getMaxLength_dt"/>
|
5166
4828
|
</xsl:variable>
|
5167
4829
|
|
5168
|
-
<xsl:variable name="isContainsKeepTogetherTag_">
|
5169
|
-
false
|
4830
|
+
<xsl:variable name="isContainsKeepTogetherTag_">false
|
5170
4831
|
</xsl:variable>
|
5171
4832
|
<xsl:variable name="isContainsKeepTogetherTag" select="normalize-space($isContainsKeepTogetherTag_)"/>
|
5172
4833
|
<!-- isContainsExpressReference=<xsl:value-of select="$isContainsExpressReference"/> -->
|
5173
|
-
|
5174
|
-
|
5175
|
-
|
5176
|
-
|
5177
|
-
|
5178
|
-
</xsl:call-template>
|
4834
|
+
<xsl:call-template name="setColumnWidth_dl">
|
4835
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
4836
|
+
<xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
|
4837
|
+
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
4838
|
+
</xsl:call-template>
|
5179
4839
|
|
5180
4840
|
<fo:table-body>
|
5181
4841
|
|
@@ -5226,21 +4886,17 @@
|
|
5226
4886
|
</xsl:template>
|
5227
4887
|
|
5228
4888
|
<xsl:template name="refine_dl_formula_where_style">
|
5229
|
-
|
5230
4889
|
</xsl:template> <!-- refine_dl_formula_where_style -->
|
5231
4890
|
|
5232
4891
|
<xsl:template name="refine_figure_key_style">
|
5233
|
-
|
5234
4892
|
</xsl:template> <!-- refine_figure_key_style -->
|
5235
4893
|
|
5236
4894
|
<xsl:template name="refine_multicomponent_style">
|
5237
4895
|
<xsl:variable name="parent" select="local-name(..)"/>
|
5238
|
-
|
5239
4896
|
</xsl:template> <!-- refine_multicomponent_style -->
|
5240
4897
|
|
5241
4898
|
<xsl:template name="refine_multicomponent_block_style">
|
5242
4899
|
<xsl:variable name="parent" select="local-name(..)"/>
|
5243
|
-
|
5244
4900
|
</xsl:template> <!-- refine_multicomponent_block_style -->
|
5245
4901
|
|
5246
4902
|
<!-- ignore 'p' with 'where' in formula, before 'dl' -->
|
@@ -5427,14 +5083,11 @@
|
|
5427
5083
|
<xsl:attribute name="id">
|
5428
5084
|
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
|
5429
5085
|
</xsl:attribute>
|
5430
|
-
|
5431
|
-
|
5432
|
-
|
5433
|
-
</xsl:apply-templates>
|
5434
|
-
|
5086
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
|
5087
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
5088
|
+
</xsl:apply-templates>
|
5435
5089
|
</td>
|
5436
5090
|
</tr>
|
5437
|
-
|
5438
5091
|
</xsl:template>
|
5439
5092
|
|
5440
5093
|
<!-- Definition's term -->
|
@@ -5443,7 +5096,6 @@
|
|
5443
5096
|
<xsl:param name="split_keep-within-line"/>
|
5444
5097
|
|
5445
5098
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
5446
|
-
|
5447
5099
|
<xsl:call-template name="insert_dt_cell">
|
5448
5100
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
5449
5101
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -5465,7 +5117,6 @@
|
|
5465
5117
|
<!-- border is mandatory, to calculate real width -->
|
5466
5118
|
<xsl:attribute name="border">0.1pt solid black</xsl:attribute>
|
5467
5119
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
5468
|
-
|
5469
5120
|
</xsl:if>
|
5470
5121
|
|
5471
5122
|
<xsl:call-template name="refine_dt-cell-style"/>
|
@@ -5475,9 +5126,7 @@
|
|
5475
5126
|
|
5476
5127
|
<xsl:choose>
|
5477
5128
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
5478
|
-
|
5479
|
-
<xsl:copy-of select="@id"/>
|
5480
|
-
|
5129
|
+
<xsl:copy-of select="@id"/>
|
5481
5130
|
</xsl:when>
|
5482
5131
|
<xsl:otherwise>
|
5483
5132
|
<xsl:copy-of select="@id"/>
|
@@ -5514,9 +5163,7 @@
|
|
5514
5163
|
<fo:block role="SKIP">
|
5515
5164
|
|
5516
5165
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
5517
|
-
|
5518
|
-
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
5519
|
-
|
5166
|
+
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
5520
5167
|
</xsl:if>
|
5521
5168
|
|
5522
5169
|
<xsl:choose>
|
@@ -5664,7 +5311,6 @@
|
|
5664
5311
|
</xsl:template>
|
5665
5312
|
|
5666
5313
|
<xsl:template name="refine_italic_style">
|
5667
|
-
|
5668
5314
|
</xsl:template>
|
5669
5315
|
|
5670
5316
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
@@ -5680,7 +5326,6 @@
|
|
5680
5326
|
</xsl:template>
|
5681
5327
|
|
5682
5328
|
<xsl:template name="refine_strong_style">
|
5683
|
-
|
5684
5329
|
<xsl:if test="ancestor::*['preferred']">
|
5685
5330
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
5686
5331
|
</xsl:if>
|
@@ -5705,15 +5350,11 @@
|
|
5705
5350
|
<xsl:template match="*[local-name()='tt']">
|
5706
5351
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
5707
5352
|
|
5708
|
-
<xsl:variable name="_font-size">
|
5709
|
-
|
5710
|
-
|
5711
|
-
|
5712
|
-
|
5713
|
-
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
5714
|
-
<xsl:otherwise>9.5</xsl:otherwise>
|
5715
|
-
</xsl:choose>
|
5716
|
-
|
5353
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
5354
|
+
<xsl:choose>
|
5355
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
5356
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
5357
|
+
</xsl:choose>
|
5717
5358
|
</xsl:variable>
|
5718
5359
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
5719
5360
|
<xsl:if test="$font-size != ''">
|
@@ -5929,8 +5570,7 @@
|
|
5929
5570
|
</xsl:otherwise>
|
5930
5571
|
</xsl:choose>
|
5931
5572
|
</xsl:variable>
|
5932
|
-
<xsl:variable name="ratio_">
|
5933
|
-
0.75
|
5573
|
+
<xsl:variable name="ratio_">0.75
|
5934
5574
|
</xsl:variable>
|
5935
5575
|
<xsl:variable name="ratio" select="number(normalize-space($ratio_))"/>
|
5936
5576
|
<fo:inline font-size="{$ratio * 100}%" role="SKIP">
|
@@ -6020,7 +5660,7 @@
|
|
6020
5660
|
|
6021
5661
|
<xsl:variable name="quot">"</xsl:variable>
|
6022
5662
|
<xsl:variable name="styles_">
|
6023
|
-
<xsl:for-each select="xalan:nodeset($styles__)/item">
|
5663
|
+
<xsl:for-each select="xalan:nodeset($styles__)/mn:item">
|
6024
5664
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
6025
5665
|
<xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
6026
5666
|
<xsl:variable name="value">
|
@@ -6032,7 +5672,7 @@
|
|
6032
5672
|
</xsl:otherwise>
|
6033
5673
|
</xsl:choose>
|
6034
5674
|
</xsl:variable>
|
6035
|
-
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
|
5675
|
+
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift'">
|
6036
5676
|
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
6037
5677
|
</xsl:if>
|
6038
5678
|
<xsl:if test="$key = 'text-indent'">
|
@@ -6046,7 +5686,6 @@
|
|
6046
5686
|
<fo:inline>
|
6047
5687
|
<xsl:for-each select="$styles/style">
|
6048
5688
|
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
6049
|
-
|
6050
5689
|
</xsl:for-each>
|
6051
5690
|
<xsl:apply-templates/>
|
6052
5691
|
</fo:inline>
|
@@ -7033,10 +6672,9 @@
|
|
7033
6672
|
<xsl:variable name="mathml_content">
|
7034
6673
|
<xsl:apply-templates select="." mode="mathml_actual_text"/>
|
7035
6674
|
</xsl:variable>
|
7036
|
-
|
7037
|
-
|
7038
|
-
|
7039
|
-
</xsl:call-template>
|
6675
|
+
<xsl:call-template name="mathml_instream_object">
|
6676
|
+
<xsl:with-param name="mathml_content" select="$mathml_content"/>
|
6677
|
+
</xsl:call-template>
|
7040
6678
|
|
7041
6679
|
</fo:inline>
|
7042
6680
|
</xsl:template>
|
@@ -7070,7 +6708,6 @@
|
|
7070
6708
|
<xsl:template name="getMathml_asciimath_text">
|
7071
6709
|
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
|
7072
6710
|
<xsl:variable name="latexmath">
|
7073
|
-
|
7074
6711
|
</xsl:variable>
|
7075
6712
|
<xsl:variable name="asciimath_text_following">
|
7076
6713
|
<xsl:choose>
|
@@ -7143,7 +6780,6 @@
|
|
7143
6780
|
</xsl:template>
|
7144
6781
|
|
7145
6782
|
<xsl:template name="refine_mathml_insteam_object_style">
|
7146
|
-
|
7147
6783
|
</xsl:template> <!-- refine_mathml_insteam_object_style -->
|
7148
6784
|
|
7149
6785
|
<xsl:template match="mathml:*" mode="mathml_actual_text">
|
@@ -7541,7 +7177,6 @@
|
|
7541
7177
|
<xsl:variable name="annotation-id" select="@id"/>
|
7542
7178
|
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
|
7543
7179
|
<fo:block id="{$annotation-id}" white-space="nowrap">
|
7544
|
-
|
7545
7180
|
<fo:inline>
|
7546
7181
|
<xsl:apply-templates>
|
7547
7182
|
<xsl:with-param name="callout" select="concat('<', $callout, '> ')"/>
|
@@ -7570,7 +7205,6 @@
|
|
7570
7205
|
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://')) and not(ancestor::*[local-name() = 'table' or local-name() = 'dl'])">
|
7571
7206
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
7572
7207
|
</xsl:if>
|
7573
|
-
|
7574
7208
|
<xsl:if test="parent::*[local-name() = 'add']">
|
7575
7209
|
<xsl:call-template name="append_add-style"/>
|
7576
7210
|
</xsl:if>
|
@@ -7581,8 +7215,7 @@
|
|
7581
7215
|
</xsl:template>
|
7582
7216
|
|
7583
7217
|
<!-- command between two xref points to non-standard bibitem -->
|
7584
|
-
<xsl:template match="text()[. = ','][preceding-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']] and following-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']]]"
|
7585
|
-
<xsl:value-of select="."/>
|
7218
|
+
<xsl:template match="text()[. = ','][preceding-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']] and following-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']]]"><xsl:value-of select="."/>
|
7586
7219
|
</xsl:template>
|
7587
7220
|
|
7588
7221
|
<!-- ====== -->
|
@@ -7597,7 +7230,6 @@
|
|
7597
7230
|
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
7598
7231
|
</xsl:choose>
|
7599
7232
|
</xsl:attribute>
|
7600
|
-
|
7601
7233
|
</xsl:if>
|
7602
7234
|
<fo:block-container margin-left="0mm" role="SKIP">
|
7603
7235
|
<xsl:call-template name="setNamedDestination"/>
|
@@ -7687,53 +7319,49 @@
|
|
7687
7319
|
|
7688
7320
|
<xsl:template match="*[local-name() = 'note']" name="note">
|
7689
7321
|
|
7690
|
-
|
7691
|
-
|
7692
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
7693
|
-
|
7694
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
7695
|
-
|
7696
|
-
<xsl:call-template name="refine_note-style"/>
|
7322
|
+
<xsl:call-template name="setNamedDestination"/>
|
7697
7323
|
|
7698
|
-
|
7324
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
7699
7325
|
|
7700
|
-
|
7326
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
7701
7327
|
|
7702
|
-
|
7328
|
+
<xsl:call-template name="refine_note-style"/>
|
7703
7329
|
|
7704
|
-
|
7330
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
7331
|
+
<fo:block>
|
7705
7332
|
|
7706
|
-
|
7333
|
+
<xsl:call-template name="refine_note_block_style"/>
|
7707
7334
|
|
7708
|
-
|
7335
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
7709
7336
|
|
7710
|
-
|
7711
|
-
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
7712
|
-
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
7713
|
-
<xsl:call-template name="append_add-style"/>
|
7714
|
-
</xsl:if>
|
7337
|
+
<xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'tab']" mode="tab"/>
|
7715
7338
|
|
7716
|
-
|
7717
|
-
<xsl:if test="count(*[not(local-name() = 'name')]) = 1 and *[not(local-name() = 'name')]/node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
7718
|
-
<xsl:apply-templates select="*[not(local-name() = 'name')]/node()[1][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
7719
|
-
<xsl:with-param name="skip">false</xsl:with-param>
|
7720
|
-
</xsl:apply-templates>
|
7721
|
-
</xsl:if>
|
7339
|
+
<xsl:call-template name="refine_note-name-style"/>
|
7722
7340
|
|
7723
|
-
|
7341
|
+
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
7342
|
+
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
7343
|
+
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
7344
|
+
<xsl:call-template name="append_add-style"/>
|
7345
|
+
</xsl:if>
|
7724
7346
|
|
7725
|
-
|
7347
|
+
<!-- if note contains only one element and first and last childs are `add` ace-tag, then move start ace-tag before NOTE's name-->
|
7348
|
+
<xsl:if test="count(*[not(local-name() = 'name')]) = 1 and *[not(local-name() = 'name')]/node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
7349
|
+
<xsl:apply-templates select="*[not(local-name() = 'name')]/node()[1][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
7350
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
7351
|
+
</xsl:apply-templates>
|
7352
|
+
</xsl:if>
|
7726
7353
|
|
7727
|
-
|
7728
|
-
</fo:block>
|
7354
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
7729
7355
|
|
7730
|
-
|
7731
|
-
</fo:block-container>
|
7356
|
+
</fo:inline>
|
7732
7357
|
|
7358
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
7359
|
+
</fo:block>
|
7360
|
+
</fo:block-container>
|
7361
|
+
</fo:block-container>
|
7733
7362
|
</xsl:template>
|
7734
7363
|
|
7735
7364
|
<xsl:template name="refine_note_block_style">
|
7736
|
-
|
7737
7365
|
</xsl:template> <!-- refine_note_block_style -->
|
7738
7366
|
|
7739
7367
|
<xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
|
@@ -7786,7 +7414,6 @@
|
|
7786
7414
|
<xsl:value-of select="$sfx"/>
|
7787
7415
|
</xsl:when>
|
7788
7416
|
<xsl:otherwise>
|
7789
|
-
|
7790
7417
|
<!-- https://github.com/metanorma/isodoc/issues/607 -->
|
7791
7418
|
<!-- <xsl:if test="$namespace = 'ieee'">
|
7792
7419
|
<xsl:text>—</xsl:text> em dash —
|
@@ -7794,7 +7421,6 @@
|
|
7794
7421
|
<!-- <xsl:if test="$namespace = 'iho' or $namespace = 'gb' or $namespace = 'm3d' or $namespace = 'unece-rec' or $namespace = 'unece' or $namespace = 'rsd'">
|
7795
7422
|
<xsl:text>:</xsl:text>
|
7796
7423
|
</xsl:if> -->
|
7797
|
-
|
7798
7424
|
<!-- <xsl:if test="$namespace = 'itu' or $namespace = 'nist-cswp' or $namespace = 'nist-sp'">
|
7799
7425
|
<xsl:text> – </xsl:text> en dash –
|
7800
7426
|
</xsl:if> -->
|
@@ -7815,7 +7441,6 @@
|
|
7815
7441
|
<xsl:value-of select="$sfx"/>
|
7816
7442
|
</xsl:when>
|
7817
7443
|
<xsl:otherwise>
|
7818
|
-
|
7819
7444
|
<!-- https://github.com/metanorma/isodoc/issues/607 -->
|
7820
7445
|
<!-- <xsl:if test="$namespace = 'ieee'">
|
7821
7446
|
<xsl:text>—</xsl:text> em dash —
|
@@ -7871,7 +7496,6 @@
|
|
7871
7496
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
7872
7497
|
|
7873
7498
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
7874
|
-
|
7875
7499
|
</xsl:if>
|
7876
7500
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
7877
7501
|
</fo:block>
|
@@ -7911,8 +7535,7 @@
|
|
7911
7535
|
<!-- Example: Dimensions in millimeters -->
|
7912
7536
|
<xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
|
7913
7537
|
|
7914
|
-
<xsl:variable name="show_figure_key_in_block_container">
|
7915
|
-
true
|
7538
|
+
<xsl:variable name="show_figure_key_in_block_container">true
|
7916
7539
|
</xsl:variable>
|
7917
7540
|
|
7918
7541
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
@@ -7927,11 +7550,9 @@
|
|
7927
7550
|
<xsl:if test="normalize-space($show_figure_key_in_block_container) = 'true'">
|
7928
7551
|
<xsl:call-template name="showFigureKey"/>
|
7929
7552
|
</xsl:if>
|
7930
|
-
|
7931
|
-
<xsl:apply-templates select="*[local-name() = 'name']"/> <!-- show figure's name AFTER image -->
|
7553
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/> <!-- show figure's name AFTER image -->
|
7932
7554
|
|
7933
7555
|
</fo:block-container>
|
7934
|
-
|
7935
7556
|
</xsl:template>
|
7936
7557
|
|
7937
7558
|
<xsl:template name="showFigureKey">
|
@@ -7969,13 +7590,12 @@
|
|
7969
7590
|
<!-- SOURCE: ... -->
|
7970
7591
|
<!-- figure/source -->
|
7971
7592
|
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
|
7972
|
-
|
7973
|
-
<xsl:call-template name="termsource"/>
|
7974
|
-
|
7593
|
+
<xsl:call-template name="termsource"/>
|
7975
7594
|
</xsl:template>
|
7976
7595
|
|
7977
7596
|
<xsl:template match="*[local-name() = 'image']">
|
7978
7597
|
<xsl:param name="indent">0</xsl:param>
|
7598
|
+
<xsl:param name="logo_width"/>
|
7979
7599
|
<xsl:variable name="isAdded" select="../@added"/>
|
7980
7600
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7981
7601
|
<xsl:choose>
|
@@ -7997,9 +7617,18 @@
|
|
7997
7617
|
|
7998
7618
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
7999
7619
|
|
8000
|
-
<!-- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/> -->
|
8001
7620
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
|
8002
7621
|
|
7622
|
+
<xsl:if test="parent::*[local-name() = 'logo']"> <!-- publisher's logo -->
|
7623
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
7624
|
+
<xsl:if test="normalize-space($logo_width) != ''">
|
7625
|
+
<xsl:attribute name="width"><xsl:value-of select="$logo_width"/></xsl:attribute>
|
7626
|
+
</xsl:if>
|
7627
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
7628
|
+
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
7629
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
7630
|
+
</xsl:if>
|
7631
|
+
|
8003
7632
|
<xsl:variable name="width">
|
8004
7633
|
<xsl:call-template name="setImageWidth"/>
|
8005
7634
|
</xsl:variable>
|
@@ -8077,8 +7706,7 @@
|
|
8077
7706
|
</xsl:call-template>
|
8078
7707
|
</xsl:variable>
|
8079
7708
|
|
8080
|
-
<xsl:variable name="scaleRatio">
|
8081
|
-
1
|
7709
|
+
<xsl:variable name="scaleRatio">1
|
8082
7710
|
</xsl:variable>
|
8083
7711
|
|
8084
7712
|
<xsl:if test="number($scale) < 100">
|
@@ -8189,18 +7817,14 @@
|
|
8189
7817
|
</xsl:variable>
|
8190
7818
|
|
8191
7819
|
<xsl:variable name="image_width_effective">
|
8192
|
-
|
8193
|
-
<xsl:value-of select="$width_effective - number($indent_left)"/>
|
8194
|
-
|
7820
|
+
<xsl:value-of select="$width_effective - number($indent_left)"/>
|
8195
7821
|
</xsl:variable>
|
8196
7822
|
<xsl:variable name="image_height_effective" select="$height_effective - number($indent_left)"/>
|
8197
7823
|
<!-- <xsl:message>width_effective=<xsl:value-of select="$width_effective"/></xsl:message>
|
8198
7824
|
<xsl:message>indent_left=<xsl:value-of select="$indent_left"/></xsl:message>
|
8199
7825
|
<xsl:message>image_width_effective=<xsl:value-of select="$image_width_effective"/> for <xsl:value-of select="ancestor::ogc:p[1]/@id"/></xsl:message> -->
|
8200
7826
|
<xsl:variable name="scale">
|
8201
|
-
|
8202
|
-
<xsl:value-of select="java:org.metanorma.fop.utils.ImageUtils.getImageScale($img_src, $image_width_effective, $height_effective)"/>
|
8203
|
-
|
7827
|
+
<xsl:value-of select="java:org.metanorma.fop.utils.ImageUtils.getImageScale($img_src, $image_width_effective, $height_effective)"/>
|
8204
7828
|
</xsl:variable>
|
8205
7829
|
<xsl:value-of select="$scale"/>
|
8206
7830
|
</xsl:template>
|
@@ -8221,7 +7845,8 @@
|
|
8221
7845
|
</xsl:when>
|
8222
7846
|
<xsl:when test="not(starts-with(@src, 'data:'))">
|
8223
7847
|
<xsl:variable name="src_external"><xsl:call-template name="getImageSrcExternal"/></xsl:variable>
|
8224
|
-
<xsl:
|
7848
|
+
<xsl:variable name="file_protocol"><xsl:if test="not(starts-with($src_external, 'http:')) and not(starts-with($src_external, 'https:')) and not(starts-with($src_external, 'www.'))">file:///</xsl:if></xsl:variable>
|
7849
|
+
<xsl:value-of select="concat('url(', $file_protocol, $src_external, ')')"/>
|
8225
7850
|
</xsl:when>
|
8226
7851
|
<xsl:otherwise>
|
8227
7852
|
<xsl:value-of select="@src"/>
|
@@ -8517,8 +8142,8 @@
|
|
8517
8142
|
</xsl:call-template>
|
8518
8143
|
</xsl:variable>
|
8519
8144
|
<xsl:variable name="viewbox" select="xalan:nodeset($viewbox_)"/>
|
8520
|
-
<xsl:variable name="width" select="normalize-space($viewbox//item[3])"/>
|
8521
|
-
<xsl:variable name="height" select="normalize-space($viewbox//item[4])"/>
|
8145
|
+
<xsl:variable name="width" select="normalize-space($viewbox//mn:item[3])"/>
|
8146
|
+
<xsl:variable name="height" select="normalize-space($viewbox//mn:item[4])"/>
|
8522
8147
|
|
8523
8148
|
<xsl:variable name="parent_image_width" select="normalize-space(ancestor::*[1][local-name() = 'image']/@width)"/>
|
8524
8149
|
<xsl:variable name="parent_image_height" select="normalize-space(ancestor::*[1][local-name() = 'image']/@height)"/>
|
@@ -8590,8 +8215,8 @@
|
|
8590
8215
|
</xsl:variable>
|
8591
8216
|
<xsl:variable name="components" select="xalan:nodeset($components_)"/>
|
8592
8217
|
<xsl:variable name="att_name" select="local-name()"/>
|
8593
|
-
<xsl:attribute name="{$att_name}"><xsl:value-of select="concat('rgb(', $components/item[1], ',', $components/item[2], ',', $components/item[3], ')')"/></xsl:attribute>
|
8594
|
-
<xsl:attribute name="{$att_name}-opacity"><xsl:value-of select="$components/item[4]"/></xsl:attribute>
|
8218
|
+
<xsl:attribute name="{$att_name}"><xsl:value-of select="concat('rgb(', $components/mn:item[1], ',', $components/mn:item[2], ',', $components/mn:item[3], ')')"/></xsl:attribute>
|
8219
|
+
<xsl:attribute name="{$att_name}-opacity"><xsl:value-of select="$components/mn:item[4]"/></xsl:attribute>
|
8595
8220
|
</xsl:template>
|
8596
8221
|
|
8597
8222
|
<!-- ============== -->
|
@@ -8664,13 +8289,13 @@
|
|
8664
8289
|
</xsl:call-template>
|
8665
8290
|
</xsl:variable>
|
8666
8291
|
<xsl:variable name="x_coords">
|
8667
|
-
<xsl:for-each select="xalan:nodeset($points)//item[position() mod 2 = 1]">
|
8292
|
+
<xsl:for-each select="xalan:nodeset($points)//mn:item[position() mod 2 = 1]">
|
8668
8293
|
<xsl:sort select="." data-type="number"/>
|
8669
8294
|
<x><xsl:value-of select="."/></x>
|
8670
8295
|
</xsl:for-each>
|
8671
8296
|
</xsl:variable>
|
8672
8297
|
<xsl:variable name="y_coords">
|
8673
|
-
<xsl:for-each select="xalan:nodeset($points)//item[position() mod 2 = 0]">
|
8298
|
+
<xsl:for-each select="xalan:nodeset($points)//mn:item[position() mod 2 = 0]">
|
8674
8299
|
<xsl:sort select="." data-type="number"/>
|
8675
8300
|
<y><xsl:value-of select="."/></y>
|
8676
8301
|
</xsl:for-each>
|
@@ -8875,11 +8500,11 @@
|
|
8875
8500
|
<xsl:if test="ancestor-or-self::*[local-name() = 'annex']">annex</xsl:if>
|
8876
8501
|
</xsl:variable>
|
8877
8502
|
|
8878
|
-
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}" root="{$root}" display="{$display}">
|
8879
|
-
<title>
|
8503
|
+
<mn:item id="{@id}" level="{$level}" section="{$section}" type="{$type}" root="{$root}" display="{$display}">
|
8504
|
+
<mn:title>
|
8880
8505
|
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
8881
|
-
</title>
|
8882
|
-
</item>
|
8506
|
+
</mn:title>
|
8507
|
+
</mn:item>
|
8883
8508
|
</xsl:if>
|
8884
8509
|
</xsl:template>
|
8885
8510
|
|
@@ -8950,12 +8575,12 @@
|
|
8950
8575
|
<xsl:param name="contents"/>
|
8951
8576
|
<xsl:param name="contents_addon"/>
|
8952
8577
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
8953
|
-
<xsl:if test="$contents_nodes//item">
|
8578
|
+
<xsl:if test="$contents_nodes//mn:item">
|
8954
8579
|
<fo:bookmark-tree>
|
8955
8580
|
<xsl:choose>
|
8956
|
-
<xsl:when test="$contents_nodes/doc">
|
8581
|
+
<xsl:when test="$contents_nodes/mn:doc">
|
8957
8582
|
<xsl:choose>
|
8958
|
-
<xsl:when test="count($contents_nodes/doc) > 1">
|
8583
|
+
<xsl:when test="count($contents_nodes/mn:doc) > 1">
|
8959
8584
|
|
8960
8585
|
<xsl:if test="$contents_nodes/collection">
|
8961
8586
|
<fo:bookmark internal-destination="{$contents/collection/@firstpage_id}">
|
@@ -8963,8 +8588,8 @@
|
|
8963
8588
|
</fo:bookmark>
|
8964
8589
|
</xsl:if>
|
8965
8590
|
|
8966
|
-
<xsl:for-each select="$contents_nodes/doc">
|
8967
|
-
<fo:bookmark internal-destination="{contents/item[@display = 'true'][1]/@id}" starting-state="hide">
|
8591
|
+
<xsl:for-each select="$contents_nodes/mn:doc">
|
8592
|
+
<fo:bookmark internal-destination="{contents/mn:item[@display = 'true'][1]/@id}" starting-state="hide">
|
8968
8593
|
<xsl:if test="@bundle = 'true'">
|
8969
8594
|
<xsl:attribute name="internal-destination"><xsl:value-of select="@firstpage_id"/></xsl:attribute>
|
8970
8595
|
</xsl:if>
|
@@ -8998,14 +8623,14 @@
|
|
8998
8623
|
</xsl:choose>
|
8999
8624
|
</fo:bookmark-title>
|
9000
8625
|
|
9001
|
-
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
8626
|
+
<xsl:apply-templates select="contents/mn:item" mode="bookmark"/>
|
9002
8627
|
|
9003
8628
|
<xsl:call-template name="insertFigureBookmarks">
|
9004
|
-
<xsl:with-param name="contents" select="contents"/>
|
8629
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
9005
8630
|
</xsl:call-template>
|
9006
8631
|
|
9007
8632
|
<xsl:call-template name="insertTableBookmarks">
|
9008
|
-
<xsl:with-param name="contents" select="contents"/>
|
8633
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
9009
8634
|
<xsl:with-param name="lang" select="@lang"/>
|
9010
8635
|
</xsl:call-template>
|
9011
8636
|
|
@@ -9014,16 +8639,16 @@
|
|
9014
8639
|
</xsl:for-each>
|
9015
8640
|
</xsl:when>
|
9016
8641
|
<xsl:otherwise>
|
9017
|
-
<xsl:for-each select="$contents_nodes/doc">
|
8642
|
+
<xsl:for-each select="$contents_nodes/mn:doc">
|
9018
8643
|
|
9019
|
-
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
8644
|
+
<xsl:apply-templates select="mn:contents/mn:item" mode="bookmark"/>
|
9020
8645
|
|
9021
8646
|
<xsl:call-template name="insertFigureBookmarks">
|
9022
|
-
<xsl:with-param name="contents" select="contents"/>
|
8647
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
9023
8648
|
</xsl:call-template>
|
9024
8649
|
|
9025
8650
|
<xsl:call-template name="insertTableBookmarks">
|
9026
|
-
<xsl:with-param name="contents" select="contents"/>
|
8651
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
9027
8652
|
<xsl:with-param name="lang" select="@lang"/>
|
9028
8653
|
</xsl:call-template>
|
9029
8654
|
|
@@ -9032,14 +8657,14 @@
|
|
9032
8657
|
</xsl:choose>
|
9033
8658
|
</xsl:when>
|
9034
8659
|
<xsl:otherwise>
|
9035
|
-
<xsl:apply-templates select="$contents_nodes/contents/item" mode="bookmark"/>
|
8660
|
+
<xsl:apply-templates select="$contents_nodes/mn:contents/mn:item" mode="bookmark"/>
|
9036
8661
|
|
9037
8662
|
<xsl:call-template name="insertFigureBookmarks">
|
9038
|
-
<xsl:with-param name="contents" select="$contents_nodes/contents"/>
|
8663
|
+
<xsl:with-param name="contents" select="$contents_nodes/mn:contents"/>
|
9039
8664
|
</xsl:call-template>
|
9040
8665
|
|
9041
8666
|
<xsl:call-template name="insertTableBookmarks">
|
9042
|
-
<xsl:with-param name="contents" select="$contents_nodes/contents"/>
|
8667
|
+
<xsl:with-param name="contents" select="$contents_nodes/mn:contents"/>
|
9043
8668
|
<xsl:with-param name="lang" select="@lang"/>
|
9044
8669
|
</xsl:call-template>
|
9045
8670
|
|
@@ -9056,45 +8681,41 @@
|
|
9056
8681
|
<xsl:template name="insertFigureBookmarks">
|
9057
8682
|
<xsl:param name="contents"/>
|
9058
8683
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
9059
|
-
<xsl:if test="$contents_nodes/figure">
|
9060
|
-
<fo:bookmark internal-destination="{$contents_nodes/figure[1]/@id}" starting-state="hide">
|
8684
|
+
<xsl:if test="$contents_nodes/mn:figure">
|
8685
|
+
<fo:bookmark internal-destination="{$contents_nodes/mn:figure[1]/@id}" starting-state="hide">
|
9061
8686
|
<fo:bookmark-title>Figures</fo:bookmark-title>
|
9062
|
-
<xsl:for-each select="$contents_nodes/figure">
|
8687
|
+
<xsl:for-each select="$contents_nodes/mn:figure">
|
9063
8688
|
<fo:bookmark internal-destination="{@id}">
|
9064
8689
|
<fo:bookmark-title>
|
9065
|
-
<xsl:value-of select="normalize-space(title)"/>
|
8690
|
+
<xsl:value-of select="normalize-space(mn:title)"/>
|
9066
8691
|
</fo:bookmark-title>
|
9067
8692
|
</fo:bookmark>
|
9068
8693
|
</xsl:for-each>
|
9069
8694
|
</fo:bookmark>
|
9070
|
-
</xsl:if
|
9071
|
-
|
9072
|
-
<!-- see template addBookmarks -->
|
8695
|
+
</xsl:if><!-- see template addBookmarks -->
|
9073
8696
|
</xsl:template> <!-- insertFigureBookmarks -->
|
9074
8697
|
|
9075
8698
|
<xsl:template name="insertTableBookmarks">
|
9076
8699
|
<xsl:param name="contents"/>
|
9077
8700
|
<xsl:param name="lang"/>
|
9078
8701
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
9079
|
-
<xsl:if test="$contents_nodes/table">
|
9080
|
-
<fo:bookmark internal-destination="{$contents_nodes/table[1]/@id}" starting-state="hide">
|
8702
|
+
<xsl:if test="$contents_nodes/mn:table">
|
8703
|
+
<fo:bookmark internal-destination="{$contents_nodes/mn:table[1]/@id}" starting-state="hide">
|
9081
8704
|
<fo:bookmark-title>
|
9082
8705
|
<xsl:choose>
|
9083
8706
|
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
9084
8707
|
<xsl:otherwise>Tables</xsl:otherwise>
|
9085
8708
|
</xsl:choose>
|
9086
8709
|
</fo:bookmark-title>
|
9087
|
-
<xsl:for-each select="$contents_nodes/table">
|
8710
|
+
<xsl:for-each select="$contents_nodes/mn:table">
|
9088
8711
|
<fo:bookmark internal-destination="{@id}">
|
9089
8712
|
<fo:bookmark-title>
|
9090
|
-
<xsl:value-of select="normalize-space(title)"/>
|
8713
|
+
<xsl:value-of select="normalize-space(mn:title)"/>
|
9091
8714
|
</fo:bookmark-title>
|
9092
8715
|
</fo:bookmark>
|
9093
8716
|
</xsl:for-each>
|
9094
8717
|
</fo:bookmark>
|
9095
|
-
</xsl:if
|
9096
|
-
|
9097
|
-
<!-- see template addBookmarks -->
|
8718
|
+
</xsl:if><!-- see template addBookmarks -->
|
9098
8719
|
</xsl:template> <!-- insertTableBookmarks -->
|
9099
8720
|
<!-- End Bookmarks -->
|
9100
8721
|
|
@@ -9124,17 +8745,15 @@
|
|
9124
8745
|
<xsl:param name="title" select="''"/>
|
9125
8746
|
<xsl:choose>
|
9126
8747
|
<xsl:when test="$lang = 'en'">
|
9127
|
-
|
9128
8748
|
</xsl:when>
|
9129
8749
|
<xsl:when test="$lang = 'fr'">
|
9130
|
-
|
9131
8750
|
</xsl:when>
|
9132
8751
|
<xsl:when test="$lang = 'de'">Deutsche</xsl:when>
|
9133
8752
|
<xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
|
9134
8753
|
</xsl:choose>
|
9135
8754
|
</xsl:template>
|
9136
8755
|
|
9137
|
-
<xsl:template match="item" mode="bookmark">
|
8756
|
+
<xsl:template match="mn:item" mode="bookmark">
|
9138
8757
|
<xsl:choose>
|
9139
8758
|
<xsl:when test="@id != ''">
|
9140
8759
|
<fo:bookmark internal-destination="{@id}" starting-state="hide">
|
@@ -9144,7 +8763,7 @@
|
|
9144
8763
|
<xsl:text> </xsl:text>
|
9145
8764
|
</xsl:if>
|
9146
8765
|
<xsl:variable name="title">
|
9147
|
-
<xsl:for-each select="title/node()">
|
8766
|
+
<xsl:for-each select="mn:title/node()">
|
9148
8767
|
<xsl:choose>
|
9149
8768
|
<xsl:when test="local-name() = 'add' and starts-with(., $ace_tag)"><!-- skip --></xsl:when>
|
9150
8769
|
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
@@ -9162,7 +8781,7 @@
|
|
9162
8781
|
</xsl:choose>
|
9163
8782
|
</xsl:template>
|
9164
8783
|
|
9165
|
-
<xsl:template match="title" mode="bookmark"/>
|
8784
|
+
<xsl:template match="mn:title" mode="bookmark"/>
|
9166
8785
|
<xsl:template match="text()" mode="bookmark"/>
|
9167
8786
|
|
9168
8787
|
<!-- figure/name -->
|
@@ -9391,9 +9010,9 @@
|
|
9391
9010
|
<xsl:template match="text()" mode="contents_item">
|
9392
9011
|
<xsl:variable name="text">
|
9393
9012
|
<!-- to split by '_' and other chars -->
|
9394
|
-
<text><xsl:call-template name="add-zero-spaces-java"/></text>
|
9013
|
+
<mn:text><xsl:call-template name="add-zero-spaces-java"/></mn:text>
|
9395
9014
|
</xsl:variable>
|
9396
|
-
<xsl:for-each select="xalan:nodeset($text)/text/text()">
|
9015
|
+
<xsl:for-each select="xalan:nodeset($text)/mn:text/text()">
|
9397
9016
|
<xsl:call-template name="keep_together_standard_number"/>
|
9398
9017
|
</xsl:for-each>
|
9399
9018
|
</xsl:template>
|
@@ -9426,19 +9045,11 @@
|
|
9426
9045
|
|
9427
9046
|
<xsl:template name="get_sourcecode_attributes">
|
9428
9047
|
<xsl:element name="sourcecode_attributes" use-attribute-sets="sourcecode-style">
|
9429
|
-
<xsl:variable name="_font-size"
|
9430
|
-
|
9431
|
-
|
9432
|
-
|
9433
|
-
|
9434
|
-
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
9435
|
-
</xsl:if> -->
|
9436
|
-
|
9437
|
-
<xsl:choose>
|
9438
|
-
<xsl:when test="ancestor::*[local-name() = 'table'][not(parent::*[local-name() = 'sourcecode'][@linenums = 'true'])]">8.5</xsl:when>
|
9439
|
-
<xsl:otherwise>9.5</xsl:otherwise>
|
9440
|
-
</xsl:choose>
|
9441
|
-
|
9048
|
+
<xsl:variable name="_font-size"><!-- inherit -->
|
9049
|
+
<xsl:choose>
|
9050
|
+
<xsl:when test="ancestor::*[local-name() = 'table'][not(parent::*[local-name() = 'sourcecode'][@linenums = 'true'])]">8.5</xsl:when>
|
9051
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
9052
|
+
</xsl:choose>
|
9442
9053
|
</xsl:variable>
|
9443
9054
|
|
9444
9055
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -9494,7 +9105,6 @@
|
|
9494
9105
|
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
9495
9106
|
</xsl:choose>
|
9496
9107
|
</xsl:attribute>
|
9497
|
-
|
9498
9108
|
</xsl:if>
|
9499
9109
|
<fo:block-container margin-left="0mm" role="SKIP">
|
9500
9110
|
|
@@ -9518,8 +9128,7 @@
|
|
9518
9128
|
</fo:block>
|
9519
9129
|
|
9520
9130
|
<xsl:apply-templates select="*[local-name() = 'dl']"/> <!-- Key table -->
|
9521
|
-
|
9522
|
-
<xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
|
9131
|
+
<xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
|
9523
9132
|
|
9524
9133
|
</fo:block-container>
|
9525
9134
|
</fo:block-container>
|
@@ -9696,25 +9305,6 @@
|
|
9696
9305
|
</xsl:choose>
|
9697
9306
|
</xsl:template>
|
9698
9307
|
|
9699
|
-
<!-- insert 'char' between each character in the string -->
|
9700
|
-
<xsl:template name="interspers">
|
9701
|
-
<xsl:param name="str"/>
|
9702
|
-
<xsl:param name="char" select="$zero_width_space"/>
|
9703
|
-
<xsl:if test="$str != ''">
|
9704
|
-
<xsl:value-of select="substring($str, 1, 1)"/>
|
9705
|
-
|
9706
|
-
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
9707
|
-
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
9708
|
-
<xsl:value-of select="$char"/>
|
9709
|
-
</xsl:if>
|
9710
|
-
|
9711
|
-
<xsl:call-template name="interspers">
|
9712
|
-
<xsl:with-param name="str" select="substring($str, 2)"/>
|
9713
|
-
<xsl:with-param name="char" select="$char"/>
|
9714
|
-
</xsl:call-template>
|
9715
|
-
</xsl:if>
|
9716
|
-
</xsl:template>
|
9717
|
-
|
9718
9308
|
<xsl:template name="interspers-java">
|
9719
9309
|
<xsl:param name="str"/>
|
9720
9310
|
<xsl:param name="char" select="$zero_width_space"/>
|
@@ -9811,7 +9401,7 @@
|
|
9811
9401
|
</xsl:variable>
|
9812
9402
|
<xsl:variable name="classes" select="xalan:nodeset($classes_)"/>
|
9813
9403
|
|
9814
|
-
<xsl:for-each select="$classes
|
9404
|
+
<xsl:for-each select="$classes/*[local-name() = 'item']">
|
9815
9405
|
<xsl:variable name="class_name" select="."/>
|
9816
9406
|
<xsl:for-each select="$syntax_highlight_styles/style[@class = $class_name]/@*[not(local-name() = 'class')]">
|
9817
9407
|
<xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute>
|
@@ -9894,14 +9484,10 @@
|
|
9894
9484
|
|
9895
9485
|
<xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']">
|
9896
9486
|
<xsl:if test="normalize-space() != ''">
|
9897
|
-
|
9898
|
-
|
9899
|
-
|
9900
|
-
|
9901
|
-
<xsl:text>:</xsl:text>
|
9902
|
-
|
9903
|
-
</fo:block>
|
9904
|
-
|
9487
|
+
<fo:block xsl:use-attribute-sets="permission-name-style">
|
9488
|
+
<xsl:apply-templates/>
|
9489
|
+
<xsl:text>:</xsl:text>
|
9490
|
+
</fo:block>
|
9905
9491
|
</xsl:if>
|
9906
9492
|
</xsl:template>
|
9907
9493
|
|
@@ -9930,18 +9516,13 @@
|
|
9930
9516
|
<xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']">
|
9931
9517
|
<xsl:if test="normalize-space() != ''">
|
9932
9518
|
|
9933
|
-
|
9934
|
-
|
9935
|
-
|
9936
|
-
|
9937
|
-
|
9938
|
-
|
9939
|
-
|
9940
|
-
|
9941
|
-
<xsl:text>:</xsl:text>
|
9942
|
-
|
9943
|
-
</fo:block>
|
9944
|
-
|
9519
|
+
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
9520
|
+
<xsl:if test="../@type = 'class'">
|
9521
|
+
<xsl:attribute name="background-color">white</xsl:attribute>
|
9522
|
+
</xsl:if>
|
9523
|
+
<xsl:apply-templates/>
|
9524
|
+
<xsl:text>:</xsl:text>
|
9525
|
+
</fo:block>
|
9945
9526
|
</xsl:if>
|
9946
9527
|
</xsl:template>
|
9947
9528
|
|
@@ -9980,11 +9561,9 @@
|
|
9980
9561
|
<xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']">
|
9981
9562
|
<xsl:if test="normalize-space() != ''">
|
9982
9563
|
|
9983
|
-
|
9984
|
-
|
9985
|
-
|
9986
|
-
</fo:block>
|
9987
|
-
|
9564
|
+
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
9565
|
+
<xsl:apply-templates/>
|
9566
|
+
</fo:block>
|
9988
9567
|
</xsl:if>
|
9989
9568
|
</xsl:template>
|
9990
9569
|
|
@@ -10110,18 +9689,16 @@
|
|
10110
9689
|
|
10111
9690
|
<xsl:if test="parent::*[local-name()='thead'] or starts-with(*[local-name()='td' or local-name()='th'][1], 'Requirement ') or starts-with(*[local-name()='td' or local-name()='th'][1], 'Recommendation ')">
|
10112
9691
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
10113
|
-
|
10114
|
-
|
10115
|
-
<xsl:
|
10116
|
-
|
10117
|
-
|
10118
|
-
<xsl:
|
10119
|
-
|
10120
|
-
|
10121
|
-
<xsl:
|
10122
|
-
|
10123
|
-
</xsl:if>
|
10124
|
-
|
9692
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
9693
|
+
<xsl:if test="parent::*[local-name()='thead']"> <!-- and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']) -->
|
9694
|
+
<xsl:attribute name="background-color"><xsl:value-of select="$color_table_header_row"/></xsl:attribute>
|
9695
|
+
</xsl:if>
|
9696
|
+
<xsl:if test="starts-with(*[local-name()='td'][1], 'Requirement ')">
|
9697
|
+
<xsl:attribute name="background-color">rgb(252, 246, 222)</xsl:attribute>
|
9698
|
+
</xsl:if>
|
9699
|
+
<xsl:if test="starts-with(*[local-name()='td'][1], 'Recommendation ')">
|
9700
|
+
<xsl:attribute name="background-color">rgb(233, 235, 239)</xsl:attribute>
|
9701
|
+
</xsl:if>
|
10125
9702
|
</xsl:if>
|
10126
9703
|
|
10127
9704
|
<xsl:apply-templates mode="requirement"/>
|
@@ -10166,10 +9743,8 @@
|
|
10166
9743
|
|
10167
9744
|
<xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
10168
9745
|
<fo:block font-size="11pt">
|
10169
|
-
|
10170
|
-
|
10171
|
-
<xsl:attribute name="color">white</xsl:attribute>
|
10172
|
-
|
9746
|
+
<!-- <xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute> -->
|
9747
|
+
<xsl:attribute name="color">white</xsl:attribute>
|
10173
9748
|
<xsl:apply-templates/>
|
10174
9749
|
</fo:block>
|
10175
9750
|
</xsl:template>
|
@@ -10209,7 +9784,6 @@
|
|
10209
9784
|
<xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
10210
9785
|
<xsl:variable name="element">inline
|
10211
9786
|
|
10212
|
-
|
10213
9787
|
</xsl:variable>
|
10214
9788
|
<xsl:choose>
|
10215
9789
|
<xsl:when test="contains($element, 'block')">
|
@@ -10241,110 +9815,105 @@
|
|
10241
9815
|
text line 2
|
10242
9816
|
-->
|
10243
9817
|
<xsl:template match="*[local-name() = 'example']" name="example">
|
9818
|
+
<xsl:call-template name="setNamedDestination"/>
|
9819
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
10244
9820
|
|
10245
|
-
|
10246
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
9821
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
10247
9822
|
|
10248
|
-
|
9823
|
+
<xsl:call-template name="refine_example-style"/>
|
10249
9824
|
|
10250
|
-
|
9825
|
+
<xsl:variable name="fo_element">
|
9826
|
+
<xsl:if test=".//*[local-name() = 'table'] or .//*[local-name() = 'dl'] or *[not(local-name() = 'name')][1][local-name() = 'sourcecode']">block</xsl:if>block
|
9827
|
+
</xsl:variable>
|
10251
9828
|
|
10252
|
-
|
10253
|
-
<xsl:if test=".//*[local-name() = 'table'] or .//*[local-name() = 'dl'] or *[not(local-name() = 'name')][1][local-name() = 'sourcecode']">block</xsl:if>
|
10254
|
-
block
|
10255
|
-
</xsl:variable>
|
9829
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
10256
9830
|
|
10257
|
-
|
9831
|
+
<xsl:choose>
|
10258
9832
|
|
10259
|
-
|
9833
|
+
<xsl:when test="contains(normalize-space($fo_element), 'block')">
|
10260
9834
|
|
10261
|
-
|
9835
|
+
<!-- display name 'EXAMPLE' in a separate block -->
|
9836
|
+
<fo:block>
|
9837
|
+
<xsl:apply-templates select="*[local-name()='name']">
|
9838
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
9839
|
+
</xsl:apply-templates>
|
9840
|
+
</fo:block>
|
10262
9841
|
|
10263
|
-
|
10264
|
-
|
10265
|
-
|
9842
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
9843
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
9844
|
+
<xsl:variable name="example_body">
|
9845
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
10266
9846
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
10267
9847
|
</xsl:apply-templates>
|
10268
|
-
</fo:block>
|
10269
|
-
|
10270
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
10271
|
-
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
10272
|
-
<xsl:variable name="example_body">
|
10273
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
10274
|
-
<xsl:with-param name="fo_element" select="$fo_element"/>
|
10275
|
-
</xsl:apply-templates>
|
10276
|
-
</xsl:variable>
|
10277
|
-
<xsl:choose>
|
10278
|
-
<xsl:when test="xalan:nodeset($example_body)/*">
|
10279
|
-
<xsl:copy-of select="$example_body"/>
|
10280
|
-
</xsl:when>
|
10281
|
-
<xsl:otherwise><fo:block/><!-- prevent empty block-container --></xsl:otherwise>
|
10282
|
-
</xsl:choose>
|
10283
|
-
</fo:block-container>
|
10284
|
-
</fo:block-container>
|
10285
|
-
</xsl:when> <!-- end block -->
|
10286
|
-
|
10287
|
-
<xsl:when test="contains(normalize-space($fo_element), 'list')">
|
10288
|
-
|
10289
|
-
<xsl:variable name="provisional_distance_between_starts_">
|
10290
|
-
7
|
10291
|
-
</xsl:variable>
|
10292
|
-
<xsl:variable name="provisional_distance_between_starts" select="normalize-space($provisional_distance_between_starts_)"/>
|
10293
|
-
<xsl:variable name="indent_">
|
10294
|
-
0
|
10295
9848
|
</xsl:variable>
|
10296
|
-
<xsl:
|
10297
|
-
|
10298
|
-
|
10299
|
-
|
10300
|
-
|
10301
|
-
|
10302
|
-
|
10303
|
-
|
10304
|
-
|
10305
|
-
</fo:block>
|
10306
|
-
</fo:list-item-label>
|
10307
|
-
<fo:list-item-body start-indent="body-start()">
|
10308
|
-
<fo:block>
|
10309
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
10310
|
-
<xsl:with-param name="fo_element" select="$fo_element"/>
|
10311
|
-
</xsl:apply-templates>
|
10312
|
-
</fo:block>
|
10313
|
-
</fo:list-item-body>
|
10314
|
-
</fo:list-item>
|
10315
|
-
</fo:list-block>
|
10316
|
-
</xsl:when> <!-- end list -->
|
9849
|
+
<xsl:choose>
|
9850
|
+
<xsl:when test="xalan:nodeset($example_body)/*">
|
9851
|
+
<xsl:copy-of select="$example_body"/>
|
9852
|
+
</xsl:when>
|
9853
|
+
<xsl:otherwise><fo:block/><!-- prevent empty block-container --></xsl:otherwise>
|
9854
|
+
</xsl:choose>
|
9855
|
+
</fo:block-container>
|
9856
|
+
</fo:block-container>
|
9857
|
+
</xsl:when> <!-- end block -->
|
10317
9858
|
|
10318
|
-
|
9859
|
+
<xsl:when test="contains(normalize-space($fo_element), 'list')">
|
10319
9860
|
|
10320
|
-
|
10321
|
-
|
10322
|
-
|
10323
|
-
|
10324
|
-
|
10325
|
-
|
10326
|
-
|
9861
|
+
<xsl:variable name="provisional_distance_between_starts_">7
|
9862
|
+
</xsl:variable>
|
9863
|
+
<xsl:variable name="provisional_distance_between_starts" select="normalize-space($provisional_distance_between_starts_)"/>
|
9864
|
+
<xsl:variable name="indent_">0
|
9865
|
+
</xsl:variable>
|
9866
|
+
<xsl:variable name="indent" select="normalize-space($indent_)"/>
|
9867
|
+
|
9868
|
+
<fo:list-block provisional-distance-between-starts="{$provisional_distance_between_starts}mm">
|
9869
|
+
<fo:list-item>
|
9870
|
+
<fo:list-item-label start-indent="{$indent}mm" end-indent="label-end()">
|
9871
|
+
<fo:block>
|
9872
|
+
<xsl:apply-templates select="*[local-name()='name']">
|
9873
|
+
<xsl:with-param name="fo_element">block</xsl:with-param>
|
9874
|
+
</xsl:apply-templates>
|
9875
|
+
</fo:block>
|
9876
|
+
</fo:list-item-label>
|
9877
|
+
<fo:list-item-body start-indent="body-start()">
|
9878
|
+
<fo:block>
|
9879
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
10327
9880
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
10328
9881
|
</xsl:apply-templates>
|
10329
|
-
</fo:
|
10330
|
-
</fo:
|
9882
|
+
</fo:block>
|
9883
|
+
</fo:list-item-body>
|
9884
|
+
</fo:list-item>
|
9885
|
+
</fo:list-block>
|
9886
|
+
</xsl:when> <!-- end list -->
|
10331
9887
|
|
10332
|
-
|
10333
|
-
<!-- display further elements in blocks -->
|
10334
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
10335
|
-
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
10336
|
-
<xsl:apply-templates select="*[not(local-name() = 'name')][position() > 1]">
|
10337
|
-
<xsl:with-param name="fo_element" select="'block'"/>
|
10338
|
-
</xsl:apply-templates>
|
10339
|
-
</fo:block-container>
|
10340
|
-
</fo:block-container>
|
10341
|
-
</xsl:if>
|
10342
|
-
</xsl:otherwise> <!-- end inline -->
|
9888
|
+
<xsl:otherwise> <!-- inline -->
|
10343
9889
|
|
10344
|
-
|
10345
|
-
|
10346
|
-
|
9890
|
+
<!-- display 'EXAMPLE' and first element in the same line -->
|
9891
|
+
<fo:block>
|
9892
|
+
<xsl:apply-templates select="*[local-name()='name']">
|
9893
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
9894
|
+
</xsl:apply-templates>
|
9895
|
+
<fo:inline>
|
9896
|
+
<xsl:apply-templates select="*[not(local-name() = 'name')][1]">
|
9897
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
9898
|
+
</xsl:apply-templates>
|
9899
|
+
</fo:inline>
|
9900
|
+
</fo:block>
|
9901
|
+
|
9902
|
+
<xsl:if test="*[not(local-name() = 'name')][position() > 1]">
|
9903
|
+
<!-- display further elements in blocks -->
|
9904
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
9905
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
9906
|
+
<xsl:apply-templates select="*[not(local-name() = 'name')][position() > 1]">
|
9907
|
+
<xsl:with-param name="fo_element" select="'block'"/>
|
9908
|
+
</xsl:apply-templates>
|
9909
|
+
</fo:block-container>
|
9910
|
+
</fo:block-container>
|
9911
|
+
</xsl:if>
|
9912
|
+
</xsl:otherwise> <!-- end inline -->
|
10347
9913
|
|
9914
|
+
</xsl:choose>
|
9915
|
+
</fo:block-container>
|
9916
|
+
</fo:block-container>
|
10348
9917
|
</xsl:template>
|
10349
9918
|
|
10350
9919
|
<!-- example/name -->
|
@@ -10359,7 +9928,6 @@
|
|
10359
9928
|
</xsl:when>
|
10360
9929
|
<xsl:when test="contains(normalize-space($fo_element), 'block')">
|
10361
9930
|
<fo:block xsl:use-attribute-sets="example-name-style">
|
10362
|
-
|
10363
9931
|
<xsl:apply-templates/>
|
10364
9932
|
</fo:block>
|
10365
9933
|
</xsl:when>
|
@@ -10376,7 +9944,6 @@
|
|
10376
9944
|
<!-- table/example/name, table/tfoot//example/name -->
|
10377
9945
|
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'tfoot']//*[local-name() = 'example']/*[local-name() = 'name']">
|
10378
9946
|
<fo:inline xsl:use-attribute-sets="example-name-style">
|
10379
|
-
|
10380
9947
|
<xsl:apply-templates/>
|
10381
9948
|
</fo:inline>
|
10382
9949
|
</xsl:template>
|
@@ -10386,7 +9953,6 @@
|
|
10386
9953
|
|
10387
9954
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
10388
9955
|
<xsl:variable name="element">
|
10389
|
-
|
10390
9956
|
<xsl:value-of select="$fo_element"/>
|
10391
9957
|
</xsl:variable>
|
10392
9958
|
<xsl:choose>
|
@@ -10504,7 +10070,7 @@
|
|
10504
10070
|
</xsl:call-template>
|
10505
10071
|
</xsl:variable>
|
10506
10072
|
|
10507
|
-
|
10073
|
+
<xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
|
10508
10074
|
<xsl:choose>
|
10509
10075
|
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
|
10510
10076
|
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
|
@@ -10541,7 +10107,6 @@
|
|
10541
10107
|
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
10542
10108
|
</xsl:if>
|
10543
10109
|
</xsl:if>
|
10544
|
-
|
10545
10110
|
<fo:block-container margin-left="0mm" role="SKIP">
|
10546
10111
|
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
10547
10112
|
|
@@ -10624,7 +10189,6 @@
|
|
10624
10189
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
10625
10190
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
10626
10191
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
10627
|
-
|
10628
10192
|
</xsl:if>
|
10629
10193
|
|
10630
10194
|
<xsl:call-template name="refine_eref-style"/>
|
@@ -10673,10 +10237,8 @@
|
|
10673
10237
|
</xsl:template>
|
10674
10238
|
|
10675
10239
|
<xsl:template name="refine_basic_link_style">
|
10676
|
-
|
10677
|
-
|
10678
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
10679
|
-
|
10240
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
10241
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
10680
10242
|
</xsl:template> <!-- refine_basic_link_style -->
|
10681
10243
|
|
10682
10244
|
<!-- ====== -->
|
@@ -10693,17 +10255,15 @@
|
|
10693
10255
|
</xsl:variable>
|
10694
10256
|
|
10695
10257
|
<xsl:variable name="padding">
|
10696
|
-
|
10697
|
-
<xsl:
|
10698
|
-
|
10699
|
-
|
10700
|
-
|
10701
|
-
|
10702
|
-
|
10703
|
-
|
10704
|
-
|
10705
|
-
</xsl:choose>
|
10706
|
-
|
10258
|
+
<xsl:choose>
|
10259
|
+
<xsl:when test="ancestor::*[local-name() = 'note'] and ancestor::*[local-name() = 'name']">4</xsl:when>
|
10260
|
+
<xsl:when test="$depth >= 5"/>
|
10261
|
+
<xsl:when test="$depth >= 4">5</xsl:when>
|
10262
|
+
<xsl:when test="$depth >= 3 and ancestor::ogc:terms">3</xsl:when>
|
10263
|
+
<xsl:when test="$depth >= 2">4</xsl:when>
|
10264
|
+
<xsl:when test="$depth = 1">4</xsl:when>
|
10265
|
+
<xsl:otherwise>2</xsl:otherwise>
|
10266
|
+
</xsl:choose>
|
10707
10267
|
</xsl:variable>
|
10708
10268
|
|
10709
10269
|
<xsl:variable name="padding-right">
|
@@ -10714,7 +10274,6 @@
|
|
10714
10274
|
</xsl:otherwise>
|
10715
10275
|
</xsl:choose>
|
10716
10276
|
</xsl:variable>
|
10717
|
-
|
10718
10277
|
<xsl:choose>
|
10719
10278
|
<xsl:when test="$lang = 'zh'">
|
10720
10279
|
<fo:inline role="SKIP"><xsl:value-of select="$tab_zh"/></fo:inline>
|
@@ -10738,9 +10297,7 @@
|
|
10738
10297
|
<xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']/*[local-name() = 'tab']" priority="2"/>
|
10739
10298
|
|
10740
10299
|
<xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']/*[local-name() = 'tab']" mode="tab">
|
10741
|
-
|
10742
|
-
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
10743
|
-
|
10300
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
10744
10301
|
</xsl:template>
|
10745
10302
|
|
10746
10303
|
<xsl:template name="insertNonBreakSpaces">
|
@@ -10759,11 +10316,10 @@
|
|
10759
10316
|
<xsl:call-template name="getLevel"/>
|
10760
10317
|
</xsl:variable>
|
10761
10318
|
<xsl:variable name="font-size">
|
10762
|
-
|
10763
|
-
|
10764
|
-
|
10765
|
-
|
10766
|
-
</xsl:choose>
|
10319
|
+
<xsl:choose>
|
10320
|
+
<xsl:when test="$level >= 2">11pt</xsl:when>
|
10321
|
+
<xsl:otherwise>12pt</xsl:otherwise>
|
10322
|
+
</xsl:choose>
|
10767
10323
|
|
10768
10324
|
</xsl:variable>
|
10769
10325
|
<xsl:variable name="levelTerm">
|
@@ -10816,11 +10372,9 @@
|
|
10816
10372
|
</xsl:template>
|
10817
10373
|
|
10818
10374
|
<xsl:template name="setStyle_preferred">
|
10819
|
-
|
10820
|
-
|
10821
|
-
|
10822
|
-
</xsl:if>
|
10823
|
-
|
10375
|
+
<xsl:if test="*[local-name() = 'strong']">
|
10376
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
10377
|
+
</xsl:if>
|
10824
10378
|
</xsl:template>
|
10825
10379
|
|
10826
10380
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
@@ -10897,7 +10451,6 @@
|
|
10897
10451
|
|
10898
10452
|
<!-- main sections -->
|
10899
10453
|
<xsl:template match="/*/*[local-name() = 'sections']/*" name="sections_node" priority="2">
|
10900
|
-
|
10901
10454
|
<xsl:call-template name="setNamedDestination"/>
|
10902
10455
|
<fo:block>
|
10903
10456
|
<xsl:call-template name="setId"/>
|
@@ -10932,18 +10485,14 @@
|
|
10932
10485
|
</xsl:template>
|
10933
10486
|
|
10934
10487
|
<xsl:template name="sections_element_style">
|
10935
|
-
|
10936
|
-
|
10937
|
-
<xsl:
|
10938
|
-
|
10939
|
-
</xsl:if>
|
10940
|
-
|
10488
|
+
<xsl:variable name="pos"><xsl:number count="ogc:sections/*/ogc:clause[not(@type='scope') and not(@type='conformance')]"/></xsl:variable> <!-- | ogc:sections/ogc:terms -->
|
10489
|
+
<xsl:if test="$pos >= 2">
|
10490
|
+
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
10491
|
+
</xsl:if>
|
10941
10492
|
</xsl:template> <!-- sections_element_style -->
|
10942
10493
|
|
10943
10494
|
<xsl:template match="//*[local-name() = 'metanorma']/*[local-name() = 'preface']/*" priority="2" name="preface_node"> <!-- /*/*[local-name() = 'preface']/* -->
|
10944
|
-
|
10945
|
-
<fo:block break-after="page"/>
|
10946
|
-
|
10495
|
+
<fo:block break-after="page"/>
|
10947
10496
|
<xsl:call-template name="setNamedDestination"/>
|
10948
10497
|
<fo:block>
|
10949
10498
|
<xsl:call-template name="setId"/>
|
@@ -10992,7 +10541,6 @@
|
|
10992
10541
|
</xsl:template>
|
10993
10542
|
|
10994
10543
|
<xsl:template name="refine_clause_style">
|
10995
|
-
|
10996
10544
|
</xsl:template> <!-- refine_clause_style -->
|
10997
10545
|
|
10998
10546
|
<xsl:template match="*[local-name() = 'definitions']">
|
@@ -11032,7 +10580,6 @@
|
|
11032
10580
|
</xsl:template>
|
11033
10581
|
|
11034
10582
|
<xsl:template name="refine_annex_style">
|
11035
|
-
|
11036
10583
|
</xsl:template>
|
11037
10584
|
|
11038
10585
|
<!-- document text (not figures, or tables) footnotes -->
|
@@ -11136,15 +10683,13 @@
|
|
11136
10683
|
<!-- Lists processing -->
|
11137
10684
|
<!-- ===================================== -->
|
11138
10685
|
<xsl:variable name="ul_labels_">
|
11139
|
-
|
11140
|
-
<label>—</label> <!-- em dash -->
|
10686
|
+
<label>—</label> <!-- em dash -->
|
11141
10687
|
|
11142
10688
|
</xsl:variable>
|
11143
10689
|
<xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
|
11144
10690
|
|
11145
10691
|
<xsl:template name="setULLabel">
|
11146
|
-
<xsl:variable name="list_level__"
|
11147
|
-
<xsl:value-of select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
|
10692
|
+
<xsl:variable name="list_level__"><xsl:value-of select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
|
11148
10693
|
</xsl:variable>
|
11149
10694
|
<xsl:variable name="list_level_" select="number($list_level__)"/>
|
11150
10695
|
<xsl:variable name="list_level">
|
@@ -11201,28 +10746,22 @@
|
|
11201
10746
|
<xsl:variable name="label">
|
11202
10747
|
|
11203
10748
|
<xsl:variable name="style_prefix_">
|
11204
|
-
<xsl:if test="$type = 'roman'">
|
11205
|
-
<!-- Example: (i) -->
|
10749
|
+
<xsl:if test="$type = 'roman'"> <!-- Example: (i) -->
|
11206
10750
|
</xsl:if>
|
11207
10751
|
<xsl:if test="$type = 'alphabet'">
|
11208
|
-
|
11209
10752
|
</xsl:if>
|
11210
10753
|
</xsl:variable>
|
11211
10754
|
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
|
11212
10755
|
|
11213
10756
|
<xsl:variable name="style_suffix_">
|
11214
10757
|
<xsl:choose>
|
11215
|
-
<xsl:when test="$type = 'arabic'">
|
11216
|
-
)
|
10758
|
+
<xsl:when test="$type = 'arabic'">)
|
11217
10759
|
</xsl:when>
|
11218
|
-
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
11219
|
-
)
|
10760
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">)
|
11220
10761
|
</xsl:when>
|
11221
|
-
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
11222
|
-
)
|
10762
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">)
|
11223
10763
|
</xsl:when>
|
11224
|
-
<xsl:when test="$type = 'roman'">
|
11225
|
-
)
|
10764
|
+
<xsl:when test="$type = 'roman'">)
|
11226
10765
|
</xsl:when>
|
11227
10766
|
<xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
|
11228
10767
|
</xsl:choose>
|
@@ -11239,8 +10778,7 @@
|
|
11239
10778
|
<xsl:value-of select="$style_suffix"/>
|
11240
10779
|
</xsl:if>
|
11241
10780
|
</xsl:variable>
|
11242
|
-
|
11243
|
-
<xsl:value-of select="normalize-space($label)"/>
|
10781
|
+
<xsl:value-of select="normalize-space($label)"/>
|
11244
10782
|
|
11245
10783
|
</xsl:when>
|
11246
10784
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
@@ -11297,17 +10835,13 @@
|
|
11297
10835
|
|
11298
10836
|
<xsl:variable name="format">
|
11299
10837
|
<xsl:choose>
|
11300
|
-
<xsl:when test="$type = 'arabic'">
|
11301
|
-
1)
|
10838
|
+
<xsl:when test="$type = 'arabic'">1)
|
11302
10839
|
</xsl:when>
|
11303
|
-
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
11304
|
-
a)
|
10840
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">a)
|
11305
10841
|
</xsl:when>
|
11306
|
-
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
11307
|
-
A)
|
10842
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">A)
|
11308
10843
|
</xsl:when>
|
11309
|
-
<xsl:when test="$type = 'roman'">
|
11310
|
-
i)
|
10844
|
+
<xsl:when test="$type = 'roman'">i)
|
11311
10845
|
</xsl:when>
|
11312
10846
|
<xsl:when test="$type = 'roman_upper'">I.</xsl:when>
|
11313
10847
|
<xsl:otherwise>1.</xsl:otherwise> <!-- for any case, if $type has non-determined value, not using -->
|
@@ -11344,19 +10878,16 @@
|
|
11344
10878
|
</fo:block-container>
|
11345
10879
|
</xsl:when>
|
11346
10880
|
<xsl:otherwise>
|
11347
|
-
|
11348
|
-
|
11349
|
-
|
11350
|
-
|
11351
|
-
|
11352
|
-
</fo:block>
|
11353
|
-
|
10881
|
+
<fo:block role="SKIP">
|
10882
|
+
<xsl:apply-templates select="." mode="list">
|
10883
|
+
<xsl:with-param name="indent" select="$indent"/>
|
10884
|
+
</xsl:apply-templates>
|
10885
|
+
</fo:block>
|
11354
10886
|
</xsl:otherwise>
|
11355
10887
|
</xsl:choose>
|
11356
10888
|
</xsl:template>
|
11357
10889
|
|
11358
10890
|
<xsl:template name="refine_list_container_style">
|
11359
|
-
|
11360
10891
|
</xsl:template> <!-- refine_list_container_style -->
|
11361
10892
|
|
11362
10893
|
<xsl:template match="*[local-name()='ul'] | *[local-name()='ol']" mode="list" name="list">
|
@@ -11420,7 +10951,6 @@
|
|
11420
10951
|
</xsl:template>
|
11421
10952
|
|
11422
10953
|
<xsl:template name="refine_list-style_provisional-distance-between-starts">
|
11423
|
-
|
11424
10954
|
</xsl:template> <!-- refine_list-style_provisional-distance-between-starts -->
|
11425
10955
|
|
11426
10956
|
<xsl:template match="*[local-name() = 'ol' or local-name() = 'ul']/*[local-name() = 'name']">
|
@@ -11705,7 +11235,6 @@
|
|
11705
11235
|
<xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" priority="4">
|
11706
11236
|
<xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
|
11707
11237
|
<fo:block start-indent="{5 * $level}mm" text-indent="-5mm">
|
11708
|
-
|
11709
11238
|
<xsl:apply-templates/>
|
11710
11239
|
</fo:block>
|
11711
11240
|
</xsl:template>
|
@@ -11757,7 +11286,6 @@
|
|
11757
11286
|
<fo:table-column column-width="15mm"/>
|
11758
11287
|
<fo:table-body>
|
11759
11288
|
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
11760
|
-
|
11761
11289
|
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
|
11762
11290
|
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
|
11763
11291
|
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
|
@@ -11793,7 +11321,6 @@
|
|
11793
11321
|
<xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
|
11794
11322
|
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
|
11795
11323
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/>
|
11796
|
-
|
11797
11324
|
</xsl:template>
|
11798
11325
|
<!-- don't display bibitem with @id starts with '_hidden', that was introduced for references integrity -->
|
11799
11326
|
<xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
|
@@ -11804,16 +11331,13 @@
|
|
11804
11331
|
<xsl:call-template name="setNamedDestination"/>
|
11805
11332
|
<fo:block id="{@id}">
|
11806
11333
|
<xsl:apply-templates/>
|
11807
|
-
|
11808
11334
|
</fo:block>
|
11809
11335
|
</xsl:template>
|
11810
11336
|
|
11811
11337
|
<!-- Bibliography (non-normative references) -->
|
11812
11338
|
<xsl:template match="*[local-name() = 'references']">
|
11813
11339
|
<xsl:if test="not(ancestor::*[local-name() = 'annex'])">
|
11814
|
-
|
11815
|
-
<fo:block break-after="page"/>
|
11816
|
-
|
11340
|
+
<fo:block break-after="page"/>
|
11817
11341
|
</xsl:if>
|
11818
11342
|
|
11819
11343
|
<!-- <xsl:if test="ancestor::*[local-name() = 'annex']">
|
@@ -11829,9 +11353,7 @@
|
|
11829
11353
|
|
11830
11354
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
11831
11355
|
<xsl:apply-templates select="node()[not(local-name() = 'title' and @columns = 1)]"/>
|
11832
|
-
|
11833
11356
|
</fo:block>
|
11834
|
-
|
11835
11357
|
</xsl:template> <!-- references -->
|
11836
11358
|
|
11837
11359
|
<xsl:template match="*[local-name() = 'bibitem']">
|
@@ -11841,44 +11363,39 @@
|
|
11841
11363
|
<!-- Normative references -->
|
11842
11364
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
11843
11365
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11844
|
-
|
11845
|
-
|
11846
|
-
|
11847
|
-
|
11848
|
-
<xsl:call-template name="processBibitem"/>
|
11849
|
-
</fo:block>
|
11366
|
+
<xsl:call-template name="setNamedDestination"/>
|
11367
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
11368
|
+
<xsl:call-template name="processBibitem"/>
|
11369
|
+
</fo:block>
|
11850
11370
|
|
11851
11371
|
</xsl:template> <!-- bibitem -->
|
11852
11372
|
|
11853
11373
|
<!-- Bibliography (non-normative references) -->
|
11854
11374
|
<xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
11855
|
-
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11856
|
-
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
11375
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first --> <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
11857
11376
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
11858
|
-
|
11859
|
-
|
11860
|
-
|
11861
|
-
|
11862
|
-
|
11863
|
-
|
11864
|
-
|
11865
|
-
|
11866
|
-
|
11867
|
-
|
11868
|
-
|
11869
|
-
|
11870
|
-
|
11871
|
-
|
11872
|
-
|
11873
|
-
<
|
11874
|
-
<
|
11875
|
-
|
11876
|
-
|
11877
|
-
|
11878
|
-
|
11879
|
-
|
11880
|
-
</fo:list-item>
|
11881
|
-
</fo:list-block>
|
11377
|
+
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
11378
|
+
<xsl:call-template name="setNamedDestination"/>
|
11379
|
+
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
11380
|
+
<fo:list-item>
|
11381
|
+
<fo:list-item-label end-indent="label-end()">
|
11382
|
+
<fo:block role="SKIP">
|
11383
|
+
<fo:inline role="SKIP">
|
11384
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
11385
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
11386
|
+
</xsl:apply-templates>
|
11387
|
+
</fo:inline>
|
11388
|
+
</fo:block>
|
11389
|
+
</fo:list-item-label>
|
11390
|
+
<fo:list-item-body start-indent="body-start()">
|
11391
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
11392
|
+
<xsl:call-template name="processBibitem">
|
11393
|
+
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
11394
|
+
</xsl:call-template>
|
11395
|
+
</fo:block>
|
11396
|
+
</fo:list-item-body>
|
11397
|
+
</fo:list-item>
|
11398
|
+
</fo:list-block>
|
11882
11399
|
|
11883
11400
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
11884
11401
|
|
@@ -11888,7 +11405,6 @@
|
|
11888
11405
|
<xsl:otherwise>
|
11889
11406
|
<xsl:call-template name="setNamedDestination"/>
|
11890
11407
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
11891
|
-
|
11892
11408
|
<fo:list-item-label end-indent="label-end()">
|
11893
11409
|
<fo:block role="SKIP">
|
11894
11410
|
<fo:inline role="SKIP">
|
@@ -11915,18 +11431,16 @@
|
|
11915
11431
|
|
11916
11432
|
<xsl:template name="processBibitem">
|
11917
11433
|
<xsl:param name="biblio_tag_part">both</xsl:param>
|
11434
|
+
<!-- start bibitem processing -->
|
11435
|
+
<xsl:if test=".//*[local-name() = 'fn']">
|
11436
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
11437
|
+
</xsl:if>
|
11918
11438
|
|
11919
|
-
|
11920
|
-
|
11921
|
-
|
11922
|
-
|
11923
|
-
|
11924
|
-
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
11925
|
-
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
11926
|
-
</xsl:apply-templates>
|
11927
|
-
<xsl:apply-templates select="*[local-name() = 'formattedref']"/>
|
11928
|
-
<!-- end bibitem processing -->
|
11929
|
-
|
11439
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
11440
|
+
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
11441
|
+
</xsl:apply-templates>
|
11442
|
+
<xsl:apply-templates select="*[local-name() = 'formattedref']"/>
|
11443
|
+
<!-- end bibitem processing -->
|
11930
11444
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
11931
11445
|
|
11932
11446
|
<xsl:template match="*[local-name() = 'title']" mode="title">
|
@@ -12069,8 +11583,7 @@
|
|
12069
11583
|
<xsl:choose>
|
12070
11584
|
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
12071
11585
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
12072
|
-
<xsl:otherwise><!-- default value -->
|
12073
|
-
3
|
11586
|
+
<xsl:otherwise><!-- default value -->3
|
12074
11587
|
</xsl:otherwise>
|
12075
11588
|
</xsl:choose>
|
12076
11589
|
</xsl:variable>
|
@@ -12278,33 +11791,26 @@
|
|
12278
11791
|
<!-- ================ -->
|
12279
11792
|
<!-- Admonition -->
|
12280
11793
|
<!-- ================ -->
|
12281
|
-
<xsl:template match="*[local-name() = 'admonition']">
|
12282
|
-
|
12283
|
-
|
12284
|
-
<xsl:call-template name="setNamedDestination"/>
|
12285
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
12286
|
-
|
12287
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
12288
|
-
|
12289
|
-
<xsl:variable name="admonition_color" select="normalize-space(/ogc:metanorma/ogc:metanorma-extension/ogc:presentation-metadata[ogc:name = concat('color-admonition-', @type)]/ogc:value)"/>
|
12290
|
-
<xsl:if test="$admonition_color != ''">
|
12291
|
-
<xsl:attribute name="border">0.5pt solid <xsl:value-of select="$admonition_color"/></xsl:attribute>
|
12292
|
-
<xsl:attribute name="color"><xsl:value-of select="$admonition_color"/></xsl:attribute>
|
12293
|
-
</xsl:if>
|
12294
|
-
|
12295
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
12296
|
-
|
12297
|
-
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
12298
|
-
<xsl:call-template name="displayAdmonitionName"/>
|
12299
|
-
</fo:block>
|
12300
|
-
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
12301
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
12302
|
-
</fo:block>
|
12303
|
-
|
12304
|
-
</fo:block-container>
|
11794
|
+
<xsl:template match="*[local-name() = 'admonition']"> <!-- text in the box -->
|
11795
|
+
<xsl:call-template name="setNamedDestination"/>
|
11796
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
12305
11797
|
|
12306
|
-
|
11798
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
11799
|
+
<xsl:variable name="admonition_color" select="normalize-space(/ogc:metanorma/ogc:metanorma-extension/ogc:presentation-metadata[ogc:name = concat('color-admonition-', @type)]/ogc:value)"/>
|
11800
|
+
<xsl:if test="$admonition_color != ''">
|
11801
|
+
<xsl:attribute name="border">0.5pt solid <xsl:value-of select="$admonition_color"/></xsl:attribute>
|
11802
|
+
<xsl:attribute name="color"><xsl:value-of select="$admonition_color"/></xsl:attribute>
|
11803
|
+
</xsl:if>
|
11804
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
11805
|
+
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
11806
|
+
<xsl:call-template name="displayAdmonitionName"/>
|
11807
|
+
</fo:block>
|
11808
|
+
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
11809
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
11810
|
+
</fo:block>
|
12307
11811
|
|
11812
|
+
</fo:block-container>
|
11813
|
+
</fo:block-container>
|
12308
11814
|
</xsl:template>
|
12309
11815
|
|
12310
11816
|
<xsl:template name="displayAdmonitionName">
|
@@ -12352,12 +11858,10 @@
|
|
12352
11858
|
</xsl:template> -->
|
12353
11859
|
|
12354
11860
|
<xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'p']">
|
11861
|
+
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
12355
11862
|
|
12356
|
-
|
12357
|
-
|
12358
|
-
<xsl:apply-templates/>
|
12359
|
-
</fo:block>
|
12360
|
-
|
11863
|
+
<xsl:apply-templates/>
|
11864
|
+
</fo:block>
|
12361
11865
|
</xsl:template>
|
12362
11866
|
|
12363
11867
|
<!-- ================ -->
|
@@ -12393,11 +11897,9 @@
|
|
12393
11897
|
|
12394
11898
|
<!-- STEP2: add 'fn' after 'eref' and 'origin', if referenced to bibitem with 'note' = Withdrawn.' or 'Cancelled and replaced...' -->
|
12395
11899
|
<xsl:variable name="updated_xml_step2">
|
12396
|
-
|
12397
|
-
|
12398
|
-
|
12399
|
-
</xsl:if>
|
12400
|
-
|
11900
|
+
<xsl:if test="$table_if = 'false'">
|
11901
|
+
<xsl:copy-of select="$updated_xml_step1"/>
|
11902
|
+
</xsl:if>
|
12401
11903
|
</xsl:variable>
|
12402
11904
|
|
12403
11905
|
<xsl:variable name="endTime2" select="java:getTime(java:java.util.Date.new())"/>
|
@@ -12872,7 +12374,6 @@
|
|
12872
12374
|
</xsl:template>
|
12873
12375
|
|
12874
12376
|
<xsl:template name="addNamedDestinationAttribute">
|
12875
|
-
|
12876
12377
|
</xsl:template>
|
12877
12378
|
|
12878
12379
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
@@ -13367,7 +12868,6 @@
|
|
13367
12868
|
<!-- enclose standard's number into tag 'keep-together_within-line' -->
|
13368
12869
|
<xsl:if test="not(ancestor::*[local-name() = 'table'])"><regex><xsl:value-of select="$regex_standard_reference"/></regex></xsl:if>
|
13369
12870
|
<!-- if EXPRESS reference -->
|
13370
|
-
|
13371
12871
|
<!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
|
13372
12872
|
<regex><xsl:value-of select="$regex_solidus_units"/></regex>
|
13373
12873
|
<!-- keep-together_within-line for: a.b, aaa.b, a.bbb, .b in table's cell ONLY -->
|
@@ -13421,8 +12921,7 @@
|
|
13421
12921
|
|
13422
12922
|
<xsl:variable name="text2">
|
13423
12923
|
<xsl:element name="text" namespace="{$namespace_full}">
|
13424
|
-
<xsl:for-each select="xalan:nodeset($text)/*[local-name() = 'text']/node()"
|
13425
|
-
<xsl:copy-of select="."/>
|
12924
|
+
<xsl:for-each select="xalan:nodeset($text)/*[local-name() = 'text']/node()"><xsl:copy-of select="."/>
|
13426
12925
|
</xsl:for-each>
|
13427
12926
|
</xsl:element>
|
13428
12927
|
</xsl:variable>
|
@@ -13714,9 +13213,7 @@
|
|
13714
13213
|
</xsl:attribute>
|
13715
13214
|
<xsl:variable name="skip_footnote_body_" select="not($p_fn//fn[@gen_id = $gen_id] and (1 = 1))"/>
|
13716
13215
|
<xsl:attribute name="skip_footnote_body"> <!-- false for repeatable footnote -->
|
13717
|
-
|
13718
|
-
<xsl:value-of select="$skip_footnote_body_"/>
|
13719
|
-
|
13216
|
+
<xsl:value-of select="$skip_footnote_body_"/>
|
13720
13217
|
</xsl:attribute>
|
13721
13218
|
<xsl:attribute name="ref_id">
|
13722
13219
|
<xsl:value-of select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
|
@@ -13805,7 +13302,6 @@
|
|
13805
13302
|
|
13806
13303
|
<xsl:template name="printEdition">
|
13807
13304
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
13808
|
-
|
13809
13305
|
<xsl:choose>
|
13810
13306
|
<xsl:when test="$edition_i18n != ''">
|
13811
13307
|
<!-- Example: <edition language="fr">deuxième édition</edition> -->
|
@@ -14034,8 +13530,7 @@
|
|
14034
13530
|
<dc:title>
|
14035
13531
|
<xsl:variable name="title">
|
14036
13532
|
<xsl:for-each select="(//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']">
|
14037
|
-
|
14038
|
-
<xsl:value-of select="*[local-name() = 'title'][@language = $lang]"/>
|
13533
|
+
<xsl:value-of select="*[local-name() = 'title'][@language = $lang]"/>
|
14039
13534
|
|
14040
13535
|
</xsl:for-each>
|
14041
13536
|
</xsl:variable>
|
@@ -14054,16 +13549,14 @@
|
|
14054
13549
|
</dc:title>
|
14055
13550
|
<xsl:variable name="dc_creator">
|
14056
13551
|
<xsl:for-each select="(//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']">
|
14057
|
-
|
14058
|
-
|
14059
|
-
|
14060
|
-
|
14061
|
-
|
14062
|
-
|
14063
|
-
|
14064
|
-
|
14065
|
-
</rdf:Seq>
|
14066
|
-
|
13552
|
+
<rdf:Seq>
|
13553
|
+
<xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role'][not(*[local-name() = 'description'])]/@type='author']">
|
13554
|
+
<rdf:li>
|
13555
|
+
<xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
|
13556
|
+
</rdf:li>
|
13557
|
+
<!-- <xsl:if test="position() != last()">; </xsl:if> -->
|
13558
|
+
</xsl:for-each>
|
13559
|
+
</rdf:Seq>
|
14067
13560
|
</xsl:for-each>
|
14068
13561
|
</xsl:variable>
|
14069
13562
|
<xsl:if test="normalize-space($dc_creator) != ''">
|
@@ -14074,9 +13567,7 @@
|
|
14074
13567
|
|
14075
13568
|
<xsl:variable name="dc_description">
|
14076
13569
|
<xsl:variable name="abstract">
|
14077
|
-
|
14078
|
-
<xsl:copy-of select="//*[local-name() = 'metanorma']/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'fmt-title']) and not(ancestor::*[local-name() = 'title']) and not(ancestor::*[local-name() = 'fmt-xref-label'])]"/>
|
14079
|
-
|
13570
|
+
<xsl:copy-of select="//*[local-name() = 'metanorma']/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'fmt-title']) and not(ancestor::*[local-name() = 'title']) and not(ancestor::*[local-name() = 'fmt-xref-label'])]"/>
|
14080
13571
|
</xsl:variable>
|
14081
13572
|
<rdf:Alt>
|
14082
13573
|
<rdf:li xml:lang="x-default">
|
@@ -14141,7 +13632,9 @@
|
|
14141
13632
|
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
|
14142
13633
|
<xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
|
14143
13634
|
<xsl:variable name="attachment_name" select="java:org.metanorma.fop.Util.getFilenameFromPath($attachment_path)"/>
|
14144
|
-
<xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/>
|
13635
|
+
<!-- <xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/> -->
|
13636
|
+
<!-- See https://github.com/metanorma/metanorma-iso/issues/1369 -->
|
13637
|
+
<xsl:variable name="url" select="concat('url(file:///',$outputpdf_basepath, $attachment_path, ')')"/>
|
14145
13638
|
<xsl:variable name="description" select="normalize-space(*[local-name() = 'formattedref'])"/>
|
14146
13639
|
<!-- Todo: need update -->
|
14147
13640
|
<xsl:variable name="afrelationship" select="normalize-space(.//*[local-name() = 'classification'][@type = 'pdf-AFRelationship'])"/>
|
@@ -14306,7 +13799,7 @@
|
|
14306
13799
|
<xsl:param name="normalize-space" select="'true'"/>
|
14307
13800
|
<xsl:param name="keep_sep" select="'false'"/>
|
14308
13801
|
<xsl:if test="string-length($pText) >0">
|
14309
|
-
<item>
|
13802
|
+
<xsl:element name="item" namespace="{$namespace_mn_xsl}">
|
14310
13803
|
<xsl:choose>
|
14311
13804
|
<xsl:when test="$normalize-space = 'true'">
|
14312
13805
|
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
@@ -14315,8 +13808,8 @@
|
|
14315
13808
|
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
14316
13809
|
</xsl:otherwise>
|
14317
13810
|
</xsl:choose>
|
14318
|
-
</
|
14319
|
-
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></
|
13811
|
+
</xsl:element>
|
13812
|
+
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><xsl:element name="item" namespace="{$namespace_mn_xsl}"><xsl:value-of select="$sep"/></xsl:element></xsl:if>
|
14320
13813
|
<xsl:call-template name="split">
|
14321
13814
|
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
14322
13815
|
<xsl:with-param name="sep" select="$sep"/>
|
@@ -14334,30 +13827,6 @@
|
|
14334
13827
|
<xsl:call-template name="getLang_fromCurrentNode"/><xsl:value-of select=".//*[local-name() = 'p'][1]/@id"/>
|
14335
13828
|
</xsl:template>
|
14336
13829
|
|
14337
|
-
<xsl:template name="namespaceCheck">
|
14338
|
-
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
|
14339
|
-
<xsl:variable name="XSLNS">
|
14340
|
-
|
14341
|
-
<xsl:value-of select="document('')//*/namespace::ogc"/>
|
14342
|
-
|
14343
|
-
</xsl:variable>
|
14344
|
-
<!-- <xsl:if test="$documentNS != $XSLNS">
|
14345
|
-
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
14346
|
-
</xsl:if> -->
|
14347
|
-
</xsl:template> <!-- namespaceCheck -->
|
14348
|
-
|
14349
|
-
<xsl:template name="getLanguage">
|
14350
|
-
<xsl:param name="lang"/>
|
14351
|
-
<xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
|
14352
|
-
<xsl:choose>
|
14353
|
-
<xsl:when test="$language = 'en'">English</xsl:when>
|
14354
|
-
<xsl:when test="$language = 'fr'">French</xsl:when>
|
14355
|
-
<xsl:when test="$language = 'de'">Deutsch</xsl:when>
|
14356
|
-
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
|
14357
|
-
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
14358
|
-
</xsl:choose>
|
14359
|
-
</xsl:template>
|
14360
|
-
|
14361
13830
|
<xsl:template name="setId">
|
14362
13831
|
<xsl:param name="prefix"/>
|
14363
13832
|
<xsl:attribute name="id">
|