diff options
author | John Fleck <jfleck@src.gnome.org> | 2003-04-02 02:55:10 +0000 |
---|---|---|
committer | John Fleck <jfleck@src.gnome.org> | 2003-04-02 02:55:10 +0000 |
commit | 093d7360a510baa5fd9dd39ff5b1dc0586d25204 (patch) | |
tree | 33de3337e4313103493d6d170bc30ec2150753a5 | |
parent | c389ade1a51d2932b692bae4a892a1aeecc5a0f4 (diff) | |
download | yelp-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | stylesheets/yelp-customization.xsl | 27 |
2 files changed, 25 insertions, 7 deletions
@@ -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> >>></xsl:text> </a></td> </xsl:template> @@ -254,10 +261,16 @@ </xsl:call-template> </xsl:attribute> <xsl:text><<< </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> |