metanorma-iho 1.0.15 → 1.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0561e6cbb1ff1586a4e0e3c5143cc7c87c48c7c5c5a7c230ab938f4f1141850f
4
- data.tar.gz: a7a70da3cdb547116274144edb2494698522f268d9e4f129dec48a2e9603c3a6
3
+ metadata.gz: fabe86221211d88962e1b6520a72d7ecc9ba842a7c04d87aed2c379eaf1752fb
4
+ data.tar.gz: 31cbef779d6b01b48903066ff266d0a1de1d18064b1015a5447b5d8104be3a58
5
5
  SHA512:
6
- metadata.gz: 6660e7a259bb87be6c1256d35497929c920b9978b87e98ef9a275ef937b0f5ace36218c45a38d24b3d360d48d7bc2e3640a2882aac06a4ed67e524d3dc2b08ca
7
- data.tar.gz: a45059fd657f642c498f44c3f647d6ecb084356d8362c90b7a7ce1099a9c5e205801200fea6bcfcfed715798aaf0c70476514f58153622aebc8ce2dca7c6658a
6
+ metadata.gz: 8b96d34deb88167129d01f0c4b39f87910ccbe3967a779c161df496224e5d04fd52edb21db5a0c34f308c33bd8054db6bb0cdbdab4ebc9de61227edb92b07d95
7
+ data.tar.gz: 3bdfcc58087628650e0405a3078614c26ae8bddd1852206783642cc39af42d36ef5f8f3af300e19b3d99c7d15e3c4911661f7644d4d45a8a7ecddd9d95e9cc93
@@ -6190,9 +6190,14 @@
6190
6190
 
6191
6191
  <xsl:variable name="simple-table">
6192
6192
 
6193
+ <xsl:variable name="table_without_semantic_elements">
6194
+ <xsl:apply-templates mode="update_xml_pres"/>
6195
+ </xsl:variable>
6196
+
6193
6197
  <!-- Step 0. replace <br/> to <p>...</p> -->
6194
6198
  <xsl:variable name="table_without_br">
6195
- <xsl:apply-templates mode="table-without-br"/>
6199
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
6200
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
6196
6201
  </xsl:variable>
6197
6202
 
6198
6203
  <!-- Step 1. colspan processing -->
@@ -12243,16 +12248,30 @@
12243
12248
 
12244
12249
  <xsl:template match="*[local-name() = 'fmt-name']"/>
12245
12250
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
12246
- <xsl:element name="name" namespace="{$namespace_full}">
12247
- <xsl:copy-of select="@*"/>
12248
- <xsl:apply-templates mode="update_xml_step1"/>
12249
- </xsl:element>
12251
+ <xsl:choose>
12252
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
12253
+ <xsl:apply-templates mode="update_xml_step1"/>
12254
+ </xsl:when>
12255
+ <xsl:otherwise>
12256
+ <xsl:element name="name" namespace="{$namespace_full}">
12257
+ <xsl:copy-of select="@*"/>
12258
+ <xsl:apply-templates mode="update_xml_step1"/>
12259
+ </xsl:element>
12260
+ </xsl:otherwise>
12261
+ </xsl:choose>
12250
12262
  </xsl:template>
12251
12263
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
12252
- <xsl:element name="name" namespace="{$namespace_full}">
12253
- <xsl:copy-of select="@*"/>
12254
- <xsl:apply-templates mode="update_xml_pres"/>
12255
- </xsl:element>
12264
+ <xsl:choose>
12265
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
12266
+ <xsl:apply-templates mode="update_xml_step1"/>
12267
+ </xsl:when>
12268
+ <xsl:otherwise>
12269
+ <xsl:element name="name" namespace="{$namespace_full}">
12270
+ <xsl:copy-of select="@*"/>
12271
+ <xsl:apply-templates mode="update_xml_pres"/>
12272
+ </xsl:element>
12273
+ </xsl:otherwise>
12274
+ </xsl:choose>
12256
12275
  </xsl:template>
12257
12276
 
12258
12277
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -12350,6 +12369,9 @@
12350
12369
  <xsl:apply-templates mode="update_xml_pres"/>
12351
12370
  </xsl:template>
12352
12371
 
12372
+ <xsl:template match="*[local-name() = 'semx']">
12373
+ <xsl:apply-templates/>
12374
+ </xsl:template>
12353
12375
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
12354
12376
  <xsl:apply-templates mode="update_xml_step1"/>
12355
12377
  </xsl:template>
@@ -6190,9 +6190,14 @@
6190
6190
 
6191
6191
  <xsl:variable name="simple-table">
6192
6192
 
6193
+ <xsl:variable name="table_without_semantic_elements">
6194
+ <xsl:apply-templates mode="update_xml_pres"/>
6195
+ </xsl:variable>
6196
+
6193
6197
  <!-- Step 0. replace <br/> to <p>...</p> -->
6194
6198
  <xsl:variable name="table_without_br">
6195
- <xsl:apply-templates mode="table-without-br"/>
6199
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
6200
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
6196
6201
  </xsl:variable>
6197
6202
 
6198
6203
  <!-- Step 1. colspan processing -->
@@ -12243,16 +12248,30 @@
12243
12248
 
12244
12249
  <xsl:template match="*[local-name() = 'fmt-name']"/>
12245
12250
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
12246
- <xsl:element name="name" namespace="{$namespace_full}">
12247
- <xsl:copy-of select="@*"/>
12248
- <xsl:apply-templates mode="update_xml_step1"/>
12249
- </xsl:element>
12251
+ <xsl:choose>
12252
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
12253
+ <xsl:apply-templates mode="update_xml_step1"/>
12254
+ </xsl:when>
12255
+ <xsl:otherwise>
12256
+ <xsl:element name="name" namespace="{$namespace_full}">
12257
+ <xsl:copy-of select="@*"/>
12258
+ <xsl:apply-templates mode="update_xml_step1"/>
12259
+ </xsl:element>
12260
+ </xsl:otherwise>
12261
+ </xsl:choose>
12250
12262
  </xsl:template>
12251
12263
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
12252
- <xsl:element name="name" namespace="{$namespace_full}">
12253
- <xsl:copy-of select="@*"/>
12254
- <xsl:apply-templates mode="update_xml_pres"/>
12255
- </xsl:element>
12264
+ <xsl:choose>
12265
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
12266
+ <xsl:apply-templates mode="update_xml_step1"/>
12267
+ </xsl:when>
12268
+ <xsl:otherwise>
12269
+ <xsl:element name="name" namespace="{$namespace_full}">
12270
+ <xsl:copy-of select="@*"/>
12271
+ <xsl:apply-templates mode="update_xml_pres"/>
12272
+ </xsl:element>
12273
+ </xsl:otherwise>
12274
+ </xsl:choose>
12256
12275
  </xsl:template>
12257
12276
 
12258
12277
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -12350,6 +12369,9 @@
12350
12369
  <xsl:apply-templates mode="update_xml_pres"/>
12351
12370
  </xsl:template>
12352
12371
 
12372
+ <xsl:template match="*[local-name() = 'semx']">
12373
+ <xsl:apply-templates/>
12374
+ </xsl:template>
12353
12375
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
12354
12376
  <xsl:apply-templates mode="update_xml_step1"/>
12355
12377
  </xsl:template>
@@ -947,6 +947,8 @@ May be electronic (e.g. Twitter direct message, email) or voice (e.g. a remark m
947
947
  typically cited as "personal communication")</a:documentation>
948
948
  <value>conversation</value>
949
949
  <a:documentation>An exchange of messages between two or more persons. May be electronic (e.g. web chat) or voice (e.g. phone call)</a:documentation>
950
+ <value>collection</value>
951
+ <a:documentation>A compound resource consisting of other resources, which are themselves presupposed to have their type specified..</a:documentation>
950
952
  <value>misc</value>
951
953
  <a:documentation>Bibliographic type not adequately described in the foregoing</a:documentation>
952
954
  </choice>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Iho
3
- VERSION = "1.0.15".freeze
3
+ VERSION = "1.0.16".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic