summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Fleck <jfleck@src.gnome.org>2003-04-02 02:55:10 +0000
committerJohn Fleck <jfleck@src.gnome.org>2003-04-02 02:55:10 +0000
commit093d7360a510baa5fd9dd39ff5b1dc0586d25204 (patch)
tree33de3337e4313103493d6d170bc30ec2150753a5
parentc389ade1a51d2932b692bae4a892a1aeecc5a0f4 (diff)
downloadyelp-093d7360a510baa5fd9dd39ff5b1dc0586d25204.tar.gz
John Fleck <jfleck@inkstain.net>
John Fleck <jfleck@inkstain.net> * stylesheets/yelp-customization.xsl Patch from Shaun McCance fixing #91611
-rw-r--r--ChangeLog5
-rw-r--r--stylesheets/yelp-customization.xsl27
2 files changed, 25 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 957e6b00..76035a2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-01 John Fleck <jfleck@inkstain.net>
+
+ * stylesheets/yelp-customization.xsl
+ Patch from Shaun McCance fixing #91611
+
2003-03-31 Mikael Hallendal <micke@codefactory.se>
* src/yelp-main.c:
diff --git a/stylesheets/yelp-customization.xsl b/stylesheets/yelp-customization.xsl
index 8dc846ca..f4b8b956 100644
--- a/stylesheets/yelp-customization.xsl
+++ b/stylesheets/yelp-customization.xsl
@@ -238,9 +238,16 @@
<xsl:with-param name="object" select="$object"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Next'"/>
- </xsl:call-template>
+ <xsl:choose>
+ <xsl:when test="$object/title">
+ <xsl:value-of select="$object/title/text()"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'Next'"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:text> &gt;&gt;&gt;</xsl:text>
</a></td>
</xsl:template>
@@ -254,10 +261,16 @@
</xsl:call-template>
</xsl:attribute>
<xsl:text>&lt;&lt;&lt; </xsl:text>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Previous'"/>
- </xsl:call-template>
-
+ <xsl:choose>
+ <xsl:when test="$object/title">
+ <xsl:value-of select="$object/title/text()"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'Previous'"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
</a></td>
</xsl:template>