Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Commit

Permalink
xref type and table title processing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed May 25, 2021
1 parent eabafb1 commit 85f02c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/resources/mn2sts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@
<xsl:when test="*[local-name() = 'title'] and not(*[local-name() = 'title']/*[local-name() = 'tab']) and normalize-space(translate(*[local-name() = 'title'], '0123456789.', '')) = ''">
<xsl:value-of select="*[local-name() = 'title']"/>
</xsl:when>
<xsl:when test="local-name() = 'figure' and contains(*[local-name() = 'name'], '&#8212; ')">
<xsl:variable name="figure_name" select="substring-before(*[local-name() = 'name'], '&#8212; ')"/>
<xsl:value-of select="translate(normalize-space(translate($figure_name, '&#xa0;', ' ')), ' ', '&#xa0;')"/>
<xsl:when test="(local-name() = 'table' or local-name() = 'figure') and contains(*[local-name() = 'name'], '&#8212; ')">
<xsl:variable name="_name" select="substring-before(*[local-name() = 'name'], '&#8212; ')"/>
<xsl:value-of select="translate(normalize-space(translate($_name, '&#xa0;', ' ')), ' ', '&#xa0;')"/>
</xsl:when>
<xsl:when test="$section_ = '0' and not(@type='intro')"></xsl:when>
<xsl:otherwise>
Expand Down Expand Up @@ -1661,6 +1661,7 @@
<xsl:when test="$parent = 'table'">table</xsl:when>
<xsl:when test="$parent = 'annex'">app</xsl:when>
<xsl:when test="$parent = 'fn'">fn</xsl:when>
<xsl:when test="$parent = 'bibitem'">bibr</xsl:when>
<xsl:otherwise>sec</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Expand Down

0 comments on commit 85f02c7

Please sign in to comment.