2004-05-08 10:42:12 +08:00
|
|
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
|
|
|
|
|
|
|
<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
|
2004-06-20 13:35:48 +08:00
|
|
|
<!-- Updates by Bruce Dubbs <bdubbs@linuxfromscratch.org> -->
|
2004-05-08 10:42:12 +08:00
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
version="1.0">
|
|
|
|
|
|
|
|
<!-- Dropping the HEAD links -->
|
|
|
|
<xsl:template name="html.head">
|
|
|
|
<head>
|
|
|
|
<xsl:call-template name="system.head.content"/>
|
|
|
|
<xsl:call-template name="head.content"/>
|
|
|
|
<xsl:call-template name="user.head.content"/>
|
|
|
|
</head>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- Header Navigation-->
|
|
|
|
<xsl:template name="header.navigation">
|
|
|
|
<xsl:param name="prev" select="/foo"/>
|
|
|
|
<xsl:param name="next" select="/foo"/>
|
|
|
|
<xsl:param name="nav.context"/>
|
|
|
|
<xsl:variable name="home" select="/*[1]"/>
|
|
|
|
<xsl:variable name="up" select="parent::*"/>
|
|
|
|
<xsl:variable name="row" select="count($prev) > 0 or (count($up) > 0
|
|
|
|
and generate-id($up) != generate-id($home)) or count($next) > 0"/>
|
|
|
|
<xsl:if test="$row and $home != .">
|
|
|
|
<div class="navheader">
|
|
|
|
<xsl:if test="$home != .">
|
|
|
|
<div class="headertitles">
|
|
|
|
<p>
|
|
|
|
<xsl:apply-templates select="$home" mode="object.title.markup"/>
|
2004-06-20 13:35:48 +08:00
|
|
|
<xsl:text> – </xsl:text> <!-- ndash -->
|
2004-05-08 10:42:12 +08:00
|
|
|
<xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
|
|
|
|
</p>
|
|
|
|
<xsl:if test="$up != $home">
|
|
|
|
<p><b>
|
|
|
|
<xsl:apply-templates select="$up" mode="object.title.markup"/>
|
|
|
|
</b></p>
|
|
|
|
</xsl:if>
|
|
|
|
</div>
|
|
|
|
</xsl:if>
|
2004-05-17 14:26:42 +08:00
|
|
|
<div class="headerlinks">
|
2004-06-20 13:35:48 +08:00
|
|
|
<div class='prev'>
|
|
|
|
<xsl:if test="count($prev)>0 and $prev != $home">
|
2004-05-08 10:42:12 +08:00
|
|
|
<a accesskey="p">
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:call-template name="href.target">
|
|
|
|
<xsl:with-param name="object" select="$prev"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:text>Prev</xsl:text>
|
|
|
|
</a>
|
2004-06-20 13:35:48 +08:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:text> </xsl:text></div> <!-- nbsp -->
|
|
|
|
<div class='next'><xsl:text> </xsl:text>
|
|
|
|
<xsl:if test="count($next)>0">
|
2004-05-08 10:42:12 +08:00
|
|
|
<a accesskey="n">
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:call-template name="href.target">
|
|
|
|
<xsl:with-param name="object" select="$next"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:text>Next</xsl:text>
|
|
|
|
</a>
|
2004-06-20 13:35:48 +08:00
|
|
|
</xsl:if>
|
|
|
|
</div>
|
2004-05-17 14:26:42 +08:00
|
|
|
<div class='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:text>Home</xsl:text>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2004-05-08 10:42:12 +08:00
|
|
|
</div>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- Footer Navigation-->
|
|
|
|
<xsl:template name="footer.navigation">
|
|
|
|
<xsl:param name="prev" select="/foo"/>
|
|
|
|
<xsl:param name="next" select="/foo"/>
|
|
|
|
<xsl:param name="nav.context"/>
|
|
|
|
<xsl:variable name="home" select="/*[1]"/>
|
|
|
|
<xsl:variable name="up" select="parent::*"/>
|
|
|
|
<xsl:variable name="row" select="count($prev) > 0 or count($up) > 0
|
|
|
|
or count($next) > 0 or generate-id($home) != generate-id(.)"/>
|
|
|
|
<xsl:if test="$row">
|
|
|
|
<div class="navfooter">
|
2004-06-20 13:35:48 +08:00
|
|
|
<div class='prev'>
|
|
|
|
<xsl:if test="count($prev)>0 and $prev != $home">
|
2004-05-08 10:42:12 +08:00
|
|
|
<a accesskey="p">
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:call-template name="href.target">
|
|
|
|
<xsl:with-param name="object" select="$prev"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:text>Prev</xsl:text>
|
2004-05-17 14:26:42 +08:00
|
|
|
</a><br/>
|
|
|
|
<!-- <xsl:text> </xsl:text> -->
|
2004-05-08 10:42:12 +08:00
|
|
|
<xsl:apply-templates select="$prev" mode="object.title.markup"/>
|
2004-06-20 13:35:48 +08:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
</div> <!-- nbsp -->
|
|
|
|
<div class='next'><xsl:text> </xsl:text>
|
2004-05-17 14:26:42 +08:00
|
|
|
<xsl:if test="count($next)>0">
|
|
|
|
<a accesskey="n">
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:call-template name="href.target">
|
|
|
|
<xsl:with-param name="object" select="$next"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:text>Next</xsl:text>
|
|
|
|
</a><br/>
|
|
|
|
<!-- <xsl:text> </xsl:text> -->
|
|
|
|
<xsl:apply-templates select="$next" mode="object.title.markup"/>
|
2004-06-20 13:35:48 +08:00
|
|
|
</xsl:if>
|
|
|
|
</div>
|
2004-05-08 10:42:12 +08:00
|
|
|
<xsl:if test="count($up)>0 and $up != $home">
|
2004-05-17 14:26:42 +08:00
|
|
|
<div class='up'>
|
2004-05-08 10:42:12 +08:00
|
|
|
<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:text>Up</xsl:text>
|
|
|
|
</a>
|
2004-05-17 14:26:42 +08:00
|
|
|
</div>
|
2004-05-08 10:42:12 +08:00
|
|
|
</xsl:if>
|
2004-06-20 13:35:48 +08:00
|
|
|
<div class='home'>
|
|
|
|
<xsl:if test="$home != .">
|
2004-05-08 10:42:12 +08:00
|
|
|
<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:text>Home</xsl:text>
|
|
|
|
</a>
|
2004-06-20 13:35:48 +08:00
|
|
|
</xsl:if>
|
|
|
|
</div>
|
2004-05-08 10:42:12 +08:00
|
|
|
</div>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|
|
|
|
|