[yelp-xsl] mal-if.xsl: Fix lang:C test token
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal-if.xsl: Fix lang:C test token
- Date: Fri, 15 Sep 2017 17:05:09 +0000 (UTC)
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]