metanorma-ogc 2.9.2 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +81 -2
- data/lib/isodoc/ogc/ogc.best-practice.xsl +81 -2
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +81 -2
- data/lib/isodoc/ogc/ogc.community-practice.xsl +81 -2
- data/lib/isodoc/ogc/ogc.community-standard.xsl +81 -2
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +81 -2
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +81 -2
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +81 -2
- data/lib/isodoc/ogc/ogc.other.xsl +81 -2
- data/lib/isodoc/ogc/ogc.policy.xsl +81 -2
- data/lib/isodoc/ogc/ogc.reference-model.xsl +81 -2
- data/lib/isodoc/ogc/ogc.release-notes.xsl +81 -2
- data/lib/isodoc/ogc/ogc.standard.xsl +81 -2
- data/lib/isodoc/ogc/ogc.test-suite.xsl +81 -2
- data/lib/isodoc/ogc/ogc.user-guide.xsl +81 -2
- data/lib/isodoc/ogc/ogc.white-paper.xsl +82 -5
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e0e76c9e364060e14593fcd5055941f957b2f4be3fd44bbd75740013d9d2685
|
|
4
|
+
data.tar.gz: 000c8b277317167b06e11b7d9c7b0156074aeb0c2f8561c4cce8c757c37d1d39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20ffb81086efc624f17f9372e27639d6d4bc4f4d687e09335a73d6aa93c537358e141f7e5b8bdfd21de4707372b06b68f72c291660725338007aa8b181085cf3
|
|
7
|
+
data.tar.gz: a40e08e95feb02a60a4b4ed959293f5097e3016f1b2da8fd8140498ce01edd83f73eea0519996eb0cb8186ad682d2d20c56903be625550106f0acec03dbdb229
|
|
@@ -1249,6 +1249,9 @@
|
|
|
1249
1249
|
<xsl:variable name="title">
|
|
1250
1250
|
<xsl:call-template name="getName"/>
|
|
1251
1251
|
</xsl:variable>
|
|
1252
|
+
<xsl:variable name="variant_title">
|
|
1253
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
1254
|
+
</xsl:variable>
|
|
1252
1255
|
|
|
1253
1256
|
<xsl:variable name="type" select="local-name()"/>
|
|
1254
1257
|
|
|
@@ -1260,7 +1263,14 @@
|
|
|
1260
1263
|
<xsl:attribute name="parent">annex</xsl:attribute>
|
|
1261
1264
|
</xsl:if>
|
|
1262
1265
|
<mnx:title>
|
|
1263
|
-
<xsl:
|
|
1266
|
+
<xsl:choose>
|
|
1267
|
+
<xsl:when test="normalize-space($variant_title) != ''">
|
|
1268
|
+
<xsl:apply-templates select="xalan:nodeset($variant_title)" mode="contents_item"/>
|
|
1269
|
+
</xsl:when>
|
|
1270
|
+
<xsl:otherwise>
|
|
1271
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
|
1272
|
+
</xsl:otherwise>
|
|
1273
|
+
</xsl:choose>
|
|
1264
1274
|
</mnx:title>
|
|
1265
1275
|
<xsl:if test="$type != 'indexsect'">
|
|
1266
1276
|
<xsl:apply-templates mode="contents"/>
|
|
@@ -2575,7 +2585,24 @@
|
|
|
2575
2585
|
<xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
|
|
2576
2586
|
|
|
2577
2587
|
<!-- remove image/emf -->
|
|
2578
|
-
<xsl:template match="mn:image
|
|
2588
|
+
<xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
|
|
2589
|
+
|
|
2590
|
+
<!-- https://github.com/metanorma/metanorma/issues/540 -->
|
|
2591
|
+
<xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
|
|
2592
|
+
<xsl:copy>
|
|
2593
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
2594
|
+
<xsl:choose>
|
|
2595
|
+
<xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
|
|
2596
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
|
|
2597
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
|
|
2598
|
+
</xsl:when>
|
|
2599
|
+
<xsl:otherwise>
|
|
2600
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
|
|
2601
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
|
|
2602
|
+
</xsl:otherwise>
|
|
2603
|
+
</xsl:choose>
|
|
2604
|
+
</xsl:copy>
|
|
2605
|
+
</xsl:template>
|
|
2579
2606
|
|
|
2580
2607
|
<!-- remove preprocess-xslt -->
|
|
2581
2608
|
<xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
|
|
@@ -2803,6 +2830,15 @@
|
|
|
2803
2830
|
</xsl:choose>
|
|
2804
2831
|
</xsl:template>
|
|
2805
2832
|
|
|
2833
|
+
<!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
|
|
2834
|
+
<xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
|
|
2835
|
+
<xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
|
|
2836
|
+
</xsl:template>
|
|
2837
|
+
|
|
2838
|
+
<xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
|
|
2839
|
+
<xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
|
|
2840
|
+
</xsl:template>
|
|
2841
|
+
|
|
2806
2842
|
<!-- li/fmt-name -->
|
|
2807
2843
|
<xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
|
|
2808
2844
|
<xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
|
|
@@ -6168,6 +6204,8 @@
|
|
|
6168
6204
|
<xsl:param name="margin-side"/>
|
|
6169
6205
|
|
|
6170
6206
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6207
|
+
|
|
6208
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6171
6209
|
</xsl:template> <!-- refine_table-style -->
|
|
6172
6210
|
|
|
6173
6211
|
<xsl:attribute-set name="table-number-style">
|
|
@@ -6207,12 +6245,16 @@
|
|
|
6207
6245
|
<xsl:template name="refine_table-header-row-style">
|
|
6208
6246
|
|
|
6209
6247
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6248
|
+
|
|
6249
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6210
6250
|
</xsl:template> <!-- refine_table-header-row-style -->
|
|
6211
6251
|
|
|
6212
6252
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
|
6213
6253
|
</xsl:attribute-set>
|
|
6214
6254
|
|
|
6215
6255
|
<xsl:template name="refine_table-footer-row-style">
|
|
6256
|
+
|
|
6257
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6216
6258
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
|
6217
6259
|
|
|
6218
6260
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
|
@@ -6229,6 +6271,8 @@
|
|
|
6229
6271
|
<xsl:otherwise><xsl:value-of select="$color_table_row_odd"/></xsl:otherwise>
|
|
6230
6272
|
</xsl:choose>
|
|
6231
6273
|
</xsl:attribute>
|
|
6274
|
+
|
|
6275
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6232
6276
|
</xsl:template> <!-- refine_table-body-row-style -->
|
|
6233
6277
|
|
|
6234
6278
|
<xsl:attribute-set name="table-header-cell-style">
|
|
@@ -6255,6 +6299,16 @@
|
|
|
6255
6299
|
</xsl:if>
|
|
6256
6300
|
|
|
6257
6301
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
6302
|
+
|
|
6303
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6304
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6305
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6306
|
+
<xsl:if test="following-sibling::*">
|
|
6307
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6308
|
+
</xsl:if>
|
|
6309
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6310
|
+
</xsl:if>
|
|
6311
|
+
|
|
6258
6312
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
|
6259
6313
|
|
|
6260
6314
|
<xsl:attribute-set name="table-cell-style">
|
|
@@ -6274,6 +6328,15 @@
|
|
|
6274
6328
|
|
|
6275
6329
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6276
6330
|
|
|
6331
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6332
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6333
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6334
|
+
<xsl:if test="following-sibling::*">
|
|
6335
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6336
|
+
</xsl:if>
|
|
6337
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6338
|
+
</xsl:if>
|
|
6339
|
+
|
|
6277
6340
|
</xsl:template> <!-- refine_table-cell-style -->
|
|
6278
6341
|
|
|
6279
6342
|
<xsl:attribute-set name="table-footer-cell-style">
|
|
@@ -6285,6 +6348,8 @@
|
|
|
6285
6348
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
|
6286
6349
|
|
|
6287
6350
|
<xsl:template name="refine_table-footer-cell-style">
|
|
6351
|
+
|
|
6352
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6288
6353
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
|
6289
6354
|
|
|
6290
6355
|
<xsl:attribute-set name="table-note-style">
|
|
@@ -6323,6 +6388,16 @@
|
|
|
6323
6388
|
<xsl:template name="refine_table-fn-body-style">
|
|
6324
6389
|
</xsl:template>
|
|
6325
6390
|
|
|
6391
|
+
<xsl:template name="setNoBordersForTableList">
|
|
6392
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6393
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
|
6394
|
+
<xsl:attribute name="border-top">none</xsl:attribute>
|
|
6395
|
+
<xsl:attribute name="border-bottom">none</xsl:attribute>
|
|
6396
|
+
<xsl:attribute name="border-left">none</xsl:attribute>
|
|
6397
|
+
<xsl:attribute name="border-right">none</xsl:attribute>
|
|
6398
|
+
</xsl:if>
|
|
6399
|
+
</xsl:template>
|
|
6400
|
+
|
|
6326
6401
|
<!-- ========================== -->
|
|
6327
6402
|
<!-- END Table styles -->
|
|
6328
6403
|
<!-- ========================== -->
|
|
@@ -11926,6 +12001,10 @@
|
|
|
11926
12001
|
</fo:list-item>
|
|
11927
12002
|
</xsl:template>
|
|
11928
12003
|
|
|
12004
|
+
<xsl:template match="mn:fmt-ol | mn:fmt-ul">
|
|
12005
|
+
<xsl:apply-templates/>
|
|
12006
|
+
</xsl:template>
|
|
12007
|
+
|
|
11929
12008
|
<!-- ===================================== -->
|
|
11930
12009
|
<!-- END Lists processing -->
|
|
11931
12010
|
<!-- ===================================== -->
|
|
@@ -1249,6 +1249,9 @@
|
|
|
1249
1249
|
<xsl:variable name="title">
|
|
1250
1250
|
<xsl:call-template name="getName"/>
|
|
1251
1251
|
</xsl:variable>
|
|
1252
|
+
<xsl:variable name="variant_title">
|
|
1253
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
1254
|
+
</xsl:variable>
|
|
1252
1255
|
|
|
1253
1256
|
<xsl:variable name="type" select="local-name()"/>
|
|
1254
1257
|
|
|
@@ -1260,7 +1263,14 @@
|
|
|
1260
1263
|
<xsl:attribute name="parent">annex</xsl:attribute>
|
|
1261
1264
|
</xsl:if>
|
|
1262
1265
|
<mnx:title>
|
|
1263
|
-
<xsl:
|
|
1266
|
+
<xsl:choose>
|
|
1267
|
+
<xsl:when test="normalize-space($variant_title) != ''">
|
|
1268
|
+
<xsl:apply-templates select="xalan:nodeset($variant_title)" mode="contents_item"/>
|
|
1269
|
+
</xsl:when>
|
|
1270
|
+
<xsl:otherwise>
|
|
1271
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
|
1272
|
+
</xsl:otherwise>
|
|
1273
|
+
</xsl:choose>
|
|
1264
1274
|
</mnx:title>
|
|
1265
1275
|
<xsl:if test="$type != 'indexsect'">
|
|
1266
1276
|
<xsl:apply-templates mode="contents"/>
|
|
@@ -2575,7 +2585,24 @@
|
|
|
2575
2585
|
<xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
|
|
2576
2586
|
|
|
2577
2587
|
<!-- remove image/emf -->
|
|
2578
|
-
<xsl:template match="mn:image
|
|
2588
|
+
<xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
|
|
2589
|
+
|
|
2590
|
+
<!-- https://github.com/metanorma/metanorma/issues/540 -->
|
|
2591
|
+
<xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
|
|
2592
|
+
<xsl:copy>
|
|
2593
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
2594
|
+
<xsl:choose>
|
|
2595
|
+
<xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
|
|
2596
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
|
|
2597
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
|
|
2598
|
+
</xsl:when>
|
|
2599
|
+
<xsl:otherwise>
|
|
2600
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
|
|
2601
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
|
|
2602
|
+
</xsl:otherwise>
|
|
2603
|
+
</xsl:choose>
|
|
2604
|
+
</xsl:copy>
|
|
2605
|
+
</xsl:template>
|
|
2579
2606
|
|
|
2580
2607
|
<!-- remove preprocess-xslt -->
|
|
2581
2608
|
<xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
|
|
@@ -2803,6 +2830,15 @@
|
|
|
2803
2830
|
</xsl:choose>
|
|
2804
2831
|
</xsl:template>
|
|
2805
2832
|
|
|
2833
|
+
<!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
|
|
2834
|
+
<xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
|
|
2835
|
+
<xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
|
|
2836
|
+
</xsl:template>
|
|
2837
|
+
|
|
2838
|
+
<xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
|
|
2839
|
+
<xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
|
|
2840
|
+
</xsl:template>
|
|
2841
|
+
|
|
2806
2842
|
<!-- li/fmt-name -->
|
|
2807
2843
|
<xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
|
|
2808
2844
|
<xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
|
|
@@ -6168,6 +6204,8 @@
|
|
|
6168
6204
|
<xsl:param name="margin-side"/>
|
|
6169
6205
|
|
|
6170
6206
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6207
|
+
|
|
6208
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6171
6209
|
</xsl:template> <!-- refine_table-style -->
|
|
6172
6210
|
|
|
6173
6211
|
<xsl:attribute-set name="table-number-style">
|
|
@@ -6207,12 +6245,16 @@
|
|
|
6207
6245
|
<xsl:template name="refine_table-header-row-style">
|
|
6208
6246
|
|
|
6209
6247
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6248
|
+
|
|
6249
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6210
6250
|
</xsl:template> <!-- refine_table-header-row-style -->
|
|
6211
6251
|
|
|
6212
6252
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
|
6213
6253
|
</xsl:attribute-set>
|
|
6214
6254
|
|
|
6215
6255
|
<xsl:template name="refine_table-footer-row-style">
|
|
6256
|
+
|
|
6257
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6216
6258
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
|
6217
6259
|
|
|
6218
6260
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
|
@@ -6229,6 +6271,8 @@
|
|
|
6229
6271
|
<xsl:otherwise><xsl:value-of select="$color_table_row_odd"/></xsl:otherwise>
|
|
6230
6272
|
</xsl:choose>
|
|
6231
6273
|
</xsl:attribute>
|
|
6274
|
+
|
|
6275
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6232
6276
|
</xsl:template> <!-- refine_table-body-row-style -->
|
|
6233
6277
|
|
|
6234
6278
|
<xsl:attribute-set name="table-header-cell-style">
|
|
@@ -6255,6 +6299,16 @@
|
|
|
6255
6299
|
</xsl:if>
|
|
6256
6300
|
|
|
6257
6301
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
6302
|
+
|
|
6303
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6304
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6305
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6306
|
+
<xsl:if test="following-sibling::*">
|
|
6307
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6308
|
+
</xsl:if>
|
|
6309
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6310
|
+
</xsl:if>
|
|
6311
|
+
|
|
6258
6312
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
|
6259
6313
|
|
|
6260
6314
|
<xsl:attribute-set name="table-cell-style">
|
|
@@ -6274,6 +6328,15 @@
|
|
|
6274
6328
|
|
|
6275
6329
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6276
6330
|
|
|
6331
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6332
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6333
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6334
|
+
<xsl:if test="following-sibling::*">
|
|
6335
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6336
|
+
</xsl:if>
|
|
6337
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6338
|
+
</xsl:if>
|
|
6339
|
+
|
|
6277
6340
|
</xsl:template> <!-- refine_table-cell-style -->
|
|
6278
6341
|
|
|
6279
6342
|
<xsl:attribute-set name="table-footer-cell-style">
|
|
@@ -6285,6 +6348,8 @@
|
|
|
6285
6348
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
|
6286
6349
|
|
|
6287
6350
|
<xsl:template name="refine_table-footer-cell-style">
|
|
6351
|
+
|
|
6352
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6288
6353
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
|
6289
6354
|
|
|
6290
6355
|
<xsl:attribute-set name="table-note-style">
|
|
@@ -6323,6 +6388,16 @@
|
|
|
6323
6388
|
<xsl:template name="refine_table-fn-body-style">
|
|
6324
6389
|
</xsl:template>
|
|
6325
6390
|
|
|
6391
|
+
<xsl:template name="setNoBordersForTableList">
|
|
6392
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6393
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
|
6394
|
+
<xsl:attribute name="border-top">none</xsl:attribute>
|
|
6395
|
+
<xsl:attribute name="border-bottom">none</xsl:attribute>
|
|
6396
|
+
<xsl:attribute name="border-left">none</xsl:attribute>
|
|
6397
|
+
<xsl:attribute name="border-right">none</xsl:attribute>
|
|
6398
|
+
</xsl:if>
|
|
6399
|
+
</xsl:template>
|
|
6400
|
+
|
|
6326
6401
|
<!-- ========================== -->
|
|
6327
6402
|
<!-- END Table styles -->
|
|
6328
6403
|
<!-- ========================== -->
|
|
@@ -11926,6 +12001,10 @@
|
|
|
11926
12001
|
</fo:list-item>
|
|
11927
12002
|
</xsl:template>
|
|
11928
12003
|
|
|
12004
|
+
<xsl:template match="mn:fmt-ol | mn:fmt-ul">
|
|
12005
|
+
<xsl:apply-templates/>
|
|
12006
|
+
</xsl:template>
|
|
12007
|
+
|
|
11929
12008
|
<!-- ===================================== -->
|
|
11930
12009
|
<!-- END Lists processing -->
|
|
11931
12010
|
<!-- ===================================== -->
|
|
@@ -1249,6 +1249,9 @@
|
|
|
1249
1249
|
<xsl:variable name="title">
|
|
1250
1250
|
<xsl:call-template name="getName"/>
|
|
1251
1251
|
</xsl:variable>
|
|
1252
|
+
<xsl:variable name="variant_title">
|
|
1253
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
1254
|
+
</xsl:variable>
|
|
1252
1255
|
|
|
1253
1256
|
<xsl:variable name="type" select="local-name()"/>
|
|
1254
1257
|
|
|
@@ -1260,7 +1263,14 @@
|
|
|
1260
1263
|
<xsl:attribute name="parent">annex</xsl:attribute>
|
|
1261
1264
|
</xsl:if>
|
|
1262
1265
|
<mnx:title>
|
|
1263
|
-
<xsl:
|
|
1266
|
+
<xsl:choose>
|
|
1267
|
+
<xsl:when test="normalize-space($variant_title) != ''">
|
|
1268
|
+
<xsl:apply-templates select="xalan:nodeset($variant_title)" mode="contents_item"/>
|
|
1269
|
+
</xsl:when>
|
|
1270
|
+
<xsl:otherwise>
|
|
1271
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
|
1272
|
+
</xsl:otherwise>
|
|
1273
|
+
</xsl:choose>
|
|
1264
1274
|
</mnx:title>
|
|
1265
1275
|
<xsl:if test="$type != 'indexsect'">
|
|
1266
1276
|
<xsl:apply-templates mode="contents"/>
|
|
@@ -2575,7 +2585,24 @@
|
|
|
2575
2585
|
<xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
|
|
2576
2586
|
|
|
2577
2587
|
<!-- remove image/emf -->
|
|
2578
|
-
<xsl:template match="mn:image
|
|
2588
|
+
<xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
|
|
2589
|
+
|
|
2590
|
+
<!-- https://github.com/metanorma/metanorma/issues/540 -->
|
|
2591
|
+
<xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
|
|
2592
|
+
<xsl:copy>
|
|
2593
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
2594
|
+
<xsl:choose>
|
|
2595
|
+
<xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
|
|
2596
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
|
|
2597
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
|
|
2598
|
+
</xsl:when>
|
|
2599
|
+
<xsl:otherwise>
|
|
2600
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
|
|
2601
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
|
|
2602
|
+
</xsl:otherwise>
|
|
2603
|
+
</xsl:choose>
|
|
2604
|
+
</xsl:copy>
|
|
2605
|
+
</xsl:template>
|
|
2579
2606
|
|
|
2580
2607
|
<!-- remove preprocess-xslt -->
|
|
2581
2608
|
<xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
|
|
@@ -2803,6 +2830,15 @@
|
|
|
2803
2830
|
</xsl:choose>
|
|
2804
2831
|
</xsl:template>
|
|
2805
2832
|
|
|
2833
|
+
<!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
|
|
2834
|
+
<xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
|
|
2835
|
+
<xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
|
|
2836
|
+
</xsl:template>
|
|
2837
|
+
|
|
2838
|
+
<xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
|
|
2839
|
+
<xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
|
|
2840
|
+
</xsl:template>
|
|
2841
|
+
|
|
2806
2842
|
<!-- li/fmt-name -->
|
|
2807
2843
|
<xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
|
|
2808
2844
|
<xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
|
|
@@ -6168,6 +6204,8 @@
|
|
|
6168
6204
|
<xsl:param name="margin-side"/>
|
|
6169
6205
|
|
|
6170
6206
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6207
|
+
|
|
6208
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6171
6209
|
</xsl:template> <!-- refine_table-style -->
|
|
6172
6210
|
|
|
6173
6211
|
<xsl:attribute-set name="table-number-style">
|
|
@@ -6207,12 +6245,16 @@
|
|
|
6207
6245
|
<xsl:template name="refine_table-header-row-style">
|
|
6208
6246
|
|
|
6209
6247
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6248
|
+
|
|
6249
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6210
6250
|
</xsl:template> <!-- refine_table-header-row-style -->
|
|
6211
6251
|
|
|
6212
6252
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
|
6213
6253
|
</xsl:attribute-set>
|
|
6214
6254
|
|
|
6215
6255
|
<xsl:template name="refine_table-footer-row-style">
|
|
6256
|
+
|
|
6257
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6216
6258
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
|
6217
6259
|
|
|
6218
6260
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
|
@@ -6229,6 +6271,8 @@
|
|
|
6229
6271
|
<xsl:otherwise><xsl:value-of select="$color_table_row_odd"/></xsl:otherwise>
|
|
6230
6272
|
</xsl:choose>
|
|
6231
6273
|
</xsl:attribute>
|
|
6274
|
+
|
|
6275
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6232
6276
|
</xsl:template> <!-- refine_table-body-row-style -->
|
|
6233
6277
|
|
|
6234
6278
|
<xsl:attribute-set name="table-header-cell-style">
|
|
@@ -6255,6 +6299,16 @@
|
|
|
6255
6299
|
</xsl:if>
|
|
6256
6300
|
|
|
6257
6301
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
6302
|
+
|
|
6303
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6304
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6305
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6306
|
+
<xsl:if test="following-sibling::*">
|
|
6307
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6308
|
+
</xsl:if>
|
|
6309
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6310
|
+
</xsl:if>
|
|
6311
|
+
|
|
6258
6312
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
|
6259
6313
|
|
|
6260
6314
|
<xsl:attribute-set name="table-cell-style">
|
|
@@ -6274,6 +6328,15 @@
|
|
|
6274
6328
|
|
|
6275
6329
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6276
6330
|
|
|
6331
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6332
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6333
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6334
|
+
<xsl:if test="following-sibling::*">
|
|
6335
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6336
|
+
</xsl:if>
|
|
6337
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6338
|
+
</xsl:if>
|
|
6339
|
+
|
|
6277
6340
|
</xsl:template> <!-- refine_table-cell-style -->
|
|
6278
6341
|
|
|
6279
6342
|
<xsl:attribute-set name="table-footer-cell-style">
|
|
@@ -6285,6 +6348,8 @@
|
|
|
6285
6348
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
|
6286
6349
|
|
|
6287
6350
|
<xsl:template name="refine_table-footer-cell-style">
|
|
6351
|
+
|
|
6352
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6288
6353
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
|
6289
6354
|
|
|
6290
6355
|
<xsl:attribute-set name="table-note-style">
|
|
@@ -6323,6 +6388,16 @@
|
|
|
6323
6388
|
<xsl:template name="refine_table-fn-body-style">
|
|
6324
6389
|
</xsl:template>
|
|
6325
6390
|
|
|
6391
|
+
<xsl:template name="setNoBordersForTableList">
|
|
6392
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6393
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
|
6394
|
+
<xsl:attribute name="border-top">none</xsl:attribute>
|
|
6395
|
+
<xsl:attribute name="border-bottom">none</xsl:attribute>
|
|
6396
|
+
<xsl:attribute name="border-left">none</xsl:attribute>
|
|
6397
|
+
<xsl:attribute name="border-right">none</xsl:attribute>
|
|
6398
|
+
</xsl:if>
|
|
6399
|
+
</xsl:template>
|
|
6400
|
+
|
|
6326
6401
|
<!-- ========================== -->
|
|
6327
6402
|
<!-- END Table styles -->
|
|
6328
6403
|
<!-- ========================== -->
|
|
@@ -11926,6 +12001,10 @@
|
|
|
11926
12001
|
</fo:list-item>
|
|
11927
12002
|
</xsl:template>
|
|
11928
12003
|
|
|
12004
|
+
<xsl:template match="mn:fmt-ol | mn:fmt-ul">
|
|
12005
|
+
<xsl:apply-templates/>
|
|
12006
|
+
</xsl:template>
|
|
12007
|
+
|
|
11929
12008
|
<!-- ===================================== -->
|
|
11930
12009
|
<!-- END Lists processing -->
|
|
11931
12010
|
<!-- ===================================== -->
|