metanorma-iso 2.9.5 → 2.9.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02b8536c8dedc08d06356682d97dc203baa51f10136f1d8f5bd4166418f8ae0c
|
4
|
+
data.tar.gz: 46cd7825f277c494a45a626f16b72a7471d4894a6d85bb8fa58f184be73fa030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040eb6a7c0a9ed836363a87d63bd539093c56eb41d8e0e8770c11f64ecf3bf02ffa46a631b8db1a47877818a937f15fe31459c043ff8ab851dc4e07b3cd615ca
|
7
|
+
data.tar.gz: 0436551ec589f985bdf87d0028f68466000582a644ccbc9212427c5ac7e1dbef6e75f7c5fb11b5678f66ba84ffa333d5ca9bdd82dabf3ea5a2586a46d99a668c
|
@@ -11274,9 +11274,14 @@
|
|
11274
11274
|
|
11275
11275
|
<xsl:variable name="simple-table">
|
11276
11276
|
|
11277
|
+
<xsl:variable name="table_without_semantic_elements">
|
11278
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11279
|
+
</xsl:variable>
|
11280
|
+
|
11277
11281
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
11278
11282
|
<xsl:variable name="table_without_br">
|
11279
|
-
<xsl:apply-templates mode="table-without-br"/>
|
11283
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
11284
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
11280
11285
|
</xsl:variable>
|
11281
11286
|
|
11282
11287
|
<!-- Step 1. colspan processing -->
|
@@ -17441,16 +17446,30 @@
|
|
17441
17446
|
|
17442
17447
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
17443
17448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
17444
|
-
<xsl:
|
17445
|
-
<xsl:
|
17446
|
-
|
17447
|
-
|
17449
|
+
<xsl:choose>
|
17450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
17451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17452
|
+
</xsl:when>
|
17453
|
+
<xsl:otherwise>
|
17454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
17455
|
+
<xsl:copy-of select="@*"/>
|
17456
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17457
|
+
</xsl:element>
|
17458
|
+
</xsl:otherwise>
|
17459
|
+
</xsl:choose>
|
17448
17460
|
</xsl:template>
|
17449
17461
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
17450
|
-
<xsl:
|
17451
|
-
<xsl:
|
17452
|
-
|
17453
|
-
|
17462
|
+
<xsl:choose>
|
17463
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
17464
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17465
|
+
</xsl:when>
|
17466
|
+
<xsl:otherwise>
|
17467
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
17468
|
+
<xsl:copy-of select="@*"/>
|
17469
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
17470
|
+
</xsl:element>
|
17471
|
+
</xsl:otherwise>
|
17472
|
+
</xsl:choose>
|
17454
17473
|
</xsl:template>
|
17455
17474
|
|
17456
17475
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -17548,6 +17567,9 @@
|
|
17548
17567
|
<xsl:apply-templates mode="update_xml_pres"/>
|
17549
17568
|
</xsl:template>
|
17550
17569
|
|
17570
|
+
<xsl:template match="*[local-name() = 'semx']">
|
17571
|
+
<xsl:apply-templates/>
|
17572
|
+
</xsl:template>
|
17551
17573
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
17552
17574
|
<xsl:apply-templates mode="update_xml_step1"/>
|
17553
17575
|
</xsl:template>
|
@@ -11274,9 +11274,14 @@
|
|
11274
11274
|
|
11275
11275
|
<xsl:variable name="simple-table">
|
11276
11276
|
|
11277
|
+
<xsl:variable name="table_without_semantic_elements">
|
11278
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
11279
|
+
</xsl:variable>
|
11280
|
+
|
11277
11281
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
11278
11282
|
<xsl:variable name="table_without_br">
|
11279
|
-
<xsl:apply-templates mode="table-without-br"/>
|
11283
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
11284
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
11280
11285
|
</xsl:variable>
|
11281
11286
|
|
11282
11287
|
<!-- Step 1. colspan processing -->
|
@@ -17441,16 +17446,30 @@
|
|
17441
17446
|
|
17442
17447
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
17443
17448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
17444
|
-
<xsl:
|
17445
|
-
<xsl:
|
17446
|
-
|
17447
|
-
|
17449
|
+
<xsl:choose>
|
17450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
17451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17452
|
+
</xsl:when>
|
17453
|
+
<xsl:otherwise>
|
17454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
17455
|
+
<xsl:copy-of select="@*"/>
|
17456
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17457
|
+
</xsl:element>
|
17458
|
+
</xsl:otherwise>
|
17459
|
+
</xsl:choose>
|
17448
17460
|
</xsl:template>
|
17449
17461
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
17450
|
-
<xsl:
|
17451
|
-
<xsl:
|
17452
|
-
|
17453
|
-
|
17462
|
+
<xsl:choose>
|
17463
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
17464
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
17465
|
+
</xsl:when>
|
17466
|
+
<xsl:otherwise>
|
17467
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
17468
|
+
<xsl:copy-of select="@*"/>
|
17469
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
17470
|
+
</xsl:element>
|
17471
|
+
</xsl:otherwise>
|
17472
|
+
</xsl:choose>
|
17454
17473
|
</xsl:template>
|
17455
17474
|
|
17456
17475
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -17548,6 +17567,9 @@
|
|
17548
17567
|
<xsl:apply-templates mode="update_xml_pres"/>
|
17549
17568
|
</xsl:template>
|
17550
17569
|
|
17570
|
+
<xsl:template match="*[local-name() = 'semx']">
|
17571
|
+
<xsl:apply-templates/>
|
17572
|
+
</xsl:template>
|
17551
17573
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
17552
17574
|
<xsl:apply-templates mode="update_xml_step1"/>
|
17553
17575
|
</xsl:template>
|
@@ -42,7 +42,8 @@ module Metanorma
|
|
42
42
|
end
|
43
43
|
|
44
44
|
TERM_CLAUSE =
|
45
|
-
"//sections
|
45
|
+
"//sections/terms | " \
|
46
|
+
"//sections/clause//terms[not(preceding-sibling::clause)] | " \
|
46
47
|
"//sections//clause[descendant::terms][not(descendant::definitions)][@type = 'terms'] | " \
|
47
48
|
"//sections/clause[not(@type = 'terms')][not(descendant::definitions)]//terms".freeze
|
48
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|