metanorma-iec 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/iec/iec.international-standard.xsl +71 -2
- data/lib/metanorma/iec/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: e2a3beafed0d59c715ad2d3ee28cff96847e66ea5a81474aba330bd5433206e8
|
|
4
|
+
data.tar.gz: 448025bfed257cd06e848fdb3f4d2e54d9c81e8a279c1cf87c85d189981c4d7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0404119c4072ec1a139ce6d12cf72ff5e1dfad066d6ce2e8ea473374a53287b4d80a92a909ea4c7084301136f5e60d26a25f84bd4c19b88adb5500bc7eace3a
|
|
7
|
+
data.tar.gz: 672b5b1c9534b42889ec232e1a350f6369af3879ced8e513f6fa1127970cfca7311d3c2dc88bcd48d67c7b046926ea0c8939335938b3dfa0b67cf8497447dbbb
|
|
@@ -1584,7 +1584,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
1584
1584
|
</xsl:variable>
|
|
1585
1585
|
|
|
1586
1586
|
<xsl:variable name="variant_title">
|
|
1587
|
-
<xsl:copy-of select="mn:variant-title/node()"/>
|
|
1587
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
1588
1588
|
</xsl:variable>
|
|
1589
1589
|
|
|
1590
1590
|
<mnx:item id="{@id}" level="{$level}" section="{$section}" type="{$type}" display="{$display}">
|
|
@@ -2780,7 +2780,24 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
2780
2780
|
<xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
|
|
2781
2781
|
|
|
2782
2782
|
<!-- remove image/emf -->
|
|
2783
|
-
<xsl:template match="mn:image
|
|
2783
|
+
<xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
|
|
2784
|
+
|
|
2785
|
+
<!-- https://github.com/metanorma/metanorma/issues/540 -->
|
|
2786
|
+
<xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
|
|
2787
|
+
<xsl:copy>
|
|
2788
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
2789
|
+
<xsl:choose>
|
|
2790
|
+
<xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
|
|
2791
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
|
|
2792
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
|
|
2793
|
+
</xsl:when>
|
|
2794
|
+
<xsl:otherwise>
|
|
2795
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
|
|
2796
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
|
|
2797
|
+
</xsl:otherwise>
|
|
2798
|
+
</xsl:choose>
|
|
2799
|
+
</xsl:copy>
|
|
2800
|
+
</xsl:template>
|
|
2784
2801
|
|
|
2785
2802
|
<!-- remove preprocess-xslt -->
|
|
2786
2803
|
<xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
|
|
@@ -3008,6 +3025,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
3008
3025
|
</xsl:choose>
|
|
3009
3026
|
</xsl:template>
|
|
3010
3027
|
|
|
3028
|
+
<!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
|
|
3029
|
+
<xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
|
|
3030
|
+
<xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
|
|
3031
|
+
</xsl:template>
|
|
3032
|
+
|
|
3033
|
+
<xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
|
|
3034
|
+
<xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
|
|
3035
|
+
</xsl:template>
|
|
3036
|
+
|
|
3011
3037
|
<!-- li/fmt-name -->
|
|
3012
3038
|
<xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
|
|
3013
3039
|
<xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
|
|
@@ -6293,6 +6319,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6293
6319
|
</xsl:if>
|
|
6294
6320
|
|
|
6295
6321
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6322
|
+
|
|
6323
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6296
6324
|
</xsl:template> <!-- refine_table-style -->
|
|
6297
6325
|
|
|
6298
6326
|
<xsl:attribute-set name="table-number-style">
|
|
@@ -6335,6 +6363,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6335
6363
|
<xsl:template name="refine_table-header-row-style">
|
|
6336
6364
|
|
|
6337
6365
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6366
|
+
|
|
6367
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6338
6368
|
</xsl:template> <!-- refine_table-header-row-style -->
|
|
6339
6369
|
|
|
6340
6370
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
|
@@ -6343,6 +6373,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6343
6373
|
</xsl:attribute-set>
|
|
6344
6374
|
|
|
6345
6375
|
<xsl:template name="refine_table-footer-row-style">
|
|
6376
|
+
|
|
6377
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6346
6378
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
|
6347
6379
|
|
|
6348
6380
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
|
@@ -6352,6 +6384,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6352
6384
|
<xsl:template name="refine_table-body-row-style">
|
|
6353
6385
|
|
|
6354
6386
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6387
|
+
|
|
6388
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6355
6389
|
</xsl:template> <!-- refine_table-body-row-style -->
|
|
6356
6390
|
|
|
6357
6391
|
<xsl:attribute-set name="table-header-cell-style">
|
|
@@ -6377,6 +6411,16 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6377
6411
|
</xsl:if>
|
|
6378
6412
|
|
|
6379
6413
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
6414
|
+
|
|
6415
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6416
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6417
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6418
|
+
<xsl:if test="following-sibling::*">
|
|
6419
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6420
|
+
</xsl:if>
|
|
6421
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6422
|
+
</xsl:if>
|
|
6423
|
+
|
|
6380
6424
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
|
6381
6425
|
|
|
6382
6426
|
<xsl:attribute-set name="table-cell-style">
|
|
@@ -6398,6 +6442,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6398
6442
|
|
|
6399
6443
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6400
6444
|
|
|
6445
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6446
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6447
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6448
|
+
<xsl:if test="following-sibling::*">
|
|
6449
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6450
|
+
</xsl:if>
|
|
6451
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6452
|
+
</xsl:if>
|
|
6453
|
+
|
|
6401
6454
|
</xsl:template> <!-- refine_table-cell-style -->
|
|
6402
6455
|
|
|
6403
6456
|
<xsl:attribute-set name="table-footer-cell-style">
|
|
@@ -6409,6 +6462,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6409
6462
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
|
6410
6463
|
|
|
6411
6464
|
<xsl:template name="refine_table-footer-cell-style">
|
|
6465
|
+
|
|
6466
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6412
6467
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
|
6413
6468
|
|
|
6414
6469
|
<xsl:attribute-set name="table-note-style">
|
|
@@ -6454,6 +6509,16 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6454
6509
|
<xsl:template name="refine_table-fn-body-style">
|
|
6455
6510
|
</xsl:template>
|
|
6456
6511
|
|
|
6512
|
+
<xsl:template name="setNoBordersForTableList">
|
|
6513
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6514
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
|
6515
|
+
<xsl:attribute name="border-top">none</xsl:attribute>
|
|
6516
|
+
<xsl:attribute name="border-bottom">none</xsl:attribute>
|
|
6517
|
+
<xsl:attribute name="border-left">none</xsl:attribute>
|
|
6518
|
+
<xsl:attribute name="border-right">none</xsl:attribute>
|
|
6519
|
+
</xsl:if>
|
|
6520
|
+
</xsl:template>
|
|
6521
|
+
|
|
6457
6522
|
<!-- ========================== -->
|
|
6458
6523
|
<!-- END Table styles -->
|
|
6459
6524
|
<!-- ========================== -->
|
|
@@ -12081,6 +12146,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
12081
12146
|
</fo:list-item>
|
|
12082
12147
|
</xsl:template>
|
|
12083
12148
|
|
|
12149
|
+
<xsl:template match="mn:fmt-ol | mn:fmt-ul">
|
|
12150
|
+
<xsl:apply-templates/>
|
|
12151
|
+
</xsl:template>
|
|
12152
|
+
|
|
12084
12153
|
<!-- ===================================== -->
|
|
12085
12154
|
<!-- END Lists processing -->
|
|
12086
12155
|
<!-- ===================================== -->
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-iec
|
|
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: bin
|
|
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-iso
|