aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/xhtml/lfs-navigational.xsl
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-12-19 21:17:48 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-12-19 21:17:48 +0000
commitf7bd105db3cf74fb6d2bfed726cf5d187cb1109f (patch)
tree0077803fc32f39b293b3860f6ffa765eefcec94f /stylesheets/xhtml/lfs-navigational.xsl
parent6d3af72bf2b333798eba7b88075fccab9441519f (diff)
Updated the stylesheets and Makefile.
Removed contrib/, index-pdf.xml and goTidy. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4428 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml/lfs-navigational.xsl')
-rw-r--r--stylesheets/xhtml/lfs-navigational.xsl44
1 files changed, 40 insertions, 4 deletions
diff --git a/stylesheets/xhtml/lfs-navigational.xsl b/stylesheets/xhtml/lfs-navigational.xsl
index cfed29ede..bab237142 100644
--- a/stylesheets/xhtml/lfs-navigational.xsl
+++ b/stylesheets/xhtml/lfs-navigational.xsl
@@ -68,14 +68,32 @@
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="title">
- <xsl:value-of select="$next/title"/>
+ <xsl:choose>
+ <xsl:when test="local-name($next)='index'">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Index</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$next/title"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:attribute>
<xsl:call-template name="navig.content">
<xsl:with-param name="direction" select="'next'"/>
</xsl:call-template>
</a>
<p>
- <xsl:value-of select="$next/title"/>
+ <xsl:choose>
+ <xsl:when test="local-name($next)='index'">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Index</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$next/title"/>
+ </xsl:otherwise>
+ </xsl:choose>
</p>
</li>
</xsl:if>
@@ -160,14 +178,32 @@
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="title">
- <xsl:value-of select="$next/title"/>
+ <xsl:choose>
+ <xsl:when test="local-name($next)='index'">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Index</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$next/title"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:attribute>
<xsl:call-template name="navig.content">
<xsl:with-param name="direction" select="'next'"/>
</xsl:call-template>
</a>
<p>
- <xsl:value-of select="$next/title"/>
+ <xsl:choose>
+ <xsl:when test="local-name($next)='index'">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Index</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$next/title"/>
+ </xsl:otherwise>
+ </xsl:choose>
</p>
</li>
</xsl:if>