metanorma-cc 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: '0059fd922c7e0fc51d6f739a29f063bb43820a25f6b50450099c6f0211666d6d'
4
- data.tar.gz: b25841bdfbabceedbdf6308bf06abffcbdae6f1dc60b9199d9f9ea971d4d7377
3
+ metadata.gz: 23f0928fc1d679eaf651018a52197d4887a12196e87c9b504ba018c4168d655a
4
+ data.tar.gz: c6bf8201297fdbd3a627410de88ff9448f9fe64e290814879ed017d2a5d575a4
5
5
  SHA512:
6
- metadata.gz: a35cf0dad682ccbdb4752ba3c032f9413e18ca3c8834afd64dc54fa90a05747d96db029370364466c780a1861605b25d03a8d23988316246e6ca9552ed498492
7
- data.tar.gz: 3b676c48af0d6d118197b5b460857d1597ee7ce258de07c9ce90511e8eefd384a62c335495bc43ee4f40e1233fdde1bcb75e1bfb4473a977385e7672b7f8ad09
6
+ metadata.gz: 3f1c0a81f8f796b9c167618c5135e29a73a5c2df43eb7c22c2c35217d1559898de165fd1b9d7b96a0f4f5f2fb21342c048c1d43b563de1367db69e14a3fa4650
7
+ data.tar.gz: 27d3488fc9da74fe2a5c73dfe28d7515494fa55576b741ab89d14cb88be036da7ef889d5a790213702efccd37729be45792aced46af4461bbed35d5fa26dce97
@@ -5861,9 +5861,14 @@
5861
5861
 
5862
5862
  <xsl:variable name="simple-table">
5863
5863
 
5864
+ <xsl:variable name="table_without_semantic_elements">
5865
+ <xsl:apply-templates mode="update_xml_pres"/>
5866
+ </xsl:variable>
5867
+
5864
5868
  <!-- Step 0. replace <br/> to <p>...</p> -->
5865
5869
  <xsl:variable name="table_without_br">
5866
- <xsl:apply-templates mode="table-without-br"/>
5870
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
5871
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
5867
5872
  </xsl:variable>
5868
5873
 
5869
5874
  <!-- Step 1. colspan processing -->
@@ -11925,16 +11930,30 @@
11925
11930
 
11926
11931
  <xsl:template match="*[local-name() = 'fmt-name']"/>
11927
11932
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
11928
- <xsl:element name="name" namespace="{$namespace_full}">
11929
- <xsl:copy-of select="@*"/>
11930
- <xsl:apply-templates mode="update_xml_step1"/>
11931
- </xsl:element>
11933
+ <xsl:choose>
11934
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
11935
+ <xsl:apply-templates mode="update_xml_step1"/>
11936
+ </xsl:when>
11937
+ <xsl:otherwise>
11938
+ <xsl:element name="name" namespace="{$namespace_full}">
11939
+ <xsl:copy-of select="@*"/>
11940
+ <xsl:apply-templates mode="update_xml_step1"/>
11941
+ </xsl:element>
11942
+ </xsl:otherwise>
11943
+ </xsl:choose>
11932
11944
  </xsl:template>
11933
11945
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
11934
- <xsl:element name="name" namespace="{$namespace_full}">
11935
- <xsl:copy-of select="@*"/>
11936
- <xsl:apply-templates mode="update_xml_pres"/>
11937
- </xsl:element>
11946
+ <xsl:choose>
11947
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
11948
+ <xsl:apply-templates mode="update_xml_step1"/>
11949
+ </xsl:when>
11950
+ <xsl:otherwise>
11951
+ <xsl:element name="name" namespace="{$namespace_full}">
11952
+ <xsl:copy-of select="@*"/>
11953
+ <xsl:apply-templates mode="update_xml_pres"/>
11954
+ </xsl:element>
11955
+ </xsl:otherwise>
11956
+ </xsl:choose>
11938
11957
  </xsl:template>
11939
11958
 
11940
11959
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -12032,6 +12051,9 @@
12032
12051
  <xsl:apply-templates mode="update_xml_pres"/>
12033
12052
  </xsl:template>
12034
12053
 
12054
+ <xsl:template match="*[local-name() = 'semx']">
12055
+ <xsl:apply-templates/>
12056
+ </xsl:template>
12035
12057
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
12036
12058
  <xsl:apply-templates mode="update_xml_step1"/>
12037
12059
  </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 Cc
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-cc
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