Skip to content

Commit 5c123bd

Browse files
Merge pull request #618 from metanorma/feature/xslt-update
2 parents 457b8c2 + 0976408 commit 5c123bd

9 files changed

+81
-9
lines changed

lib/isodoc/itu/itu.implementers-guide.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.in-force.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.recommendation-annex.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.recommendation-supplement.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.recommendation.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.resolution.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.service-publication.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.technical-paper.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

lib/isodoc/itu/itu.technical-report.xsl

+9-1
Original file line numberDiff line numberDiff line change
@@ -8376,9 +8376,14 @@
83768376

83778377
<xsl:variable name="simple-table">
83788378

8379+
<xsl:variable name="table_without_semantic_elements">
8380+
<xsl:apply-templates mode="update_xml_pres"/>
8381+
</xsl:variable>
8382+
83798383
<!-- Step 0. replace <br/> to <p>...</p> -->
83808384
<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"/>
83828387
</xsl:variable>
83838388

83848389
<!-- Step 1. colspan processing -->
@@ -14598,6 +14603,9 @@
1459814603
<xsl:apply-templates mode="update_xml_pres"/>
1459914604
</xsl:template>
1460014605

14606+
<xsl:template match="*[local-name() = 'semx']">
14607+
<xsl:apply-templates/>
14608+
</xsl:template>
1460114609
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
1460214610
<xsl:apply-templates mode="update_xml_step1"/>
1460314611
</xsl:template>

0 commit comments

Comments
 (0)