aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-19 21:48:22 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-19 21:48:22 +0000
commit8df9f6385334fa18b32aebc0a2988a5ebc7bef94 (patch)
tree3a2c269c07c8fbe8dd05abeb52072ec82c36e510 /stylesheets
parenta9e89d0c26b67d4f4ad136be1f701665c7b04c72 (diff)
HEAD: StyleSheets - changed the navigational links to make it simetrical and added popup titles.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3665 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/xhtml/lfs-legalnotice.xsl9
-rw-r--r--stylesheets/xhtml/lfs-navigational.xsl74
2 files changed, 64 insertions, 19 deletions
diff --git a/stylesheets/xhtml/lfs-legalnotice.xsl b/stylesheets/xhtml/lfs-legalnotice.xsl
index 8e59611f4..bc677d8d1 100644
--- a/stylesheets/xhtml/lfs-legalnotice.xsl
+++ b/stylesheets/xhtml/lfs-legalnotice.xsl
@@ -33,7 +33,14 @@
<xsl:attribute name="href">
<xsl:text>../index.html</xsl:text>
</xsl:attribute>
- <xsl:text>Home</xsl:text>
+ <xsl:attribute name="title">
+ <xsl:value-of select="/book/bookinfo/title"/>
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="/book/bookinfo/subtitle"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'home'"/>
+ </xsl:call-template>
</a>
</li>
</ul>
diff --git a/stylesheets/xhtml/lfs-navigational.xsl b/stylesheets/xhtml/lfs-navigational.xsl
index f652c3951..fb96b7ad1 100644
--- a/stylesheets/xhtml/lfs-navigational.xsl
+++ b/stylesheets/xhtml/lfs-navigational.xsl
@@ -26,15 +26,15 @@
<div class="navheader">
<xsl:if test="$home != .">
<div class="headertitles">
- <p>
+ <h4>
<xsl:apply-templates select="$home" mode="object.title.markup"/>
<xsl:text> - </xsl:text>
<xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
- </p>
+ </h4>
<xsl:if test="$up != $home">
- <p><b>
+ <h3>
<xsl:apply-templates select="$up" mode="object.title.markup"/>
- </b></p>
+ </h3>
</xsl:if>
</div>
</xsl:if>
@@ -47,7 +47,12 @@
<xsl:with-param name="object" select="$prev"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Prev</xsl:text>
+ <xsl:attribute name="title">
+ <xsl:value-of select="$prev/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
</a>
</li>
</xsl:if>
@@ -59,7 +64,12 @@
<xsl:with-param name="object" select="$next"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Next</xsl:text>
+ <xsl:attribute name="title">
+ <xsl:value-of select="$next/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
</a>
</li>
</xsl:if>
@@ -71,7 +81,12 @@
<xsl:with-param name="object" select="$up"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Up</xsl:text>
+ <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>
</li>
</xsl:if>
@@ -82,7 +97,14 @@
<xsl:with-param name="object" select="$home"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Home</xsl:text>
+ <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>
</li>
</ul>
@@ -110,11 +132,13 @@
<xsl:with-param name="object" select="$prev"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Prev</xsl:text>
+ <xsl:attribute name="title">
+ <xsl:value-of select="$prev/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
</a>
- <p>
- <xsl:apply-templates select="$prev" mode="object.title.markup"/>
- </p>
</li>
</xsl:if>
<xsl:if test="count($next)&gt;0">
@@ -125,11 +149,13 @@
<xsl:with-param name="object" select="$next"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Next</xsl:text>
+ <xsl:attribute name="title">
+ <xsl:value-of select="$next/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
</a>
- <p>
- <xsl:apply-templates select="$next" mode="object.title.markup"/>
- </p>
</li>
</xsl:if>
<xsl:if test="count($up)&gt;0 and $up != $home">
@@ -140,7 +166,12 @@
<xsl:with-param name="object" select="$up"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Up</xsl:text>
+ <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>
</li>
</xsl:if>
@@ -152,7 +183,14 @@
<xsl:with-param name="object" select="$home"/>
</xsl:call-template>
</xsl:attribute>
- <xsl:text>Home</xsl:text>
+ <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>
</li>
</xsl:if>