[yelp-xsl] mal2html-links: Fixed links styles on page/section style attr
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-links: Fixed links styles on page/section style attr
- Date: Mon, 7 Oct 2013 14:43:54 +0000 (UTC)
commit cf8c0fb6c674b1b17db581ca0b52b90992653edd
Author: Shaun McCance <shaunm gnome org>
Date: Mon Oct 7 10:42:33 2013 -0400
mal2html-links: Fixed links styles on page/section style attr
Broken by overloading the role param to allow multiple roles
https://bugzilla.gnome.org/show_bug.cgi?id=709498
xslt/mallard/html/mal2html-links.xsl | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl
index c7b6254..5fe39e0 100644
--- a/xslt/mallard/html/mal2html-links.xsl
+++ b/xslt/mallard/html/mal2html-links.xsl
@@ -72,9 +72,10 @@ parameter will be used if provided.
<xsl:param name="role" select="''"/>
<xsl:param name="divs" select="false()"/>
<xsl:param name="title" select="''"/>
+ <xsl:variable name="lastrole" select="str:split($role)[last()]"/>
<!-- We use the style attribute on page for links styles for backwards
compatibility, but only for topic links. -->
- <xsl:variable name="style" select="concat(' ', $node[self::mal:links or $role = 'topic']/@style, ' ')"/>
+ <xsl:variable name="style" select="concat(' ', $node[self::mal:links or $lastrole = 'topic']/@style, '
')"/>
<xsl:variable name="nodesc" select="contains($style, ' nodesc ')"/>
<xsl:variable name="maltitle" select="$node/self::mal:links/mal:title"/>
<xsl:variable name="expander" select="($maltitle or ($title != '')) and
@@ -95,8 +96,8 @@ parameter will be used if provided.
<xsl:with-param name="node" select="$node[self::mal:links]"/>
<xsl:with-param name="class">
<xsl:text>links </xsl:text>
- <xsl:if test="$role != ''">
- <xsl:value-of select="concat($role, 'links')"/>
+ <xsl:if test="$lastrole != ''">
+ <xsl:value-of select="concat($lastrole, 'links')"/>
</xsl:if>
<xsl:if test="$expander">
<xsl:text> ui-expander</xsl:text>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]