metanorma-itu 2.5.13 → 2.5.14

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: a7111a98ea7c6136556d06f08a7cf951b79ee490e3d0438e39bea40a3ec30dfd
4
- data.tar.gz: 3e5cdcdf64f95c26596e551467b5b7c9294fc7f7d8ddcaf3de2eea2746241497
3
+ metadata.gz: b3dd8879505ce9dabd6aff467519542330b45e511f58e955b6ab9a8176f3d103
4
+ data.tar.gz: 476082845077042f9cf39e174e6e44f2bf411f62f84a13cd5c40a1cc348fc0d2
5
5
  SHA512:
6
- metadata.gz: a933a51a072ebd34fb01102a4b10f869f9fec07af8bbc6af40e5227b69f5420b2d5814748c892ba40bcf258baac5701be742e00955e9c477ea577938f7e68d62
7
- data.tar.gz: 24e6db9486d76b6122284dd9e3a5e1074d26e36e83284e8229bdaee89f5d357a02b20620ed9a28e4a7aaac27ba250f3ccd18f78b75c17eea000f0077f9c095cd
6
+ metadata.gz: f17c7af06ecad81b9e16ff224aa8e2cd09dd420956c4ffcee986d78351b88d3d315a465dd8fb98330bb97ee0b79e69f8e80b97841d4213571a8a5566d0b2708c
7
+ data.tar.gz: 88804eedcf390b9d8f3b16852d9680ef5af207fbd90ea6f4babd61de7e0b5c87aaa49b659f7e88ef206bc883d51edb1ef8d6091d31f86981baeab9e84b53e9ab
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </xsl:template>
@@ -8376,9 +8376,14 @@
8376
8376
 
8377
8377
  <xsl:variable name="simple-table">
8378
8378
 
8379
+ <xsl:variable name="table_without_semantic_elements">
8380
+ <xsl:apply-templates mode="update_xml_pres"/>
8381
+ </xsl:variable>
8382
+
8379
8383
  <!-- Step 0. replace <br/> to <p>...</p> -->
8380
8384
  <xsl:variable name="table_without_br">
8381
- <xsl:apply-templates mode="table-without-br"/>
8385
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
8386
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
8382
8387
  </xsl:variable>
8383
8388
 
8384
8389
  <!-- Step 1. colspan processing -->
@@ -14477,16 +14482,30 @@
14477
14482
 
14478
14483
  <xsl:template match="*[local-name() = 'fmt-name']"/>
14479
14484
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
14480
- <xsl:element name="name" namespace="{$namespace_full}">
14481
- <xsl:copy-of select="@*"/>
14482
- <xsl:apply-templates mode="update_xml_step1"/>
14483
- </xsl:element>
14485
+ <xsl:choose>
14486
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14487
+ <xsl:apply-templates mode="update_xml_step1"/>
14488
+ </xsl:when>
14489
+ <xsl:otherwise>
14490
+ <xsl:element name="name" namespace="{$namespace_full}">
14491
+ <xsl:copy-of select="@*"/>
14492
+ <xsl:apply-templates mode="update_xml_step1"/>
14493
+ </xsl:element>
14494
+ </xsl:otherwise>
14495
+ </xsl:choose>
14484
14496
  </xsl:template>
14485
14497
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
14486
- <xsl:element name="name" namespace="{$namespace_full}">
14487
- <xsl:copy-of select="@*"/>
14488
- <xsl:apply-templates mode="update_xml_pres"/>
14489
- </xsl:element>
14498
+ <xsl:choose>
14499
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
14500
+ <xsl:apply-templates mode="update_xml_step1"/>
14501
+ </xsl:when>
14502
+ <xsl:otherwise>
14503
+ <xsl:element name="name" namespace="{$namespace_full}">
14504
+ <xsl:copy-of select="@*"/>
14505
+ <xsl:apply-templates mode="update_xml_pres"/>
14506
+ </xsl:element>
14507
+ </xsl:otherwise>
14508
+ </xsl:choose>
14490
14509
  </xsl:template>
14491
14510
 
14492
14511
  <xsl:template match="*[local-name() = 'fmt-preferred']"/>
@@ -14584,6 +14603,9 @@
14584
14603
  <xsl:apply-templates mode="update_xml_pres"/>
14585
14604
  </xsl:template>
14586
14605
 
14606
+ <xsl:template match="*[local-name() = 'semx']">
14607
+ <xsl:apply-templates/>
14608
+ </xsl:template>
14587
14609
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
14588
14610
  <xsl:apply-templates mode="update_xml_step1"/>
14589
14611
  </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 Itu
3
- VERSION = "2.5.13".freeze
3
+ VERSION = "2.5.14".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.13
4
+ version: 2.5.14
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-standoc