metanorma-cc 2.8.2 → 2.8.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/cc/cc.standard.xsl +81 -2
- data/lib/metanorma/cc/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: cc0ffb6813bd4a4a9451ddba8a1d68f8b485e9a8ef182e77daa5cc31cd3078fe
|
|
4
|
+
data.tar.gz: 012fa0089b821d23d6a43a5b09aa42384a651489e9723bd73fec055323857dfd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b21c5e472e3f29cede108ffcf078ba4b5ea024c12db3c219976e43ef44d451573c31f78e4f7f7dc72d7b37e6c9f5ee5cc8484711b926405558eb6a32337d2428
|
|
7
|
+
data.tar.gz: 4f77fe9a73a8f7b6ab8f81d2609d692057f56749705c32e035f279dbe1e1a70f8fdf934250483569c72144f8219b1f4421b2ea2dc20c3fb0fe680b3bcfab9c13
|
|
@@ -538,13 +538,23 @@
|
|
|
538
538
|
<xsl:variable name="title">
|
|
539
539
|
<xsl:call-template name="getName"/>
|
|
540
540
|
</xsl:variable>
|
|
541
|
+
<xsl:variable name="variant_title">
|
|
542
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
543
|
+
</xsl:variable>
|
|
541
544
|
|
|
542
545
|
<mnx:item id="{@id}" level="{$level}" section="{$section}" display="{$display}">
|
|
543
546
|
<xsl:if test="$type = 'indexsect'">
|
|
544
547
|
<xsl:attribute name="level">1</xsl:attribute>
|
|
545
548
|
</xsl:if>
|
|
546
549
|
<mnx:title>
|
|
547
|
-
<xsl:
|
|
550
|
+
<xsl:choose>
|
|
551
|
+
<xsl:when test="normalize-space($variant_title) != ''">
|
|
552
|
+
<xsl:apply-templates select="xalan:nodeset($variant_title)" mode="contents_item"/>
|
|
553
|
+
</xsl:when>
|
|
554
|
+
<xsl:otherwise>
|
|
555
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
|
556
|
+
</xsl:otherwise>
|
|
557
|
+
</xsl:choose>
|
|
548
558
|
</mnx:title>
|
|
549
559
|
<xsl:if test="$type != 'indexsect'">
|
|
550
560
|
<xsl:apply-templates mode="contents"/>
|
|
@@ -1299,7 +1309,24 @@
|
|
|
1299
1309
|
<xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
|
|
1300
1310
|
|
|
1301
1311
|
<!-- remove image/emf -->
|
|
1302
|
-
<xsl:template match="mn:image
|
|
1312
|
+
<xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
|
|
1313
|
+
|
|
1314
|
+
<!-- https://github.com/metanorma/metanorma/issues/540 -->
|
|
1315
|
+
<xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
|
|
1316
|
+
<xsl:copy>
|
|
1317
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
1318
|
+
<xsl:choose>
|
|
1319
|
+
<xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
|
|
1320
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
|
|
1321
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
|
|
1322
|
+
</xsl:when>
|
|
1323
|
+
<xsl:otherwise>
|
|
1324
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
|
|
1325
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
|
|
1326
|
+
</xsl:otherwise>
|
|
1327
|
+
</xsl:choose>
|
|
1328
|
+
</xsl:copy>
|
|
1329
|
+
</xsl:template>
|
|
1303
1330
|
|
|
1304
1331
|
<!-- remove preprocess-xslt -->
|
|
1305
1332
|
<xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
|
|
@@ -1527,6 +1554,15 @@
|
|
|
1527
1554
|
</xsl:choose>
|
|
1528
1555
|
</xsl:template>
|
|
1529
1556
|
|
|
1557
|
+
<!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
|
|
1558
|
+
<xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
|
|
1559
|
+
<xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
|
|
1560
|
+
</xsl:template>
|
|
1561
|
+
|
|
1562
|
+
<xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
|
|
1563
|
+
<xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
|
|
1564
|
+
</xsl:template>
|
|
1565
|
+
|
|
1530
1566
|
<!-- li/fmt-name -->
|
|
1531
1567
|
<xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
|
|
1532
1568
|
<xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
|
|
@@ -4781,6 +4817,8 @@
|
|
|
4781
4817
|
</xsl:if>
|
|
4782
4818
|
|
|
4783
4819
|
<xsl:call-template name="setBordersTableArray"/>
|
|
4820
|
+
|
|
4821
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
4784
4822
|
</xsl:template> <!-- refine_table-style -->
|
|
4785
4823
|
|
|
4786
4824
|
<xsl:attribute-set name="table-number-style">
|
|
@@ -4815,12 +4853,16 @@
|
|
|
4815
4853
|
<xsl:template name="refine_table-header-row-style">
|
|
4816
4854
|
|
|
4817
4855
|
<xsl:call-template name="setBordersTableArray"/>
|
|
4856
|
+
|
|
4857
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
4818
4858
|
</xsl:template> <!-- refine_table-header-row-style -->
|
|
4819
4859
|
|
|
4820
4860
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
|
4821
4861
|
</xsl:attribute-set>
|
|
4822
4862
|
|
|
4823
4863
|
<xsl:template name="refine_table-footer-row-style">
|
|
4864
|
+
|
|
4865
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
4824
4866
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
|
4825
4867
|
|
|
4826
4868
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
|
@@ -4830,6 +4872,8 @@
|
|
|
4830
4872
|
<xsl:template name="refine_table-body-row-style">
|
|
4831
4873
|
|
|
4832
4874
|
<xsl:call-template name="setBordersTableArray"/>
|
|
4875
|
+
|
|
4876
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
4833
4877
|
</xsl:template> <!-- refine_table-body-row-style -->
|
|
4834
4878
|
|
|
4835
4879
|
<xsl:attribute-set name="table-header-cell-style">
|
|
@@ -4848,6 +4892,16 @@
|
|
|
4848
4892
|
</xsl:if>
|
|
4849
4893
|
|
|
4850
4894
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
4895
|
+
|
|
4896
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
4897
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
4898
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
4899
|
+
<xsl:if test="following-sibling::*">
|
|
4900
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
4901
|
+
</xsl:if>
|
|
4902
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
4903
|
+
</xsl:if>
|
|
4904
|
+
|
|
4851
4905
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
|
4852
4906
|
|
|
4853
4907
|
<xsl:attribute-set name="table-cell-style">
|
|
@@ -4864,6 +4918,15 @@
|
|
|
4864
4918
|
|
|
4865
4919
|
<xsl:call-template name="setBordersTableArray"/>
|
|
4866
4920
|
|
|
4921
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
4922
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
4923
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
4924
|
+
<xsl:if test="following-sibling::*">
|
|
4925
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
4926
|
+
</xsl:if>
|
|
4927
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
4928
|
+
</xsl:if>
|
|
4929
|
+
|
|
4867
4930
|
</xsl:template> <!-- refine_table-cell-style -->
|
|
4868
4931
|
|
|
4869
4932
|
<xsl:attribute-set name="table-footer-cell-style">
|
|
@@ -4874,6 +4937,8 @@
|
|
|
4874
4937
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
|
4875
4938
|
|
|
4876
4939
|
<xsl:template name="refine_table-footer-cell-style">
|
|
4940
|
+
|
|
4941
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
4877
4942
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
|
4878
4943
|
|
|
4879
4944
|
<xsl:attribute-set name="table-note-style">
|
|
@@ -4912,6 +4977,16 @@
|
|
|
4912
4977
|
<xsl:template name="refine_table-fn-body-style">
|
|
4913
4978
|
</xsl:template>
|
|
4914
4979
|
|
|
4980
|
+
<xsl:template name="setNoBordersForTableList">
|
|
4981
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
4982
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
|
4983
|
+
<xsl:attribute name="border-top">none</xsl:attribute>
|
|
4984
|
+
<xsl:attribute name="border-bottom">none</xsl:attribute>
|
|
4985
|
+
<xsl:attribute name="border-left">none</xsl:attribute>
|
|
4986
|
+
<xsl:attribute name="border-right">none</xsl:attribute>
|
|
4987
|
+
</xsl:if>
|
|
4988
|
+
</xsl:template>
|
|
4989
|
+
|
|
4915
4990
|
<!-- ========================== -->
|
|
4916
4991
|
<!-- END Table styles -->
|
|
4917
4992
|
<!-- ========================== -->
|
|
@@ -10470,6 +10545,10 @@
|
|
|
10470
10545
|
</fo:list-item>
|
|
10471
10546
|
</xsl:template>
|
|
10472
10547
|
|
|
10548
|
+
<xsl:template match="mn:fmt-ol | mn:fmt-ul">
|
|
10549
|
+
<xsl:apply-templates/>
|
|
10550
|
+
</xsl:template>
|
|
10551
|
+
|
|
10473
10552
|
<!-- ===================================== -->
|
|
10474
10553
|
<!-- END Lists processing -->
|
|
10475
10554
|
<!-- ===================================== -->
|
data/lib/metanorma/cc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-cc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-generic
|