1 <?xml version='
1.0' encoding='ISO-
8859-
1'
?>
3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
5 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
6 xmlns=
"http://www.w3.org/1999/xhtml"
9 <!-- Dropping the HEAD links -->
10 <xsl:template name=
"html.head">
12 <xsl:call-template name=
"system.head.content"/>
13 <xsl:call-template name=
"head.content"/>
14 <xsl:call-template name=
"user.head.content"/>
18 <!-- Header Navigation-->
19 <xsl:template name=
"header.navigation">
20 <xsl:param name=
"prev" select=
"/foo"/>
21 <xsl:param name=
"next" select=
"/foo"/>
22 <xsl:param name=
"nav.context"/>
23 <xsl:variable name=
"home" select=
"/*[1]"/>
24 <xsl:variable name=
"up" select=
"parent::*"/>
25 <xsl:variable name=
"row" select=
"count($prev) > 0 or (count($up) > 0
26 and generate-id($up) != generate-id($home)) or count($next) > 0"/>
27 <xsl:if test=
"$row and $home != .">
28 <div class=
"navheader">
29 <xsl:if test=
"$home != .">
30 <table width=
"100%" summary=
"Navigation header">
32 <th colspan=
"3" align=
"center">
34 <xsl:apply-templates select=
"$home" mode=
"object.title.markup"/>
35 <xsl:text> -
</xsl:text>
36 <xsl:apply-templates select=
"$home" mode=
"object.subtitle.markup"/>
40 <xsl:if test=
"$up != $home">
42 <th colspan=
"3" align=
"center">
44 <xsl:apply-templates select=
"$up" mode=
"object.title.markup"/>
50 <td width=
"33%" align=
"left">
52 <xsl:attribute name=
"href">
53 <xsl:call-template name=
"href.target">
54 <xsl:with-param name=
"object" select=
"$prev"/>
57 <xsl:call-template name=
"navig.content">
58 <xsl:with-param name=
"direction" select=
"'prev'"/>
61 <xsl:text> </xsl:text>
63 <td width=
"34%" align=
"center">
65 <xsl:attribute name=
"href">
66 <xsl:call-template name=
"href.target">
67 <xsl:with-param name=
"object" select=
"$home"/>
70 <xsl:call-template name=
"navig.content">
71 <xsl:with-param name=
"direction" select=
"'home'"/>
75 <td width=
"33%" align=
"right">
76 <xsl:text> </xsl:text>
77 <xsl:if test=
"count($next)>0">
79 <xsl:attribute name=
"href">
80 <xsl:call-template name=
"href.target">
81 <xsl:with-param name=
"object" select=
"$next"/>
84 <xsl:call-template name=
"navig.content">
85 <xsl:with-param name=
"direction" select=
"'next'"/>