metanorma-bipm 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: 3d4aed7bcf0822c30f0867a36b7aa34948699aaba20087ddb9e05030ab9953a5
4
- data.tar.gz: 225e3d0e17616b6e1902611712a275a121fe2107705bd9b65c502cb9030aeb8b
3
+ metadata.gz: c76883e2e0c7fac8ac4e0672fc4e23c51c8325ae23ea83c5600a4d405d0898c4
4
+ data.tar.gz: a7ce3ec62471de169223b0a6dd7cf2a74586bae08d6ffae7589557063535bc35
5
5
  SHA512:
6
- metadata.gz: 6bbcac2628c54b9c84a5129efa6f2cf5698d77be0df9e546bdb9773a770699b1909adc1fd773b95ebf21b6323ce41c0e8fba90f3167c63c5921e4ccf146a92a2
7
- data.tar.gz: e995196ed4fa98671bd41f6da45e3f1a1972f2262fef54727e9244be62dff4b71c88ea5b8b93607f9d830970d9e4794d9bfc6b7f766d9f0402f6b1e80ad8730f
6
+ metadata.gz: 4d7de4cc6d877d7c9a8f404bfb5e453b9953e2f65c06c49b70327653b0c06cc01de1caa8b03775d2abb1bb04e6f912a0ac1a1ee95c495992ceff806f032c78f9
7
+ data.tar.gz: 225cd6a6162423efb552a8c52298bf701dc8ef58195dce294746f03f9a3059a81e447423cc94b0df5ecdaf78c33a8ac8c08466eba065884300846938c7bc5648
@@ -9300,9 +9300,14 @@
9300
9300
 
9301
9301
  <xsl:variable name="simple-table">
9302
9302
 
9303
+ <xsl:variable name="table_without_semantic_elements">
9304
+ <xsl:apply-templates mode="update_xml_pres"/>
9305
+ </xsl:variable>
9306
+
9303
9307
  <!-- Step 0. replace <br/> to <p>...</p> -->
9304
9308
  <xsl:variable name="table_without_br">
9305
- <xsl:apply-templates mode="table-without-br"/>
9309
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
9310
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
9306
9311
  </xsl:variable>
9307
9312
 
9308
9313
  <!-- Step 1. colspan processing -->
@@ -15421,16 +15426,30 @@
15421
15426
 
15422
15427
  <xsl:template match="*[local-name() = 'fmt-name']"/>
15423
15428
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
15424
- <xsl:element name="name" namespace="{$namespace_full}">
15425
- <xsl:copy-of select="@*"/>
15426
- <xsl:apply-templates mode="update_xml_step1"/>
15427
- </xsl:element>
15429
+ <xsl:choose>
15430
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15431
+ <xsl:apply-templates mode="update_xml_step1"/>
15432
+ </xsl:when>
15433
+ <xsl:otherwise>
15434
+ <xsl:element name="name" namespace="{$namespace_full}">
15435
+ <xsl:copy-of select="@*"/>
15436
+ <xsl:apply-templates mode="update_xml_step1"/>
15437
+ </xsl:element>
15438
+ </xsl:otherwise>
15439
+ </xsl:choose>
15428
15440
  </xsl:template>
15429
15441
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
15430
- <xsl:element name="name" namespace="{$namespace_full}">
15431
- <xsl:copy-of select="@*"/>
15432
- <xsl:apply-templates mode="update_xml_pres"/>
15433
- </xsl:element>
15442
+ <xsl:choose>
15443
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15444
+ <xsl:apply-templates mode="update_xml_step1"/>
15445
+ </xsl:when>
15446
+ <xsl:otherwise>
15447
+ <xsl:element name="name" namespace="{$namespace_full}">
15448
+ <xsl:copy-of select="@*"/>
15449
+ <xsl:apply-templates mode="update_xml_pres"/>
15450
+ </xsl:element>
15451
+ </xsl:otherwise>
15452
+ </xsl:choose>
15434
15453
  </xsl:template>
15435
15454
 
15436
15455
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -15528,6 +15547,9 @@
15528
15547
  <xsl:apply-templates mode="update_xml_pres"/>
15529
15548
  </xsl:template>
15530
15549
 
15550
+ <xsl:template match="*[local-name() = 'semx']">
15551
+ <xsl:apply-templates/>
15552
+ </xsl:template>
15531
15553
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
15532
15554
  <xsl:apply-templates mode="update_xml_step1"/>
15533
15555
  </xsl:template>
@@ -9300,9 +9300,14 @@
9300
9300
 
9301
9301
  <xsl:variable name="simple-table">
9302
9302
 
9303
+ <xsl:variable name="table_without_semantic_elements">
9304
+ <xsl:apply-templates mode="update_xml_pres"/>
9305
+ </xsl:variable>
9306
+
9303
9307
  <!-- Step 0. replace <br/> to <p>...</p> -->
9304
9308
  <xsl:variable name="table_without_br">
9305
- <xsl:apply-templates mode="table-without-br"/>
9309
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
9310
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
9306
9311
  </xsl:variable>
9307
9312
 
9308
9313
  <!-- Step 1. colspan processing -->
@@ -15421,16 +15426,30 @@
15421
15426
 
15422
15427
  <xsl:template match="*[local-name() = 'fmt-name']"/>
15423
15428
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
15424
- <xsl:element name="name" namespace="{$namespace_full}">
15425
- <xsl:copy-of select="@*"/>
15426
- <xsl:apply-templates mode="update_xml_step1"/>
15427
- </xsl:element>
15429
+ <xsl:choose>
15430
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15431
+ <xsl:apply-templates mode="update_xml_step1"/>
15432
+ </xsl:when>
15433
+ <xsl:otherwise>
15434
+ <xsl:element name="name" namespace="{$namespace_full}">
15435
+ <xsl:copy-of select="@*"/>
15436
+ <xsl:apply-templates mode="update_xml_step1"/>
15437
+ </xsl:element>
15438
+ </xsl:otherwise>
15439
+ </xsl:choose>
15428
15440
  </xsl:template>
15429
15441
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
15430
- <xsl:element name="name" namespace="{$namespace_full}">
15431
- <xsl:copy-of select="@*"/>
15432
- <xsl:apply-templates mode="update_xml_pres"/>
15433
- </xsl:element>
15442
+ <xsl:choose>
15443
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15444
+ <xsl:apply-templates mode="update_xml_step1"/>
15445
+ </xsl:when>
15446
+ <xsl:otherwise>
15447
+ <xsl:element name="name" namespace="{$namespace_full}">
15448
+ <xsl:copy-of select="@*"/>
15449
+ <xsl:apply-templates mode="update_xml_pres"/>
15450
+ </xsl:element>
15451
+ </xsl:otherwise>
15452
+ </xsl:choose>
15434
15453
  </xsl:template>
15435
15454
 
15436
15455
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -15528,6 +15547,9 @@
15528
15547
  <xsl:apply-templates mode="update_xml_pres"/>
15529
15548
  </xsl:template>
15530
15549
 
15550
+ <xsl:template match="*[local-name() = 'semx']">
15551
+ <xsl:apply-templates/>
15552
+ </xsl:template>
15531
15553
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
15532
15554
  <xsl:apply-templates mode="update_xml_step1"/>
15533
15555
  </xsl:template>
@@ -9300,9 +9300,14 @@
9300
9300
 
9301
9301
  <xsl:variable name="simple-table">
9302
9302
 
9303
+ <xsl:variable name="table_without_semantic_elements">
9304
+ <xsl:apply-templates mode="update_xml_pres"/>
9305
+ </xsl:variable>
9306
+
9303
9307
  <!-- Step 0. replace <br/> to <p>...</p> -->
9304
9308
  <xsl:variable name="table_without_br">
9305
- <xsl:apply-templates mode="table-without-br"/>
9309
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
9310
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
9306
9311
  </xsl:variable>
9307
9312
 
9308
9313
  <!-- Step 1. colspan processing -->
@@ -15421,16 +15426,30 @@
15421
15426
 
15422
15427
  <xsl:template match="*[local-name() = 'fmt-name']"/>
15423
15428
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
15424
- <xsl:element name="name" namespace="{$namespace_full}">
15425
- <xsl:copy-of select="@*"/>
15426
- <xsl:apply-templates mode="update_xml_step1"/>
15427
- </xsl:element>
15429
+ <xsl:choose>
15430
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15431
+ <xsl:apply-templates mode="update_xml_step1"/>
15432
+ </xsl:when>
15433
+ <xsl:otherwise>
15434
+ <xsl:element name="name" namespace="{$namespace_full}">
15435
+ <xsl:copy-of select="@*"/>
15436
+ <xsl:apply-templates mode="update_xml_step1"/>
15437
+ </xsl:element>
15438
+ </xsl:otherwise>
15439
+ </xsl:choose>
15428
15440
  </xsl:template>
15429
15441
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
15430
- <xsl:element name="name" namespace="{$namespace_full}">
15431
- <xsl:copy-of select="@*"/>
15432
- <xsl:apply-templates mode="update_xml_pres"/>
15433
- </xsl:element>
15442
+ <xsl:choose>
15443
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15444
+ <xsl:apply-templates mode="update_xml_step1"/>
15445
+ </xsl:when>
15446
+ <xsl:otherwise>
15447
+ <xsl:element name="name" namespace="{$namespace_full}">
15448
+ <xsl:copy-of select="@*"/>
15449
+ <xsl:apply-templates mode="update_xml_pres"/>
15450
+ </xsl:element>
15451
+ </xsl:otherwise>
15452
+ </xsl:choose>
15434
15453
  </xsl:template>
15435
15454
 
15436
15455
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -15528,6 +15547,9 @@
15528
15547
  <xsl:apply-templates mode="update_xml_pres"/>
15529
15548
  </xsl:template>
15530
15549
 
15550
+ <xsl:template match="*[local-name() = 'semx']">
15551
+ <xsl:apply-templates/>
15552
+ </xsl:template>
15531
15553
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
15532
15554
  <xsl:apply-templates mode="update_xml_step1"/>
15533
15555
  </xsl:template>
@@ -9300,9 +9300,14 @@
9300
9300
 
9301
9301
  <xsl:variable name="simple-table">
9302
9302
 
9303
+ <xsl:variable name="table_without_semantic_elements">
9304
+ <xsl:apply-templates mode="update_xml_pres"/>
9305
+ </xsl:variable>
9306
+
9303
9307
  <!-- Step 0. replace <br/> to <p>...</p> -->
9304
9308
  <xsl:variable name="table_without_br">
9305
- <xsl:apply-templates mode="table-without-br"/>
9309
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
9310
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
9306
9311
  </xsl:variable>
9307
9312
 
9308
9313
  <!-- Step 1. colspan processing -->
@@ -15421,16 +15426,30 @@
15421
15426
 
15422
15427
  <xsl:template match="*[local-name() = 'fmt-name']"/>
15423
15428
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
15424
- <xsl:element name="name" namespace="{$namespace_full}">
15425
- <xsl:copy-of select="@*"/>
15426
- <xsl:apply-templates mode="update_xml_step1"/>
15427
- </xsl:element>
15429
+ <xsl:choose>
15430
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15431
+ <xsl:apply-templates mode="update_xml_step1"/>
15432
+ </xsl:when>
15433
+ <xsl:otherwise>
15434
+ <xsl:element name="name" namespace="{$namespace_full}">
15435
+ <xsl:copy-of select="@*"/>
15436
+ <xsl:apply-templates mode="update_xml_step1"/>
15437
+ </xsl:element>
15438
+ </xsl:otherwise>
15439
+ </xsl:choose>
15428
15440
  </xsl:template>
15429
15441
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
15430
- <xsl:element name="name" namespace="{$namespace_full}">
15431
- <xsl:copy-of select="@*"/>
15432
- <xsl:apply-templates mode="update_xml_pres"/>
15433
- </xsl:element>
15442
+ <xsl:choose>
15443
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
15444
+ <xsl:apply-templates mode="update_xml_step1"/>
15445
+ </xsl:when>
15446
+ <xsl:otherwise>
15447
+ <xsl:element name="name" namespace="{$namespace_full}">
15448
+ <xsl:copy-of select="@*"/>
15449
+ <xsl:apply-templates mode="update_xml_pres"/>
15450
+ </xsl:element>
15451
+ </xsl:otherwise>
15452
+ </xsl:choose>
15434
15453
  </xsl:template>
15435
15454
 
15436
15455
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -15528,6 +15547,9 @@
15528
15547
  <xsl:apply-templates mode="update_xml_pres"/>
15529
15548
  </xsl:template>
15530
15549
 
15550
+ <xsl:template match="*[local-name() = 'semx']">
15551
+ <xsl:apply-templates/>
15552
+ </xsl:template>
15531
15553
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
15532
15554
  <xsl:apply-templates mode="update_xml_step1"/>
15533
15555
  </xsl:template>
@@ -7186,9 +7186,14 @@
7186
7186
 
7187
7187
  <xsl:variable name="simple-table">
7188
7188
 
7189
+ <xsl:variable name="table_without_semantic_elements">
7190
+ <xsl:apply-templates mode="update_xml_pres"/>
7191
+ </xsl:variable>
7192
+
7189
7193
  <!-- Step 0. replace <br/> to <p>...</p> -->
7190
7194
  <xsl:variable name="table_without_br">
7191
- <xsl:apply-templates mode="table-without-br"/>
7195
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
7196
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
7192
7197
  </xsl:variable>
7193
7198
 
7194
7199
  <!-- Step 1. colspan processing -->
@@ -13264,16 +13269,30 @@
13264
13269
 
13265
13270
  <xsl:template match="*[local-name() = 'fmt-name']"/>
13266
13271
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
13267
- <xsl:element name="name" namespace="{$namespace_full}">
13268
- <xsl:copy-of select="@*"/>
13269
- <xsl:apply-templates mode="update_xml_step1"/>
13270
- </xsl:element>
13272
+ <xsl:choose>
13273
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13274
+ <xsl:apply-templates mode="update_xml_step1"/>
13275
+ </xsl:when>
13276
+ <xsl:otherwise>
13277
+ <xsl:element name="name" namespace="{$namespace_full}">
13278
+ <xsl:copy-of select="@*"/>
13279
+ <xsl:apply-templates mode="update_xml_step1"/>
13280
+ </xsl:element>
13281
+ </xsl:otherwise>
13282
+ </xsl:choose>
13271
13283
  </xsl:template>
13272
13284
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
13273
- <xsl:element name="name" namespace="{$namespace_full}">
13274
- <xsl:copy-of select="@*"/>
13275
- <xsl:apply-templates mode="update_xml_pres"/>
13276
- </xsl:element>
13285
+ <xsl:choose>
13286
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13287
+ <xsl:apply-templates mode="update_xml_step1"/>
13288
+ </xsl:when>
13289
+ <xsl:otherwise>
13290
+ <xsl:element name="name" namespace="{$namespace_full}">
13291
+ <xsl:copy-of select="@*"/>
13292
+ <xsl:apply-templates mode="update_xml_pres"/>
13293
+ </xsl:element>
13294
+ </xsl:otherwise>
13295
+ </xsl:choose>
13277
13296
  </xsl:template>
13278
13297
 
13279
13298
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -13371,6 +13390,9 @@
13371
13390
  <xsl:apply-templates mode="update_xml_pres"/>
13372
13391
  </xsl:template>
13373
13392
 
13393
+ <xsl:template match="*[local-name() = 'semx']">
13394
+ <xsl:apply-templates/>
13395
+ </xsl:template>
13374
13396
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
13375
13397
  <xsl:apply-templates mode="update_xml_step1"/>
13376
13398
  </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 Bipm
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-bipm
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