Skip to content

Commit

Permalink
mn2xml.xsl updated for preformat code, #218
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jul 26, 2023
1 parent 31be84c commit a6436dc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/resources/mn2xml.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5870,14 +5870,23 @@
</xsl:choose>
</xsl:variable>

<xsl:variable name="element_name">
<xsl:choose>
<xsl:when test="not(@lang)">preformat</xsl:when>
<xsl:otherwise>code</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:if test="$process = 'true'">

<xsl:choose>
<xsl:when test="$format = 'NISO' and $outputformat != 'IEEE'">
<code>
<!-- <code> -->
<xsl:element name="{$element_name}">
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</code>
</xsl:element>
<!-- </code> -->
</xsl:when>
<!-- ISO -->
<xsl:otherwise>
Expand Down

0 comments on commit a6436dc

Please sign in to comment.