[yelp-xsl] mal-if.xsl: Fix lang:C test token



commit 804d9e9467eb9106a4ec6a73aa4528e75b4d2f2c
Author: Shaun McCance <shaunm redhat com>
Date:   Fri Sep 15 13:04:38 2017 -0400

    mal-if.xsl: Fix lang:C test token

 xslt/mallard/common/mal-if.xsl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xslt/mallard/common/mal-if.xsl b/xslt/mallard/common/mal-if.xsl
index 9a22159..ed43862 100644
--- a/xslt/mallard/common/mal-if.xsl
+++ b/xslt/mallard/common/mal-if.xsl
@@ -234,7 +234,7 @@ of dynamically showing or hiding content based on those tokens.
   <xsl:choose>
     <xsl:when test="$token = 'lang:C' or $token = 'lang:c'">
       <xsl:choose>
-        <xsl:when test="not(ancestor-or-self::*/@xml:lang)">
+        <xsl:when test="not($node/ancestor-or-self::*/@xml:lang)">
           <xsl:text>1</xsl:text>
         </xsl:when>
         <xsl:otherwise>


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