diff options
author | Shaun McCance <shaunm@redhat.com> | 2018-11-03 17:54:31 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@redhat.com> | 2018-11-03 17:54:31 -0400 |
commit | 2c3cc622a559671105bd6239da9e6d98a3a6ae9e (patch) | |
tree | 917c7268ce471714b6b7cc11c9c978fe86df2e0f | |
parent | 0a73411dae3559bdeb17410b6a0a8a5727752630 (diff) | |
download | yelp-xsl-2c3cc622a559671105bd6239da9e6d98a3a6ae9e.tar.gz |
mal2html-inline: Special-case e:hi inside mal:hi
-rw-r--r-- | xslt/mallard/html/mal2html-inline.xsl | 9 |
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"> |