metanorma-csa 2.5.11 → 2.5.12

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: e22479808f488e5e47aad508c2f3f6e3262c23949030d10000fb32676291eb65
4
- data.tar.gz: b18e578f24e458b3097d66a90da182db4e8cb52a5b4b15aa1d277c2f29fba6e8
3
+ metadata.gz: 460b449ab4913c074439af4cbb76e35201d4dc122b54ce014cda2b274b0a3fe7
4
+ data.tar.gz: cca8e46225d1db9b0977b2a3714427b5afb9c40bd77a56d23816532e5f330fdc
5
5
  SHA512:
6
- metadata.gz: 20927137854d610c5b783c10fae6a1cc59b84b662e373501de441780b8a63f104cb702ac5ae51e9f421aa5efcafc4f73ea53540d01e092d33e71e0b3876c3d40
7
- data.tar.gz: 50b3dfa90ca3f0e6ad9d9c42b05fae11c000257df2f178c719c2db367ec7602f56a605e0232ba1812613a317fa393c15d370848fd0c604a26333fcd4a433340a
6
+ metadata.gz: c97d35924a6a7b25074233333684d9bdc4e60a5dda68a78082aa54a14b46dfd44b7fe7f2003f4f41743bd4453c5e0630b4f1f9a65f68c50160e9c997f1f99c0d
7
+ data.tar.gz: 2a745f95a5cac1c5af7eedf327ffc20469ffef5735e732e0e24f5d2d634d323876dc1c6b01d0c96c9f1ea3bd06a7dc8ffa160a3a7be98b623e5832c77966118a
@@ -5869,9 +5869,14 @@
5869
5869
 
5870
5870
  <xsl:variable name="simple-table">
5871
5871
 
5872
+ <xsl:variable name="table_without_semantic_elements">
5873
+ <xsl:apply-templates mode="update_xml_pres"/>
5874
+ </xsl:variable>
5875
+
5872
5876
  <!-- Step 0. replace <br/> to <p>...</p> -->
5873
5877
  <xsl:variable name="table_without_br">
5874
- <xsl:apply-templates mode="table-without-br"/>
5878
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
5879
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
5875
5880
  </xsl:variable>
5876
5881
 
5877
5882
  <!-- Step 1. colspan processing -->
@@ -11905,16 +11910,30 @@
11905
11910
 
11906
11911
  <xsl:template match="*[local-name() = 'fmt-name']"/>
11907
11912
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
11908
- <xsl:element name="name" namespace="{$namespace_full}">
11909
- <xsl:copy-of select="@*"/>
11910
- <xsl:apply-templates mode="update_xml_step1"/>
11911
- </xsl:element>
11913
+ <xsl:choose>
11914
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
11915
+ <xsl:apply-templates mode="update_xml_step1"/>
11916
+ </xsl:when>
11917
+ <xsl:otherwise>
11918
+ <xsl:element name="name" namespace="{$namespace_full}">
11919
+ <xsl:copy-of select="@*"/>
11920
+ <xsl:apply-templates mode="update_xml_step1"/>
11921
+ </xsl:element>
11922
+ </xsl:otherwise>
11923
+ </xsl:choose>
11912
11924
  </xsl:template>
11913
11925
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
11914
- <xsl:element name="name" namespace="{$namespace_full}">
11915
- <xsl:copy-of select="@*"/>
11916
- <xsl:apply-templates mode="update_xml_pres"/>
11917
- </xsl:element>
11926
+ <xsl:choose>
11927
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
11928
+ <xsl:apply-templates mode="update_xml_step1"/>
11929
+ </xsl:when>
11930
+ <xsl:otherwise>
11931
+ <xsl:element name="name" namespace="{$namespace_full}">
11932
+ <xsl:copy-of select="@*"/>
11933
+ <xsl:apply-templates mode="update_xml_pres"/>
11934
+ </xsl:element>
11935
+ </xsl:otherwise>
11936
+ </xsl:choose>
11918
11937
  </xsl:template>
11919
11938
 
11920
11939
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -12012,6 +12031,9 @@
12012
12031
  <xsl:apply-templates mode="update_xml_pres"/>
12013
12032
  </xsl:template>
12014
12033
 
12034
+ <xsl:template match="*[local-name() = 'semx']">
12035
+ <xsl:apply-templates/>
12036
+ </xsl:template>
12015
12037
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
12016
12038
  <xsl:apply-templates mode="update_xml_step1"/>
12017
12039
  </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 Csa
3
- VERSION = "2.5.11".freeze
3
+ VERSION = "2.5.12".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.11
4
+ version: 2.5.12
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