Skip to content

Commit

Permalink
Merge pull request #774 from metanorma/update_fmt_title
Browse files Browse the repository at this point in the history
common.xsl updated for empty document fixing, #770
  • Loading branch information
Intelligent2013 authored Nov 29, 2024
2 parents 7f05671 + 768cabc commit 8db2ace
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -19367,6 +19367,20 @@
<xsl:copy-of select="$maths"/>
</xsl:template>

<xsl:template match="*[local-name() = 'fmt-title']" mode="update_xml_step1">
<xsl:element name="title" namespace="{$namespace_full}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:element>
</xsl:template>

<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
<xsl:element name="name" namespace="{$namespace_full}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:element>
</xsl:template>

<!-- =========================================================================== -->
<!-- END STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
<!-- =========================================================================== -->
Expand Down

0 comments on commit 8db2ace

Please sign in to comment.