metanorma-ieee 1.4.6 → 1.4.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/ieee/html/htmlstyle.css +0 -2
- data/lib/isodoc/ieee/ieee.amendment.xsl +841 -1370
- data/lib/isodoc/ieee/ieee.standard.xsl +841 -1370
- data/lib/isodoc/ieee/presentation_concepts.rb +1 -1
- data/lib/isodoc/ieee/presentation_ref.rb +8 -8
- data/lib/isodoc/ieee/presentation_terms.rb +13 -10
- data/lib/isodoc/ieee/presentation_xml_convert.rb +0 -3
- data/lib/metanorma/ieee/cleanup.rb +3 -112
- data/lib/metanorma/ieee/cleanup_boilerplate.rb +119 -0
- data/lib/metanorma/ieee/cleanup_ref.rb +1 -1
- data/lib/metanorma/ieee/converter.rb +0 -3
- data/lib/metanorma/ieee/isodoc.rng +32 -2
- data/lib/metanorma/ieee/version.rb +1 -1
- metadata +3 -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:ieee="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:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:java="http://xml.apache.org/xalan/java" xmlns:barcode="http://barcode4j.krysalis.org/ns" xmlns:redirect="http://xml.apache.org/xalan/redirect" exclude-result-prefixes="java" 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:ieee="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:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:java="http://xml.apache.org/xalan/java" xmlns:barcode="http://barcode4j.krysalis.org/ns" xmlns:redirect="http://xml.apache.org/xalan/redirect" exclude-result-prefixes="java" extension-element-prefixes="redirect" version="1.0">
|
2
2
|
|
3
3
|
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
|
4
4
|
|
@@ -20,15 +20,15 @@
|
|
20
20
|
<xsl:copy-of select="."/>
|
21
21
|
</xsl:variable> -->
|
22
22
|
<xsl:for-each select="."> <!-- xalan:nodeset($current_document) -->
|
23
|
-
<doc num="{$num}" firstpage_id="firstpage_id_{$num}" title-part="{$docnumber}" bundle="{$bundle}"> <!-- 'bundle' means several different documents (not language versions) in one xml -->
|
24
|
-
<contents>
|
23
|
+
<mn:doc num="{$num}" firstpage_id="firstpage_id_{$num}" title-part="{$docnumber}" bundle="{$bundle}"> <!-- 'bundle' means several different documents (not language versions) in one xml -->
|
24
|
+
<mn:contents>
|
25
25
|
<xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
|
26
26
|
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
27
27
|
<xsl:apply-templates select="//ieee:indexsect" mode="contents"/>
|
28
28
|
|
29
29
|
<xsl:call-template name="processTablesFigures_Contents"/>
|
30
|
-
</contents>
|
31
|
-
</doc>
|
30
|
+
</mn:contents>
|
31
|
+
</mn:doc>
|
32
32
|
</xsl:for-each>
|
33
33
|
</xsl:for-each>
|
34
34
|
</xsl:variable>
|
@@ -1162,7 +1162,7 @@
|
|
1162
1162
|
|
1163
1163
|
<xsl:if test="count(*) = 1 and *[local-name() = 'title']"> <!-- if there isn't user ToC -->
|
1164
1164
|
<fo:block role="TOC">
|
1165
|
-
<xsl:if test="$contents/doc[@num = $num]//item[@display = 'true']">
|
1165
|
+
<xsl:if test="$contents/mn:doc[@num = $num]//mn:item[@display = 'true']">
|
1166
1166
|
<xsl:choose>
|
1167
1167
|
<xsl:when test="$current_template = 'standard' or $current_template = 'draft'">
|
1168
1168
|
|
@@ -1171,7 +1171,7 @@
|
|
1171
1171
|
|
1172
1172
|
<xsl:variable name="margin-left">4</xsl:variable>
|
1173
1173
|
|
1174
|
-
<xsl:for-each select="$contents/doc[@num = $num]//item[@display = 'true']">
|
1174
|
+
<xsl:for-each select="$contents/mn:doc[@num = $num]//mn:item[@display = 'true']">
|
1175
1175
|
<fo:block role="TOCI">
|
1176
1176
|
<xsl:if test="@level = 1">
|
1177
1177
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
@@ -1183,13 +1183,13 @@
|
|
1183
1183
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1184
1184
|
</xsl:if>
|
1185
1185
|
|
1186
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{title}">
|
1186
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{mn:title}">
|
1187
1187
|
|
1188
1188
|
<xsl:value-of select="@section"/>
|
1189
1189
|
<!-- <xsl:if test="normalize-space(@section) != '' and @level = 1">.</xsl:if> -->
|
1190
1190
|
<xsl:if test="normalize-space(@section) != ''"><xsl:text> </xsl:text></xsl:if>
|
1191
1191
|
|
1192
|
-
<xsl:apply-templates select="title"/>
|
1192
|
+
<xsl:apply-templates select="mn:title"/>
|
1193
1193
|
|
1194
1194
|
<fo:inline keep-together.within-line="always">
|
1195
1195
|
<fo:leader font-size="9pt" font-weight="normal" leader-pattern="dots"/>
|
@@ -1204,21 +1204,21 @@
|
|
1204
1204
|
</xsl:for-each>
|
1205
1205
|
|
1206
1206
|
<!-- List of Tables -->
|
1207
|
-
<xsl:if test="$contents//tables/table">
|
1207
|
+
<xsl:if test="$contents//mn:tables/mn:table">
|
1208
1208
|
<xsl:call-template name="insertListOf_Title">
|
1209
1209
|
<xsl:with-param name="title" select="$title-list-tables"/>
|
1210
1210
|
</xsl:call-template>
|
1211
|
-
<xsl:for-each select="$contents//tables/table">
|
1211
|
+
<xsl:for-each select="$contents//mn:tables/mn:table">
|
1212
1212
|
<xsl:call-template name="insertListOf_Item"/>
|
1213
1213
|
</xsl:for-each>
|
1214
1214
|
</xsl:if>
|
1215
1215
|
|
1216
1216
|
<!-- List of Figures -->
|
1217
|
-
<xsl:if test="$contents//figures/figure">
|
1217
|
+
<xsl:if test="$contents//mn:figures/mn:figure">
|
1218
1218
|
<xsl:call-template name="insertListOf_Title">
|
1219
1219
|
<xsl:with-param name="title" select="$title-list-figures"/>
|
1220
1220
|
</xsl:call-template>
|
1221
|
-
<xsl:for-each select="$contents//figures/figure">
|
1221
|
+
<xsl:for-each select="$contents//mn:figures/mn:figure">
|
1222
1222
|
<xsl:call-template name="insertListOf_Item"/>
|
1223
1223
|
</xsl:for-each>
|
1224
1224
|
</xsl:if>
|
@@ -1229,7 +1229,7 @@
|
|
1229
1229
|
|
1230
1230
|
<xsl:variable name="provisional-distance-between-starts">10</xsl:variable>
|
1231
1231
|
|
1232
|
-
<xsl:for-each select="$contents/doc[@num = $num]//item[@display = 'true']">
|
1232
|
+
<xsl:for-each select="$contents/mn:doc[@num = $num]//mn:item[@display = 'true']">
|
1233
1233
|
|
1234
1234
|
<fo:list-block provisional-distance-between-starts="{$provisional-distance-between-starts}mm" role="TOCI">
|
1235
1235
|
|
@@ -1256,9 +1256,9 @@
|
|
1256
1256
|
</xsl:if>
|
1257
1257
|
</xsl:if>
|
1258
1258
|
|
1259
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{title}">
|
1259
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{mn:title}">
|
1260
1260
|
|
1261
|
-
<xsl:apply-templates select="title"/>
|
1261
|
+
<xsl:apply-templates select="mn:title"/>
|
1262
1262
|
|
1263
1263
|
<fo:inline keep-together.within-line="always">
|
1264
1264
|
<fo:leader font-size="9pt" font-weight="normal" leader-pattern="dots"/>
|
@@ -1276,23 +1276,23 @@
|
|
1276
1276
|
</xsl:for-each>
|
1277
1277
|
|
1278
1278
|
<!-- List of Figures -->
|
1279
|
-
<xsl:if test="$contents//figures/figure">
|
1279
|
+
<xsl:if test="$contents//mn:figures/mn:figure">
|
1280
1280
|
<fo:block break-after="page"/>
|
1281
1281
|
<xsl:call-template name="insertListOf_Title">
|
1282
1282
|
<xsl:with-param name="title" select="'Figures'"/>
|
1283
1283
|
</xsl:call-template>
|
1284
|
-
<xsl:for-each select="$contents//figures/figure">
|
1284
|
+
<xsl:for-each select="$contents//mn:figures/mn:figure">
|
1285
1285
|
<xsl:call-template name="insertListOf_Item"/>
|
1286
1286
|
</xsl:for-each>
|
1287
1287
|
</xsl:if>
|
1288
1288
|
|
1289
1289
|
<!-- List of Tables -->
|
1290
|
-
<xsl:if test="$contents//tables/table">
|
1290
|
+
<xsl:if test="$contents//mn:tables/mn:table">
|
1291
1291
|
<fo:block break-after="page"/>
|
1292
1292
|
<xsl:call-template name="insertListOf_Title">
|
1293
1293
|
<xsl:with-param name="title" select="'Tables'"/>
|
1294
1294
|
</xsl:call-template>
|
1295
|
-
<xsl:for-each select="$contents//tables/table">
|
1295
|
+
<xsl:for-each select="$contents//mn:tables/mn:table">
|
1296
1296
|
<xsl:call-template name="insertListOf_Item"/>
|
1297
1297
|
</xsl:for-each>
|
1298
1298
|
</xsl:if>
|
@@ -1313,14 +1313,14 @@
|
|
1313
1313
|
</xsl:choose>
|
1314
1314
|
</xsl:variable>
|
1315
1315
|
|
1316
|
-
<xsl:for-each select="$contents/doc[@num = $num]//item[@display = 'true'][@level <= $toc_level or @type = 'figure' or @type = 'table']">
|
1316
|
+
<xsl:for-each select="$contents/mn:doc[@num = $num]//mn:item[@display = 'true'][@level <= $toc_level or @type = 'figure' or @type = 'table']">
|
1317
1317
|
<fo:block role="TOCI">
|
1318
1318
|
<xsl:if test="@level = 1">
|
1319
1319
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1320
1320
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1321
1321
|
</xsl:if>
|
1322
1322
|
|
1323
|
-
<xsl:if test="@type = 'figure' or @type = 'table' and preceding-sibling::item[1][@type = 'figure' or @type = 'table']">
|
1323
|
+
<xsl:if test="@type = 'figure' or @type = 'table' and preceding-sibling::mn:item[1][@type = 'figure' or @type = 'table']">
|
1324
1324
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
1325
1325
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
1326
1326
|
</xsl:if>
|
@@ -1331,13 +1331,13 @@
|
|
1331
1331
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1332
1332
|
</xsl:if>
|
1333
1333
|
|
1334
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{title}">
|
1334
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{mn:title}">
|
1335
1335
|
|
1336
1336
|
<xsl:value-of select="@section"/>
|
1337
1337
|
<xsl:if test="normalize-space(@section) != ''"><xsl:text> </xsl:text></xsl:if>
|
1338
1338
|
|
1339
1339
|
<xsl:variable name="section_title">
|
1340
|
-
<xsl:apply-templates select="title"/>
|
1340
|
+
<xsl:apply-templates select="mn:title"/>
|
1341
1341
|
</xsl:variable>
|
1342
1342
|
|
1343
1343
|
<!-- DEBUG=<xsl:copy-of select="$title"/> -->
|
@@ -1870,19 +1870,19 @@
|
|
1870
1870
|
<xsl:if test="ancestor-or-self::ieee:annex">annex</xsl:if>
|
1871
1871
|
</xsl:variable>
|
1872
1872
|
|
1873
|
-
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}" root="{$root}" display="{$display}">
|
1873
|
+
<mn:item id="{@id}" level="{$level}" section="{$section}" type="{$type}" root="{$root}" display="{$display}">
|
1874
1874
|
<xsl:if test="$type = 'index'">
|
1875
1875
|
<xsl:attribute name="level">1</xsl:attribute>
|
1876
1876
|
</xsl:if>
|
1877
|
-
<title>
|
1877
|
+
<mn:title>
|
1878
1878
|
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
|
1879
1879
|
<xsl:with-param name="mode">contents</xsl:with-param>
|
1880
1880
|
</xsl:apply-templates>
|
1881
|
-
</title>
|
1881
|
+
</mn:title>
|
1882
1882
|
<xsl:if test="$type != 'index'">
|
1883
1883
|
<xsl:apply-templates mode="contents"/>
|
1884
1884
|
</xsl:if>
|
1885
|
-
</item>
|
1885
|
+
</mn:item>
|
1886
1886
|
</xsl:if>
|
1887
1887
|
</xsl:template>
|
1888
1888
|
|
@@ -1895,7 +1895,7 @@
|
|
1895
1895
|
</xsl:call-template>
|
1896
1896
|
</xsl:for-each>
|
1897
1897
|
</xsl:variable>
|
1898
|
-
<item id="{@id}" level="{$level}" section="" type="{local-name()}" root="" display="true">
|
1898
|
+
<mn:item id="{@id}" level="{$level}" section="" type="{local-name()}" root="" display="true">
|
1899
1899
|
<xsl:variable name="name">
|
1900
1900
|
<xsl:apply-templates select="ieee:name" mode="contents_item">
|
1901
1901
|
<xsl:with-param name="mode">contents</xsl:with-param>
|
@@ -1904,10 +1904,10 @@
|
|
1904
1904
|
<xsl:if test="not(contains(normalize-space($name), '—'))">
|
1905
1905
|
<xsl:attribute name="display">false</xsl:attribute>
|
1906
1906
|
</xsl:if>
|
1907
|
-
<title>
|
1907
|
+
<mn:title>
|
1908
1908
|
<xsl:copy-of select="$name"/>
|
1909
|
-
</title>
|
1910
|
-
</item>
|
1909
|
+
</mn:title>
|
1910
|
+
</mn:item>
|
1911
1911
|
</xsl:if>
|
1912
1912
|
</xsl:template>
|
1913
1913
|
|
@@ -3798,34 +3798,25 @@
|
|
3798
3798
|
<!-- End Back Pages -->
|
3799
3799
|
<!-- =============================== -->
|
3800
3800
|
|
3801
|
-
|
3801
|
+
<!-- https://www.metanorma.org/ns/standoc -->
|
3802
|
+
<xsl:variable name="namespace_full" select="namespace-uri(//*[local-name() = 'metanorma'][1])"/>
|
3802
3803
|
|
3803
|
-
|
3804
|
-
|
3805
|
-
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[local-name() = 'metanorma'][1])"/></xsl:when>
|
3806
|
-
<xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/standoc -->
|
3807
|
-
</xsl:choose>
|
3808
|
-
</xsl:variable>
|
3809
|
-
<xsl:variable name="namespace_full" select="normalize-space($namespace_full_)"/>
|
3804
|
+
<!-- https://www.metanorma.org/ns/xsl -->
|
3805
|
+
<xsl:variable name="namespace_mn_xsl">https://www.metanorma.org/ns/xslt</xsl:variable>
|
3810
3806
|
|
3811
|
-
<xsl:variable name="
|
3812
|
-
<xsl:choose>
|
3813
|
-
<xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[local-name() = 'metanorma'][1])"/></xsl:when>
|
3814
|
-
<xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: metanorma (former iso-standard) -->
|
3815
|
-
</xsl:choose>
|
3816
|
-
</xsl:variable>
|
3817
|
-
<xsl:variable name="root_element" select="normalize-space($root_element_)"/>
|
3807
|
+
<xsl:variable name="root_element">metanorma</xsl:variable>
|
3818
3808
|
|
3809
|
+
<!---examples: 2013, 2024 -->
|
3819
3810
|
<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'])"/>
|
3820
3811
|
|
3821
3812
|
<!-- external parameters -->
|
3822
|
-
|
3823
3813
|
<xsl:param name="svg_images"/> <!-- svg images array -->
|
3824
3814
|
<xsl:variable name="images" select="document($svg_images)"/>
|
3825
3815
|
<xsl:param name="basepath"/> <!-- base path for images -->
|
3826
3816
|
<xsl:param name="inputxml_basepath"/> <!-- input xml file path -->
|
3827
3817
|
<xsl:param name="inputxml_filename"/> <!-- input xml file name -->
|
3828
3818
|
<xsl:param name="output_path"/> <!-- output PDF file name -->
|
3819
|
+
<xsl:param name="outputpdf_basepath"/> <!-- output PDF folder -->
|
3829
3820
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
3830
3821
|
<xsl:param name="syntax-highlight">false</xsl:param> <!-- syntax highlighting feature, default - off -->
|
3831
3822
|
<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 -->
|
@@ -3872,20 +3863,13 @@
|
|
3872
3863
|
|
3873
3864
|
<xsl:param name="table_if_debug">false</xsl:param> <!-- set 'true' to put debug width data before table or dl -->
|
3874
3865
|
|
3875
|
-
|
3876
|
-
|
3866
|
+
<!-- don't remove and rename this variable, it's using in mn2pdf tool -->
|
3867
|
+
<xsl:variable name="isApplyAutolayoutAlgorithm_">true
|
3877
3868
|
</xsl:variable>
|
3878
3869
|
<xsl:variable name="isApplyAutolayoutAlgorithm" select="normalize-space($isApplyAutolayoutAlgorithm_)"/>
|
3879
3870
|
|
3880
|
-
<xsl:variable name="
|
3881
|
-
|
3882
|
-
<xsl:when test="$isApplyAutolayoutAlgorithm = 'true'">
|
3883
|
-
<xsl:value-of select="normalize-space($table_if) = 'true'"/>
|
3884
|
-
</xsl:when>
|
3885
|
-
<xsl:otherwise>false</xsl:otherwise>
|
3886
|
-
</xsl:choose>
|
3887
|
-
</xsl:variable>
|
3888
|
-
<xsl:variable name="isGenerateTableIF" select="normalize-space($isGenerateTableIF_)"/>
|
3871
|
+
<xsl:variable name="isGenerateTableIF"><xsl:value-of select="$table_if"/></xsl:variable>
|
3872
|
+
<!-- <xsl:variable name="isGenerateTableIF" select="normalize-space(normalize-space($table_if) = 'true' and 1 = 1)"/> -->
|
3889
3873
|
|
3890
3874
|
<xsl:variable name="lang">
|
3891
3875
|
<xsl:call-template name="getLang"/>
|
@@ -3937,8 +3921,7 @@
|
|
3937
3921
|
<xsl:variable name="pageWidth_">
|
3938
3922
|
<xsl:choose>
|
3939
3923
|
<xsl:when test="$papersize_width != ''"><xsl:value-of select="$papersize_width"/></xsl:when>
|
3940
|
-
<xsl:otherwise>
|
3941
|
-
215.9
|
3924
|
+
<xsl:otherwise>215.9
|
3942
3925
|
</xsl:otherwise>
|
3943
3926
|
</xsl:choose>
|
3944
3927
|
</xsl:variable>
|
@@ -3948,8 +3931,7 @@
|
|
3948
3931
|
<xsl:variable name="pageHeight_">
|
3949
3932
|
<xsl:choose>
|
3950
3933
|
<xsl:when test="$papersize_height != ''"><xsl:value-of select="$papersize_height"/></xsl:when>
|
3951
|
-
<xsl:otherwise>
|
3952
|
-
279.4
|
3934
|
+
<xsl:otherwise>279.4
|
3953
3935
|
</xsl:otherwise>
|
3954
3936
|
</xsl:choose>
|
3955
3937
|
</xsl:variable>
|
@@ -3958,23 +3940,19 @@
|
|
3958
3940
|
<!-- Page margins in mm (just digits, without 'mm')-->
|
3959
3941
|
<!-- marginLeftRight1 and marginLeftRight2 - is left or right margin depends on odd/even page,
|
3960
3942
|
for example, left margin on odd page and right margin on even page -->
|
3961
|
-
<xsl:variable name="marginLeftRight1_">
|
3962
|
-
31.7
|
3943
|
+
<xsl:variable name="marginLeftRight1_">31.7
|
3963
3944
|
</xsl:variable>
|
3964
3945
|
<xsl:variable name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/>
|
3965
3946
|
|
3966
|
-
<xsl:variable name="marginLeftRight2_">
|
3967
|
-
31.7
|
3947
|
+
<xsl:variable name="marginLeftRight2_">31.7
|
3968
3948
|
</xsl:variable>
|
3969
3949
|
<xsl:variable name="marginLeftRight2" select="normalize-space($marginLeftRight2_)"/>
|
3970
3950
|
|
3971
|
-
<xsl:variable name="marginTop_">
|
3972
|
-
25.4
|
3951
|
+
<xsl:variable name="marginTop_">25.4
|
3973
3952
|
</xsl:variable>
|
3974
3953
|
<xsl:variable name="marginTop" select="normalize-space($marginTop_)"/>
|
3975
3954
|
|
3976
|
-
<xsl:variable name="marginBottom_">
|
3977
|
-
25.4
|
3955
|
+
<xsl:variable name="marginBottom_">25.4
|
3978
3956
|
</xsl:variable>
|
3979
3957
|
<xsl:variable name="marginBottom" select="normalize-space($marginBottom_)"/>
|
3980
3958
|
|
@@ -4023,13 +4001,10 @@
|
|
4023
4001
|
<title-toc lang="zh">目次</title-toc>
|
4024
4002
|
|
4025
4003
|
<title-part lang="en">
|
4026
|
-
|
4027
4004
|
</title-part>
|
4028
4005
|
<title-part lang="fr">
|
4029
|
-
|
4030
4006
|
</title-part>
|
4031
4007
|
<title-part lang="ru">
|
4032
|
-
|
4033
4008
|
</title-part>
|
4034
4009
|
<title-part lang="zh">第 # 部分:</title-part>
|
4035
4010
|
|
@@ -4083,6 +4058,7 @@
|
|
4083
4058
|
<xsl:variable name="hair_space"> </xsl:variable>
|
4084
4059
|
<xsl:variable name="en_dash">–</xsl:variable>
|
4085
4060
|
<xsl:variable name="em_dash">—</xsl:variable>
|
4061
|
+
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
4086
4062
|
<xsl:variable name="cr"> </xsl:variable>
|
4087
4063
|
<xsl:variable name="lf">
|
4088
4064
|
</xsl:variable>
|
@@ -4124,11 +4100,9 @@
|
|
4124
4100
|
<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>
|
4125
4101
|
<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>
|
4126
4102
|
<xsl:attribute-set name="root-style">
|
4127
|
-
|
4128
|
-
|
4129
|
-
|
4130
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4131
|
-
|
4103
|
+
<xsl:attribute name="font-family">Times New Roman, STIX Two Math, <xsl:value-of select="$font_noto_serif"/></xsl:attribute>
|
4104
|
+
<xsl:attribute name="font-family-generic">Serif</xsl:attribute>
|
4105
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4132
4106
|
</xsl:attribute-set> <!-- root-style -->
|
4133
4107
|
|
4134
4108
|
<xsl:template name="insertRootStyle">
|
@@ -4216,28 +4190,22 @@
|
|
4216
4190
|
|
4217
4191
|
<!-- Preface sections styles -->
|
4218
4192
|
<xsl:attribute-set name="copyright-statement-style">
|
4219
|
-
|
4220
4193
|
</xsl:attribute-set> <!-- copyright-statement-style -->
|
4221
4194
|
|
4222
4195
|
<xsl:attribute-set name="copyright-statement-title-style">
|
4223
|
-
|
4224
4196
|
</xsl:attribute-set> <!-- copyright-statement-title-style -->
|
4225
4197
|
|
4226
4198
|
<xsl:attribute-set name="copyright-statement-p-style">
|
4227
|
-
|
4228
4199
|
</xsl:attribute-set> <!-- copyright-statement-p-style -->
|
4229
4200
|
|
4230
4201
|
<xsl:attribute-set name="license-statement-style">
|
4231
|
-
|
4232
4202
|
</xsl:attribute-set>
|
4233
4203
|
|
4234
4204
|
<xsl:attribute-set name="license-statement-title-style">
|
4235
4205
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4236
|
-
|
4237
4206
|
</xsl:attribute-set> <!-- license-statement-title-style -->
|
4238
4207
|
|
4239
4208
|
<xsl:attribute-set name="license-statement-p-style">
|
4240
|
-
|
4241
4209
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
4242
4210
|
|
4243
4211
|
<xsl:attribute-set name="legal-statement-style">
|
@@ -4246,103 +4214,82 @@
|
|
4246
4214
|
|
4247
4215
|
<xsl:attribute-set name="legal-statement-title-style">
|
4248
4216
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4249
|
-
|
4250
4217
|
</xsl:attribute-set> <!-- legal-statement-title-style -->
|
4251
4218
|
|
4252
4219
|
<xsl:attribute-set name="legal-statement-p-style">
|
4253
|
-
|
4254
4220
|
</xsl:attribute-set> <!-- legal-statement-p-style -->
|
4255
4221
|
|
4256
4222
|
<xsl:attribute-set name="feedback-statement-style">
|
4257
|
-
|
4258
4223
|
</xsl:attribute-set> <!-- feedback-statement-style -->
|
4259
4224
|
|
4260
4225
|
<xsl:attribute-set name="feedback-statement-title-style">
|
4261
4226
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4262
|
-
|
4263
4227
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
4264
4228
|
|
4265
4229
|
<xsl:attribute-set name="feedback-statement-p-style">
|
4266
|
-
|
4267
4230
|
</xsl:attribute-set> <!-- feedback-statement-p-style -->
|
4268
4231
|
|
4269
4232
|
<!-- End Preface sections styles -->
|
4270
4233
|
|
4271
4234
|
<xsl:attribute-set name="link-style">
|
4272
|
-
|
4273
|
-
|
4274
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4275
|
-
|
4235
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
4236
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4276
4237
|
</xsl:attribute-set>
|
4277
4238
|
|
4278
4239
|
<xsl:template name="refine_link-style">
|
4279
|
-
|
4280
|
-
<xsl:
|
4281
|
-
|
4282
|
-
|
4283
|
-
|
4284
|
-
<xsl:
|
4285
|
-
|
4286
|
-
|
4287
|
-
<xsl:
|
4288
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4289
|
-
</xsl:if>
|
4240
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4241
|
+
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4242
|
+
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
4243
|
+
</xsl:if>
|
4244
|
+
<xsl:if test="$current_template = 'standard'">
|
4245
|
+
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4246
|
+
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
4247
|
+
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
4248
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4290
4249
|
</xsl:if>
|
4291
|
-
|
4250
|
+
</xsl:if>
|
4292
4251
|
</xsl:template> <!-- refine_link-style -->
|
4293
4252
|
|
4294
4253
|
<xsl:attribute-set name="sourcecode-container-style">
|
4295
|
-
|
4296
4254
|
</xsl:attribute-set>
|
4297
4255
|
|
4298
4256
|
<xsl:attribute-set name="sourcecode-style">
|
4299
4257
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
4300
4258
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
4301
4259
|
<xsl:attribute name="role">Code</xsl:attribute>
|
4302
|
-
|
4303
|
-
|
4304
|
-
|
4305
|
-
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
4306
|
-
|
4260
|
+
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4261
|
+
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
4262
|
+
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
4307
4263
|
</xsl:attribute-set>
|
4308
4264
|
|
4309
4265
|
<xsl:template name="refine_sourcecode-style">
|
4310
|
-
|
4311
4266
|
</xsl:template> <!-- refine_sourcecode-style -->
|
4312
4267
|
|
4313
4268
|
<xsl:attribute-set name="pre-style">
|
4314
4269
|
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
|
4315
4270
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4316
|
-
|
4317
|
-
|
4318
|
-
|
4319
|
-
<xsl:attribute name="font-size">95%</xsl:attribute>
|
4320
|
-
|
4271
|
+
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
4272
|
+
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
4273
|
+
<xsl:attribute name="font-size">95%</xsl:attribute>
|
4321
4274
|
</xsl:attribute-set>
|
4322
4275
|
|
4323
4276
|
<xsl:attribute-set name="permission-style">
|
4324
|
-
|
4325
4277
|
</xsl:attribute-set>
|
4326
4278
|
|
4327
4279
|
<xsl:attribute-set name="permission-name-style">
|
4328
|
-
|
4329
4280
|
</xsl:attribute-set>
|
4330
4281
|
|
4331
4282
|
<xsl:attribute-set name="permission-label-style">
|
4332
|
-
|
4333
4283
|
</xsl:attribute-set>
|
4334
4284
|
|
4335
4285
|
<xsl:attribute-set name="requirement-style">
|
4336
|
-
|
4337
4286
|
</xsl:attribute-set>
|
4338
4287
|
|
4339
4288
|
<xsl:attribute-set name="requirement-name-style">
|
4340
4289
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4341
|
-
|
4342
4290
|
</xsl:attribute-set>
|
4343
4291
|
|
4344
4292
|
<xsl:attribute-set name="requirement-label-style">
|
4345
|
-
|
4346
4293
|
</xsl:attribute-set>
|
4347
4294
|
|
4348
4295
|
<xsl:attribute-set name="subject-style">
|
@@ -4370,55 +4317,42 @@
|
|
4370
4317
|
</xsl:attribute-set>
|
4371
4318
|
|
4372
4319
|
<xsl:attribute-set name="recommendation-style">
|
4373
|
-
|
4374
4320
|
</xsl:attribute-set>
|
4375
4321
|
|
4376
4322
|
<xsl:attribute-set name="recommendation-name-style">
|
4377
|
-
|
4378
4323
|
</xsl:attribute-set>
|
4379
4324
|
|
4380
4325
|
<xsl:attribute-set name="recommendation-label-style">
|
4381
|
-
|
4382
4326
|
</xsl:attribute-set>
|
4383
4327
|
|
4384
4328
|
<xsl:attribute-set name="termexample-style">
|
4385
|
-
|
4386
|
-
|
4387
|
-
|
4388
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4389
|
-
|
4329
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
4330
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
4331
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4390
4332
|
</xsl:attribute-set>
|
4391
4333
|
|
4392
4334
|
<xsl:template name="refine_termexample-style">
|
4393
|
-
|
4394
4335
|
</xsl:template>
|
4395
4336
|
|
4396
4337
|
<xsl:attribute-set name="example-style">
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4401
|
-
|
4338
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
4339
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
4340
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4402
4341
|
</xsl:attribute-set> <!-- example-style -->
|
4403
4342
|
|
4404
4343
|
<xsl:template name="refine_example-style">
|
4405
|
-
|
4406
4344
|
</xsl:template> <!-- refine_example-style -->
|
4407
4345
|
|
4408
4346
|
<xsl:attribute-set name="example-body-style">
|
4409
|
-
|
4410
4347
|
</xsl:attribute-set> <!-- example-body-style -->
|
4411
4348
|
|
4412
4349
|
<xsl:attribute-set name="example-name-style">
|
4413
|
-
|
4414
|
-
|
4415
|
-
|
4416
|
-
<xsl:attribute name="font-style">italic</xsl:attribute>
|
4417
|
-
|
4350
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4351
|
+
<xsl:attribute name="padding-right">9mm</xsl:attribute>
|
4352
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
4418
4353
|
</xsl:attribute-set> <!-- example-name-style -->
|
4419
4354
|
|
4420
4355
|
<xsl:template name="refine_example-name-style">
|
4421
|
-
|
4422
4356
|
</xsl:template>
|
4423
4357
|
|
4424
4358
|
<xsl:attribute-set name="example-p-style">
|
@@ -4426,97 +4360,77 @@
|
|
4426
4360
|
</xsl:attribute-set> <!-- example-p-style -->
|
4427
4361
|
|
4428
4362
|
<xsl:template name="refine_example-p-style">
|
4429
|
-
|
4430
|
-
<xsl:
|
4431
|
-
|
4432
|
-
</xsl:if>
|
4433
|
-
|
4363
|
+
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])">
|
4364
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4365
|
+
</xsl:if>
|
4434
4366
|
</xsl:template> <!-- refine_example-p-style -->
|
4435
4367
|
|
4436
4368
|
<xsl:attribute-set name="termexample-name-style">
|
4437
|
-
|
4438
|
-
|
4439
|
-
|
4440
|
-
<xsl:attribute name="font-style">italic</xsl:attribute>
|
4441
|
-
|
4369
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4370
|
+
<xsl:attribute name="padding-right">9mm</xsl:attribute>
|
4371
|
+
<xsl:attribute name="font-style">italic</xsl:attribute>
|
4442
4372
|
</xsl:attribute-set> <!-- termexample-name-style -->
|
4443
4373
|
|
4444
4374
|
<xsl:template name="refine_termexample-name-style">
|
4445
|
-
|
4446
4375
|
</xsl:template>
|
4447
4376
|
|
4448
4377
|
<!-- ========================== -->
|
4449
4378
|
<!-- Table styles -->
|
4450
4379
|
<!-- ========================== -->
|
4451
|
-
<xsl:variable name="table-border_">
|
4452
|
-
|
4453
|
-
1pt solid black
|
4454
|
-
|
4455
|
-
|
4380
|
+
<xsl:variable name="table-border_">1pt solid black
|
4456
4381
|
</xsl:variable>
|
4457
4382
|
<xsl:variable name="table-border" select="normalize-space($table-border_)"/>
|
4458
4383
|
|
4459
4384
|
<xsl:variable name="table-cell-border_">
|
4460
|
-
|
4461
4385
|
</xsl:variable>
|
4462
4386
|
<xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
|
4463
4387
|
|
4464
4388
|
<xsl:attribute-set name="table-container-style">
|
4465
4389
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4466
4390
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4467
|
-
|
4468
|
-
|
4469
|
-
|
4470
|
-
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
4471
|
-
|
4391
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
4392
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
4393
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
4472
4394
|
</xsl:attribute-set> <!-- table-container-style -->
|
4473
4395
|
|
4474
4396
|
<xsl:template name="refine_table-container-style">
|
4475
4397
|
<xsl:param name="margin-side"/>
|
4476
|
-
|
4477
|
-
<xsl:
|
4478
|
-
|
4479
|
-
|
4480
|
-
<xsl:
|
4481
|
-
|
4482
|
-
|
4483
|
-
|
4484
|
-
</xsl:if>
|
4485
|
-
|
4398
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4399
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4400
|
+
</xsl:if>
|
4401
|
+
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
4402
|
+
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
4403
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4404
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4405
|
+
</xsl:if>
|
4486
4406
|
<!-- end table block-container attributes -->
|
4487
4407
|
</xsl:template> <!-- refine_table-container-style -->
|
4488
4408
|
|
4489
4409
|
<xsl:attribute-set name="table-style">
|
4490
4410
|
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
|
4491
4411
|
<xsl:attribute name="table-layout">fixed</xsl:attribute>
|
4492
|
-
|
4493
|
-
<xsl:attribute name="border"><xsl:value-of select="$table-border"/></xsl:attribute>
|
4494
|
-
|
4412
|
+
<xsl:attribute name="border"><xsl:value-of select="$table-border"/></xsl:attribute>
|
4495
4413
|
</xsl:attribute-set><!-- table-style -->
|
4496
4414
|
|
4497
4415
|
<xsl:template name="refine_table-style">
|
4498
4416
|
<xsl:param name="margin-side"/>
|
4499
|
-
|
4500
|
-
<xsl:
|
4501
|
-
|
4502
|
-
|
4503
|
-
<xsl:
|
4504
|
-
|
4505
|
-
</xsl:if>
|
4417
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4418
|
+
<xsl:attribute name="border">0.5 solid black</xsl:attribute>
|
4419
|
+
</xsl:if>
|
4420
|
+
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
4421
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
4422
|
+
</xsl:if>
|
4506
4423
|
|
4507
4424
|
<xsl:call-template name="setBordersTableArray"/>
|
4508
|
-
|
4509
4425
|
</xsl:template> <!-- refine_table-style -->
|
4510
4426
|
|
4511
4427
|
<xsl:attribute-set name="table-name-style">
|
4512
4428
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
4513
4429
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4514
|
-
|
4515
|
-
|
4516
|
-
|
4517
|
-
|
4518
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4519
|
-
|
4430
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
4431
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4432
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
4433
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4520
4434
|
</xsl:attribute-set> <!-- table-name-style -->
|
4521
4435
|
|
4522
4436
|
<xsl:template name="refine_table-name-style">
|
@@ -4524,38 +4438,31 @@
|
|
4524
4438
|
<xsl:if test="$continued = 'true'">
|
4525
4439
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4526
4440
|
</xsl:if>
|
4527
|
-
|
4528
4441
|
</xsl:template> <!-- refine_table-name-style -->
|
4529
4442
|
|
4530
4443
|
<xsl:attribute-set name="table-row-style">
|
4531
4444
|
<xsl:attribute name="min-height">4mm</xsl:attribute>
|
4532
|
-
|
4533
4445
|
</xsl:attribute-set>
|
4534
4446
|
|
4535
4447
|
<xsl:attribute-set name="table-header-row-style" use-attribute-sets="table-row-style">
|
4536
4448
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4537
|
-
|
4538
4449
|
</xsl:attribute-set>
|
4539
4450
|
|
4540
4451
|
<xsl:template name="refine_table-header-row-style">
|
4541
4452
|
|
4542
4453
|
<xsl:call-template name="setBordersTableArray"/>
|
4543
|
-
|
4544
|
-
<xsl:
|
4545
|
-
|
4546
|
-
|
4547
|
-
<xsl:
|
4548
|
-
|
4549
|
-
</xsl:if>
|
4550
|
-
|
4454
|
+
<xsl:if test="position() = last()">
|
4455
|
+
<xsl:attribute name="border-bottom"><xsl:value-of select="$table-border"/></xsl:attribute>
|
4456
|
+
</xsl:if>
|
4457
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4458
|
+
<xsl:attribute name="border-bottom">0.5 solid black</xsl:attribute>
|
4459
|
+
</xsl:if>
|
4551
4460
|
</xsl:template> <!-- refine_table-header-row-style -->
|
4552
4461
|
|
4553
4462
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
4554
|
-
|
4555
4463
|
</xsl:attribute-set>
|
4556
4464
|
|
4557
4465
|
<xsl:template name="refine_table-footer-row-style">
|
4558
|
-
|
4559
4466
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
4560
4467
|
|
4561
4468
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
@@ -4563,13 +4470,11 @@
|
|
4563
4470
|
</xsl:attribute-set>
|
4564
4471
|
|
4565
4472
|
<xsl:template name="refine_table-body-row-style">
|
4566
|
-
|
4567
|
-
<xsl:
|
4568
|
-
|
4569
|
-
</xsl:if>
|
4473
|
+
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
4474
|
+
<xsl:attribute name="min-height">0mm</xsl:attribute>
|
4475
|
+
</xsl:if>
|
4570
4476
|
|
4571
4477
|
<xsl:call-template name="setBordersTableArray"/>
|
4572
|
-
|
4573
4478
|
</xsl:template> <!-- refine_table-body-row-style -->
|
4574
4479
|
|
4575
4480
|
<xsl:attribute-set name="table-header-cell-style">
|
@@ -4577,10 +4482,8 @@
|
|
4577
4482
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
4578
4483
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
4579
4484
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
4580
|
-
|
4581
|
-
|
4582
|
-
<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
|
4583
|
-
|
4485
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
4486
|
+
<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
|
4584
4487
|
</xsl:attribute-set> <!-- table-header-cell-style -->
|
4585
4488
|
|
4586
4489
|
<xsl:template name="refine_table-header-cell-style">
|
@@ -4592,17 +4495,14 @@
|
|
4592
4495
|
</xsl:if>
|
4593
4496
|
|
4594
4497
|
<xsl:call-template name="setTableCellAttributes"/>
|
4595
|
-
|
4596
4498
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
4597
4499
|
|
4598
4500
|
<xsl:attribute-set name="table-cell-style">
|
4599
4501
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
4600
4502
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
4601
4503
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
4602
|
-
|
4603
|
-
|
4604
|
-
<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
|
4605
|
-
|
4504
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
4505
|
+
<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
|
4606
4506
|
</xsl:attribute-set> <!-- table-cell-style -->
|
4607
4507
|
|
4608
4508
|
<xsl:template name="refine_table-cell-style">
|
@@ -4610,15 +4510,12 @@
|
|
4610
4510
|
<xsl:if test="$lang = 'ar'">
|
4611
4511
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
4612
4512
|
</xsl:if>
|
4613
|
-
|
4614
|
-
|
4615
|
-
|
4616
|
-
<xsl:
|
4617
|
-
|
4618
|
-
|
4619
|
-
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
4620
|
-
<xsl:attribute name="border">none</xsl:attribute>
|
4621
|
-
</xsl:if>
|
4513
|
+
<xsl:if test="ancestor::*[local-name() = 'feedback-statement']">
|
4514
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
4515
|
+
<xsl:attribute name="padding-top">0mm</xsl:attribute>
|
4516
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
4517
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
4518
|
+
</xsl:if>
|
4622
4519
|
|
4623
4520
|
<xsl:call-template name="setBordersTableArray"/>
|
4624
4521
|
|
@@ -4629,70 +4526,54 @@
|
|
4629
4526
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
4630
4527
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
4631
4528
|
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
4632
|
-
|
4633
|
-
<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
|
4634
|
-
|
4529
|
+
<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
|
4635
4530
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
4636
4531
|
|
4637
4532
|
<xsl:template name="refine_table-footer-cell-style">
|
4638
|
-
|
4639
4533
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
4640
4534
|
|
4641
4535
|
<xsl:attribute-set name="table-note-style">
|
4642
4536
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
4643
4537
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4644
|
-
|
4645
|
-
|
4646
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4647
|
-
|
4538
|
+
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
4539
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4648
4540
|
</xsl:attribute-set><!-- table-note-style -->
|
4649
4541
|
|
4650
4542
|
<xsl:template name="refine_table-note-style">
|
4651
|
-
|
4652
4543
|
</xsl:template> <!-- refine_table-note-style -->
|
4653
4544
|
|
4654
4545
|
<xsl:attribute-set name="table-fn-style">
|
4655
4546
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4656
|
-
|
4657
|
-
|
4658
|
-
|
4659
|
-
|
4660
|
-
|
4661
|
-
|
4662
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4663
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4664
|
-
|
4547
|
+
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
4548
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4549
|
+
<xsl:attribute name="text-indent">-3mm</xsl:attribute>
|
4550
|
+
<xsl:attribute name="margin-left">3mm</xsl:attribute>
|
4551
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4552
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4665
4553
|
</xsl:attribute-set> <!-- table-fn-style -->
|
4666
4554
|
|
4667
4555
|
<xsl:template name="refine_table-fn-style">
|
4668
|
-
|
4669
4556
|
</xsl:template>
|
4670
4557
|
|
4671
4558
|
<xsl:attribute-set name="table-fn-number-style">
|
4672
4559
|
<!-- <xsl:attribute name="padding-right">5mm</xsl:attribute> -->
|
4673
|
-
|
4674
4560
|
</xsl:attribute-set> <!-- table-fn-number-style -->
|
4675
4561
|
|
4676
4562
|
<xsl:attribute-set name="table-fmt-fn-label-style">
|
4677
4563
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4678
|
-
|
4679
|
-
|
4680
|
-
<xsl:attribute name="font-size">6.5pt</xsl:attribute>
|
4681
|
-
|
4564
|
+
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
4565
|
+
<xsl:attribute name="font-size">6.5pt</xsl:attribute>
|
4682
4566
|
</xsl:attribute-set> <!-- table-fmt-fn-label-style -->
|
4683
4567
|
|
4684
4568
|
<xsl:template name="refine_table-fmt-fn-label-style">
|
4685
|
-
|
4686
4569
|
</xsl:template>
|
4687
4570
|
|
4688
4571
|
<xsl:attribute-set name="fn-container-body-style">
|
4689
4572
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
4690
4573
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
4691
|
-
|
4692
4574
|
</xsl:attribute-set>
|
4693
4575
|
|
4694
4576
|
<xsl:attribute-set name="table-fn-body-style">
|
4695
|
-
|
4696
4577
|
</xsl:attribute-set>
|
4697
4578
|
|
4698
4579
|
<xsl:attribute-set name="figure-fn-number-style">
|
@@ -4702,17 +4583,14 @@
|
|
4702
4583
|
<xsl:attribute-set name="figure-fmt-fn-label-style">
|
4703
4584
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4704
4585
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4705
|
-
|
4706
4586
|
</xsl:attribute-set> <!-- figure-fmt-fn-label-style -->
|
4707
4587
|
|
4708
4588
|
<xsl:template name="refine_figure-fmt-fn-label-style">
|
4709
|
-
|
4710
4589
|
</xsl:template>
|
4711
4590
|
|
4712
4591
|
<xsl:attribute-set name="figure-fn-body-style">
|
4713
4592
|
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4714
4593
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4715
|
-
|
4716
4594
|
</xsl:attribute-set>
|
4717
4595
|
<!-- ========================== -->
|
4718
4596
|
<!-- END Table styles -->
|
@@ -4723,49 +4601,38 @@
|
|
4723
4601
|
<!-- ========================== -->
|
4724
4602
|
|
4725
4603
|
<xsl:attribute-set name="dl-block-style">
|
4726
|
-
|
4727
4604
|
</xsl:attribute-set>
|
4728
4605
|
|
4729
4606
|
<xsl:attribute-set name="dt-row-style">
|
4730
|
-
|
4731
4607
|
</xsl:attribute-set>
|
4732
4608
|
|
4733
4609
|
<xsl:attribute-set name="dt-cell-style">
|
4734
|
-
|
4735
4610
|
</xsl:attribute-set>
|
4736
4611
|
|
4737
4612
|
<xsl:template name="refine_dt-cell-style">
|
4738
|
-
|
4739
4613
|
</xsl:template> <!-- refine_dt-cell-style -->
|
4740
4614
|
|
4741
4615
|
<xsl:attribute-set name="dt-block-style">
|
4742
4616
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
4743
|
-
|
4744
|
-
|
4745
|
-
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
4746
|
-
|
4617
|
+
<xsl:attribute name="margin-left">2mm</xsl:attribute>
|
4618
|
+
<xsl:attribute name="line-height">1.2</xsl:attribute>
|
4747
4619
|
</xsl:attribute-set>
|
4748
4620
|
|
4749
4621
|
<xsl:template name="refine_dt-block-style">
|
4750
|
-
|
4751
4622
|
</xsl:template> <!-- refine_dt-block-style -->
|
4752
4623
|
|
4753
4624
|
<xsl:attribute-set name="dl-name-style">
|
4754
4625
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4755
4626
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4756
|
-
|
4757
|
-
|
4758
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4759
|
-
|
4627
|
+
<xsl:attribute name="font-famuily">Arial</xsl:attribute>
|
4628
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4760
4629
|
</xsl:attribute-set> <!-- dl-name-style -->
|
4761
4630
|
|
4762
4631
|
<xsl:attribute-set name="dd-cell-style">
|
4763
4632
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
4764
|
-
|
4765
4633
|
</xsl:attribute-set>
|
4766
4634
|
|
4767
4635
|
<xsl:template name="refine_dd-cell-style">
|
4768
|
-
|
4769
4636
|
</xsl:template> <!-- refine_dd-cell-style -->
|
4770
4637
|
|
4771
4638
|
<!-- ========================== -->
|
@@ -4773,241 +4640,184 @@
|
|
4773
4640
|
<!-- ========================== -->
|
4774
4641
|
|
4775
4642
|
<xsl:attribute-set name="appendix-style">
|
4776
|
-
|
4777
4643
|
</xsl:attribute-set>
|
4778
4644
|
|
4779
4645
|
<xsl:attribute-set name="appendix-example-style">
|
4780
|
-
|
4781
4646
|
</xsl:attribute-set>
|
4782
4647
|
|
4783
4648
|
<xsl:attribute-set name="xref-style">
|
4784
|
-
|
4785
|
-
|
4786
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4787
|
-
|
4649
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
4650
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4788
4651
|
</xsl:attribute-set>
|
4789
4652
|
|
4790
4653
|
<xsl:attribute-set name="eref-style">
|
4791
|
-
|
4792
|
-
|
4793
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4794
|
-
|
4654
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
4655
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4795
4656
|
</xsl:attribute-set>
|
4796
4657
|
|
4797
4658
|
<xsl:template name="refine_eref-style">
|
4798
4659
|
<xsl:variable name="citeas" select="java:replaceAll(java:java.lang.String.new(@citeas),'^\[?(.+?)\]?$','$1')"/> <!-- remove leading and trailing brackets -->
|
4799
4660
|
<xsl:variable name="text" select="normalize-space()"/>
|
4800
|
-
|
4801
|
-
<xsl:
|
4802
|
-
|
4803
|
-
|
4804
|
-
</xsl:if>
|
4805
|
-
|
4661
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4662
|
+
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
4663
|
+
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
4664
|
+
</xsl:if>
|
4806
4665
|
</xsl:template> <!-- refine_eref-style -->
|
4807
4666
|
|
4808
4667
|
<xsl:attribute-set name="note-style">
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4813
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4814
|
-
|
4668
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
4669
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
4670
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4671
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4815
4672
|
</xsl:attribute-set>
|
4816
4673
|
|
4817
4674
|
<xsl:template name="refine_note-style">
|
4818
|
-
|
4819
4675
|
</xsl:template>
|
4820
4676
|
|
4821
4677
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
4822
4678
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
4823
4679
|
|
4824
4680
|
<xsl:attribute-set name="note-name-style">
|
4825
|
-
|
4826
4681
|
</xsl:attribute-set>
|
4827
4682
|
|
4828
4683
|
<xsl:template name="refine_note-name-style">
|
4829
|
-
|
4830
4684
|
</xsl:template> <!-- refine_note-name-style -->
|
4831
4685
|
|
4832
4686
|
<xsl:attribute-set name="table-note-name-style">
|
4833
4687
|
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
4834
|
-
|
4835
4688
|
</xsl:attribute-set>
|
4836
4689
|
|
4837
4690
|
<xsl:template name="refine_table-note-name-style">
|
4838
|
-
|
4839
4691
|
</xsl:template> <!-- refine_table-note-name-style -->
|
4840
4692
|
|
4841
4693
|
<xsl:attribute-set name="note-p-style">
|
4842
|
-
|
4843
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4844
|
-
|
4694
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4845
4695
|
</xsl:attribute-set>
|
4846
4696
|
|
4847
4697
|
<xsl:attribute-set name="termnote-style">
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
4851
|
-
|
4852
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4853
|
-
|
4698
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
4699
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
4700
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4701
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
4854
4702
|
</xsl:attribute-set>
|
4855
4703
|
|
4856
4704
|
<xsl:template name="refine_termnote-style">
|
4857
|
-
|
4858
4705
|
</xsl:template> <!-- refine_termnote-style -->
|
4859
4706
|
|
4860
4707
|
<xsl:attribute-set name="termnote-name-style">
|
4861
|
-
|
4862
4708
|
</xsl:attribute-set>
|
4863
4709
|
|
4864
4710
|
<xsl:template name="refine_termnote-name-style">
|
4865
|
-
|
4866
|
-
<!-- <xsl:if test="$namespace = 'ieee'">
|
4867
|
-
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
4868
|
-
</xsl:if> -->
|
4869
|
-
|
4870
4711
|
</xsl:template>
|
4871
4712
|
|
4872
4713
|
<xsl:attribute-set name="termnote-p-style">
|
4873
|
-
|
4874
4714
|
</xsl:attribute-set>
|
4875
4715
|
|
4876
4716
|
<xsl:attribute-set name="quote-style">
|
4877
4717
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
4878
4718
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
4879
|
-
|
4880
4719
|
</xsl:attribute-set>
|
4881
4720
|
|
4882
4721
|
<xsl:template name="refine_quote-style">
|
4883
|
-
|
4884
4722
|
</xsl:template>
|
4885
4723
|
|
4886
4724
|
<xsl:attribute-set name="quote-source-style">
|
4887
4725
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
4888
|
-
|
4889
4726
|
</xsl:attribute-set>
|
4890
4727
|
|
4891
4728
|
<xsl:attribute-set name="termsource-style">
|
4892
|
-
|
4893
4729
|
</xsl:attribute-set>
|
4894
4730
|
|
4895
4731
|
<xsl:template name="refine_termsource-style">
|
4896
|
-
|
4897
4732
|
</xsl:template> <!-- refine_termsource-style -->
|
4898
4733
|
|
4899
4734
|
<xsl:attribute-set name="termsource-text-style">
|
4900
|
-
|
4901
4735
|
</xsl:attribute-set>
|
4902
4736
|
|
4903
4737
|
<xsl:attribute-set name="origin-style">
|
4904
|
-
|
4905
4738
|
</xsl:attribute-set>
|
4906
4739
|
|
4907
4740
|
<xsl:attribute-set name="term-style">
|
4908
|
-
|
4909
4741
|
</xsl:attribute-set>
|
4910
4742
|
|
4911
4743
|
<xsl:attribute-set name="term-name-style">
|
4912
4744
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4913
4745
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4914
|
-
|
4915
4746
|
</xsl:attribute-set>
|
4916
4747
|
|
4917
4748
|
<xsl:attribute-set name="figure-block-style">
|
4918
4749
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4919
|
-
|
4920
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4921
|
-
|
4750
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4922
4751
|
</xsl:attribute-set>
|
4923
4752
|
|
4924
4753
|
<xsl:template name="refine_figure-block-style">
|
4925
|
-
|
4926
4754
|
</xsl:template>
|
4927
4755
|
|
4928
4756
|
<xsl:attribute-set name="figure-style">
|
4929
|
-
|
4930
4757
|
</xsl:attribute-set>
|
4931
4758
|
|
4932
4759
|
<xsl:attribute-set name="figure-name-style">
|
4933
4760
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
4761
|
+
<xsl:attribute name="font-family">Arial</xsl:attribute>
|
4762
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
4763
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
4764
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
4765
|
+
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
4766
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4767
|
+
</xsl:attribute-set>
|
4934
4768
|
|
4935
|
-
|
4936
|
-
|
4937
|
-
<xsl:attribute name="
|
4938
|
-
<xsl:attribute name="
|
4939
|
-
|
4940
|
-
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
4941
|
-
|
4942
|
-
</xsl:attribute-set>
|
4943
|
-
|
4944
|
-
<xsl:template name="refine_figure-name-style">
|
4945
|
-
|
4946
|
-
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4947
|
-
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
4948
|
-
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
4949
|
-
</xsl:if>
|
4950
|
-
|
4769
|
+
<xsl:template name="refine_figure-name-style">
|
4770
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4771
|
+
<xsl:attribute name="font-size">inherit</xsl:attribute>
|
4772
|
+
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
4773
|
+
</xsl:if>
|
4951
4774
|
</xsl:template> <!-- refine_figure-name-style -->
|
4952
4775
|
|
4953
4776
|
<xsl:attribute-set name="figure-source-style">
|
4954
|
-
|
4955
4777
|
</xsl:attribute-set>
|
4956
4778
|
|
4957
4779
|
<!-- Formula's styles -->
|
4958
4780
|
<xsl:attribute-set name="formula-style">
|
4959
4781
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4960
4782
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4961
|
-
|
4962
4783
|
</xsl:attribute-set> <!-- formula-style -->
|
4963
4784
|
|
4964
4785
|
<xsl:attribute-set name="formula-stem-block-style">
|
4965
4786
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
4966
|
-
|
4967
|
-
|
4968
|
-
<xsl:attribute name="margin-left">1mm</xsl:attribute>
|
4969
|
-
|
4787
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
4788
|
+
<xsl:attribute name="margin-left">1mm</xsl:attribute>
|
4970
4789
|
</xsl:attribute-set> <!-- formula-stem-block-style -->
|
4971
4790
|
|
4972
4791
|
<xsl:template name="refine_formula-stem-block-style">
|
4973
|
-
|
4974
4792
|
</xsl:template> <!-- refine_formula-stem-block-style -->
|
4975
4793
|
|
4976
4794
|
<xsl:attribute-set name="formula-stem-number-style">
|
4977
4795
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
4978
|
-
|
4979
4796
|
</xsl:attribute-set> <!-- formula-stem-number-style -->
|
4980
4797
|
<!-- End Formula's styles -->
|
4981
4798
|
|
4982
4799
|
<xsl:template name="refine_formula-stem-number-style">
|
4983
|
-
|
4984
4800
|
</xsl:template>
|
4985
4801
|
|
4986
4802
|
<xsl:attribute-set name="image-style">
|
4987
4803
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
4988
4804
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
4989
|
-
|
4990
4805
|
</xsl:attribute-set>
|
4991
4806
|
|
4992
4807
|
<xsl:template name="refine_image-style">
|
4993
|
-
|
4994
4808
|
</xsl:template>
|
4995
4809
|
|
4996
4810
|
<xsl:attribute-set name="figure-pseudocode-p-style">
|
4997
|
-
|
4998
4811
|
</xsl:attribute-set>
|
4999
4812
|
|
5000
4813
|
<xsl:attribute-set name="image-graphic-style">
|
5001
4814
|
<xsl:attribute name="width">100%</xsl:attribute>
|
5002
4815
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
5003
4816
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
5004
|
-
|
5005
|
-
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
5006
|
-
|
4817
|
+
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
5007
4818
|
</xsl:attribute-set>
|
5008
4819
|
|
5009
4820
|
<xsl:attribute-set name="tt-style">
|
5010
|
-
|
5011
4821
|
</xsl:attribute-set>
|
5012
4822
|
|
5013
4823
|
<xsl:attribute-set name="sourcecode-name-style">
|
@@ -5016,50 +4826,41 @@
|
|
5016
4826
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
5017
4827
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5018
4828
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
5019
|
-
|
5020
4829
|
</xsl:attribute-set>
|
5021
4830
|
|
5022
4831
|
<xsl:attribute-set name="preferred-block-style">
|
5023
|
-
|
5024
4832
|
</xsl:attribute-set>
|
5025
4833
|
|
5026
4834
|
<xsl:attribute-set name="preferred-term-style">
|
5027
4835
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5028
4836
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5029
|
-
|
5030
4837
|
</xsl:attribute-set>
|
5031
4838
|
|
5032
4839
|
<xsl:attribute-set name="domain-style">
|
5033
|
-
|
5034
4840
|
</xsl:attribute-set>
|
5035
4841
|
|
5036
4842
|
<xsl:attribute-set name="admitted-style">
|
5037
|
-
|
5038
4843
|
</xsl:attribute-set>
|
5039
4844
|
|
5040
4845
|
<xsl:attribute-set name="deprecates-style">
|
5041
|
-
|
5042
4846
|
</xsl:attribute-set>
|
5043
4847
|
|
5044
4848
|
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
5045
4849
|
</xsl:attribute-set>
|
5046
4850
|
|
5047
4851
|
<xsl:attribute-set name="definition-style">
|
5048
|
-
|
5049
4852
|
</xsl:attribute-set>
|
5050
4853
|
|
5051
4854
|
<xsl:variable name="color-added-text">
|
5052
4855
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
5053
4856
|
</xsl:variable>
|
5054
4857
|
<xsl:attribute-set name="add-style">
|
5055
|
-
|
5056
|
-
|
5057
|
-
|
5058
|
-
<!-- <xsl:attribute name="color">black</xsl:attribute>
|
4858
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
4859
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
4860
|
+
<!-- <xsl:attribute name="color">black</xsl:attribute>
|
5059
4861
|
<xsl:attribute name="background-color"><xsl:value-of select="$color-added-text"/></xsl:attribute>
|
5060
4862
|
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
5061
4863
|
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
|
5062
|
-
|
5063
4864
|
</xsl:attribute-set>
|
5064
4865
|
|
5065
4866
|
<xsl:variable name="add-style">
|
@@ -5079,62 +4880,48 @@
|
|
5079
4880
|
|
5080
4881
|
<xsl:attribute-set name="mathml-style">
|
5081
4882
|
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
|
5082
|
-
|
5083
4883
|
</xsl:attribute-set>
|
5084
4884
|
|
5085
4885
|
<xsl:template name="refine_mathml-style">
|
5086
|
-
|
5087
4886
|
</xsl:template>
|
5088
4887
|
|
5089
4888
|
<xsl:attribute-set name="list-style">
|
5090
|
-
|
5091
|
-
|
5092
|
-
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
5093
|
-
|
4889
|
+
<xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
|
4890
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
5094
4891
|
</xsl:attribute-set> <!-- list-style -->
|
5095
4892
|
|
5096
4893
|
<xsl:template name="refine_list-style">
|
5097
|
-
|
5098
4894
|
</xsl:template> <!-- refine_list-style -->
|
5099
4895
|
|
5100
4896
|
<xsl:attribute-set name="list-name-style">
|
5101
4897
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5102
|
-
|
5103
|
-
|
5104
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5105
|
-
|
4898
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
4899
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
5106
4900
|
</xsl:attribute-set> <!-- list-name-style -->
|
5107
4901
|
|
5108
4902
|
<xsl:attribute-set name="list-item-style">
|
5109
|
-
|
5110
4903
|
</xsl:attribute-set>
|
5111
4904
|
|
5112
4905
|
<xsl:template name="refine_list-item-style">
|
5113
|
-
|
5114
4906
|
</xsl:template> <!-- refine_list-item-style -->
|
5115
4907
|
|
5116
4908
|
<xsl:attribute-set name="list-item-label-style">
|
5117
|
-
|
5118
4909
|
</xsl:attribute-set>
|
5119
4910
|
|
5120
4911
|
<xsl:template name="refine_list-item-label-style">
|
5121
|
-
|
5122
|
-
<xsl:
|
5123
|
-
|
5124
|
-
|
5125
|
-
<xsl:
|
5126
|
-
<xsl:attribute name="line-height">1.4</xsl:attribute>
|
5127
|
-
</xsl:if>
|
4912
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4913
|
+
<xsl:attribute name="color">rgb(128,128,128)</xsl:attribute>
|
4914
|
+
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
4915
|
+
<xsl:if test=".//ieee:fn">
|
4916
|
+
<xsl:attribute name="line-height">1.4</xsl:attribute>
|
5128
4917
|
</xsl:if>
|
5129
|
-
|
4918
|
+
</xsl:if>
|
5130
4919
|
</xsl:template> <!-- refine_list-item-label-style -->
|
5131
4920
|
|
5132
4921
|
<xsl:attribute-set name="list-item-body-style">
|
5133
|
-
|
5134
4922
|
</xsl:attribute-set>
|
5135
4923
|
|
5136
4924
|
<xsl:template name="refine_list-item-body-style">
|
5137
|
-
|
5138
4925
|
</xsl:template> <!-- refine_list-item-body-style -->
|
5139
4926
|
|
5140
4927
|
<xsl:attribute-set name="toc-style">
|
@@ -5144,14 +4931,12 @@
|
|
5144
4931
|
<xsl:attribute-set name="fn-reference-style">
|
5145
4932
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
5146
4933
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
5147
|
-
|
5148
|
-
|
5149
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4934
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
4935
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5150
4936
|
|
5151
4937
|
</xsl:attribute-set>
|
5152
4938
|
|
5153
4939
|
<xsl:template name="refine_fn-reference-style">
|
5154
|
-
|
5155
4940
|
</xsl:template> <!-- refine_fn-reference-style -->
|
5156
4941
|
|
5157
4942
|
<xsl:attribute-set name="fn-style">
|
@@ -5160,10 +4945,8 @@
|
|
5160
4945
|
|
5161
4946
|
<xsl:attribute-set name="fn-num-style">
|
5162
4947
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
5163
|
-
|
5164
|
-
|
5165
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5166
|
-
|
4948
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
4949
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
5167
4950
|
</xsl:attribute-set>
|
5168
4951
|
|
5169
4952
|
<xsl:attribute-set name="fn-body-style">
|
@@ -5171,140 +4954,104 @@
|
|
5171
4954
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
5172
4955
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
5173
4956
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
5174
|
-
|
5175
|
-
|
5176
|
-
<!-- <xsl:attribute name="margin-bottom">5pt</xsl:attribute> -->
|
5177
|
-
|
4957
|
+
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
4958
|
+
<!-- <xsl:attribute name="margin-bottom">5pt</xsl:attribute> -->
|
5178
4959
|
</xsl:attribute-set>
|
5179
4960
|
|
5180
4961
|
<xsl:template name="refine_fn-body-style">
|
5181
|
-
|
5182
|
-
<xsl:
|
5183
|
-
|
5184
|
-
|
5185
|
-
</xsl:if>
|
5186
|
-
|
4962
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4963
|
+
<xsl:attribute name="font-size">7pt</xsl:attribute>
|
4964
|
+
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
4965
|
+
</xsl:if>
|
5187
4966
|
</xsl:template> <!-- refine_fn-body-style -->
|
5188
4967
|
|
5189
4968
|
<xsl:attribute-set name="fn-body-num-style">
|
5190
4969
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
5191
|
-
|
5192
|
-
|
5193
|
-
|
5194
|
-
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5195
|
-
|
4970
|
+
<xsl:attribute name="font-size">50%</xsl:attribute>
|
4971
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4972
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5196
4973
|
</xsl:attribute-set> <!-- fn-body-num-style -->
|
5197
4974
|
|
5198
4975
|
<xsl:template name="refine_fn-body-num-style">
|
5199
|
-
|
5200
|
-
<xsl:
|
5201
|
-
|
5202
|
-
</xsl:if>
|
5203
|
-
|
4976
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
4977
|
+
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
4978
|
+
</xsl:if>
|
5204
4979
|
</xsl:template> <!-- refine_fn-body-num-style -->
|
5205
4980
|
|
5206
4981
|
<!-- admonition -->
|
5207
4982
|
<xsl:attribute-set name="admonition-style">
|
5208
|
-
|
5209
|
-
|
5210
|
-
|
5211
|
-
|
5212
|
-
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
5213
|
-
|
4983
|
+
<xsl:attribute name="border">0.5pt solid black</xsl:attribute>
|
4984
|
+
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
4985
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
4986
|
+
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
5214
4987
|
</xsl:attribute-set> <!-- admonition-style -->
|
5215
4988
|
|
5216
4989
|
<xsl:attribute-set name="admonition-container-style">
|
5217
4990
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
5218
4991
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
5219
|
-
|
5220
|
-
|
5221
|
-
<xsl:attribute name="padding-bottom">2mm</xsl:attribute>
|
5222
|
-
|
4992
|
+
<xsl:attribute name="padding">1mm</xsl:attribute>
|
4993
|
+
<xsl:attribute name="padding-bottom">2mm</xsl:attribute>
|
5223
4994
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
5224
4995
|
|
5225
4996
|
<xsl:attribute-set name="admonition-name-style">
|
5226
4997
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5227
|
-
|
5228
4998
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
5229
4999
|
|
5230
5000
|
<xsl:attribute-set name="admonition-p-style">
|
5231
|
-
|
5232
|
-
<xsl:attribute name="text-align">justify</xsl:attribute>
|
5233
|
-
|
5001
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
5234
5002
|
</xsl:attribute-set> <!-- admonition-p-style -->
|
5235
5003
|
<!-- end admonition -->
|
5236
5004
|
|
5237
5005
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
5238
5006
|
<xsl:attribute-set name="bibitem-normative-style">
|
5239
|
-
|
5240
|
-
|
5241
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5242
|
-
|
5007
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
5008
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5243
5009
|
</xsl:attribute-set> <!-- bibitem-normative-style -->
|
5244
5010
|
|
5245
5011
|
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
|
5246
5012
|
<xsl:attribute-set name="bibitem-normative-list-style">
|
5247
5013
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
5248
5014
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5249
|
-
|
5250
|
-
<!-- <xsl:if test="$namespace = 'ieee'">
|
5251
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5252
|
-
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
|
5253
|
-
</xsl:if> -->
|
5254
|
-
|
5255
5015
|
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
|
5256
5016
|
|
5257
5017
|
<xsl:attribute-set name="bibitem-non-normative-style">
|
5258
|
-
|
5259
5018
|
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
|
5260
5019
|
|
5261
5020
|
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
|
5262
5021
|
<xsl:attribute-set name="bibitem-non-normative-list-style">
|
5263
5022
|
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
5264
5023
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5265
|
-
|
5266
|
-
|
5267
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5268
|
-
|
5024
|
+
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
|
5025
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5269
5026
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
5270
5027
|
|
5271
5028
|
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
5272
5029
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5273
|
-
|
5274
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5275
|
-
|
5030
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5276
5031
|
</xsl:attribute-set>
|
5277
5032
|
|
5278
5033
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
5279
5034
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
5280
|
-
|
5281
|
-
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
5282
|
-
|
5035
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
5283
5036
|
</xsl:attribute-set>
|
5284
5037
|
|
5285
5038
|
<xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
5286
|
-
|
5287
|
-
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
5288
|
-
|
5039
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
5289
5040
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
|
5290
5041
|
|
5291
5042
|
<!-- footnote reference number for bibitem, in the text -->
|
5292
5043
|
<xsl:attribute-set name="bibitem-note-fn-style">
|
5293
5044
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
5294
5045
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
5295
|
-
|
5296
|
-
|
5297
|
-
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
5298
|
-
|
5046
|
+
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
5047
|
+
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
5299
5048
|
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
5300
5049
|
|
5301
5050
|
<!-- footnote number on the page bottom -->
|
5302
5051
|
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
5303
5052
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
5304
|
-
|
5305
|
-
|
5306
|
-
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5307
|
-
|
5053
|
+
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
|
5054
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
5308
5055
|
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
5309
5056
|
|
5310
5057
|
<!-- footnote body (text) on the page bottom -->
|
@@ -5312,14 +5059,11 @@
|
|
5312
5059
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
5313
5060
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
5314
5061
|
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
5315
|
-
|
5316
|
-
|
5317
|
-
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
5318
|
-
|
5062
|
+
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
5063
|
+
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
5319
5064
|
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
5320
5065
|
|
5321
5066
|
<xsl:attribute-set name="references-non-normative-style">
|
5322
|
-
|
5323
5067
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
5324
5068
|
|
5325
5069
|
<!-- Highlight.js syntax GitHub styles -->
|
@@ -5479,12 +5223,10 @@
|
|
5479
5223
|
<!-- Index section styles -->
|
5480
5224
|
<xsl:attribute-set name="indexsect-title-style">
|
5481
5225
|
<xsl:attribute name="role">H1</xsl:attribute>
|
5482
|
-
|
5483
5226
|
</xsl:attribute-set>
|
5484
5227
|
|
5485
5228
|
<xsl:attribute-set name="indexsect-clause-title-style">
|
5486
5229
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
5487
|
-
|
5488
5230
|
</xsl:attribute-set>
|
5489
5231
|
|
5490
5232
|
<!-- End Index section styles -->
|
@@ -5561,47 +5303,47 @@
|
|
5561
5303
|
</xsl:template>
|
5562
5304
|
|
5563
5305
|
<xsl:template name="processTables_Contents">
|
5564
|
-
<tables>
|
5306
|
+
<mn:tables>
|
5565
5307
|
<xsl:for-each select="//*[local-name() = 'table'][not(ancestor::*[local-name() = 'metanorma-extension'])][@id and *[local-name() = 'name'] and normalize-space(@id) != '']">
|
5566
5308
|
<xsl:choose>
|
5567
5309
|
<xsl:when test="*[local-name() = 'fmt-name']">
|
5568
5310
|
<xsl:variable name="fmt_name">
|
5569
5311
|
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_step1"/>
|
5570
5312
|
</xsl:variable>
|
5571
|
-
<table id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
5313
|
+
<mn:table id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
5572
5314
|
<xsl:copy-of select="$fmt_name"/>
|
5573
|
-
</table>
|
5315
|
+
</mn:table>
|
5574
5316
|
</xsl:when>
|
5575
5317
|
<xsl:otherwise>
|
5576
|
-
<table id="{@id}" alt-text="{*[local-name() = 'name']}">
|
5318
|
+
<mn:table id="{@id}" alt-text="{*[local-name() = 'name']}">
|
5577
5319
|
<xsl:copy-of select="*[local-name() = 'name']"/>
|
5578
|
-
</table>
|
5320
|
+
</mn:table>
|
5579
5321
|
</xsl:otherwise>
|
5580
5322
|
</xsl:choose>
|
5581
5323
|
</xsl:for-each>
|
5582
|
-
</tables>
|
5324
|
+
</mn:tables>
|
5583
5325
|
</xsl:template>
|
5584
5326
|
|
5585
5327
|
<xsl:template name="processFigures_Contents">
|
5586
|
-
<figures>
|
5328
|
+
<mn:figures>
|
5587
5329
|
<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) != '']">
|
5588
5330
|
<xsl:choose>
|
5589
5331
|
<xsl:when test="*[local-name() = 'fmt-name']">
|
5590
5332
|
<xsl:variable name="fmt_name">
|
5591
5333
|
<xsl:apply-templates select="*[local-name() = 'fmt-name']" mode="update_xml_step1"/>
|
5592
5334
|
</xsl:variable>
|
5593
|
-
<figure id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
5335
|
+
<mn:figure id="{@id}" alt-text="{normalize-space($fmt_name)}">
|
5594
5336
|
<xsl:copy-of select="$fmt_name"/>
|
5595
|
-
</figure>
|
5337
|
+
</mn:figure>
|
5596
5338
|
</xsl:when>
|
5597
5339
|
<xsl:otherwise>
|
5598
|
-
<figure id="{@id}" alt-text="{*[local-name() = 'name']}">
|
5340
|
+
<mn:figure id="{@id}" alt-text="{*[local-name() = 'name']}">
|
5599
5341
|
<xsl:copy-of select="*[local-name() = 'name']"/>
|
5600
|
-
</figure>
|
5342
|
+
</mn:figure>
|
5601
5343
|
</xsl:otherwise>
|
5602
5344
|
</xsl:choose>
|
5603
5345
|
</xsl:for-each>
|
5604
|
-
</figures>
|
5346
|
+
</mn:figures>
|
5605
5347
|
</xsl:template>
|
5606
5348
|
|
5607
5349
|
<xsl:template name="processPrefaceSectionsDefault">
|
@@ -5620,7 +5362,6 @@
|
|
5620
5362
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
5621
5363
|
<xsl:sort select="@displayorder" data-type="number"/>
|
5622
5364
|
<xsl:apply-templates select="."/>
|
5623
|
-
|
5624
5365
|
</xsl:for-each>
|
5625
5366
|
|
5626
5367
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
@@ -5727,7 +5468,6 @@
|
|
5727
5468
|
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
5728
5469
|
<xsl:sort select="@displayorder" data-type="number"/>
|
5729
5470
|
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
5730
|
-
|
5731
5471
|
</xsl:for-each>
|
5732
5472
|
</xsl:element>
|
5733
5473
|
</xsl:element>
|
@@ -5861,7 +5601,6 @@
|
|
5861
5601
|
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak">
|
5862
5602
|
<xsl:with-param name="page_sequence_at_top">true</xsl:with-param>
|
5863
5603
|
</xsl:apply-templates>
|
5864
|
-
|
5865
5604
|
</xsl:for-each>
|
5866
5605
|
</xsl:element>
|
5867
5606
|
|
@@ -5901,19 +5640,17 @@
|
|
5901
5640
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
|
5902
5641
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
|
5903
5642
|
<xsl:template match="text()" name="text">
|
5904
|
-
|
5905
|
-
|
5906
|
-
|
5907
|
-
|
5908
|
-
|
5909
|
-
|
5910
|
-
|
5911
|
-
|
5912
|
-
|
5913
|
-
|
5914
|
-
|
5915
|
-
</xsl:choose>
|
5916
|
-
|
5643
|
+
<xsl:choose>
|
5644
|
+
<xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when>
|
5645
|
+
<xsl:otherwise>
|
5646
|
+
<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))"/>
|
5647
|
+
<xsl:call-template name="replace_fo_inline_tags">
|
5648
|
+
<xsl:with-param name="tag_open" select="$tag_fo_inline_keep-together_within-line_open"/>
|
5649
|
+
<xsl:with-param name="tag_close" select="$tag_fo_inline_keep-together_within-line_close"/>
|
5650
|
+
<xsl:with-param name="text" select="$text"/>
|
5651
|
+
</xsl:call-template>
|
5652
|
+
</xsl:otherwise>
|
5653
|
+
</xsl:choose>
|
5917
5654
|
</xsl:template>
|
5918
5655
|
|
5919
5656
|
<xsl:template name="replace_fo_inline_tags">
|
@@ -5967,7 +5704,7 @@
|
|
5967
5704
|
<xsl:with-param name="keep_sep">true</xsl:with-param>
|
5968
5705
|
</xsl:call-template>
|
5969
5706
|
</xsl:variable>
|
5970
|
-
<xsl:for-each select="xalan:nodeset($items)/item">
|
5707
|
+
<xsl:for-each select="xalan:nodeset($items)/mn:item">
|
5971
5708
|
<xsl:choose>
|
5972
5709
|
<xsl:when test=". = $sep">
|
5973
5710
|
<xsl:value-of select="$sep"/><xsl:value-of select="$zero_width_space"/>
|
@@ -5996,17 +5733,13 @@
|
|
5996
5733
|
</xsl:template> <!-- copyright-statement -->
|
5997
5734
|
|
5998
5735
|
<xsl:template match="*[local-name()='copyright-statement']//*[local-name()='title']">
|
5999
|
-
|
6000
|
-
|
6001
|
-
<xsl:call-template name="title"/>
|
6002
|
-
|
5736
|
+
<!-- process in the template 'title' -->
|
5737
|
+
<xsl:call-template name="title"/>
|
6003
5738
|
</xsl:template> <!-- copyright-statement//title -->
|
6004
5739
|
|
6005
5740
|
<xsl:template match="*[local-name()='copyright-statement']//*[local-name()='p']">
|
6006
|
-
|
6007
|
-
|
6008
|
-
<xsl:call-template name="paragraph"/>
|
6009
|
-
|
5741
|
+
<!-- process in the template 'paragraph' -->
|
5742
|
+
<xsl:call-template name="paragraph"/>
|
6010
5743
|
</xsl:template> <!-- copyright-statement//p -->
|
6011
5744
|
|
6012
5745
|
<xsl:template match="*[local-name()='license-statement']">
|
@@ -6016,42 +5749,34 @@
|
|
6016
5749
|
</xsl:template> <!-- license-statement -->
|
6017
5750
|
|
6018
5751
|
<xsl:template match="*[local-name()='license-statement']//*[local-name()='title']">
|
6019
|
-
|
6020
|
-
|
6021
|
-
<xsl:call-template name="title"/>
|
6022
|
-
|
5752
|
+
<!-- process in the template 'title' -->
|
5753
|
+
<xsl:call-template name="title"/>
|
6023
5754
|
</xsl:template> <!-- license-statement/title -->
|
6024
5755
|
|
6025
5756
|
<xsl:template match="*[local-name()='license-statement']//*[local-name()='p']">
|
6026
|
-
|
6027
|
-
|
6028
|
-
<xsl:call-template name="paragraph"/>
|
6029
|
-
|
5757
|
+
<!-- process in the template 'paragraph' -->
|
5758
|
+
<xsl:call-template name="paragraph"/>
|
6030
5759
|
</xsl:template> <!-- license-statement/p -->
|
6031
5760
|
|
6032
5761
|
<xsl:template match="*[local-name()='legal-statement']">
|
6033
5762
|
<xsl:param name="isLegacy">false</xsl:param>
|
6034
5763
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
6035
|
-
|
6036
5764
|
<xsl:apply-templates/>
|
6037
5765
|
</fo:block>
|
6038
5766
|
</xsl:template> <!-- legal-statement -->
|
6039
5767
|
|
6040
5768
|
<xsl:template match="*[local-name()='legal-statement']//*[local-name()='title']">
|
6041
|
-
|
6042
|
-
|
6043
|
-
<xsl:call-template name="title"/>
|
5769
|
+
<!-- process in the template 'title' -->
|
5770
|
+
<xsl:call-template name="title"/>
|
6044
5771
|
|
6045
5772
|
</xsl:template> <!-- legal-statement/title -->
|
6046
5773
|
|
6047
5774
|
<xsl:template match="*[local-name()='legal-statement']//*[local-name()='p']">
|
6048
5775
|
<xsl:param name="margin"/>
|
6049
|
-
|
6050
|
-
|
6051
|
-
|
6052
|
-
|
6053
|
-
</xsl:call-template>
|
6054
|
-
|
5776
|
+
<!-- process in the template 'paragraph' -->
|
5777
|
+
<xsl:call-template name="paragraph">
|
5778
|
+
<xsl:with-param name="margin" select="$margin"/>
|
5779
|
+
</xsl:call-template>
|
6055
5780
|
</xsl:template> <!-- legal-statement/p -->
|
6056
5781
|
|
6057
5782
|
<xsl:template match="*[local-name()='feedback-statement']">
|
@@ -6061,20 +5786,16 @@
|
|
6061
5786
|
</xsl:template> <!-- feedback-statement -->
|
6062
5787
|
|
6063
5788
|
<xsl:template match="*[local-name()='feedback-statement']//*[local-name()='title']">
|
6064
|
-
|
6065
|
-
|
6066
|
-
<xsl:call-template name="title"/>
|
6067
|
-
|
5789
|
+
<!-- process in the template 'title' -->
|
5790
|
+
<xsl:call-template name="title"/>
|
6068
5791
|
</xsl:template>
|
6069
5792
|
|
6070
5793
|
<xsl:template match="*[local-name()='feedback-statement']//*[local-name()='p']">
|
6071
5794
|
<xsl:param name="margin"/>
|
6072
|
-
|
6073
|
-
|
6074
|
-
|
6075
|
-
|
6076
|
-
</xsl:call-template>
|
6077
|
-
|
5795
|
+
<!-- process in the template 'paragraph' -->
|
5796
|
+
<xsl:call-template name="paragraph">
|
5797
|
+
<xsl:with-param name="margin" select="$margin"/>
|
5798
|
+
</xsl:call-template>
|
6078
5799
|
</xsl:template>
|
6079
5800
|
|
6080
5801
|
<!-- ================================= -->
|
@@ -6127,7 +5848,6 @@
|
|
6127
5848
|
<xsl:template match="*[local-name()='table']" name="table">
|
6128
5849
|
|
6129
5850
|
<xsl:variable name="table-preamble">
|
6130
|
-
|
6131
5851
|
</xsl:variable>
|
6132
5852
|
|
6133
5853
|
<xsl:variable name="table">
|
@@ -6145,8 +5865,7 @@
|
|
6145
5865
|
|
6146
5866
|
<!-- Display table's name before table as standalone block -->
|
6147
5867
|
<!-- $namespace = 'iso' or -->
|
6148
|
-
|
6149
|
-
<xsl:call-template name="table_name_fn_display"/>
|
5868
|
+
<xsl:call-template name="table_name_fn_display"/>
|
6150
5869
|
|
6151
5870
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/tr[1]/td)"/>
|
6152
5871
|
|
@@ -6200,13 +5919,12 @@
|
|
6200
5919
|
<xsl:variable name="table_width_default">100%</xsl:variable>
|
6201
5920
|
<xsl:variable name="table_width">
|
6202
5921
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
6203
|
-
|
6204
|
-
|
6205
|
-
|
6206
|
-
|
6207
|
-
|
6208
|
-
|
6209
|
-
</xsl:choose>
|
5922
|
+
<xsl:choose>
|
5923
|
+
<xsl:when test="ancestor::*[local-name() = 'feedback-statement']">50%</xsl:when>
|
5924
|
+
<xsl:when test="@width = 'full-page-width' or @width = 'text-width'">100%</xsl:when>
|
5925
|
+
<xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
|
5926
|
+
<xsl:otherwise><xsl:value-of select="$table_width_default"/></xsl:otherwise>
|
5927
|
+
</xsl:choose>
|
6210
5928
|
|
6211
5929
|
</xsl:variable>
|
6212
5930
|
|
@@ -6375,7 +6093,6 @@
|
|
6375
6093
|
</xsl:template>
|
6376
6094
|
|
6377
6095
|
<xsl:template name="setBordersTableArray">
|
6378
|
-
|
6379
6096
|
</xsl:template>
|
6380
6097
|
|
6381
6098
|
<!-- table/name-->
|
@@ -6383,16 +6100,15 @@
|
|
6383
6100
|
<xsl:param name="continued"/>
|
6384
6101
|
<xsl:param name="cols-count"/>
|
6385
6102
|
<xsl:if test="normalize-space() != ''">
|
6103
|
+
<fo:inline role="SKIP">
|
6386
6104
|
|
6387
|
-
|
6388
|
-
|
6389
|
-
|
6390
|
-
|
6391
|
-
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
6392
|
-
</xsl:if>
|
6105
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
6106
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
6107
|
+
<xsl:attribute name="font-family">Arial Black</xsl:attribute>
|
6108
|
+
</xsl:if>
|
6393
6109
|
|
6394
|
-
|
6395
|
-
|
6110
|
+
<xsl:apply-templates/>
|
6111
|
+
</fo:inline>
|
6396
6112
|
|
6397
6113
|
</xsl:if>
|
6398
6114
|
</xsl:template> <!-- table/name -->
|
@@ -6767,11 +6483,9 @@
|
|
6767
6483
|
<xsl:template match="*[local-name()='thead']">
|
6768
6484
|
<xsl:param name="cols-count"/>
|
6769
6485
|
<fo:table-header>
|
6770
|
-
|
6771
|
-
<xsl:
|
6772
|
-
|
6773
|
-
</xsl:call-template>
|
6774
|
-
|
6486
|
+
<xsl:call-template name="table-header-title">
|
6487
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
6488
|
+
</xsl:call-template>
|
6775
6489
|
<xsl:apply-templates/>
|
6776
6490
|
</fo:table-header>
|
6777
6491
|
</xsl:template> <!-- thead -->
|
@@ -6785,28 +6499,27 @@
|
|
6785
6499
|
|
6786
6500
|
<xsl:call-template name="refine_table-header-title-style"/>
|
6787
6501
|
|
6788
|
-
|
6789
|
-
|
6790
|
-
|
6502
|
+
<xsl:if test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
6503
|
+
<xsl:attribute name="border-bottom">0.5 solid black</xsl:attribute>
|
6504
|
+
</xsl:if>
|
6791
6505
|
|
6792
|
-
|
6506
|
+
<fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
|
6793
6507
|
|
6794
|
-
|
6795
|
-
|
6796
|
-
|
6508
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
6509
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
6510
|
+
</xsl:apply-templates>
|
6797
6511
|
|
6798
|
-
|
6799
|
-
|
6800
|
-
|
6801
|
-
|
6802
|
-
|
6512
|
+
<fo:inline font-weight="normal" font-style="italic" role="SKIP">
|
6513
|
+
<xsl:text> </xsl:text>
|
6514
|
+
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
6515
|
+
</fo:inline>
|
6516
|
+
</fo:block>
|
6803
6517
|
|
6804
6518
|
</fo:table-cell>
|
6805
6519
|
</fo:table-row>
|
6806
6520
|
</xsl:template> <!-- table-header-title -->
|
6807
6521
|
|
6808
6522
|
<xsl:template name="refine_table-header-title-style">
|
6809
|
-
|
6810
6523
|
</xsl:template> <!-- refine_table-header-title-style -->
|
6811
6524
|
|
6812
6525
|
<xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -6836,7 +6549,6 @@
|
|
6836
6549
|
<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']"/>
|
6837
6550
|
|
6838
6551
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
6839
|
-
|
6840
6552
|
</xsl:variable>
|
6841
6553
|
|
6842
6554
|
<xsl:if test="$isNoteOrFnExist = 'true' or normalize-space($isNoteOrFnExistShowAfterTable) = 'true'">
|
@@ -6898,36 +6610,26 @@
|
|
6898
6610
|
<xsl:call-template name="setBordersTableArray"/>
|
6899
6611
|
|
6900
6612
|
<!-- fn will be processed inside 'note' processing -->
|
6901
|
-
|
6902
|
-
|
6903
|
-
|
6904
|
-
|
6905
|
-
|
6906
|
-
<xsl:apply-templates select="../*[local-name()='p']"/>
|
6907
|
-
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
6908
|
-
<xsl:apply-templates select="../*[local-name()='note'][not(@type = 'units')]"/>
|
6909
|
-
<xsl:apply-templates select="../*[local-name()='example']"/>
|
6910
|
-
<xsl:apply-templates select="../*[local-name()='source']"/>
|
6613
|
+
<xsl:apply-templates select="../*[local-name()='p']"/>
|
6614
|
+
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
6615
|
+
<xsl:apply-templates select="../*[local-name()='note'][not(@type = 'units')]"/>
|
6616
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
6617
|
+
<xsl:apply-templates select="../*[local-name()='source']"/>
|
6911
6618
|
|
6912
6619
|
<xsl:variable name="isDisplayRowSeparator">
|
6913
|
-
|
6914
6620
|
</xsl:variable>
|
6915
6621
|
|
6916
6622
|
<!-- horizontal row separator -->
|
6917
6623
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
6918
6624
|
<xsl:if test="(../*[local-name()='note'][not(@type = 'units')] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
6919
6625
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
6920
|
-
|
6921
6626
|
<xsl:call-template name="setBordersTableArray"/>
|
6922
6627
|
<fo:block font-size="1pt"> </fo:block>
|
6923
6628
|
</fo:block-container>
|
6924
6629
|
</xsl:if>
|
6925
6630
|
</xsl:if>
|
6926
6631
|
|
6927
|
-
<!-- fn processing -->
|
6928
|
-
<fo:block/><!-- display fn after table -->
|
6929
|
-
|
6930
|
-
<!-- for PAS display Notes after footnotes -->
|
6632
|
+
<!-- fn processing --><fo:block/><!-- display fn after table -->
|
6931
6633
|
|
6932
6634
|
</fo:table-cell>
|
6933
6635
|
</fo:table-row>
|
@@ -6939,9 +6641,8 @@
|
|
6939
6641
|
<xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
|
6940
6642
|
<xsl:copy-of select="$tableWithNotesAndFootnotes"/>
|
6941
6643
|
</xsl:if>
|
6942
|
-
|
6943
|
-
|
6944
|
-
<xsl:copy-of select="$table_fn_block"/>
|
6644
|
+
<!-- <xsl:call-template name="table_fn_display" /> -->
|
6645
|
+
<xsl:copy-of select="$table_fn_block"/>
|
6945
6646
|
|
6946
6647
|
</xsl:if>
|
6947
6648
|
</xsl:template> <!-- insertTableFooterInSeparateTable -->
|
@@ -6962,16 +6663,14 @@
|
|
6962
6663
|
</xsl:otherwise>
|
6963
6664
|
</xsl:choose>
|
6964
6665
|
</xsl:variable>
|
6965
|
-
|
6966
|
-
|
6967
|
-
<
|
6968
|
-
<
|
6969
|
-
|
6970
|
-
|
6971
|
-
|
6972
|
-
|
6973
|
-
</fo:table-header>
|
6974
|
-
</xsl:if>
|
6666
|
+
<!-- if there isn't 'thead' and there is a table's title -->
|
6667
|
+
<xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='thead']) and ancestor::*[local-name()='table']/*[local-name()='name']">
|
6668
|
+
<fo:table-header>
|
6669
|
+
<xsl:call-template name="table-header-title">
|
6670
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
6671
|
+
</xsl:call-template>
|
6672
|
+
</fo:table-header>
|
6673
|
+
</xsl:if>
|
6975
6674
|
|
6976
6675
|
<xsl:apply-templates select="../*[local-name()='thead']">
|
6977
6676
|
<xsl:with-param name="cols-count" select="$cols-count"/>
|
@@ -6982,39 +6681,34 @@
|
|
6982
6681
|
</xsl:call-template>
|
6983
6682
|
|
6984
6683
|
<fo:table-body>
|
6684
|
+
<xsl:variable name="title_continued_">
|
6685
|
+
<xsl:call-template name="getLocalizedString">
|
6686
|
+
<xsl:with-param name="key">continued</xsl:with-param>
|
6687
|
+
</xsl:call-template>
|
6688
|
+
</xsl:variable>
|
6985
6689
|
|
6986
|
-
|
6987
|
-
|
6988
|
-
|
6989
|
-
</xsl:call-template>
|
6990
|
-
</xsl:variable>
|
6991
|
-
|
6992
|
-
<xsl:variable name="title_continued_in_parenthesis" select="concat('(',$title_continued_,')')"/>
|
6993
|
-
<xsl:variable name="title_continued">
|
6994
|
-
<xsl:value-of select="$title_continued_in_parenthesis"/>
|
6995
|
-
|
6996
|
-
</xsl:variable>
|
6997
|
-
|
6998
|
-
<xsl:variable name="title_start" select="ancestor::*[local-name()='table'][1]/*[local-name()='name']/node()[1][self::text()]"/>
|
6999
|
-
<xsl:variable name="table_number" select="substring-before($title_start, '—')"/>
|
6690
|
+
<xsl:variable name="title_continued_in_parenthesis" select="concat('(',$title_continued_,')')"/>
|
6691
|
+
<xsl:variable name="title_continued"><xsl:value-of select="$title_continued_in_parenthesis"/>
|
6692
|
+
</xsl:variable>
|
7000
6693
|
|
7001
|
-
|
7002
|
-
|
6694
|
+
<xsl:variable name="title_start" select="ancestor::*[local-name()='table'][1]/*[local-name()='name']/node()[1][self::text()]"/>
|
6695
|
+
<xsl:variable name="table_number" select="substring-before($title_start, '—')"/>
|
7003
6696
|
|
7004
|
-
|
6697
|
+
<fo:table-row height="0" keep-with-next.within-page="always" role="SKIP">
|
6698
|
+
<fo:table-cell role="SKIP">
|
6699
|
+
<fo:marker marker-class-name="table_continued"/>
|
7005
6700
|
|
6701
|
+
<fo:block role="SKIP"/>
|
6702
|
+
</fo:table-cell>
|
6703
|
+
</fo:table-row>
|
6704
|
+
<fo:table-row height="0" keep-with-next.within-page="always" role="SKIP">
|
6705
|
+
<fo:table-cell role="SKIP">
|
6706
|
+
<fo:marker marker-class-name="table_continued">
|
6707
|
+
<xsl:value-of select="$title_continued"/>
|
6708
|
+
</fo:marker>
|
7006
6709
|
<fo:block role="SKIP"/>
|
7007
|
-
|
7008
|
-
|
7009
|
-
<fo:table-row height="0" keep-with-next.within-page="always" role="SKIP">
|
7010
|
-
<fo:table-cell role="SKIP">
|
7011
|
-
|
7012
|
-
<fo:marker marker-class-name="table_continued">
|
7013
|
-
<xsl:value-of select="$title_continued"/>
|
7014
|
-
</fo:marker>
|
7015
|
-
<fo:block role="SKIP"/>
|
7016
|
-
</fo:table-cell>
|
7017
|
-
</fo:table-row>
|
6710
|
+
</fo:table-cell>
|
6711
|
+
</fo:table-row>
|
7018
6712
|
|
7019
6713
|
<xsl:apply-templates/>
|
7020
6714
|
|
@@ -7100,7 +6794,7 @@
|
|
7100
6794
|
<xsl:with-param name="pText" select="$border_under_row_"/>
|
7101
6795
|
</xsl:call-template>
|
7102
6796
|
</xsl:variable>
|
7103
|
-
<xsl:if test="xalan:nodeset($border_under_row)/item[. = normalize-space($row_num)]">
|
6797
|
+
<xsl:if test="xalan:nodeset($border_under_row)/mn:item[. = normalize-space($row_num)]">
|
7104
6798
|
<xsl:attribute name="border-bottom"><xsl:value-of select="$table-border"/></xsl:attribute>
|
7105
6799
|
</xsl:if>
|
7106
6800
|
</xsl:when>
|
@@ -7217,7 +6911,7 @@
|
|
7217
6911
|
</xsl:variable>
|
7218
6912
|
<xsl:variable name="quot">"</xsl:variable>
|
7219
6913
|
<xsl:variable name="styles_">
|
7220
|
-
<xsl:for-each select="xalan:nodeset($styles__)/item">
|
6914
|
+
<xsl:for-each select="xalan:nodeset($styles__)/mn:item">
|
7221
6915
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
7222
6916
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
7223
6917
|
<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'">
|
@@ -7267,9 +6961,7 @@
|
|
7267
6961
|
<fo:block role="SKIP">
|
7268
6962
|
|
7269
6963
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
7270
|
-
|
7271
|
-
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
7272
|
-
|
6964
|
+
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
7273
6965
|
</xsl:if>
|
7274
6966
|
|
7275
6967
|
<xsl:apply-templates/>
|
@@ -7284,25 +6976,23 @@
|
|
7284
6976
|
|
7285
6977
|
<!-- table/note, table/example, table/tfoot//note, table/tfoot//example -->
|
7286
6978
|
<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">
|
6979
|
+
<xsl:call-template name="setNamedDestination"/>
|
6980
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
6981
|
+
<xsl:copy-of select="@id"/>
|
7287
6982
|
|
7288
|
-
|
7289
|
-
<fo:block xsl:use-attribute-sets="table-note-style">
|
7290
|
-
<xsl:copy-of select="@id"/>
|
7291
|
-
|
7292
|
-
<xsl:call-template name="refine_table-note-style"/>
|
7293
|
-
|
7294
|
-
<!-- Table's note/example name (NOTE, for example) -->
|
7295
|
-
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
6983
|
+
<xsl:call-template name="refine_table-note-style"/>
|
7296
6984
|
|
7297
|
-
|
6985
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
6986
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
7298
6987
|
|
7299
|
-
|
6988
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
7300
6989
|
|
7301
|
-
|
6990
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
7302
6991
|
|
7303
|
-
|
7304
|
-
</fo:block>
|
6992
|
+
</fo:inline>
|
7305
6993
|
|
6994
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
6995
|
+
</fo:block>
|
7306
6996
|
</xsl:template> <!-- table/note -->
|
7307
6997
|
|
7308
6998
|
<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">
|
@@ -7347,9 +7037,7 @@
|
|
7347
7037
|
<xsl:variable name="current_fn_number" select="@reference"/>
|
7348
7038
|
|
7349
7039
|
<xsl:variable name="current_fn_number_text">
|
7350
|
-
|
7351
|
-
<xsl:value-of select="$current_fn_number"/>
|
7352
|
-
|
7040
|
+
<xsl:value-of select="$current_fn_number"/>
|
7353
7041
|
</xsl:variable>
|
7354
7042
|
|
7355
7043
|
<xsl:variable name="ref_id" select="@target"/>
|
@@ -7361,12 +7049,10 @@
|
|
7361
7049
|
<xsl:choose>
|
7362
7050
|
<xsl:when test="ancestor::*[local-name() = 'bibitem']">
|
7363
7051
|
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
7364
|
-
|
7365
7052
|
</fn_styles>
|
7366
7053
|
</xsl:when>
|
7367
7054
|
<xsl:otherwise>
|
7368
7055
|
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
7369
|
-
|
7370
7056
|
</fn_styles>
|
7371
7057
|
</xsl:otherwise>
|
7372
7058
|
</xsl:choose>
|
@@ -7384,7 +7070,6 @@
|
|
7384
7070
|
<xsl:with-param name="element">
|
7385
7071
|
<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 -->
|
7386
7072
|
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
|
7387
|
-
|
7388
7073
|
<xsl:copy-of select="$current_fn_number_text"/>
|
7389
7074
|
|
7390
7075
|
</fo:inline>
|
@@ -7422,10 +7107,9 @@
|
|
7422
7107
|
<here><xsl:copy-of select="$footnotes"/></here> -->
|
7423
7108
|
<xsl:apply-templates select="$footnotes/*[local-name() = 'fmt-fn-body'][@id = $ref_id]"/>
|
7424
7109
|
</xsl:variable>
|
7425
|
-
|
7426
|
-
|
7427
|
-
|
7428
|
-
</fo:block>
|
7110
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
7111
|
+
<xsl:copy-of select="$fn_block"/>
|
7112
|
+
</fo:block>
|
7429
7113
|
|
7430
7114
|
</fo:block-container>
|
7431
7115
|
</fo:footnote-body>
|
@@ -7502,21 +7186,20 @@
|
|
7502
7186
|
<xsl:variable name="reference" select="@reference"/>
|
7503
7187
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> --> <!-- only unique reference puts in note-->
|
7504
7188
|
<xsl:for-each select="..//*[local-name() = 'fmt-footnote-container']/*[local-name() = 'fmt-fn-body']">
|
7189
|
+
<fo:block xsl:use-attribute-sets="table-fn-style">
|
7190
|
+
<xsl:copy-of select="@id"/>
|
7191
|
+
<xsl:call-template name="refine_table-fn-style"/>
|
7505
7192
|
|
7506
|
-
|
7507
|
-
|
7508
|
-
|
7509
|
-
|
7510
|
-
<xsl:apply-templates select=".//*[local-name() = 'fmt-fn-label']">
|
7511
|
-
<xsl:with-param name="process">true</xsl:with-param>
|
7512
|
-
</xsl:apply-templates>
|
7513
|
-
|
7514
|
-
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
7515
|
-
<!-- <xsl:copy-of select="./node()"/> -->
|
7516
|
-
<xsl:apply-templates/>
|
7517
|
-
</fo:inline>
|
7193
|
+
<xsl:apply-templates select=".//*[local-name() = 'fmt-fn-label']">
|
7194
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
7195
|
+
</xsl:apply-templates>
|
7518
7196
|
|
7519
|
-
|
7197
|
+
<fo:inline xsl:use-attribute-sets="table-fn-body-style">
|
7198
|
+
<!-- <xsl:copy-of select="./node()"/> -->
|
7199
|
+
<xsl:apply-templates/>
|
7200
|
+
</fo:inline>
|
7201
|
+
|
7202
|
+
</fo:block>
|
7520
7203
|
|
7521
7204
|
<!-- </xsl:if> -->
|
7522
7205
|
</xsl:for-each>
|
@@ -7569,7 +7252,6 @@
|
|
7569
7252
|
<xsl:param name="process">false</xsl:param>
|
7570
7253
|
<xsl:if test="$process = 'true'">
|
7571
7254
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
7572
|
-
|
7573
7255
|
</xsl:if>
|
7574
7256
|
</xsl:template>
|
7575
7257
|
|
@@ -7653,7 +7335,6 @@
|
|
7653
7335
|
<xsl:if test="xalan:nodeset($references)//*[local-name() = 'fmt-fn-body']">
|
7654
7336
|
|
7655
7337
|
<xsl:variable name="key_iso">
|
7656
|
-
|
7657
7338
|
</xsl:variable>
|
7658
7339
|
|
7659
7340
|
<fo:block>
|
@@ -7699,7 +7380,6 @@
|
|
7699
7380
|
<fo:table width="95%" table-layout="fixed">
|
7700
7381
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
7701
7382
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
7702
|
-
|
7703
7383
|
</xsl:if>
|
7704
7384
|
<xsl:choose>
|
7705
7385
|
<!-- if there 'dl', then set same columns width -->
|
@@ -7723,23 +7403,19 @@
|
|
7723
7403
|
<fo:table-row>
|
7724
7404
|
<fo:table-cell>
|
7725
7405
|
<fo:block>
|
7726
|
-
|
7727
|
-
|
7728
|
-
|
7729
|
-
|
7730
|
-
|
7731
|
-
</fo:inline>
|
7406
|
+
<fo:inline id="{@id}" xsl:use-attribute-sets="figure-fmt-fn-label-style">
|
7407
|
+
<!-- <xsl:attribute name="padding-right">0mm</xsl:attribute> -->
|
7408
|
+
<!-- <xsl:value-of select="@reference"/> -->
|
7409
|
+
<xsl:value-of select="normalize-space(.//*[local-name() = 'fmt-fn-label'])"/>
|
7410
|
+
</fo:inline>
|
7732
7411
|
|
7733
7412
|
</fo:block>
|
7734
7413
|
</fo:table-cell>
|
7735
7414
|
<fo:table-cell>
|
7736
7415
|
<fo:block xsl:use-attribute-sets="figure-fn-body-style">
|
7737
7416
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
7738
|
-
|
7739
|
-
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
7740
|
-
|
7417
|
+
<xsl:attribute name="margin-bottom">0</xsl:attribute>
|
7741
7418
|
</xsl:if>
|
7742
|
-
|
7743
7419
|
<!-- <xsl:copy-of select="./node()"/> -->
|
7744
7420
|
<xsl:apply-templates/>
|
7745
7421
|
</fo:block>
|
@@ -7789,11 +7465,9 @@
|
|
7789
7465
|
<!-- figure/dl[@key = 'true']/dt/p/sup -->
|
7790
7466
|
<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">
|
7791
7467
|
<xsl:variable name="key_iso">
|
7792
|
-
|
7793
7468
|
</xsl:variable>
|
7794
7469
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
7795
7470
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
7796
|
-
|
7797
7471
|
</xsl:if>
|
7798
7472
|
<fo:inline xsl:use-attribute-sets="figure-fn-number-style figure-fmt-fn-label-style"> <!-- id="{@id}" -->
|
7799
7473
|
<!-- <xsl:value-of select="@reference"/> -->
|
@@ -7839,8 +7513,7 @@
|
|
7839
7513
|
<xsl:text>※</xsl:text>
|
7840
7514
|
</xsl:if> -->
|
7841
7515
|
<!-- <xsl:value-of select="@reference"/> -->
|
7842
|
-
|
7843
|
-
<xsl:value-of select="normalize-space(*[local-name() = 'fmt-fn-label'])"/>
|
7516
|
+
<xsl:value-of select="normalize-space(*[local-name() = 'fmt-fn-label'])"/>
|
7844
7517
|
|
7845
7518
|
<!-- <xsl:if test="$namespace = 'bsi'">
|
7846
7519
|
<xsl:text>)</xsl:text>
|
@@ -7912,10 +7585,9 @@
|
|
7912
7585
|
</xsl:if>
|
7913
7586
|
|
7914
7587
|
<xsl:call-template name="setBlockSpanAll"/>
|
7915
|
-
|
7916
|
-
|
7917
|
-
|
7918
|
-
</xsl:if>
|
7588
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
7589
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
7590
|
+
</xsl:if>
|
7919
7591
|
|
7920
7592
|
<xsl:if test="ancestor::*[local-name() = 'sourcecode']">
|
7921
7593
|
<!-- set font-size as sourcecode font-size -->
|
@@ -7936,7 +7608,6 @@
|
|
7936
7608
|
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
7937
7609
|
</xsl:choose>
|
7938
7610
|
</xsl:attribute>
|
7939
|
-
|
7940
7611
|
</xsl:if>
|
7941
7612
|
|
7942
7613
|
<xsl:call-template name="setTrackChangesStyles">
|
@@ -7945,37 +7616,32 @@
|
|
7945
7616
|
</xsl:call-template>
|
7946
7617
|
|
7947
7618
|
<fo:block-container margin-left="0mm" role="SKIP">
|
7948
|
-
|
7949
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
7619
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
7950
7620
|
|
7951
7621
|
<xsl:variable name="parent" select="local-name(..)"/>
|
7952
7622
|
|
7953
|
-
<xsl:variable name="key_iso">
|
7954
|
-
<!-- and (not(../@class) or ../@class !='pseudocode') -->
|
7623
|
+
<xsl:variable name="key_iso"> <!-- and (not(../@class) or ../@class !='pseudocode') -->
|
7955
7624
|
</xsl:variable>
|
7956
7625
|
|
7957
7626
|
<xsl:variable name="onlyOneComponent" select="normalize-space($parent = 'formula' and count(*[local-name()='dt']) = 1)"/>
|
7958
7627
|
|
7959
7628
|
<xsl:choose>
|
7960
7629
|
<xsl:when test="$onlyOneComponent = 'true'"> <!-- only one component -->
|
7961
|
-
|
7962
|
-
|
7963
|
-
|
7964
|
-
<!-- <xsl:variable name="title-where">
|
7630
|
+
<fo:block margin-bottom="12pt" text-align="left">
|
7631
|
+
<!-- <xsl:variable name="title-where">
|
7965
7632
|
<xsl:call-template name="getLocalizedString">
|
7966
7633
|
<xsl:with-param name="key">where</xsl:with-param>
|
7967
7634
|
</xsl:call-template>
|
7968
7635
|
</xsl:variable>
|
7969
7636
|
<xsl:value-of select="$title-where"/> -->
|
7970
|
-
|
7971
|
-
|
7972
|
-
|
7973
|
-
|
7974
|
-
|
7975
|
-
|
7976
|
-
|
7977
|
-
|
7978
|
-
|
7637
|
+
<xsl:apply-templates select="preceding-sibling::*[1][local-name() = 'p' and @keep-with-next = 'true']/node()"/>
|
7638
|
+
<xsl:text> </xsl:text>
|
7639
|
+
<xsl:apply-templates select="*[local-name()='dt']/*"/>
|
7640
|
+
<xsl:if test="*[local-name()='dd']/node()[normalize-space() != ''][1][self::text()]">
|
7641
|
+
<xsl:text> </xsl:text>
|
7642
|
+
</xsl:if>
|
7643
|
+
<xsl:apply-templates select="*[local-name()='dd']/node()" mode="inline"/>
|
7644
|
+
</fo:block>
|
7979
7645
|
</xsl:when> <!-- END: only one component -->
|
7980
7646
|
<xsl:when test="$parent = 'formula'"> <!-- a few components -->
|
7981
7647
|
<fo:block margin-bottom="12pt" text-align="left">
|
@@ -7995,19 +7661,17 @@
|
|
7995
7661
|
<xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')"> <!-- definition list in a figure -->
|
7996
7662
|
<!-- Presentation XML contains 'Key' caption, https://github.com/metanorma/isodoc/issues/607 -->
|
7997
7663
|
<xsl:if test="not(preceding-sibling::*[1][local-name() = 'p' and @keep-with-next])"> <!-- for old Presentation XML -->
|
7664
|
+
<fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
|
7998
7665
|
|
7999
|
-
|
8000
|
-
|
8001
|
-
<xsl:call-template name="refine_figure_key_style"/>
|
8002
|
-
|
8003
|
-
<xsl:variable name="title-key">
|
8004
|
-
<xsl:call-template name="getLocalizedString">
|
8005
|
-
<xsl:with-param name="key">key</xsl:with-param>
|
8006
|
-
</xsl:call-template>
|
8007
|
-
</xsl:variable>
|
8008
|
-
<xsl:value-of select="$title-key"/>
|
8009
|
-
</fo:block>
|
7666
|
+
<xsl:call-template name="refine_figure_key_style"/>
|
8010
7667
|
|
7668
|
+
<xsl:variable name="title-key">
|
7669
|
+
<xsl:call-template name="getLocalizedString">
|
7670
|
+
<xsl:with-param name="key">key</xsl:with-param>
|
7671
|
+
</xsl:call-template>
|
7672
|
+
</xsl:variable>
|
7673
|
+
<xsl:value-of select="$title-key"/>
|
7674
|
+
</fo:block>
|
8011
7675
|
</xsl:if>
|
8012
7676
|
</xsl:when> <!-- END: definition list in a figure -->
|
8013
7677
|
</xsl:choose>
|
@@ -8040,12 +7704,10 @@
|
|
8040
7704
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
8041
7705
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
8042
7706
|
</xsl:if>
|
8043
|
-
|
8044
7707
|
<xsl:choose>
|
8045
7708
|
<xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'"/>
|
8046
7709
|
<xsl:when test="normalize-space($key_iso) = 'true'">
|
8047
7710
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
8048
|
-
|
8049
7711
|
</xsl:when>
|
8050
7712
|
</xsl:choose>
|
8051
7713
|
|
@@ -8150,17 +7812,15 @@
|
|
8150
7812
|
<xsl:call-template name="getMaxLength_dt"/>
|
8151
7813
|
</xsl:variable>
|
8152
7814
|
|
8153
|
-
<xsl:variable name="isContainsKeepTogetherTag_">
|
8154
|
-
false
|
7815
|
+
<xsl:variable name="isContainsKeepTogetherTag_">false
|
8155
7816
|
</xsl:variable>
|
8156
7817
|
<xsl:variable name="isContainsKeepTogetherTag" select="normalize-space($isContainsKeepTogetherTag_)"/>
|
8157
7818
|
<!-- isContainsExpressReference=<xsl:value-of select="$isContainsExpressReference"/> -->
|
8158
|
-
|
8159
|
-
|
8160
|
-
|
8161
|
-
|
8162
|
-
|
8163
|
-
</xsl:call-template>
|
7819
|
+
<xsl:call-template name="setColumnWidth_dl">
|
7820
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
7821
|
+
<xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
|
7822
|
+
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
7823
|
+
</xsl:call-template>
|
8164
7824
|
|
8165
7825
|
<fo:table-body>
|
8166
7826
|
|
@@ -8211,21 +7871,17 @@
|
|
8211
7871
|
</xsl:template>
|
8212
7872
|
|
8213
7873
|
<xsl:template name="refine_dl_formula_where_style">
|
8214
|
-
|
8215
7874
|
</xsl:template> <!-- refine_dl_formula_where_style -->
|
8216
7875
|
|
8217
7876
|
<xsl:template name="refine_figure_key_style">
|
8218
|
-
|
8219
7877
|
</xsl:template> <!-- refine_figure_key_style -->
|
8220
7878
|
|
8221
7879
|
<xsl:template name="refine_multicomponent_style">
|
8222
7880
|
<xsl:variable name="parent" select="local-name(..)"/>
|
8223
|
-
|
8224
7881
|
</xsl:template> <!-- refine_multicomponent_style -->
|
8225
7882
|
|
8226
7883
|
<xsl:template name="refine_multicomponent_block_style">
|
8227
7884
|
<xsl:variable name="parent" select="local-name(..)"/>
|
8228
|
-
|
8229
7885
|
</xsl:template> <!-- refine_multicomponent_block_style -->
|
8230
7886
|
|
8231
7887
|
<!-- ignore 'p' with 'where' in formula, before 'dl' -->
|
@@ -8412,14 +8068,11 @@
|
|
8412
8068
|
<xsl:attribute name="id">
|
8413
8069
|
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
|
8414
8070
|
</xsl:attribute>
|
8415
|
-
|
8416
|
-
|
8417
|
-
|
8418
|
-
</xsl:apply-templates>
|
8419
|
-
|
8071
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
|
8072
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
8073
|
+
</xsl:apply-templates>
|
8420
8074
|
</td>
|
8421
8075
|
</tr>
|
8422
|
-
|
8423
8076
|
</xsl:template>
|
8424
8077
|
|
8425
8078
|
<!-- Definition's term -->
|
@@ -8428,7 +8081,6 @@
|
|
8428
8081
|
<xsl:param name="split_keep-within-line"/>
|
8429
8082
|
|
8430
8083
|
<fo:table-row xsl:use-attribute-sets="dt-row-style">
|
8431
|
-
|
8432
8084
|
<xsl:call-template name="insert_dt_cell">
|
8433
8085
|
<xsl:with-param name="key_iso" select="$key_iso"/>
|
8434
8086
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
@@ -8450,7 +8102,6 @@
|
|
8450
8102
|
<!-- border is mandatory, to calculate real width -->
|
8451
8103
|
<xsl:attribute name="border">0.1pt solid black</xsl:attribute>
|
8452
8104
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
8453
|
-
|
8454
8105
|
</xsl:if>
|
8455
8106
|
|
8456
8107
|
<xsl:call-template name="refine_dt-cell-style"/>
|
@@ -8460,9 +8111,7 @@
|
|
8460
8111
|
|
8461
8112
|
<xsl:choose>
|
8462
8113
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
8463
|
-
|
8464
|
-
<xsl:copy-of select="@id"/>
|
8465
|
-
|
8114
|
+
<xsl:copy-of select="@id"/>
|
8466
8115
|
</xsl:when>
|
8467
8116
|
<xsl:otherwise>
|
8468
8117
|
<xsl:copy-of select="@id"/>
|
@@ -8499,9 +8148,7 @@
|
|
8499
8148
|
<fo:block role="SKIP">
|
8500
8149
|
|
8501
8150
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
8502
|
-
|
8503
|
-
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
8504
|
-
|
8151
|
+
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
8505
8152
|
</xsl:if>
|
8506
8153
|
|
8507
8154
|
<xsl:choose>
|
@@ -8649,7 +8296,6 @@
|
|
8649
8296
|
</xsl:template>
|
8650
8297
|
|
8651
8298
|
<xsl:template name="refine_italic_style">
|
8652
|
-
|
8653
8299
|
</xsl:template>
|
8654
8300
|
|
8655
8301
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
@@ -8665,7 +8311,6 @@
|
|
8665
8311
|
</xsl:template>
|
8666
8312
|
|
8667
8313
|
<xsl:template name="refine_strong_style">
|
8668
|
-
|
8669
8314
|
<xsl:if test="ancestor::*['preferred']">
|
8670
8315
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
8671
8316
|
</xsl:if>
|
@@ -8690,10 +8335,7 @@
|
|
8690
8335
|
<xsl:template match="*[local-name()='tt']">
|
8691
8336
|
<fo:inline xsl:use-attribute-sets="tt-style">
|
8692
8337
|
|
8693
|
-
<xsl:variable name="_font-size">
|
8694
|
-
|
8695
|
-
<!-- inherit -->
|
8696
|
-
|
8338
|
+
<xsl:variable name="_font-size"> <!-- inherit -->
|
8697
8339
|
</xsl:variable>
|
8698
8340
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
8699
8341
|
<xsl:if test="$font-size != ''">
|
@@ -8909,8 +8551,7 @@
|
|
8909
8551
|
</xsl:otherwise>
|
8910
8552
|
</xsl:choose>
|
8911
8553
|
</xsl:variable>
|
8912
|
-
<xsl:variable name="ratio_">
|
8913
|
-
0.75
|
8554
|
+
<xsl:variable name="ratio_">0.75
|
8914
8555
|
</xsl:variable>
|
8915
8556
|
<xsl:variable name="ratio" select="number(normalize-space($ratio_))"/>
|
8916
8557
|
<fo:inline font-size="{$ratio * 100}%" role="SKIP">
|
@@ -9000,7 +8641,7 @@
|
|
9000
8641
|
|
9001
8642
|
<xsl:variable name="quot">"</xsl:variable>
|
9002
8643
|
<xsl:variable name="styles_">
|
9003
|
-
<xsl:for-each select="xalan:nodeset($styles__)/item">
|
8644
|
+
<xsl:for-each select="xalan:nodeset($styles__)/mn:item">
|
9004
8645
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
9005
8646
|
<xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
9006
8647
|
<xsl:variable name="value">
|
@@ -9012,7 +8653,7 @@
|
|
9012
8653
|
</xsl:otherwise>
|
9013
8654
|
</xsl:choose>
|
9014
8655
|
</xsl:variable>
|
9015
|
-
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
|
8656
|
+
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift'">
|
9016
8657
|
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
9017
8658
|
</xsl:if>
|
9018
8659
|
<xsl:if test="$key = 'text-indent'">
|
@@ -9026,7 +8667,6 @@
|
|
9026
8667
|
<fo:inline>
|
9027
8668
|
<xsl:for-each select="$styles/style">
|
9028
8669
|
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
9029
|
-
|
9030
8670
|
</xsl:for-each>
|
9031
8671
|
<xsl:apply-templates/>
|
9032
8672
|
</fo:inline>
|
@@ -10013,10 +9653,9 @@
|
|
10013
9653
|
<xsl:variable name="mathml_content">
|
10014
9654
|
<xsl:apply-templates select="." mode="mathml_actual_text"/>
|
10015
9655
|
</xsl:variable>
|
10016
|
-
|
10017
|
-
|
10018
|
-
|
10019
|
-
</xsl:call-template>
|
9656
|
+
<xsl:call-template name="mathml_instream_object">
|
9657
|
+
<xsl:with-param name="mathml_content" select="$mathml_content"/>
|
9658
|
+
</xsl:call-template>
|
10020
9659
|
|
10021
9660
|
</fo:inline>
|
10022
9661
|
</xsl:template>
|
@@ -10050,9 +9689,7 @@
|
|
10050
9689
|
<xsl:template name="getMathml_asciimath_text">
|
10051
9690
|
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
|
10052
9691
|
<xsl:variable name="latexmath">
|
10053
|
-
|
10054
|
-
<xsl:value-of select="../*[local-name() = 'latexmath']"/>
|
10055
|
-
|
9692
|
+
<xsl:value-of select="../*[local-name() = 'latexmath']"/>
|
10056
9693
|
</xsl:variable>
|
10057
9694
|
<xsl:variable name="asciimath_text_following">
|
10058
9695
|
<xsl:choose>
|
@@ -10125,7 +9762,6 @@
|
|
10125
9762
|
</xsl:template>
|
10126
9763
|
|
10127
9764
|
<xsl:template name="refine_mathml_insteam_object_style">
|
10128
|
-
|
10129
9765
|
</xsl:template> <!-- refine_mathml_insteam_object_style -->
|
10130
9766
|
|
10131
9767
|
<xsl:template match="mathml:*" mode="mathml_actual_text">
|
@@ -10523,7 +10159,6 @@
|
|
10523
10159
|
<xsl:variable name="annotation-id" select="@id"/>
|
10524
10160
|
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
|
10525
10161
|
<fo:block id="{$annotation-id}" white-space="nowrap">
|
10526
|
-
|
10527
10162
|
<fo:inline>
|
10528
10163
|
<xsl:apply-templates>
|
10529
10164
|
<xsl:with-param name="callout" select="concat('<', $callout, '> ')"/>
|
@@ -10552,7 +10187,6 @@
|
|
10552
10187
|
<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'])">
|
10553
10188
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
10554
10189
|
</xsl:if>
|
10555
|
-
|
10556
10190
|
<xsl:if test="parent::*[local-name() = 'add']">
|
10557
10191
|
<xsl:call-template name="append_add-style"/>
|
10558
10192
|
</xsl:if>
|
@@ -10563,8 +10197,7 @@
|
|
10563
10197
|
</xsl:template>
|
10564
10198
|
|
10565
10199
|
<!-- command between two xref points to non-standard bibitem -->
|
10566
|
-
<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']]]"
|
10567
|
-
<xsl:value-of select="."/>
|
10200
|
+
<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="."/>
|
10568
10201
|
</xsl:template>
|
10569
10202
|
|
10570
10203
|
<!-- ====== -->
|
@@ -10579,7 +10212,6 @@
|
|
10579
10212
|
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
10580
10213
|
</xsl:choose>
|
10581
10214
|
</xsl:attribute>
|
10582
|
-
|
10583
10215
|
</xsl:if>
|
10584
10216
|
<fo:block-container margin-left="0mm" role="SKIP">
|
10585
10217
|
<xsl:call-template name="setNamedDestination"/>
|
@@ -10669,53 +10301,49 @@
|
|
10669
10301
|
|
10670
10302
|
<xsl:template match="*[local-name() = 'note']" name="note">
|
10671
10303
|
|
10672
|
-
|
10673
|
-
|
10674
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
10675
|
-
|
10676
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
10677
|
-
|
10678
|
-
<xsl:call-template name="refine_note-style"/>
|
10304
|
+
<xsl:call-template name="setNamedDestination"/>
|
10679
10305
|
|
10680
|
-
|
10306
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
10681
10307
|
|
10682
|
-
|
10308
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
10683
10309
|
|
10684
|
-
|
10310
|
+
<xsl:call-template name="refine_note-style"/>
|
10685
10311
|
|
10686
|
-
|
10312
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
10313
|
+
<fo:block>
|
10687
10314
|
|
10688
|
-
|
10315
|
+
<xsl:call-template name="refine_note_block_style"/>
|
10689
10316
|
|
10690
|
-
|
10317
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
10691
10318
|
|
10692
|
-
|
10693
|
-
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
10694
|
-
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
10695
|
-
<xsl:call-template name="append_add-style"/>
|
10696
|
-
</xsl:if>
|
10319
|
+
<xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'tab']" mode="tab"/>
|
10697
10320
|
|
10698
|
-
|
10699
|
-
<xsl:if test="count(*[not(local-name() = 'name')]) = 1 and *[not(local-name() = 'name')]/node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
10700
|
-
<xsl:apply-templates select="*[not(local-name() = 'name')]/node()[1][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
10701
|
-
<xsl:with-param name="skip">false</xsl:with-param>
|
10702
|
-
</xsl:apply-templates>
|
10703
|
-
</xsl:if>
|
10321
|
+
<xsl:call-template name="refine_note-name-style"/>
|
10704
10322
|
|
10705
|
-
|
10323
|
+
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
10324
|
+
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
10325
|
+
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
10326
|
+
<xsl:call-template name="append_add-style"/>
|
10327
|
+
</xsl:if>
|
10706
10328
|
|
10707
|
-
|
10329
|
+
<!-- if note contains only one element and first and last childs are `add` ace-tag, then move start ace-tag before NOTE's name-->
|
10330
|
+
<xsl:if test="count(*[not(local-name() = 'name')]) = 1 and *[not(local-name() = 'name')]/node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
10331
|
+
<xsl:apply-templates select="*[not(local-name() = 'name')]/node()[1][local-name() = 'add'][starts-with(text(), $ace_tag)]">
|
10332
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
10333
|
+
</xsl:apply-templates>
|
10334
|
+
</xsl:if>
|
10708
10335
|
|
10709
|
-
|
10710
|
-
</fo:block>
|
10336
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
10711
10337
|
|
10712
|
-
|
10713
|
-
</fo:block-container>
|
10338
|
+
</fo:inline>
|
10714
10339
|
|
10340
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
10341
|
+
</fo:block>
|
10342
|
+
</fo:block-container>
|
10343
|
+
</fo:block-container>
|
10715
10344
|
</xsl:template>
|
10716
10345
|
|
10717
10346
|
<xsl:template name="refine_note_block_style">
|
10718
|
-
|
10719
10347
|
</xsl:template> <!-- refine_note_block_style -->
|
10720
10348
|
|
10721
10349
|
<xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
|
@@ -10768,7 +10396,6 @@
|
|
10768
10396
|
<xsl:value-of select="$sfx"/>
|
10769
10397
|
</xsl:when>
|
10770
10398
|
<xsl:otherwise>
|
10771
|
-
|
10772
10399
|
<!-- https://github.com/metanorma/isodoc/issues/607 -->
|
10773
10400
|
<!-- <xsl:if test="$namespace = 'ieee'">
|
10774
10401
|
<xsl:text>—</xsl:text> em dash —
|
@@ -10776,7 +10403,6 @@
|
|
10776
10403
|
<!-- <xsl:if test="$namespace = 'iho' or $namespace = 'gb' or $namespace = 'm3d' or $namespace = 'unece-rec' or $namespace = 'unece' or $namespace = 'rsd'">
|
10777
10404
|
<xsl:text>:</xsl:text>
|
10778
10405
|
</xsl:if> -->
|
10779
|
-
|
10780
10406
|
<!-- <xsl:if test="$namespace = 'itu' or $namespace = 'nist-cswp' or $namespace = 'nist-sp'">
|
10781
10407
|
<xsl:text> – </xsl:text> en dash –
|
10782
10408
|
</xsl:if> -->
|
@@ -10797,7 +10423,6 @@
|
|
10797
10423
|
<xsl:value-of select="$sfx"/>
|
10798
10424
|
</xsl:when>
|
10799
10425
|
<xsl:otherwise>
|
10800
|
-
|
10801
10426
|
<!-- https://github.com/metanorma/isodoc/issues/607 -->
|
10802
10427
|
<!-- <xsl:if test="$namespace = 'ieee'">
|
10803
10428
|
<xsl:text>—</xsl:text> em dash —
|
@@ -10853,7 +10478,6 @@
|
|
10853
10478
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
10854
10479
|
|
10855
10480
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
10856
|
-
|
10857
10481
|
</xsl:if>
|
10858
10482
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
10859
10483
|
</fo:block>
|
@@ -10893,8 +10517,7 @@
|
|
10893
10517
|
<!-- Example: Dimensions in millimeters -->
|
10894
10518
|
<xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
|
10895
10519
|
|
10896
|
-
<xsl:variable name="show_figure_key_in_block_container">
|
10897
|
-
true
|
10520
|
+
<xsl:variable name="show_figure_key_in_block_container">true
|
10898
10521
|
</xsl:variable>
|
10899
10522
|
|
10900
10523
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
@@ -10909,11 +10532,9 @@
|
|
10909
10532
|
<xsl:if test="normalize-space($show_figure_key_in_block_container) = 'true'">
|
10910
10533
|
<xsl:call-template name="showFigureKey"/>
|
10911
10534
|
</xsl:if>
|
10912
|
-
|
10913
|
-
<xsl:apply-templates select="*[local-name() = 'name']"/> <!-- show figure's name AFTER image -->
|
10535
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/> <!-- show figure's name AFTER image -->
|
10914
10536
|
|
10915
10537
|
</fo:block-container>
|
10916
|
-
|
10917
10538
|
</xsl:template>
|
10918
10539
|
|
10919
10540
|
<xsl:template name="showFigureKey">
|
@@ -10951,13 +10572,12 @@
|
|
10951
10572
|
<!-- SOURCE: ... -->
|
10952
10573
|
<!-- figure/source -->
|
10953
10574
|
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
|
10954
|
-
|
10955
|
-
<xsl:call-template name="termsource"/>
|
10956
|
-
|
10575
|
+
<xsl:call-template name="termsource"/>
|
10957
10576
|
</xsl:template>
|
10958
10577
|
|
10959
10578
|
<xsl:template match="*[local-name() = 'image']">
|
10960
10579
|
<xsl:param name="indent">0</xsl:param>
|
10580
|
+
<xsl:param name="logo_width"/>
|
10961
10581
|
<xsl:variable name="isAdded" select="../@added"/>
|
10962
10582
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
10963
10583
|
<xsl:choose>
|
@@ -10979,9 +10599,18 @@
|
|
10979
10599
|
|
10980
10600
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
10981
10601
|
|
10982
|
-
<!-- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/> -->
|
10983
10602
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
|
10984
10603
|
|
10604
|
+
<xsl:if test="parent::*[local-name() = 'logo']"> <!-- publisher's logo -->
|
10605
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
10606
|
+
<xsl:if test="normalize-space($logo_width) != ''">
|
10607
|
+
<xsl:attribute name="width"><xsl:value-of select="$logo_width"/></xsl:attribute>
|
10608
|
+
</xsl:if>
|
10609
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
10610
|
+
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
10611
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
10612
|
+
</xsl:if>
|
10613
|
+
|
10985
10614
|
<xsl:variable name="width">
|
10986
10615
|
<xsl:call-template name="setImageWidth"/>
|
10987
10616
|
</xsl:variable>
|
@@ -11059,8 +10688,7 @@
|
|
11059
10688
|
</xsl:call-template>
|
11060
10689
|
</xsl:variable>
|
11061
10690
|
|
11062
|
-
<xsl:variable name="scaleRatio">
|
11063
|
-
1
|
10691
|
+
<xsl:variable name="scaleRatio">1
|
11064
10692
|
</xsl:variable>
|
11065
10693
|
|
11066
10694
|
<xsl:if test="number($scale) < 100">
|
@@ -11171,18 +10799,14 @@
|
|
11171
10799
|
</xsl:variable>
|
11172
10800
|
|
11173
10801
|
<xsl:variable name="image_width_effective">
|
11174
|
-
|
11175
|
-
<xsl:value-of select="$width_effective - number($indent_left)"/>
|
11176
|
-
|
10802
|
+
<xsl:value-of select="$width_effective - number($indent_left)"/>
|
11177
10803
|
</xsl:variable>
|
11178
10804
|
<xsl:variable name="image_height_effective" select="$height_effective - number($indent_left)"/>
|
11179
10805
|
<!-- <xsl:message>width_effective=<xsl:value-of select="$width_effective"/></xsl:message>
|
11180
10806
|
<xsl:message>indent_left=<xsl:value-of select="$indent_left"/></xsl:message>
|
11181
10807
|
<xsl:message>image_width_effective=<xsl:value-of select="$image_width_effective"/> for <xsl:value-of select="ancestor::ogc:p[1]/@id"/></xsl:message> -->
|
11182
10808
|
<xsl:variable name="scale">
|
11183
|
-
|
11184
|
-
<xsl:value-of select="java:org.metanorma.fop.utils.ImageUtils.getImageScale($img_src, $image_width_effective, $height_effective)"/>
|
11185
|
-
|
10809
|
+
<xsl:value-of select="java:org.metanorma.fop.utils.ImageUtils.getImageScale($img_src, $image_width_effective, $height_effective)"/>
|
11186
10810
|
</xsl:variable>
|
11187
10811
|
<xsl:value-of select="$scale"/>
|
11188
10812
|
</xsl:template>
|
@@ -11203,7 +10827,8 @@
|
|
11203
10827
|
</xsl:when>
|
11204
10828
|
<xsl:when test="not(starts-with(@src, 'data:'))">
|
11205
10829
|
<xsl:variable name="src_external"><xsl:call-template name="getImageSrcExternal"/></xsl:variable>
|
11206
|
-
<xsl:
|
10830
|
+
<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>
|
10831
|
+
<xsl:value-of select="concat('url(', $file_protocol, $src_external, ')')"/>
|
11207
10832
|
</xsl:when>
|
11208
10833
|
<xsl:otherwise>
|
11209
10834
|
<xsl:value-of select="@src"/>
|
@@ -11499,8 +11124,8 @@
|
|
11499
11124
|
</xsl:call-template>
|
11500
11125
|
</xsl:variable>
|
11501
11126
|
<xsl:variable name="viewbox" select="xalan:nodeset($viewbox_)"/>
|
11502
|
-
<xsl:variable name="width" select="normalize-space($viewbox//item[3])"/>
|
11503
|
-
<xsl:variable name="height" select="normalize-space($viewbox//item[4])"/>
|
11127
|
+
<xsl:variable name="width" select="normalize-space($viewbox//mn:item[3])"/>
|
11128
|
+
<xsl:variable name="height" select="normalize-space($viewbox//mn:item[4])"/>
|
11504
11129
|
|
11505
11130
|
<xsl:variable name="parent_image_width" select="normalize-space(ancestor::*[1][local-name() = 'image']/@width)"/>
|
11506
11131
|
<xsl:variable name="parent_image_height" select="normalize-space(ancestor::*[1][local-name() = 'image']/@height)"/>
|
@@ -11572,8 +11197,8 @@
|
|
11572
11197
|
</xsl:variable>
|
11573
11198
|
<xsl:variable name="components" select="xalan:nodeset($components_)"/>
|
11574
11199
|
<xsl:variable name="att_name" select="local-name()"/>
|
11575
|
-
<xsl:attribute name="{$att_name}"><xsl:value-of select="concat('rgb(', $components/item[1], ',', $components/item[2], ',', $components/item[3], ')')"/></xsl:attribute>
|
11576
|
-
<xsl:attribute name="{$att_name}-opacity"><xsl:value-of select="$components/item[4]"/></xsl:attribute>
|
11200
|
+
<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>
|
11201
|
+
<xsl:attribute name="{$att_name}-opacity"><xsl:value-of select="$components/mn:item[4]"/></xsl:attribute>
|
11577
11202
|
</xsl:template>
|
11578
11203
|
|
11579
11204
|
<!-- ============== -->
|
@@ -11646,13 +11271,13 @@
|
|
11646
11271
|
</xsl:call-template>
|
11647
11272
|
</xsl:variable>
|
11648
11273
|
<xsl:variable name="x_coords">
|
11649
|
-
<xsl:for-each select="xalan:nodeset($points)//item[position() mod 2 = 1]">
|
11274
|
+
<xsl:for-each select="xalan:nodeset($points)//mn:item[position() mod 2 = 1]">
|
11650
11275
|
<xsl:sort select="." data-type="number"/>
|
11651
11276
|
<x><xsl:value-of select="."/></x>
|
11652
11277
|
</xsl:for-each>
|
11653
11278
|
</xsl:variable>
|
11654
11279
|
<xsl:variable name="y_coords">
|
11655
|
-
<xsl:for-each select="xalan:nodeset($points)//item[position() mod 2 = 0]">
|
11280
|
+
<xsl:for-each select="xalan:nodeset($points)//mn:item[position() mod 2 = 0]">
|
11656
11281
|
<xsl:sort select="." data-type="number"/>
|
11657
11282
|
<y><xsl:value-of select="."/></y>
|
11658
11283
|
</xsl:for-each>
|
@@ -11857,11 +11482,11 @@
|
|
11857
11482
|
<xsl:if test="ancestor-or-self::*[local-name() = 'annex']">annex</xsl:if>
|
11858
11483
|
</xsl:variable>
|
11859
11484
|
|
11860
|
-
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}" root="{$root}" display="{$display}">
|
11861
|
-
<title>
|
11485
|
+
<mn:item id="{@id}" level="{$level}" section="{$section}" type="{$type}" root="{$root}" display="{$display}">
|
11486
|
+
<mn:title>
|
11862
11487
|
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
11863
|
-
</title>
|
11864
|
-
</item>
|
11488
|
+
</mn:title>
|
11489
|
+
</mn:item>
|
11865
11490
|
</xsl:if>
|
11866
11491
|
</xsl:template>
|
11867
11492
|
|
@@ -11932,12 +11557,12 @@
|
|
11932
11557
|
<xsl:param name="contents"/>
|
11933
11558
|
<xsl:param name="contents_addon"/>
|
11934
11559
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
11935
|
-
<xsl:if test="$contents_nodes//item">
|
11560
|
+
<xsl:if test="$contents_nodes//mn:item">
|
11936
11561
|
<fo:bookmark-tree>
|
11937
11562
|
<xsl:choose>
|
11938
|
-
<xsl:when test="$contents_nodes/doc">
|
11563
|
+
<xsl:when test="$contents_nodes/mn:doc">
|
11939
11564
|
<xsl:choose>
|
11940
|
-
<xsl:when test="count($contents_nodes/doc) > 1">
|
11565
|
+
<xsl:when test="count($contents_nodes/mn:doc) > 1">
|
11941
11566
|
|
11942
11567
|
<xsl:if test="$contents_nodes/collection">
|
11943
11568
|
<fo:bookmark internal-destination="{$contents/collection/@firstpage_id}">
|
@@ -11945,8 +11570,8 @@
|
|
11945
11570
|
</fo:bookmark>
|
11946
11571
|
</xsl:if>
|
11947
11572
|
|
11948
|
-
<xsl:for-each select="$contents_nodes/doc">
|
11949
|
-
<fo:bookmark internal-destination="{contents/item[@display = 'true'][1]/@id}" starting-state="hide">
|
11573
|
+
<xsl:for-each select="$contents_nodes/mn:doc">
|
11574
|
+
<fo:bookmark internal-destination="{contents/mn:item[@display = 'true'][1]/@id}" starting-state="hide">
|
11950
11575
|
<xsl:if test="@bundle = 'true'">
|
11951
11576
|
<xsl:attribute name="internal-destination"><xsl:value-of select="@firstpage_id"/></xsl:attribute>
|
11952
11577
|
</xsl:if>
|
@@ -11980,14 +11605,14 @@
|
|
11980
11605
|
</xsl:choose>
|
11981
11606
|
</fo:bookmark-title>
|
11982
11607
|
|
11983
|
-
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
11608
|
+
<xsl:apply-templates select="contents/mn:item" mode="bookmark"/>
|
11984
11609
|
|
11985
11610
|
<xsl:call-template name="insertFigureBookmarks">
|
11986
|
-
<xsl:with-param name="contents" select="contents"/>
|
11611
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
11987
11612
|
</xsl:call-template>
|
11988
11613
|
|
11989
11614
|
<xsl:call-template name="insertTableBookmarks">
|
11990
|
-
<xsl:with-param name="contents" select="contents"/>
|
11615
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
11991
11616
|
<xsl:with-param name="lang" select="@lang"/>
|
11992
11617
|
</xsl:call-template>
|
11993
11618
|
|
@@ -11996,16 +11621,16 @@
|
|
11996
11621
|
</xsl:for-each>
|
11997
11622
|
</xsl:when>
|
11998
11623
|
<xsl:otherwise>
|
11999
|
-
<xsl:for-each select="$contents_nodes/doc">
|
11624
|
+
<xsl:for-each select="$contents_nodes/mn:doc">
|
12000
11625
|
|
12001
|
-
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
11626
|
+
<xsl:apply-templates select="mn:contents/mn:item" mode="bookmark"/>
|
12002
11627
|
|
12003
11628
|
<xsl:call-template name="insertFigureBookmarks">
|
12004
|
-
<xsl:with-param name="contents" select="contents"/>
|
11629
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
12005
11630
|
</xsl:call-template>
|
12006
11631
|
|
12007
11632
|
<xsl:call-template name="insertTableBookmarks">
|
12008
|
-
<xsl:with-param name="contents" select="contents"/>
|
11633
|
+
<xsl:with-param name="contents" select="mn:contents"/>
|
12009
11634
|
<xsl:with-param name="lang" select="@lang"/>
|
12010
11635
|
</xsl:call-template>
|
12011
11636
|
|
@@ -12014,14 +11639,14 @@
|
|
12014
11639
|
</xsl:choose>
|
12015
11640
|
</xsl:when>
|
12016
11641
|
<xsl:otherwise>
|
12017
|
-
<xsl:apply-templates select="$contents_nodes/contents/item" mode="bookmark"/>
|
11642
|
+
<xsl:apply-templates select="$contents_nodes/mn:contents/mn:item" mode="bookmark"/>
|
12018
11643
|
|
12019
11644
|
<xsl:call-template name="insertFigureBookmarks">
|
12020
|
-
<xsl:with-param name="contents" select="$contents_nodes/contents"/>
|
11645
|
+
<xsl:with-param name="contents" select="$contents_nodes/mn:contents"/>
|
12021
11646
|
</xsl:call-template>
|
12022
11647
|
|
12023
11648
|
<xsl:call-template name="insertTableBookmarks">
|
12024
|
-
<xsl:with-param name="contents" select="$contents_nodes/contents"/>
|
11649
|
+
<xsl:with-param name="contents" select="$contents_nodes/mn:contents"/>
|
12025
11650
|
<xsl:with-param name="lang" select="@lang"/>
|
12026
11651
|
</xsl:call-template>
|
12027
11652
|
|
@@ -12038,80 +11663,72 @@
|
|
12038
11663
|
<xsl:template name="insertFigureBookmarks">
|
12039
11664
|
<xsl:param name="contents"/>
|
12040
11665
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
12041
|
-
<xsl:if test="$contents_nodes/figure">
|
12042
|
-
<fo:bookmark internal-destination="{$contents_nodes/figure[1]/@id}" starting-state="hide">
|
11666
|
+
<xsl:if test="$contents_nodes/mn:figure">
|
11667
|
+
<fo:bookmark internal-destination="{$contents_nodes/mn:figure[1]/@id}" starting-state="hide">
|
12043
11668
|
<fo:bookmark-title>Figures</fo:bookmark-title>
|
12044
|
-
<xsl:for-each select="$contents_nodes/figure">
|
11669
|
+
<xsl:for-each select="$contents_nodes/mn:figure">
|
12045
11670
|
<fo:bookmark internal-destination="{@id}">
|
12046
11671
|
<fo:bookmark-title>
|
12047
|
-
<xsl:value-of select="normalize-space(title)"/>
|
11672
|
+
<xsl:value-of select="normalize-space(mn:title)"/>
|
12048
11673
|
</fo:bookmark-title>
|
12049
11674
|
</fo:bookmark>
|
12050
11675
|
</xsl:for-each>
|
12051
11676
|
</fo:bookmark>
|
12052
11677
|
</xsl:if>
|
11678
|
+
<xsl:if test="$contents_nodes//mn:figures/mn:figure">
|
11679
|
+
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
12053
11680
|
|
12054
|
-
<xsl:
|
12055
|
-
|
12056
|
-
|
12057
|
-
|
12058
|
-
|
12059
|
-
|
12060
|
-
|
12061
|
-
</xsl:variable>
|
12062
|
-
<fo:bookmark-title><xsl:value-of select="normalize-space($bookmark-title)"/></fo:bookmark-title>
|
12063
|
-
<xsl:for-each select="$contents_nodes//figures/figure">
|
12064
|
-
<fo:bookmark internal-destination="{@id}">
|
12065
|
-
<fo:bookmark-title><xsl:value-of select="normalize-space(.)"/></fo:bookmark-title>
|
12066
|
-
</fo:bookmark>
|
12067
|
-
</xsl:for-each>
|
11681
|
+
<xsl:variable name="bookmark-title">
|
11682
|
+
<xsl:value-of select="$title-list-figures"/>
|
11683
|
+
</xsl:variable>
|
11684
|
+
<fo:bookmark-title><xsl:value-of select="normalize-space($bookmark-title)"/></fo:bookmark-title>
|
11685
|
+
<xsl:for-each select="$contents_nodes//mn:figures/mn:figure">
|
11686
|
+
<fo:bookmark internal-destination="{@id}">
|
11687
|
+
<fo:bookmark-title><xsl:value-of select="normalize-space(.)"/></fo:bookmark-title>
|
12068
11688
|
</fo:bookmark>
|
12069
|
-
</xsl:
|
12070
|
-
|
11689
|
+
</xsl:for-each>
|
11690
|
+
</fo:bookmark>
|
11691
|
+
</xsl:if>
|
12071
11692
|
</xsl:template> <!-- insertFigureBookmarks -->
|
12072
11693
|
|
12073
11694
|
<xsl:template name="insertTableBookmarks">
|
12074
11695
|
<xsl:param name="contents"/>
|
12075
11696
|
<xsl:param name="lang"/>
|
12076
11697
|
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
|
12077
|
-
<xsl:if test="$contents_nodes/table">
|
12078
|
-
<fo:bookmark internal-destination="{$contents_nodes/table[1]/@id}" starting-state="hide">
|
11698
|
+
<xsl:if test="$contents_nodes/mn:table">
|
11699
|
+
<fo:bookmark internal-destination="{$contents_nodes/mn:table[1]/@id}" starting-state="hide">
|
12079
11700
|
<fo:bookmark-title>
|
12080
11701
|
<xsl:choose>
|
12081
11702
|
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
12082
11703
|
<xsl:otherwise>Tables</xsl:otherwise>
|
12083
11704
|
</xsl:choose>
|
12084
11705
|
</fo:bookmark-title>
|
12085
|
-
<xsl:for-each select="$contents_nodes/table">
|
11706
|
+
<xsl:for-each select="$contents_nodes/mn:table">
|
12086
11707
|
<fo:bookmark internal-destination="{@id}">
|
12087
11708
|
<fo:bookmark-title>
|
12088
|
-
<xsl:value-of select="normalize-space(title)"/>
|
11709
|
+
<xsl:value-of select="normalize-space(mn:title)"/>
|
12089
11710
|
</fo:bookmark-title>
|
12090
11711
|
</fo:bookmark>
|
12091
11712
|
</xsl:for-each>
|
12092
11713
|
</fo:bookmark>
|
12093
11714
|
</xsl:if>
|
11715
|
+
<xsl:if test="$contents_nodes//mn:tables/mn:table">
|
11716
|
+
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide">
|
12094
11717
|
|
12095
|
-
<xsl:
|
12096
|
-
|
12097
|
-
|
12098
|
-
<xsl:variable name="bookmark-title">
|
12099
|
-
|
12100
|
-
<xsl:value-of select="$title-list-tables"/>
|
12101
|
-
|
12102
|
-
</xsl:variable>
|
11718
|
+
<xsl:variable name="bookmark-title">
|
11719
|
+
<xsl:value-of select="$title-list-tables"/>
|
11720
|
+
</xsl:variable>
|
12103
11721
|
|
12104
|
-
|
11722
|
+
<fo:bookmark-title><xsl:value-of select="$bookmark-title"/></fo:bookmark-title>
|
12105
11723
|
|
12106
|
-
|
12107
|
-
|
12108
|
-
|
12109
|
-
|
12110
|
-
</fo:bookmark>
|
12111
|
-
</xsl:for-each>
|
11724
|
+
<xsl:for-each select="$contents_nodes//mn:tables/mn:table">
|
11725
|
+
<fo:bookmark internal-destination="{@id}">
|
11726
|
+
<!-- <fo:bookmark-title><xsl:value-of select="normalize-space(.)"/></fo:bookmark-title> -->
|
11727
|
+
<fo:bookmark-title><xsl:apply-templates mode="bookmark_clean"/></fo:bookmark-title>
|
12112
11728
|
</fo:bookmark>
|
12113
|
-
</xsl:
|
12114
|
-
|
11729
|
+
</xsl:for-each>
|
11730
|
+
</fo:bookmark>
|
11731
|
+
</xsl:if>
|
12115
11732
|
</xsl:template> <!-- insertTableBookmarks -->
|
12116
11733
|
<!-- End Bookmarks -->
|
12117
11734
|
|
@@ -12141,17 +11758,15 @@
|
|
12141
11758
|
<xsl:param name="title" select="''"/>
|
12142
11759
|
<xsl:choose>
|
12143
11760
|
<xsl:when test="$lang = 'en'">
|
12144
|
-
|
12145
11761
|
</xsl:when>
|
12146
11762
|
<xsl:when test="$lang = 'fr'">
|
12147
|
-
|
12148
11763
|
</xsl:when>
|
12149
11764
|
<xsl:when test="$lang = 'de'">Deutsche</xsl:when>
|
12150
11765
|
<xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
|
12151
11766
|
</xsl:choose>
|
12152
11767
|
</xsl:template>
|
12153
11768
|
|
12154
|
-
<xsl:template match="item" mode="bookmark">
|
11769
|
+
<xsl:template match="mn:item" mode="bookmark">
|
12155
11770
|
<xsl:choose>
|
12156
11771
|
<xsl:when test="@id != ''">
|
12157
11772
|
<fo:bookmark internal-destination="{@id}" starting-state="hide">
|
@@ -12161,7 +11776,7 @@
|
|
12161
11776
|
<xsl:text> </xsl:text>
|
12162
11777
|
</xsl:if>
|
12163
11778
|
<xsl:variable name="title">
|
12164
|
-
<xsl:for-each select="title/node()">
|
11779
|
+
<xsl:for-each select="mn:title/node()">
|
12165
11780
|
<xsl:choose>
|
12166
11781
|
<xsl:when test="local-name() = 'add' and starts-with(., $ace_tag)"><!-- skip --></xsl:when>
|
12167
11782
|
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
@@ -12179,7 +11794,7 @@
|
|
12179
11794
|
</xsl:choose>
|
12180
11795
|
</xsl:template>
|
12181
11796
|
|
12182
|
-
<xsl:template match="title" mode="bookmark"/>
|
11797
|
+
<xsl:template match="mn:title" mode="bookmark"/>
|
12183
11798
|
<xsl:template match="text()" mode="bookmark"/>
|
12184
11799
|
|
12185
11800
|
<!-- figure/name -->
|
@@ -12408,9 +12023,9 @@
|
|
12408
12023
|
<xsl:template match="text()" mode="contents_item">
|
12409
12024
|
<xsl:variable name="text">
|
12410
12025
|
<!-- to split by '_' and other chars -->
|
12411
|
-
<text><xsl:call-template name="add-zero-spaces-java"/></text>
|
12026
|
+
<mn:text><xsl:call-template name="add-zero-spaces-java"/></mn:text>
|
12412
12027
|
</xsl:variable>
|
12413
|
-
<xsl:for-each select="xalan:nodeset($text)/text/text()">
|
12028
|
+
<xsl:for-each select="xalan:nodeset($text)/mn:text/text()">
|
12414
12029
|
<xsl:call-template name="keep_together_standard_number"/>
|
12415
12030
|
</xsl:for-each>
|
12416
12031
|
</xsl:template>
|
@@ -12443,14 +12058,7 @@
|
|
12443
12058
|
|
12444
12059
|
<xsl:template name="get_sourcecode_attributes">
|
12445
12060
|
<xsl:element name="sourcecode_attributes" use-attribute-sets="sourcecode-style">
|
12446
|
-
<xsl:variable name="_font-size"
|
12447
|
-
|
12448
|
-
<!-- inherit -->
|
12449
|
-
|
12450
|
-
<!-- <xsl:if test="$namespace = 'ieee'">
|
12451
|
-
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
12452
|
-
</xsl:if> -->
|
12453
|
-
|
12061
|
+
<xsl:variable name="_font-size"><!-- inherit -->
|
12454
12062
|
</xsl:variable>
|
12455
12063
|
|
12456
12064
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -12506,7 +12114,6 @@
|
|
12506
12114
|
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
12507
12115
|
</xsl:choose>
|
12508
12116
|
</xsl:attribute>
|
12509
|
-
|
12510
12117
|
</xsl:if>
|
12511
12118
|
<fo:block-container margin-left="0mm" role="SKIP">
|
12512
12119
|
|
@@ -12530,8 +12137,7 @@
|
|
12530
12137
|
</fo:block>
|
12531
12138
|
|
12532
12139
|
<xsl:apply-templates select="*[local-name() = 'dl']"/> <!-- Key table -->
|
12533
|
-
|
12534
|
-
<xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
|
12140
|
+
<xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
|
12535
12141
|
|
12536
12142
|
</fo:block-container>
|
12537
12143
|
</fo:block-container>
|
@@ -12708,25 +12314,6 @@
|
|
12708
12314
|
</xsl:choose>
|
12709
12315
|
</xsl:template>
|
12710
12316
|
|
12711
|
-
<!-- insert 'char' between each character in the string -->
|
12712
|
-
<xsl:template name="interspers">
|
12713
|
-
<xsl:param name="str"/>
|
12714
|
-
<xsl:param name="char" select="$zero_width_space"/>
|
12715
|
-
<xsl:if test="$str != ''">
|
12716
|
-
<xsl:value-of select="substring($str, 1, 1)"/>
|
12717
|
-
|
12718
|
-
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
12719
|
-
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
12720
|
-
<xsl:value-of select="$char"/>
|
12721
|
-
</xsl:if>
|
12722
|
-
|
12723
|
-
<xsl:call-template name="interspers">
|
12724
|
-
<xsl:with-param name="str" select="substring($str, 2)"/>
|
12725
|
-
<xsl:with-param name="char" select="$char"/>
|
12726
|
-
</xsl:call-template>
|
12727
|
-
</xsl:if>
|
12728
|
-
</xsl:template>
|
12729
|
-
|
12730
12317
|
<xsl:template name="interspers-java">
|
12731
12318
|
<xsl:param name="str"/>
|
12732
12319
|
<xsl:param name="char" select="$zero_width_space"/>
|
@@ -12823,7 +12410,7 @@
|
|
12823
12410
|
</xsl:variable>
|
12824
12411
|
<xsl:variable name="classes" select="xalan:nodeset($classes_)"/>
|
12825
12412
|
|
12826
|
-
<xsl:for-each select="$classes
|
12413
|
+
<xsl:for-each select="$classes/*[local-name() = 'item']">
|
12827
12414
|
<xsl:variable name="class_name" select="."/>
|
12828
12415
|
<xsl:for-each select="$syntax_highlight_styles/style[@class = $class_name]/@*[not(local-name() = 'class')]">
|
12829
12416
|
<xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute>
|
@@ -12906,12 +12493,9 @@
|
|
12906
12493
|
|
12907
12494
|
<xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']">
|
12908
12495
|
<xsl:if test="normalize-space() != ''">
|
12909
|
-
|
12910
|
-
|
12911
|
-
|
12912
|
-
|
12913
|
-
</fo:block>
|
12914
|
-
|
12496
|
+
<fo:block xsl:use-attribute-sets="permission-name-style">
|
12497
|
+
<xsl:apply-templates/>
|
12498
|
+
</fo:block>
|
12915
12499
|
</xsl:if>
|
12916
12500
|
</xsl:template>
|
12917
12501
|
|
@@ -12940,12 +12524,9 @@
|
|
12940
12524
|
<xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']">
|
12941
12525
|
<xsl:if test="normalize-space() != ''">
|
12942
12526
|
|
12943
|
-
|
12944
|
-
|
12945
|
-
|
12946
|
-
|
12947
|
-
</fo:block>
|
12948
|
-
|
12527
|
+
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
12528
|
+
<xsl:apply-templates/>
|
12529
|
+
</fo:block>
|
12949
12530
|
</xsl:if>
|
12950
12531
|
</xsl:template>
|
12951
12532
|
|
@@ -12984,11 +12565,9 @@
|
|
12984
12565
|
<xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']">
|
12985
12566
|
<xsl:if test="normalize-space() != ''">
|
12986
12567
|
|
12987
|
-
|
12988
|
-
|
12989
|
-
|
12990
|
-
</fo:block>
|
12991
|
-
|
12568
|
+
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
12569
|
+
<xsl:apply-templates/>
|
12570
|
+
</fo:block>
|
12992
12571
|
</xsl:if>
|
12993
12572
|
</xsl:template>
|
12994
12573
|
|
@@ -13114,7 +12693,6 @@
|
|
13114
12693
|
|
13115
12694
|
<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 ')">
|
13116
12695
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
13117
|
-
|
13118
12696
|
</xsl:if>
|
13119
12697
|
|
13120
12698
|
<xsl:apply-templates mode="requirement"/>
|
@@ -13159,7 +12737,6 @@
|
|
13159
12737
|
|
13160
12738
|
<xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
13161
12739
|
<fo:block font-size="11pt">
|
13162
|
-
|
13163
12740
|
<xsl:apply-templates/>
|
13164
12741
|
</fo:block>
|
13165
12742
|
</xsl:template>
|
@@ -13198,16 +12775,14 @@
|
|
13198
12775
|
|
13199
12776
|
<xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
13200
12777
|
<xsl:variable name="element">inline
|
13201
|
-
|
13202
12778
|
block
|
13203
12779
|
</xsl:variable>
|
13204
12780
|
<xsl:choose>
|
13205
12781
|
<xsl:when test="contains($element, 'block')">
|
13206
12782
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
13207
|
-
|
13208
|
-
<xsl:
|
13209
|
-
|
13210
|
-
</xsl:if>
|
12783
|
+
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])">
|
12784
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
12785
|
+
</xsl:if>
|
13211
12786
|
|
13212
12787
|
<xsl:apply-templates/>
|
13213
12788
|
</fo:block>
|
@@ -13235,110 +12810,105 @@
|
|
13235
12810
|
text line 2
|
13236
12811
|
-->
|
13237
12812
|
<xsl:template match="*[local-name() = 'example']" name="example">
|
12813
|
+
<xsl:call-template name="setNamedDestination"/>
|
12814
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
13238
12815
|
|
13239
|
-
|
13240
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
12816
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
13241
12817
|
|
13242
|
-
|
12818
|
+
<xsl:call-template name="refine_example-style"/>
|
13243
12819
|
|
13244
|
-
|
12820
|
+
<xsl:variable name="fo_element">
|
12821
|
+
<xsl:if test=".//*[local-name() = 'table'] or .//*[local-name() = 'dl'] or *[not(local-name() = 'name')][1][local-name() = 'sourcecode']">block</xsl:if>block
|
12822
|
+
</xsl:variable>
|
13245
12823
|
|
13246
|
-
|
13247
|
-
<xsl:if test=".//*[local-name() = 'table'] or .//*[local-name() = 'dl'] or *[not(local-name() = 'name')][1][local-name() = 'sourcecode']">block</xsl:if>
|
13248
|
-
block
|
13249
|
-
</xsl:variable>
|
12824
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
13250
12825
|
|
13251
|
-
|
12826
|
+
<xsl:choose>
|
13252
12827
|
|
13253
|
-
|
12828
|
+
<xsl:when test="contains(normalize-space($fo_element), 'block')">
|
13254
12829
|
|
13255
|
-
|
12830
|
+
<!-- display name 'EXAMPLE' in a separate block -->
|
12831
|
+
<fo:block>
|
12832
|
+
<xsl:apply-templates select="*[local-name()='name']">
|
12833
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
12834
|
+
</xsl:apply-templates>
|
12835
|
+
</fo:block>
|
13256
12836
|
|
13257
|
-
|
13258
|
-
|
13259
|
-
|
12837
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
12838
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
12839
|
+
<xsl:variable name="example_body">
|
12840
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
13260
12841
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
13261
12842
|
</xsl:apply-templates>
|
13262
|
-
</fo:block>
|
13263
|
-
|
13264
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
13265
|
-
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
13266
|
-
<xsl:variable name="example_body">
|
13267
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
13268
|
-
<xsl:with-param name="fo_element" select="$fo_element"/>
|
13269
|
-
</xsl:apply-templates>
|
13270
|
-
</xsl:variable>
|
13271
|
-
<xsl:choose>
|
13272
|
-
<xsl:when test="xalan:nodeset($example_body)/*">
|
13273
|
-
<xsl:copy-of select="$example_body"/>
|
13274
|
-
</xsl:when>
|
13275
|
-
<xsl:otherwise><fo:block/><!-- prevent empty block-container --></xsl:otherwise>
|
13276
|
-
</xsl:choose>
|
13277
|
-
</fo:block-container>
|
13278
|
-
</fo:block-container>
|
13279
|
-
</xsl:when> <!-- end block -->
|
13280
|
-
|
13281
|
-
<xsl:when test="contains(normalize-space($fo_element), 'list')">
|
13282
|
-
|
13283
|
-
<xsl:variable name="provisional_distance_between_starts_">
|
13284
|
-
7
|
13285
|
-
</xsl:variable>
|
13286
|
-
<xsl:variable name="provisional_distance_between_starts" select="normalize-space($provisional_distance_between_starts_)"/>
|
13287
|
-
<xsl:variable name="indent_">
|
13288
|
-
0
|
13289
12843
|
</xsl:variable>
|
13290
|
-
<xsl:
|
12844
|
+
<xsl:choose>
|
12845
|
+
<xsl:when test="xalan:nodeset($example_body)/*">
|
12846
|
+
<xsl:copy-of select="$example_body"/>
|
12847
|
+
</xsl:when>
|
12848
|
+
<xsl:otherwise><fo:block/><!-- prevent empty block-container --></xsl:otherwise>
|
12849
|
+
</xsl:choose>
|
12850
|
+
</fo:block-container>
|
12851
|
+
</fo:block-container>
|
12852
|
+
</xsl:when> <!-- end block -->
|
13291
12853
|
|
13292
|
-
|
13293
|
-
<fo:list-item>
|
13294
|
-
<fo:list-item-label start-indent="{$indent}mm" end-indent="label-end()">
|
13295
|
-
<fo:block>
|
13296
|
-
<xsl:apply-templates select="*[local-name()='name']">
|
13297
|
-
<xsl:with-param name="fo_element">block</xsl:with-param>
|
13298
|
-
</xsl:apply-templates>
|
13299
|
-
</fo:block>
|
13300
|
-
</fo:list-item-label>
|
13301
|
-
<fo:list-item-body start-indent="body-start()">
|
13302
|
-
<fo:block>
|
13303
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
13304
|
-
<xsl:with-param name="fo_element" select="$fo_element"/>
|
13305
|
-
</xsl:apply-templates>
|
13306
|
-
</fo:block>
|
13307
|
-
</fo:list-item-body>
|
13308
|
-
</fo:list-item>
|
13309
|
-
</fo:list-block>
|
13310
|
-
</xsl:when> <!-- end list -->
|
12854
|
+
<xsl:when test="contains(normalize-space($fo_element), 'list')">
|
13311
12855
|
|
13312
|
-
|
12856
|
+
<xsl:variable name="provisional_distance_between_starts_">7
|
12857
|
+
</xsl:variable>
|
12858
|
+
<xsl:variable name="provisional_distance_between_starts" select="normalize-space($provisional_distance_between_starts_)"/>
|
12859
|
+
<xsl:variable name="indent_">0
|
12860
|
+
</xsl:variable>
|
12861
|
+
<xsl:variable name="indent" select="normalize-space($indent_)"/>
|
13313
12862
|
|
13314
|
-
|
13315
|
-
|
13316
|
-
|
13317
|
-
|
13318
|
-
|
13319
|
-
|
13320
|
-
|
12863
|
+
<fo:list-block provisional-distance-between-starts="{$provisional_distance_between_starts}mm">
|
12864
|
+
<fo:list-item>
|
12865
|
+
<fo:list-item-label start-indent="{$indent}mm" end-indent="label-end()">
|
12866
|
+
<fo:block>
|
12867
|
+
<xsl:apply-templates select="*[local-name()='name']">
|
12868
|
+
<xsl:with-param name="fo_element">block</xsl:with-param>
|
12869
|
+
</xsl:apply-templates>
|
12870
|
+
</fo:block>
|
12871
|
+
</fo:list-item-label>
|
12872
|
+
<fo:list-item-body start-indent="body-start()">
|
12873
|
+
<fo:block>
|
12874
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
13321
12875
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
13322
12876
|
</xsl:apply-templates>
|
13323
|
-
</fo:
|
13324
|
-
</fo:
|
12877
|
+
</fo:block>
|
12878
|
+
</fo:list-item-body>
|
12879
|
+
</fo:list-item>
|
12880
|
+
</fo:list-block>
|
12881
|
+
</xsl:when> <!-- end list -->
|
13325
12882
|
|
13326
|
-
|
13327
|
-
|
13328
|
-
|
13329
|
-
|
13330
|
-
|
13331
|
-
|
13332
|
-
|
13333
|
-
|
13334
|
-
|
13335
|
-
|
13336
|
-
|
12883
|
+
<xsl:otherwise> <!-- inline -->
|
12884
|
+
|
12885
|
+
<!-- display 'EXAMPLE' and first element in the same line -->
|
12886
|
+
<fo:block>
|
12887
|
+
<xsl:apply-templates select="*[local-name()='name']">
|
12888
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
12889
|
+
</xsl:apply-templates>
|
12890
|
+
<fo:inline>
|
12891
|
+
<xsl:apply-templates select="*[not(local-name() = 'name')][1]">
|
12892
|
+
<xsl:with-param name="fo_element" select="$fo_element"/>
|
12893
|
+
</xsl:apply-templates>
|
12894
|
+
</fo:inline>
|
12895
|
+
</fo:block>
|
13337
12896
|
|
13338
|
-
|
13339
|
-
|
13340
|
-
|
12897
|
+
<xsl:if test="*[not(local-name() = 'name')][position() > 1]">
|
12898
|
+
<!-- display further elements in blocks -->
|
12899
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
12900
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
12901
|
+
<xsl:apply-templates select="*[not(local-name() = 'name')][position() > 1]">
|
12902
|
+
<xsl:with-param name="fo_element" select="'block'"/>
|
12903
|
+
</xsl:apply-templates>
|
12904
|
+
</fo:block-container>
|
12905
|
+
</fo:block-container>
|
12906
|
+
</xsl:if>
|
12907
|
+
</xsl:otherwise> <!-- end inline -->
|
13341
12908
|
|
12909
|
+
</xsl:choose>
|
12910
|
+
</fo:block-container>
|
12911
|
+
</fo:block-container>
|
13342
12912
|
</xsl:template>
|
13343
12913
|
|
13344
12914
|
<!-- example/name -->
|
@@ -13353,7 +12923,6 @@
|
|
13353
12923
|
</xsl:when>
|
13354
12924
|
<xsl:when test="contains(normalize-space($fo_element), 'block')">
|
13355
12925
|
<fo:block xsl:use-attribute-sets="example-name-style">
|
13356
|
-
|
13357
12926
|
<xsl:apply-templates/>
|
13358
12927
|
</fo:block>
|
13359
12928
|
</xsl:when>
|
@@ -13370,7 +12939,6 @@
|
|
13370
12939
|
<!-- table/example/name, table/tfoot//example/name -->
|
13371
12940
|
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'tfoot']//*[local-name() = 'example']/*[local-name() = 'name']">
|
13372
12941
|
<fo:inline xsl:use-attribute-sets="example-name-style">
|
13373
|
-
|
13374
12942
|
<xsl:apply-templates/>
|
13375
12943
|
</fo:inline>
|
13376
12944
|
</xsl:template>
|
@@ -13380,7 +12948,6 @@
|
|
13380
12948
|
|
13381
12949
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
13382
12950
|
<xsl:variable name="element">
|
13383
|
-
|
13384
12951
|
<xsl:value-of select="$fo_element"/>
|
13385
12952
|
</xsl:variable>
|
13386
12953
|
<xsl:choose>
|
@@ -13498,7 +13065,7 @@
|
|
13498
13065
|
</xsl:call-template>
|
13499
13066
|
</xsl:variable>
|
13500
13067
|
|
13501
|
-
|
13068
|
+
<xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
|
13502
13069
|
<xsl:choose>
|
13503
13070
|
<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>
|
13504
13071
|
<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>
|
@@ -13535,7 +13102,6 @@
|
|
13535
13102
|
<xsl:attribute name="margin-left">5mm</xsl:attribute>
|
13536
13103
|
</xsl:if>
|
13537
13104
|
</xsl:if>
|
13538
|
-
|
13539
13105
|
<fo:block-container margin-left="0mm" role="SKIP">
|
13540
13106
|
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
13541
13107
|
|
@@ -13618,7 +13184,6 @@
|
|
13618
13184
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
13619
13185
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
13620
13186
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
13621
|
-
|
13622
13187
|
</xsl:if>
|
13623
13188
|
|
13624
13189
|
<xsl:call-template name="refine_eref-style"/>
|
@@ -13667,7 +13232,6 @@
|
|
13667
13232
|
</xsl:template>
|
13668
13233
|
|
13669
13234
|
<xsl:template name="refine_basic_link_style">
|
13670
|
-
|
13671
13235
|
</xsl:template> <!-- refine_basic_link_style -->
|
13672
13236
|
|
13673
13237
|
<!-- ====== -->
|
@@ -13683,11 +13247,7 @@
|
|
13683
13247
|
</xsl:call-template>
|
13684
13248
|
</xsl:variable>
|
13685
13249
|
|
13686
|
-
<xsl:variable name="padding">
|
13687
|
-
|
13688
|
-
1
|
13689
|
-
|
13690
|
-
|
13250
|
+
<xsl:variable name="padding">1
|
13691
13251
|
</xsl:variable>
|
13692
13252
|
|
13693
13253
|
<xsl:variable name="padding-right">
|
@@ -13698,7 +13258,6 @@
|
|
13698
13258
|
</xsl:otherwise>
|
13699
13259
|
</xsl:choose>
|
13700
13260
|
</xsl:variable>
|
13701
|
-
|
13702
13261
|
<xsl:choose>
|
13703
13262
|
<xsl:when test="$lang = 'zh'">
|
13704
13263
|
<fo:inline role="SKIP"><xsl:value-of select="$tab_zh"/></fo:inline>
|
@@ -13722,7 +13281,6 @@
|
|
13722
13281
|
<xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']/*[local-name() = 'tab']" priority="2"/>
|
13723
13282
|
|
13724
13283
|
<xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']/*[local-name() = 'tab']" mode="tab">
|
13725
|
-
|
13726
13284
|
</xsl:template>
|
13727
13285
|
|
13728
13286
|
<xsl:template name="insertNonBreakSpaces">
|
@@ -13740,8 +13298,7 @@
|
|
13740
13298
|
<xsl:variable name="level">
|
13741
13299
|
<xsl:call-template name="getLevel"/>
|
13742
13300
|
</xsl:variable>
|
13743
|
-
<xsl:variable name="font-size">
|
13744
|
-
inherit
|
13301
|
+
<xsl:variable name="font-size">inherit
|
13745
13302
|
</xsl:variable>
|
13746
13303
|
<xsl:variable name="levelTerm">
|
13747
13304
|
<xsl:call-template name="getLevelTermName"/>
|
@@ -13793,11 +13350,9 @@
|
|
13793
13350
|
</xsl:template>
|
13794
13351
|
|
13795
13352
|
<xsl:template name="setStyle_preferred">
|
13796
|
-
|
13797
|
-
|
13798
|
-
|
13799
|
-
</xsl:if>
|
13800
|
-
|
13353
|
+
<xsl:if test="*[local-name() = 'strong']">
|
13354
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
13355
|
+
</xsl:if>
|
13801
13356
|
</xsl:template>
|
13802
13357
|
|
13803
13358
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
@@ -13874,7 +13429,6 @@
|
|
13874
13429
|
|
13875
13430
|
<!-- main sections -->
|
13876
13431
|
<xsl:template match="/*/*[local-name() = 'sections']/*" name="sections_node" priority="2">
|
13877
|
-
|
13878
13432
|
<xsl:call-template name="setNamedDestination"/>
|
13879
13433
|
<fo:block>
|
13880
13434
|
<xsl:call-template name="setId"/>
|
@@ -13909,13 +13463,10 @@
|
|
13909
13463
|
</xsl:template>
|
13910
13464
|
|
13911
13465
|
<xsl:template name="sections_element_style">
|
13912
|
-
|
13913
13466
|
</xsl:template> <!-- sections_element_style -->
|
13914
13467
|
|
13915
13468
|
<xsl:template match="//*[local-name() = 'metanorma']/*[local-name() = 'preface']/*" priority="2" name="preface_node"> <!-- /*/*[local-name() = 'preface']/* -->
|
13916
|
-
|
13917
|
-
<fo:block break-after="page"/>
|
13918
|
-
|
13469
|
+
<fo:block break-after="page"/>
|
13919
13470
|
<xsl:call-template name="setNamedDestination"/>
|
13920
13471
|
<fo:block>
|
13921
13472
|
<xsl:call-template name="setId"/>
|
@@ -13964,7 +13515,6 @@
|
|
13964
13515
|
</xsl:template>
|
13965
13516
|
|
13966
13517
|
<xsl:template name="refine_clause_style">
|
13967
|
-
|
13968
13518
|
</xsl:template> <!-- refine_clause_style -->
|
13969
13519
|
|
13970
13520
|
<xsl:template match="*[local-name() = 'definitions']">
|
@@ -14004,7 +13554,6 @@
|
|
14004
13554
|
</xsl:template>
|
14005
13555
|
|
14006
13556
|
<xsl:template name="refine_annex_style">
|
14007
|
-
|
14008
13557
|
</xsl:template>
|
14009
13558
|
|
14010
13559
|
<!-- document text (not figures, or tables) footnotes -->
|
@@ -14108,26 +13657,24 @@
|
|
14108
13657
|
<!-- Lists processing -->
|
14109
13658
|
<!-- ===================================== -->
|
14110
13659
|
<xsl:variable name="ul_labels_">
|
14111
|
-
|
14112
|
-
|
14113
|
-
|
14114
|
-
|
14115
|
-
|
14116
|
-
|
14117
|
-
|
14118
|
-
|
14119
|
-
<!-- <label level="1">–</label>
|
13660
|
+
<xsl:choose>
|
13661
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
|
13662
|
+
<label level="1" font-size="14pt" color="rgb(128,128,128)">▪</label> <!-- Black small square 25AA 18pt line-height="1.5" -->
|
13663
|
+
<label level="2">—</label><!-- em dash -->
|
13664
|
+
</xsl:when>
|
13665
|
+
<xsl:otherwise>
|
13666
|
+
<label>–</label>
|
13667
|
+
<!-- <label level="1">–</label>
|
14120
13668
|
<label level="2">•</label>
|
14121
13669
|
<label level="3" font-size="75%">o</label> --> <!-- white circle -->
|
14122
|
-
|
14123
|
-
|
13670
|
+
</xsl:otherwise>
|
13671
|
+
</xsl:choose>
|
14124
13672
|
|
14125
13673
|
</xsl:variable>
|
14126
13674
|
<xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
|
14127
13675
|
|
14128
13676
|
<xsl:template name="setULLabel">
|
14129
|
-
<xsl:variable name="list_level__"
|
14130
|
-
<xsl:value-of select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
|
13677
|
+
<xsl:variable name="list_level__"><xsl:value-of select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
|
14131
13678
|
</xsl:variable>
|
14132
13679
|
<xsl:variable name="list_level_" select="number($list_level__)"/>
|
14133
13680
|
<xsl:variable name="list_level">
|
@@ -14184,28 +13731,22 @@
|
|
14184
13731
|
<xsl:variable name="label">
|
14185
13732
|
|
14186
13733
|
<xsl:variable name="style_prefix_">
|
14187
|
-
<xsl:if test="$type = 'roman'">
|
14188
|
-
<!-- Example: (i) -->
|
13734
|
+
<xsl:if test="$type = 'roman'"> <!-- Example: (i) -->
|
14189
13735
|
</xsl:if>
|
14190
13736
|
<xsl:if test="$type = 'alphabet'">
|
14191
|
-
|
14192
13737
|
</xsl:if>
|
14193
13738
|
</xsl:variable>
|
14194
13739
|
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
|
14195
13740
|
|
14196
13741
|
<xsl:variable name="style_suffix_">
|
14197
13742
|
<xsl:choose>
|
14198
|
-
<xsl:when test="$type = 'arabic'">
|
14199
|
-
)
|
13743
|
+
<xsl:when test="$type = 'arabic'">)
|
14200
13744
|
</xsl:when>
|
14201
|
-
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
14202
|
-
)
|
13745
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">)
|
14203
13746
|
</xsl:when>
|
14204
|
-
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'"
|
14205
|
-
.
|
13747
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">.
|
14206
13748
|
</xsl:when>
|
14207
|
-
<xsl:when test="$type = 'roman'">
|
14208
|
-
)
|
13749
|
+
<xsl:when test="$type = 'roman'">)
|
14209
13750
|
</xsl:when>
|
14210
13751
|
<xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
|
14211
13752
|
</xsl:choose>
|
@@ -14222,8 +13763,7 @@
|
|
14222
13763
|
<xsl:value-of select="$style_suffix"/>
|
14223
13764
|
</xsl:if>
|
14224
13765
|
</xsl:variable>
|
14225
|
-
|
14226
|
-
<xsl:value-of select="normalize-space($label)"/>
|
13766
|
+
<xsl:value-of select="normalize-space($label)"/>
|
14227
13767
|
|
14228
13768
|
</xsl:when>
|
14229
13769
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
@@ -14280,17 +13820,13 @@
|
|
14280
13820
|
|
14281
13821
|
<xsl:variable name="format">
|
14282
13822
|
<xsl:choose>
|
14283
|
-
<xsl:when test="$type = 'arabic'">
|
14284
|
-
1)
|
13823
|
+
<xsl:when test="$type = 'arabic'">1)
|
14285
13824
|
</xsl:when>
|
14286
|
-
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
14287
|
-
a)
|
13825
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">a)
|
14288
13826
|
</xsl:when>
|
14289
|
-
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
14290
|
-
A.
|
13827
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">A.
|
14291
13828
|
</xsl:when>
|
14292
|
-
<xsl:when test="$type = 'roman'">
|
14293
|
-
i)
|
13829
|
+
<xsl:when test="$type = 'roman'">i)
|
14294
13830
|
</xsl:when>
|
14295
13831
|
<xsl:when test="$type = 'roman_upper'">I.</xsl:when>
|
14296
13832
|
<xsl:otherwise>1.</xsl:otherwise> <!-- for any case, if $type has non-determined value, not using -->
|
@@ -14327,19 +13863,16 @@
|
|
14327
13863
|
</fo:block-container>
|
14328
13864
|
</xsl:when>
|
14329
13865
|
<xsl:otherwise>
|
14330
|
-
|
14331
|
-
|
14332
|
-
|
14333
|
-
|
14334
|
-
|
14335
|
-
</fo:block>
|
14336
|
-
|
13866
|
+
<fo:block role="SKIP">
|
13867
|
+
<xsl:apply-templates select="." mode="list">
|
13868
|
+
<xsl:with-param name="indent" select="$indent"/>
|
13869
|
+
</xsl:apply-templates>
|
13870
|
+
</fo:block>
|
14337
13871
|
</xsl:otherwise>
|
14338
13872
|
</xsl:choose>
|
14339
13873
|
</xsl:template>
|
14340
13874
|
|
14341
13875
|
<xsl:template name="refine_list_container_style">
|
14342
|
-
|
14343
13876
|
</xsl:template> <!-- refine_list_container_style -->
|
14344
13877
|
|
14345
13878
|
<xsl:template match="*[local-name()='ul'] | *[local-name()='ol']" mode="list" name="list">
|
@@ -14403,7 +13936,6 @@
|
|
14403
13936
|
</xsl:template>
|
14404
13937
|
|
14405
13938
|
<xsl:template name="refine_list-style_provisional-distance-between-starts">
|
14406
|
-
|
14407
13939
|
</xsl:template> <!-- refine_list-style_provisional-distance-between-starts -->
|
14408
13940
|
|
14409
13941
|
<xsl:template match="*[local-name() = 'ol' or local-name() = 'ul']/*[local-name() = 'name']">
|
@@ -14688,7 +14220,6 @@
|
|
14688
14220
|
<xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" priority="4">
|
14689
14221
|
<xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
|
14690
14222
|
<fo:block start-indent="{5 * $level}mm" text-indent="-5mm">
|
14691
|
-
|
14692
14223
|
<xsl:apply-templates/>
|
14693
14224
|
</fo:block>
|
14694
14225
|
</xsl:template>
|
@@ -14740,7 +14271,6 @@
|
|
14740
14271
|
<fo:table-column column-width="15mm"/>
|
14741
14272
|
<fo:table-body>
|
14742
14273
|
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
14743
|
-
|
14744
14274
|
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
|
14745
14275
|
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
|
14746
14276
|
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
|
@@ -14776,7 +14306,6 @@
|
|
14776
14306
|
<xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
|
14777
14307
|
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
|
14778
14308
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/>
|
14779
|
-
|
14780
14309
|
</xsl:template>
|
14781
14310
|
<!-- don't display bibitem with @id starts with '_hidden', that was introduced for references integrity -->
|
14782
14311
|
<xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
|
@@ -14787,14 +14316,12 @@
|
|
14787
14316
|
<xsl:call-template name="setNamedDestination"/>
|
14788
14317
|
<fo:block id="{@id}">
|
14789
14318
|
<xsl:apply-templates/>
|
14790
|
-
|
14791
14319
|
</fo:block>
|
14792
14320
|
</xsl:template>
|
14793
14321
|
|
14794
14322
|
<!-- Bibliography (non-normative references) -->
|
14795
14323
|
<xsl:template match="*[local-name() = 'references']">
|
14796
14324
|
<xsl:if test="not(ancestor::*[local-name() = 'annex'])">
|
14797
|
-
|
14798
14325
|
</xsl:if>
|
14799
14326
|
|
14800
14327
|
<!-- <xsl:if test="ancestor::*[local-name() = 'annex']">
|
@@ -14810,9 +14337,7 @@
|
|
14810
14337
|
|
14811
14338
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
14812
14339
|
<xsl:apply-templates select="node()[not(local-name() = 'title' and @columns = 1)]"/>
|
14813
|
-
|
14814
14340
|
</fo:block>
|
14815
|
-
|
14816
14341
|
</xsl:template> <!-- references -->
|
14817
14342
|
|
14818
14343
|
<xsl:template match="*[local-name() = 'bibitem']">
|
@@ -14822,57 +14347,50 @@
|
|
14822
14347
|
<!-- Normative references -->
|
14823
14348
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
14824
14349
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
14825
|
-
|
14826
|
-
|
14827
|
-
|
14828
|
-
|
14829
|
-
<xsl:call-template name="processBibitem"/>
|
14830
|
-
</fo:block>
|
14350
|
+
<xsl:call-template name="setNamedDestination"/>
|
14351
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
14352
|
+
<xsl:call-template name="processBibitem"/>
|
14353
|
+
</fo:block>
|
14831
14354
|
|
14832
14355
|
</xsl:template> <!-- bibitem -->
|
14833
14356
|
|
14834
14357
|
<!-- Bibliography (non-normative references) -->
|
14835
14358
|
<xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
14836
|
-
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
14837
|
-
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
14359
|
+
<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
|
14838
14360
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
14839
|
-
|
14840
|
-
|
14841
|
-
|
14842
|
-
|
14843
|
-
|
14361
|
+
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
14362
|
+
<xsl:call-template name="setNamedDestination"/>
|
14363
|
+
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
14364
|
+
<xsl:variable name="bibitem_label">
|
14365
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
14366
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
14367
|
+
</xsl:apply-templates>
|
14368
|
+
</xsl:variable>
|
14369
|
+
<xsl:if test="string-length(normalize-space($bibitem_label)) > 5">
|
14370
|
+
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
|
14371
|
+
</xsl:if>
|
14372
|
+
<fo:list-item>
|
14373
|
+
<fo:list-item-label end-indent="label-end()">
|
14374
|
+
<fo:block role="SKIP">
|
14375
|
+
<fo:inline role="SKIP">
|
14376
|
+
<xsl:if test="($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report')">
|
14377
|
+
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
14378
|
+
</xsl:if>
|
14844
14379
|
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
14845
14380
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
14846
14381
|
</xsl:apply-templates>
|
14847
|
-
</
|
14848
|
-
|
14849
|
-
|
14850
|
-
|
14851
|
-
|
14852
|
-
|
14853
|
-
|
14854
|
-
|
14855
|
-
|
14856
|
-
|
14857
|
-
|
14858
|
-
|
14859
|
-
</xsl:if>
|
14860
|
-
|
14861
|
-
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
14862
|
-
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
14863
|
-
</xsl:apply-templates>
|
14864
|
-
</fo:inline>
|
14865
|
-
</fo:block>
|
14866
|
-
</fo:list-item-label>
|
14867
|
-
<fo:list-item-body start-indent="body-start()">
|
14868
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
14869
|
-
<xsl:call-template name="processBibitem">
|
14870
|
-
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
14871
|
-
</xsl:call-template>
|
14872
|
-
</fo:block>
|
14873
|
-
</fo:list-item-body>
|
14874
|
-
</fo:list-item>
|
14875
|
-
</fo:list-block>
|
14382
|
+
</fo:inline>
|
14383
|
+
</fo:block>
|
14384
|
+
</fo:list-item-label>
|
14385
|
+
<fo:list-item-body start-indent="body-start()">
|
14386
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
14387
|
+
<xsl:call-template name="processBibitem">
|
14388
|
+
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
14389
|
+
</xsl:call-template>
|
14390
|
+
</fo:block>
|
14391
|
+
</fo:list-item-body>
|
14392
|
+
</fo:list-item>
|
14393
|
+
</fo:list-block>
|
14876
14394
|
|
14877
14395
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
14878
14396
|
|
@@ -14882,7 +14400,6 @@
|
|
14882
14400
|
<xsl:otherwise>
|
14883
14401
|
<xsl:call-template name="setNamedDestination"/>
|
14884
14402
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
14885
|
-
|
14886
14403
|
<fo:list-item-label end-indent="label-end()">
|
14887
14404
|
<fo:block role="SKIP">
|
14888
14405
|
<fo:inline role="SKIP">
|
@@ -14909,18 +14426,16 @@
|
|
14909
14426
|
|
14910
14427
|
<xsl:template name="processBibitem">
|
14911
14428
|
<xsl:param name="biblio_tag_part">both</xsl:param>
|
14429
|
+
<!-- start bibitem processing -->
|
14430
|
+
<xsl:if test=".//*[local-name() = 'fn']">
|
14431
|
+
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
14432
|
+
</xsl:if>
|
14912
14433
|
|
14913
|
-
|
14914
|
-
|
14915
|
-
|
14916
|
-
|
14917
|
-
|
14918
|
-
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
14919
|
-
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
14920
|
-
</xsl:apply-templates>
|
14921
|
-
<xsl:apply-templates select="*[local-name() = 'formattedref']"/>
|
14922
|
-
<!-- end bibitem processing -->
|
14923
|
-
|
14434
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
14435
|
+
<xsl:with-param name="biblio_tag_part" select="$biblio_tag_part"/>
|
14436
|
+
</xsl:apply-templates>
|
14437
|
+
<xsl:apply-templates select="*[local-name() = 'formattedref']"/>
|
14438
|
+
<!-- end bibitem processing -->
|
14924
14439
|
</xsl:template> <!-- processBibitem (bibitem) -->
|
14925
14440
|
|
14926
14441
|
<xsl:template match="*[local-name() = 'title']" mode="title">
|
@@ -15064,11 +14579,10 @@
|
|
15064
14579
|
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
15065
14580
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
15066
14581
|
<xsl:otherwise><!-- default value -->
|
15067
|
-
|
15068
|
-
|
15069
|
-
|
15070
|
-
|
15071
|
-
</xsl:choose>
|
14582
|
+
<xsl:choose>
|
14583
|
+
<xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">3</xsl:when>
|
14584
|
+
<xsl:otherwise>2</xsl:otherwise>
|
14585
|
+
</xsl:choose>
|
15072
14586
|
|
15073
14587
|
</xsl:otherwise>
|
15074
14588
|
</xsl:choose>
|
@@ -15277,54 +14791,46 @@
|
|
15277
14791
|
<!-- ================ -->
|
15278
14792
|
<!-- Admonition -->
|
15279
14793
|
<!-- ================ -->
|
15280
|
-
<xsl:template match="*[local-name() = 'admonition']">
|
15281
|
-
|
15282
|
-
|
15283
|
-
<xsl:call-template name="setNamedDestination"/>
|
15284
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
15285
|
-
|
15286
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
14794
|
+
<xsl:template match="*[local-name() = 'admonition']"> <!-- text in the box -->
|
14795
|
+
<xsl:call-template name="setNamedDestination"/>
|
14796
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
15287
14797
|
|
15288
|
-
|
15289
|
-
|
15290
|
-
|
14798
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
14799
|
+
<xsl:if test="@type = 'editorial'">
|
14800
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
14801
|
+
<!-- <xsl:attribute name="font-weight">bold</xsl:attribute>
|
15291
14802
|
<xsl:attribute name="font-style">italic</xsl:attribute> -->
|
15292
|
-
|
15293
|
-
|
15294
|
-
|
15295
|
-
|
15296
|
-
|
15297
|
-
|
15298
|
-
|
15299
|
-
|
15300
|
-
|
15301
|
-
|
15302
|
-
|
15303
|
-
<
|
15304
|
-
|
15305
|
-
|
15306
|
-
|
15307
|
-
|
15308
|
-
|
15309
|
-
|
15310
|
-
|
15311
|
-
|
15312
|
-
|
15313
|
-
|
15314
|
-
|
15315
|
-
|
15316
|
-
|
15317
|
-
|
15318
|
-
|
15319
|
-
|
15320
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
15321
|
-
</fo:block>
|
15322
|
-
</fo:block-container>
|
15323
|
-
|
15324
|
-
</fo:block-container>
|
15325
|
-
|
15326
|
-
</fo:block-container>
|
14803
|
+
<xsl:attribute name="color">green</xsl:attribute>
|
14804
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
14805
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
14806
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
14807
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
14808
|
+
</xsl:if>
|
14809
|
+
<xsl:if test="not(@type)">
|
14810
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
14811
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
14812
|
+
</xsl:if>
|
14813
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
14814
|
+
<xsl:if test="@type = 'editorial' or not(@type)">
|
14815
|
+
<xsl:attribute name="padding">0mm</xsl:attribute>
|
14816
|
+
</xsl:if>
|
14817
|
+
<xsl:if test="not(@type)">
|
14818
|
+
<xsl:attribute name="padding">1mm</xsl:attribute>
|
14819
|
+
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute>
|
14820
|
+
</xsl:if>
|
14821
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
14822
|
+
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
14823
|
+
<fo:inline>
|
14824
|
+
<xsl:call-template name="displayAdmonitionName">
|
14825
|
+
<xsl:with-param name="sep">: </xsl:with-param>
|
14826
|
+
</xsl:call-template>
|
14827
|
+
</fo:inline>
|
14828
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
14829
|
+
</fo:block>
|
14830
|
+
</fo:block-container>
|
15327
14831
|
|
14832
|
+
</fo:block-container>
|
14833
|
+
</fo:block-container>
|
15328
14834
|
</xsl:template>
|
15329
14835
|
|
15330
14836
|
<xsl:template name="displayAdmonitionName">
|
@@ -15372,17 +14878,16 @@
|
|
15372
14878
|
</xsl:template> -->
|
15373
14879
|
|
15374
14880
|
<xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'p']">
|
15375
|
-
|
15376
|
-
|
15377
|
-
|
15378
|
-
|
15379
|
-
|
15380
|
-
|
15381
|
-
|
15382
|
-
|
15383
|
-
|
15384
|
-
|
15385
|
-
</xsl:choose>
|
14881
|
+
<xsl:choose>
|
14882
|
+
<xsl:when test="ancestor::*[local-name() = 'admonition'][@type = 'editorial']">
|
14883
|
+
<xsl:apply-templates/>
|
14884
|
+
</xsl:when>
|
14885
|
+
<xsl:otherwise>
|
14886
|
+
<fo:block xsl:use-attribute-sets="admonition-p-style">
|
14887
|
+
<xsl:apply-templates/>
|
14888
|
+
</fo:block>
|
14889
|
+
</xsl:otherwise>
|
14890
|
+
</xsl:choose>
|
15386
14891
|
|
15387
14892
|
</xsl:template>
|
15388
14893
|
|
@@ -15419,10 +14924,9 @@
|
|
15419
14924
|
|
15420
14925
|
<!-- STEP2: add 'fn' after 'eref' and 'origin', if referenced to bibitem with 'note' = Withdrawn.' or 'Cancelled and replaced...' -->
|
15421
14926
|
<xsl:variable name="updated_xml_step2">
|
15422
|
-
|
15423
|
-
|
15424
|
-
|
15425
|
-
</xsl:if>
|
14927
|
+
<xsl:if test="$table_if = 'false'">
|
14928
|
+
<xsl:apply-templates select="xalan:nodeset($updated_xml_step1)" mode="update_xml_step2"/>
|
14929
|
+
</xsl:if>
|
15426
14930
|
|
15427
14931
|
</xsl:variable>
|
15428
14932
|
|
@@ -15898,7 +15402,6 @@
|
|
15898
15402
|
</xsl:template>
|
15899
15403
|
|
15900
15404
|
<xsl:template name="addNamedDestinationAttribute">
|
15901
|
-
|
15902
15405
|
</xsl:template>
|
15903
15406
|
|
15904
15407
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
@@ -16353,58 +15856,57 @@
|
|
16353
15856
|
<!-- =========================================================================== -->
|
16354
15857
|
<!-- END STEP MOVE PAGEBREAK: move <pagebreak/> at top level under 'preface' and 'sections' -->
|
16355
15858
|
<!-- =========================================================================== -->
|
15859
|
+
<!-- =========================================================================== -->
|
15860
|
+
<!-- STEP2: add 'fn' after 'eref' and 'origin', if referenced to bibitem with 'note' = Withdrawn.' or 'Cancelled and replaced...' -->
|
15861
|
+
<!-- =========================================================================== -->
|
15862
|
+
<xsl:template match="@*|node()" mode="update_xml_step2">
|
15863
|
+
<xsl:copy>
|
15864
|
+
<xsl:apply-templates select="@*|node()" mode="update_xml_step2"/>
|
15865
|
+
</xsl:copy>
|
15866
|
+
</xsl:template>
|
16356
15867
|
|
16357
|
-
|
16358
|
-
|
16359
|
-
|
16360
|
-
|
16361
|
-
|
16362
|
-
|
16363
|
-
|
16364
|
-
</xsl:template>
|
16365
|
-
|
16366
|
-
<xsl:variable name="localized_string_withdrawn">
|
15868
|
+
<xsl:variable name="localized_string_withdrawn">
|
15869
|
+
<xsl:call-template name="getLocalizedString">
|
15870
|
+
<xsl:with-param name="key">withdrawn</xsl:with-param>
|
15871
|
+
</xsl:call-template>
|
15872
|
+
</xsl:variable>
|
15873
|
+
<xsl:variable name="localized_string_cancelled_and_replaced">
|
15874
|
+
<xsl:variable name="str">
|
16367
15875
|
<xsl:call-template name="getLocalizedString">
|
16368
|
-
<xsl:with-param name="key">
|
15876
|
+
<xsl:with-param name="key">cancelled_and_replaced</xsl:with-param>
|
16369
15877
|
</xsl:call-template>
|
16370
15878
|
</xsl:variable>
|
16371
|
-
<xsl:
|
16372
|
-
<xsl:
|
16373
|
-
|
16374
|
-
|
16375
|
-
|
16376
|
-
</xsl:variable>
|
16377
|
-
<xsl:choose>
|
16378
|
-
<xsl:when test="contains($str, '%')"><xsl:value-of select="substring-before($str, '%')"/></xsl:when>
|
16379
|
-
<xsl:otherwise><xsl:value-of select="$str"/></xsl:otherwise>
|
16380
|
-
</xsl:choose>
|
16381
|
-
</xsl:variable>
|
15879
|
+
<xsl:choose>
|
15880
|
+
<xsl:when test="contains($str, '%')"><xsl:value-of select="substring-before($str, '%')"/></xsl:when>
|
15881
|
+
<xsl:otherwise><xsl:value-of select="$str"/></xsl:otherwise>
|
15882
|
+
</xsl:choose>
|
15883
|
+
</xsl:variable>
|
16382
15884
|
|
16383
|
-
|
16384
|
-
|
16385
|
-
|
15885
|
+
<!-- add 'fn' after eref and origin, to reference bibitem with note = 'Withdrawn.' or 'Cancelled and replaced...' -->
|
15886
|
+
<xsl:template match="*[local-name() = 'eref'] | *[local-name() = 'origin']" mode="update_xml_step2">
|
15887
|
+
<xsl:copy-of select="."/>
|
16386
15888
|
|
16387
|
-
|
16388
|
-
|
16389
|
-
|
16390
|
-
|
16391
|
-
|
16392
|
-
|
16393
|
-
|
16394
|
-
|
16395
|
-
|
16396
|
-
|
16397
|
-
|
16398
|
-
|
16399
|
-
|
16400
|
-
</xsl:element>
|
15889
|
+
<xsl:variable name="bibitemid" select="@bibitemid"/>
|
15890
|
+
<xsl:variable name="local_name" select="local-name()"/>
|
15891
|
+
<xsl:variable name="position"><xsl:number count="*[local-name() = $local_name][@bibitemid = $bibitemid]" level="any"/></xsl:variable>
|
15892
|
+
<xsl:if test="normalize-space($position) = '1'">
|
15893
|
+
<xsl:variable name="fn_text">
|
15894
|
+
<!-- <xsl:copy-of select="key('bibitems', $bibitemid)[1]/*[local-name() = 'note'][not(@type='Unpublished-Status')][normalize-space() = $localized_string_withdrawn or starts-with(normalize-space(), $localized_string_cancelled_and_replaced)]/node()" /> -->
|
15895
|
+
<xsl:copy-of select="$bibitems/*[local-name() ='bibitem'][@id = $bibitemid][1]/*[local-name() = 'note'][not(@type='Unpublished-Status')][normalize-space() = $localized_string_withdrawn or starts-with(normalize-space(), $localized_string_cancelled_and_replaced)]/node()"/>
|
15896
|
+
</xsl:variable>
|
15897
|
+
<xsl:if test="normalize-space($fn_text) != ''">
|
15898
|
+
<xsl:element name="fn" namespace="{$namespace_full}">
|
15899
|
+
<xsl:attribute name="reference">bibitem_<xsl:value-of select="$bibitemid"/></xsl:attribute>
|
15900
|
+
<xsl:element name="p" namespace="{$namespace_full}">
|
15901
|
+
<xsl:copy-of select="$fn_text"/>
|
16401
15902
|
</xsl:element>
|
16402
|
-
</xsl:
|
15903
|
+
</xsl:element>
|
16403
15904
|
</xsl:if>
|
16404
|
-
</xsl:
|
15905
|
+
</xsl:if>
|
15906
|
+
</xsl:template>
|
16405
15907
|
|
16406
|
-
|
16407
|
-
|
15908
|
+
<!-- add id for table without id (for autolayout algorithm) -->
|
15909
|
+
<!-- <xsl:template match="*[local-name() = 'table'][not(@id)]" mode="update_xml_step2">
|
16408
15910
|
<xsl:copy>
|
16409
15911
|
<xsl:apply-templates select="@*" mode="update_xml_step2"/>
|
16410
15912
|
<xsl:attribute name="id">_abc<xsl:value-of select="generate-id()"/></xsl:attribute>
|
@@ -16413,17 +15915,17 @@
|
|
16413
15915
|
</xsl:copy>
|
16414
15916
|
</xsl:template> -->
|
16415
15917
|
|
16416
|
-
|
16417
|
-
|
16418
|
-
|
16419
|
-
|
16420
|
-
|
16421
|
-
|
16422
|
-
|
16423
|
-
|
15918
|
+
<!-- add @reference for fn -->
|
15919
|
+
<xsl:template match="*[local-name() = 'fn'][not(@reference)]" mode="update_xml_step2">
|
15920
|
+
<xsl:copy>
|
15921
|
+
<xsl:apply-templates select="@*" mode="update_xml_step2"/>
|
15922
|
+
<xsl:attribute name="reference"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
|
15923
|
+
<xsl:apply-templates select="node()" mode="update_xml_step2"/>
|
15924
|
+
</xsl:copy>
|
15925
|
+
</xsl:template>
|
16424
15926
|
|
16425
|
-
|
16426
|
-
|
15927
|
+
<!-- add @reference for bibitem/note, similar to fn/reference -->
|
15928
|
+
<!-- <xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'note']" mode="update_xml_step2">
|
16427
15929
|
<xsl:copy>
|
16428
15930
|
<xsl:apply-templates select="@*" mode="update_xml_step2"/>
|
16429
15931
|
|
@@ -16435,28 +15937,28 @@
|
|
16435
15937
|
</xsl:copy>
|
16436
15938
|
</xsl:template> -->
|
16437
15939
|
|
16438
|
-
|
16439
|
-
|
16440
|
-
|
16441
|
-
|
16442
|
-
|
16443
|
-
|
16444
|
-
|
16445
|
-
|
16446
|
-
|
16447
|
-
|
16448
|
-
|
16449
|
-
|
16450
|
-
|
16451
|
-
|
15940
|
+
<!-- enclose sequence of 'char x' + 'combining char y' to <lang_none>xy</lang_none> -->
|
15941
|
+
<xsl:variable name="regex_combining_chars">(.[̀-ͯ])</xsl:variable>
|
15942
|
+
<xsl:variable name="element_name_lang_none">lang_none</xsl:variable>
|
15943
|
+
<xsl:variable name="tag_element_name_lang_none_open">###<xsl:value-of select="$element_name_lang_none"/>###</xsl:variable>
|
15944
|
+
<xsl:variable name="tag_element_name_lang_none_close">###/<xsl:value-of select="$element_name_lang_none"/>###</xsl:variable>
|
15945
|
+
|
15946
|
+
<xsl:template match="text()" mode="update_xml_step2">
|
15947
|
+
<xsl:variable name="text_" select="java:replaceAll(java:java.lang.String.new(.), $regex_combining_chars, concat($tag_element_name_lang_none_open,'$1',$tag_element_name_lang_none_close))"/>
|
15948
|
+
<xsl:call-template name="replace_text_tags">
|
15949
|
+
<xsl:with-param name="tag_open" select="$tag_element_name_lang_none_open"/>
|
15950
|
+
<xsl:with-param name="tag_close" select="$tag_element_name_lang_none_close"/>
|
15951
|
+
<xsl:with-param name="text" select="$text_"/>
|
15952
|
+
</xsl:call-template>
|
15953
|
+
</xsl:template>
|
16452
15954
|
|
16453
|
-
|
16454
|
-
|
16455
|
-
|
15955
|
+
<xsl:template match="*[local-name() = 'stem'] | *[local-name() = 'image']" mode="update_xml_step2">
|
15956
|
+
<xsl:copy-of select="."/>
|
15957
|
+
</xsl:template>
|
16456
15958
|
|
16457
|
-
|
16458
|
-
|
16459
|
-
|
15959
|
+
<!-- =========================================================================== -->
|
15960
|
+
<!-- END STEP2: add 'fn' after 'eref' and 'origin', if referenced to bibitem with 'note' = Withdrawn.' or 'Cancelled and replaced...' -->
|
15961
|
+
<!-- =========================================================================== -->
|
16460
15962
|
|
16461
15963
|
<!-- =========================================================================== -->
|
16462
15964
|
<!-- XML UPDATE STEP: enclose standard's name into tag 'keep-together_within-line' -->
|
@@ -16497,7 +15999,6 @@
|
|
16497
15999
|
<!-- enclose standard's number into tag 'keep-together_within-line' -->
|
16498
16000
|
<xsl:if test="not(ancestor::*[local-name() = 'table'])"><regex><xsl:value-of select="$regex_standard_reference"/></regex></xsl:if>
|
16499
16001
|
<!-- if EXPRESS reference -->
|
16500
|
-
|
16501
16002
|
<!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
|
16502
16003
|
<regex><xsl:value-of select="$regex_solidus_units"/></regex>
|
16503
16004
|
<!-- keep-together_within-line for: a.b, aaa.b, a.bbb, .b in table's cell ONLY -->
|
@@ -16551,8 +16052,7 @@
|
|
16551
16052
|
|
16552
16053
|
<xsl:variable name="text2">
|
16553
16054
|
<xsl:element name="text" namespace="{$namespace_full}">
|
16554
|
-
<xsl:for-each select="xalan:nodeset($text)/*[local-name() = 'text']/node()"
|
16555
|
-
<xsl:copy-of select="."/>
|
16055
|
+
<xsl:for-each select="xalan:nodeset($text)/*[local-name() = 'text']/node()"><xsl:copy-of select="."/>
|
16556
16056
|
</xsl:for-each>
|
16557
16057
|
</xsl:element>
|
16558
16058
|
</xsl:variable>
|
@@ -16844,9 +16344,7 @@
|
|
16844
16344
|
</xsl:attribute>
|
16845
16345
|
<xsl:variable name="skip_footnote_body_" select="not($p_fn//fn[@gen_id = $gen_id] and (1 = 1))"/>
|
16846
16346
|
<xsl:attribute name="skip_footnote_body"> <!-- false for repeatable footnote -->
|
16847
|
-
|
16848
|
-
<xsl:value-of select="$skip_footnote_body_"/>
|
16849
|
-
|
16347
|
+
<xsl:value-of select="$skip_footnote_body_"/>
|
16850
16348
|
</xsl:attribute>
|
16851
16349
|
<xsl:attribute name="ref_id">
|
16852
16350
|
<xsl:value-of select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
|
@@ -16935,7 +16433,6 @@
|
|
16935
16433
|
|
16936
16434
|
<xsl:template name="printEdition">
|
16937
16435
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
16938
|
-
|
16939
16436
|
<xsl:choose>
|
16940
16437
|
<xsl:when test="$edition_i18n != ''">
|
16941
16438
|
<!-- Example: <edition language="fr">deuxième édition</edition> -->
|
@@ -17164,9 +16661,8 @@
|
|
17164
16661
|
<dc:title>
|
17165
16662
|
<xsl:variable name="title">
|
17166
16663
|
<xsl:for-each select="(//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']">
|
17167
|
-
|
17168
|
-
|
17169
|
-
<xsl:value-of select="*[local-name() = 'title']"/>
|
16664
|
+
<xsl:value-of select="$title_prefix"/>
|
16665
|
+
<xsl:value-of select="*[local-name() = 'title']"/>
|
17170
16666
|
|
17171
16667
|
</xsl:for-each>
|
17172
16668
|
</xsl:variable>
|
@@ -17185,12 +16681,11 @@
|
|
17185
16681
|
</dc:title>
|
17186
16682
|
<xsl:variable name="dc_creator">
|
17187
16683
|
<xsl:for-each select="(//*[local-name() = 'metanorma'])[1]/*[local-name() = 'bibdata']">
|
17188
|
-
|
17189
|
-
|
17190
|
-
|
17191
|
-
|
17192
|
-
|
17193
|
-
</rdf:Seq>
|
16684
|
+
<rdf:Seq>
|
16685
|
+
<rdf:li>
|
16686
|
+
<xsl:value-of select="ieee:ext/ieee:editorialgroup/ieee:committee"/>
|
16687
|
+
</rdf:li>
|
16688
|
+
</rdf:Seq>
|
17194
16689
|
|
17195
16690
|
</xsl:for-each>
|
17196
16691
|
</xsl:variable>
|
@@ -17202,9 +16697,7 @@
|
|
17202
16697
|
|
17203
16698
|
<xsl:variable name="dc_description">
|
17204
16699
|
<xsl:variable name="abstract">
|
17205
|
-
|
17206
|
-
<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'])]"/>
|
17207
|
-
|
16700
|
+
<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'])]"/>
|
17208
16701
|
</xsl:variable>
|
17209
16702
|
<rdf:Alt>
|
17210
16703
|
<rdf:li xml:lang="x-default">
|
@@ -17269,7 +16762,9 @@
|
|
17269
16762
|
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
|
17270
16763
|
<xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
|
17271
16764
|
<xsl:variable name="attachment_name" select="java:org.metanorma.fop.Util.getFilenameFromPath($attachment_path)"/>
|
17272
|
-
<xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/>
|
16765
|
+
<!-- <xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/> -->
|
16766
|
+
<!-- See https://github.com/metanorma/metanorma-iso/issues/1369 -->
|
16767
|
+
<xsl:variable name="url" select="concat('url(file:///',$outputpdf_basepath, $attachment_path, ')')"/>
|
17273
16768
|
<xsl:variable name="description" select="normalize-space(*[local-name() = 'formattedref'])"/>
|
17274
16769
|
<!-- Todo: need update -->
|
17275
16770
|
<xsl:variable name="afrelationship" select="normalize-space(.//*[local-name() = 'classification'][@type = 'pdf-AFRelationship'])"/>
|
@@ -17434,7 +16929,7 @@
|
|
17434
16929
|
<xsl:param name="normalize-space" select="'true'"/>
|
17435
16930
|
<xsl:param name="keep_sep" select="'false'"/>
|
17436
16931
|
<xsl:if test="string-length($pText) >0">
|
17437
|
-
<item>
|
16932
|
+
<xsl:element name="item" namespace="{$namespace_mn_xsl}">
|
17438
16933
|
<xsl:choose>
|
17439
16934
|
<xsl:when test="$normalize-space = 'true'">
|
17440
16935
|
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
@@ -17443,8 +16938,8 @@
|
|
17443
16938
|
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
17444
16939
|
</xsl:otherwise>
|
17445
16940
|
</xsl:choose>
|
17446
|
-
</
|
17447
|
-
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></
|
16941
|
+
</xsl:element>
|
16942
|
+
<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>
|
17448
16943
|
<xsl:call-template name="split">
|
17449
16944
|
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
17450
16945
|
<xsl:with-param name="sep" select="$sep"/>
|
@@ -17462,30 +16957,6 @@
|
|
17462
16957
|
<xsl:call-template name="getLang_fromCurrentNode"/><xsl:value-of select=".//*[local-name() = 'p'][1]/@id"/>
|
17463
16958
|
</xsl:template>
|
17464
16959
|
|
17465
|
-
<xsl:template name="namespaceCheck">
|
17466
|
-
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
|
17467
|
-
<xsl:variable name="XSLNS">
|
17468
|
-
|
17469
|
-
<xsl:value-of select="document('')//*/namespace::ieee"/>
|
17470
|
-
|
17471
|
-
</xsl:variable>
|
17472
|
-
<!-- <xsl:if test="$documentNS != $XSLNS">
|
17473
|
-
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
17474
|
-
</xsl:if> -->
|
17475
|
-
</xsl:template> <!-- namespaceCheck -->
|
17476
|
-
|
17477
|
-
<xsl:template name="getLanguage">
|
17478
|
-
<xsl:param name="lang"/>
|
17479
|
-
<xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
|
17480
|
-
<xsl:choose>
|
17481
|
-
<xsl:when test="$language = 'en'">English</xsl:when>
|
17482
|
-
<xsl:when test="$language = 'fr'">French</xsl:when>
|
17483
|
-
<xsl:when test="$language = 'de'">Deutsch</xsl:when>
|
17484
|
-
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
|
17485
|
-
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
17486
|
-
</xsl:choose>
|
17487
|
-
</xsl:template>
|
17488
|
-
|
17489
16960
|
<xsl:template name="setId">
|
17490
16961
|
<xsl:param name="prefix"/>
|
17491
16962
|
<xsl:attribute name="id">
|