Skip to content

Commit

Permalink
xslt update based on metanorma/mn-native-pdf@03d348f
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 authored Feb 2, 2025
1 parent 12cee5f commit 3a3ca59
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion lib/isodoc/ieee/ieee.amendment.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9107,9 +9107,14 @@

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

<xsl:variable name="table_without_semantic_elements">
<xsl:apply-templates mode="update_xml_pres"/>
</xsl:variable>

<!-- Step 0. replace <br/> to <p>...</p> -->
<xsl:variable name="table_without_br">
<xsl:apply-templates mode="table-without-br"/>
<!-- <xsl:apply-templates mode="table-without-br"/> -->
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
</xsl:variable>

<!-- Step 1. colspan processing -->
Expand Down Expand Up @@ -15333,6 +15338,9 @@
<xsl:apply-templates mode="update_xml_pres"/>
</xsl:template>

<xsl:template match="*[local-name() = 'semx']">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
Expand Down
10 changes: 9 additions & 1 deletion lib/isodoc/ieee/ieee.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9107,9 +9107,14 @@

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

<xsl:variable name="table_without_semantic_elements">
<xsl:apply-templates mode="update_xml_pres"/>
</xsl:variable>

<!-- Step 0. replace <br/> to <p>...</p> -->
<xsl:variable name="table_without_br">
<xsl:apply-templates mode="table-without-br"/>
<!-- <xsl:apply-templates mode="table-without-br"/> -->
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
</xsl:variable>

<!-- Step 1. colspan processing -->
Expand Down Expand Up @@ -15333,6 +15338,9 @@
<xsl:apply-templates mode="update_xml_pres"/>
</xsl:template>

<xsl:template match="*[local-name() = 'semx']">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
Expand Down

0 comments on commit 3a3ca59

Please sign in to comment.