diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-23 19:59:49 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-23 19:59:49 +0000 |
commit | 9fd2b20eac416b5f40d9f9054af645a86a476f23 (patch) | |
tree | 7e0b0b2c7916a9e56f31563f215efa514eb2d5ec /stylesheets/xhtml | |
parent | 5592479b545813678d3680d2305962545e0f45ca (diff) |
Several changes in the CSS code and navigational stuff.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3700 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml')
-rw-r--r-- | stylesheets/xhtml/lfs-navigational.xsl | 103 |
1 files changed, 59 insertions, 44 deletions
diff --git a/stylesheets/xhtml/lfs-navigational.xsl b/stylesheets/xhtml/lfs-navigational.xsl index fb96b7ad1..cfed29ede 100644 --- a/stylesheets/xhtml/lfs-navigational.xsl +++ b/stylesheets/xhtml/lfs-navigational.xsl @@ -54,6 +54,9 @@ <xsl:with-param name="direction" select="'prev'"/> </xsl:call-template> </a> + <p> + <xsl:value-of select="$prev/title"/> + </p> </li> </xsl:if> <xsl:if test="count($next)>0"> @@ -71,25 +74,29 @@ <xsl:with-param name="direction" select="'next'"/> </xsl:call-template> </a> + <p> + <xsl:value-of select="$next/title"/> + </p> </li> </xsl:if> - <xsl:if test="count($up)>0 and $up != $home"> <li class="up"> - <a accesskey="u"> - <xsl:attribute name="href"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="$up"/> + <xsl:if test="count($up)>0 and $up != $home"> + <a accesskey="u"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$up"/> + </xsl:call-template> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:apply-templates select="$up" mode="object.title.markup"/> + </xsl:attribute> + <xsl:call-template name="navig.content"> + <xsl:with-param name="direction" select="'up'"/> </xsl:call-template> - </xsl:attribute> - <xsl:attribute name="title"> - <xsl:apply-templates select="$up" mode="object.title.markup"/> - </xsl:attribute> - <xsl:call-template name="navig.content"> - <xsl:with-param name="direction" select="'up'"/> - </xsl:call-template> - </a> + </a> + </xsl:if> + <xsl:text>.</xsl:text> </li> - </xsl:if> <li class="home"> <a accesskey="h"> <xsl:attribute name="href"> @@ -139,6 +146,9 @@ <xsl:with-param name="direction" select="'prev'"/> </xsl:call-template> </a> + <p> + <xsl:value-of select="$prev/title"/> + </p> </li> </xsl:if> <xsl:if test="count($next)>0"> @@ -156,44 +166,49 @@ <xsl:with-param name="direction" select="'next'"/> </xsl:call-template> </a> + <p> + <xsl:value-of select="$next/title"/> + </p> </li> </xsl:if> - <xsl:if test="count($up)>0 and $up != $home"> <li class="up"> - <a accesskey="u"> - <xsl:attribute name="href"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="$up"/> + <xsl:if test="count($up)>0 and $up != $home"> + <a accesskey="u"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$up"/> + </xsl:call-template> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:apply-templates select="$up" mode="object.title.markup"/> + </xsl:attribute> + <xsl:call-template name="navig.content"> + <xsl:with-param name="direction" select="'up'"/> </xsl:call-template> - </xsl:attribute> - <xsl:attribute name="title"> - <xsl:apply-templates select="$up" mode="object.title.markup"/> - </xsl:attribute> - <xsl:call-template name="navig.content"> - <xsl:with-param name="direction" select="'up'"/> - </xsl:call-template> - </a> + </a> + </xsl:if> + <xsl:text>.</xsl:text> </li> - </xsl:if> - <xsl:if test="$home != ."> <li class="home"> - <a accesskey="h"> - <xsl:attribute name="href"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="$home"/> + <xsl:if test="$home != ."> + <a accesskey="h"> + <xsl:attribute name="href"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="$home"/> + </xsl:call-template> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:value-of select="$home/bookinfo/title"/> + <xsl:text> - </xsl:text> + <xsl:value-of select="$home/bookinfo/subtitle"/> + </xsl:attribute> + <xsl:call-template name="navig.content"> + <xsl:with-param name="direction" select="'home'"/> </xsl:call-template> - </xsl:attribute> - <xsl:attribute name="title"> - <xsl:value-of select="$home/bookinfo/title"/> - <xsl:text> - </xsl:text> - <xsl:value-of select="$home/bookinfo/subtitle"/> - </xsl:attribute> - <xsl:call-template name="navig.content"> - <xsl:with-param name="direction" select="'home'"/> - </xsl:call-template> - </a> + </a> + </xsl:if> + <xsl:text>.</xsl:text> </li> - </xsl:if> </ul> </div> </xsl:if> |