summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2018-11-03 17:54:31 -0400
committerShaun McCance <shaunm@redhat.com>2018-11-03 17:54:31 -0400
commit2c3cc622a559671105bd6239da9e6d98a3a6ae9e (patch)
tree917c7268ce471714b6b7cc11c9c978fe86df2e0f
parent0a73411dae3559bdeb17410b6a0a8a5727752630 (diff)
downloadyelp-xsl-2c3cc622a559671105bd6239da9e6d98a3a6ae9e.tar.gz
mal2html-inline: Special-case e:hi inside mal:hi
-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">