metanorma-ribose 2.5.11 → 2.5.12

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: 1156484096c30a068a71bc24161bcbdcb4bf9849db623f12cfd2900bfa7ea05b
4
- data.tar.gz: e853754d1770ea8ce4915c61592504056393e90a4d4a915a0201be23f612deba
3
+ metadata.gz: 22e5a9796d0c28c369ecb9ac164ae30969e4017e3ccb79c6001561e121636720
4
+ data.tar.gz: aa3505c305b73a316defb48783b566161a1223ee7f4959186a600f27ace0fe76
5
5
  SHA512:
6
- metadata.gz: c40bf640bdf8084e28ad5de4a8a5b9343a0c5559eb78e82a64ca3b5f7913a29c4166774d22415b1aa57ee4f8575cf212efe62555922b4f649e879fdbba88db32
7
- data.tar.gz: 51e7de395fc02e90cc392808431fb49134cdfa0d052253566e7ed10097e97bd99ee55c4b577e8036311c30bc2828e4f016f3adfe0be4f4aec35a2495d02555e3
6
+ metadata.gz: 1faa3784f9c7e46f3428bb1099e79065d0bed90e3beac55524a4832364493f4acb2d42c2828096e4f5d6d6083239a12449f831ed800ce1d499dd218713d9c2c2
7
+ data.tar.gz: 97bb9379a1540e1ba539a5ba2dcf7edf78ae82040fef304f19b8f67f29732b71d24608d19848ca32e06d14bf1958466842a1f1bd27889e0b5b5df5654ce5ef6b
@@ -6648,9 +6648,14 @@
6648
6648
 
6649
6649
  <xsl:variable name="simple-table">
6650
6650
 
6651
+ <xsl:variable name="table_without_semantic_elements">
6652
+ <xsl:apply-templates mode="update_xml_pres"/>
6653
+ </xsl:variable>
6654
+
6651
6655
  <!-- Step 0. replace <br/> to <p>...</p> -->
6652
6656
  <xsl:variable name="table_without_br">
6653
- <xsl:apply-templates mode="table-without-br"/>
6657
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
6658
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
6654
6659
  </xsl:variable>
6655
6660
 
6656
6661
  <!-- Step 1. colspan processing -->
@@ -12702,16 +12707,30 @@
12702
12707
 
12703
12708
  <xsl:template match="*[local-name() = 'fmt-name']"/>
12704
12709
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
12705
- <xsl:element name="name" namespace="{$namespace_full}">
12706
- <xsl:copy-of select="@*"/>
12707
- <xsl:apply-templates mode="update_xml_step1"/>
12708
- </xsl:element>
12710
+ <xsl:choose>
12711
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
12712
+ <xsl:apply-templates mode="update_xml_step1"/>
12713
+ </xsl:when>
12714
+ <xsl:otherwise>
12715
+ <xsl:element name="name" namespace="{$namespace_full}">
12716
+ <xsl:copy-of select="@*"/>
12717
+ <xsl:apply-templates mode="update_xml_step1"/>
12718
+ </xsl:element>
12719
+ </xsl:otherwise>
12720
+ </xsl:choose>
12709
12721
  </xsl:template>
12710
12722
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
12711
- <xsl:element name="name" namespace="{$namespace_full}">
12712
- <xsl:copy-of select="@*"/>
12713
- <xsl:apply-templates mode="update_xml_pres"/>
12714
- </xsl:element>
12723
+ <xsl:choose>
12724
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
12725
+ <xsl:apply-templates mode="update_xml_step1"/>
12726
+ </xsl:when>
12727
+ <xsl:otherwise>
12728
+ <xsl:element name="name" namespace="{$namespace_full}">
12729
+ <xsl:copy-of select="@*"/>
12730
+ <xsl:apply-templates mode="update_xml_pres"/>
12731
+ </xsl:element>
12732
+ </xsl:otherwise>
12733
+ </xsl:choose>
12715
12734
  </xsl:template>
12716
12735
 
12717
12736
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -12809,6 +12828,9 @@
12809
12828
  <xsl:apply-templates mode="update_xml_pres"/>
12810
12829
  </xsl:template>
12811
12830
 
12831
+ <xsl:template match="*[local-name() = 'semx']">
12832
+ <xsl:apply-templates/>
12833
+ </xsl:template>
12812
12834
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
12813
12835
  <xsl:apply-templates mode="update_xml_step1"/>
12814
12836
  </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 Ribose
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-ribose
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