[yelp-xsl] mal2html-inline: Special-case e:hi inside mal:hi



commit 2c3cc622a559671105bd6239da9e6d98a3a6ae9e
Author: Shaun McCance <shaunm redhat com>
Date:   Sat Nov 3 17:54:31 2018 -0400

    mal2html-inline: Special-case e:hi inside mal:hi

 xslt/mallard/html/mal2html-inline.xsl | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
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">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]