[yelp-xsl] [xslt/html/mal2html-page.xsl] Groups are space-separated
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [xslt/html/mal2html-page.xsl] Groups are space-separated
- Date: Tue, 14 Dec 2010 20:49:32 +0000 (UTC)
commit 6d6a334451e2855d71a4d40b1974acae51c91df3
Author: Shaun McCance <shaunm gnome org>
Date: Tue Dec 14 15:46:53 2010 -0500
[xslt/html/mal2html-page.xsl] Groups are space-separated
I stupidly did contains($groups, @group), which results in substring
matches that shouldn't happen. Have to space-pad both arguments.
xslt/mallard/html/mal2html-page.xsl | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 8f8484c..32ec2dc 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -556,6 +556,7 @@ REMARK: Describe this template
<xsl:template name="mal2html.links.topic" match="e:links[ type = 'topic']">
<xsl:param name="node" select="."/>
<xsl:param name="groups">
+ <xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="$node/@groups">
<xsl:value-of select="$node/@groups"/>
@@ -564,6 +565,7 @@ REMARK: Describe this template
<xsl:text>#default</xsl:text>
</xsl:otherwise>
</xsl:choose>
+ <xsl:text> </xsl:text>
</xsl:param>
<xsl:param name="allgroups" select="''"/>
<xsl:param name="links" select="/false"/>
@@ -586,7 +588,7 @@ REMARK: Describe this template
</xsl:if>
</xsl:if>
</xsl:variable>
- <xsl:variable name="_links" select="$links[contains($_groups, @group)]"/>
+ <xsl:variable name="_links" select="$links[contains($_groups, concat(' ', @group, ' '))]"/>
<xsl:if test="count($_links) != 0">
<div class="links topiclinks">
<xsl:if test="$node/self::e:links">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]