summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xslt/mallard/html/mal2html-inline.xsl9
1 files changed, 8 insertions, 1 deletions
diff --git a/xslt/mallard/html/mal2html-inline.xsl b/xslt/mallard/html/mal2html-inline.xsl
index a65f276b..5c4f2fb8 100644
--- a/xslt/mallard/html/mal2html-inline.xsl
+++ b/xslt/mallard/html/mal2html-inline.xsl
@@ -213,7 +213,14 @@ an `xref` or `href` attribute.
<!-- = hi = -->
<xsl:template mode="mal2html.inline.mode" match="e:hi">
- <xsl:call-template name="mal2html.span"/>
+ <xsl:choose>
+ <xsl:when test="parent::mal:hi">
+ <xsl:apply-templates mode="mal2html.inline.mode"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="mal2html.span"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template mode="mal2html.inline.mode" match="mal:hi">