Skip to content

Commit

Permalink
mn2sts xml updated for fn style, #237
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Oct 9, 2022
1 parent 0c1104a commit 3abd571
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/main/resources/mn2sts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,9 @@
<xsl:with-param name="fn_number" select="$fn_number"/>
</xsl:call-template>
</xsl:attribute>
<sup><xsl:value-of select="$fn_number"/><xsl:if test="$metanorma_type = 'ISO'">)</xsl:if></sup>
<xsl:call-template name="insert_fn_label">
<xsl:with-param name="fn_number" select="$fn_number"/>
</xsl:call-template>
</xref>
</xsl:template>

Expand All @@ -556,13 +558,30 @@
</xsl:call-template>
</xsl:attribute>
<label>
<sup><xsl:value-of select="$fn_number"/><xsl:if test="$metanorma_type = 'ISO'">)</xsl:if></sup>
<xsl:call-template name="insert_fn_label">
<xsl:with-param name="fn_number" select="$fn_number"/>
</xsl:call-template>
</label>
<!-- <xsl:copy-of select="node()[not(self::label)]"/> -->
<xsl:apply-templates select="node()[not(self::label)]" mode="id_generate" />
</fn>
</xsl:template>

<xsl:template name="insert_fn_label">
<xsl:param name="fn_number"/>
<xsl:choose>
<xsl:when test="$metanorma_type = 'ISO'">
<sup><xsl:value-of select="$fn_number"/>)</sup>
</xsl:when>
<xsl:when test="$metanorma_type = 'IEC'">
<xsl:value-of select="$fn_number"/>
</xsl:when>
<xsl:otherwise>
<sup><xsl:value-of select="$fn_number"/></sup>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="generateFootnoteInText">
<xsl:param name="fn_number"/>
<xsl:choose>
Expand Down

0 comments on commit 3abd571

Please sign in to comment.