diff options
author | Sander Vesik <sander.vesik@sun.com> | 2002-09-23 15:40:13 +0000 |
---|---|---|
committer | Sander Vesik <sander@src.gnome.org> | 2002-09-23 15:40:13 +0000 |
commit | f3482e12f87e749b472a871640e1c78e2feacd86 (patch) | |
tree | f76e30bde40d2efdc01c0b5a027050367fb3a017 | |
parent | eafe2e4cb2c2677290c249b3b99cbdfbfd728995 (diff) | |
download | yelp-f3482e12f87e749b472a871640e1c78e2feacd86.tar.gz |
- fix some cases of 'next' not leading anywhere on the TOC page - fix user
2002-09-23 Sander Vesik <sander.vesik@sun.com>
* stylesheets/yelp-customization.xsl:
- fix some cases of 'next' not leading anywhere on the TOC page
- fix user guide documents occasionaly having the 'Previous' link
point to nowhere in the chunk "following" TOC
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | stylesheets/yelp-customization.xsl | 19 |
2 files changed, 21 insertions, 5 deletions
@@ -1,3 +1,10 @@ +2002-09-23 Sander Vesik <sander.vesik@sun.com> + + * stylesheets/yelp-customization.xsl: + - fix some cases of 'next' not leading anywhere on the TOC page + - fix user guide documents occasionaly having the 'Previous' link + point to nowhere in the chunk "following" TOC + 2002-09-20 Mikael Hallendal <micke@codefactory.se> * src/yelp-window.c: changed to reflect changes in the views. diff --git a/stylesheets/yelp-customization.xsl b/stylesheets/yelp-customization.xsl index 30a3a993..c46ec231 100644 --- a/stylesheets/yelp-customization.xsl +++ b/stylesheets/yelp-customization.xsl @@ -305,7 +305,7 @@ </xsl:when> <!-- we need to treat the first sect1 specially --> - <xsl:when test="$node=/article/sect1[1]"> + <xsl:when test="$node=/article/sect1[1] or $node=/part/chapter/sect1[1]"> <td><a accesskey="p"> <xsl:attribute name="href"> <xsl:call-template name="article.toc.ref"/> @@ -315,7 +315,7 @@ </xsl:when> <!-- And the first sect2 of the first sect1 needs the same --> - <xsl:when test="$node=/article/sect1[1]/sect2[1]"> + <xsl:when test="$node=/article/sect1[1]/sect2[1] or $node=/part/chapter/sect1[1]/sect2[1]"> <td><a accesskey="p"> <xsl:attribute name="href"> <xsl:call-template name="article.toc.ref"/> @@ -420,9 +420,18 @@ <xsl:text><<< Previous</xsl:text> </a></td> <td></td> - <xsl:call-template name="next.link.cell"> - <xsl:with-param name="object" select="sect1[1]"/> - </xsl:call-template> + <xsl:choose> + <xsl:when test="local-name(.) = 'part'"> + <xsl:call-template name="next.link.cell"> + <xsl:with-param name="object" select="chapter[1]/sect1[1]"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="next.link.cell"> + <xsl:with-param name="object" select="sect1[1]"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> </tr> </table> </xsl:template> |