source: stylesheets/xhtml/lfs-navigational.xsl@ 2ec64b3

v5_1_1
Last change on this file since 2ec64b3 was 2ec64b3, checked in by lfs-dev <lfs-dev@…>, 20 years ago

This commit was manufactured by cvs2svn to create tag 'v5_1_1'.

git-svn-id: http://svn.linuxfromscratch.org/LFS/tags/v5_1_1/BOOK@3757 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
4
5<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xmlns="http://www.w3.org/1999/xhtml"
7 version="1.0">
8
9 <!-- Dropping the HEAD links -->
10 <xsl:template name="html.head">
11 <head>
12 <xsl:call-template name="system.head.content"/>
13 <xsl:call-template name="head.content"/>
14 <xsl:call-template name="user.head.content"/>
15 </head>
16 </xsl:template>
17
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) &gt; 0 or (count($up) &gt; 0
26 and generate-id($up) != generate-id($home)) or count($next) &gt; 0"/>
27 <xsl:if test="$row and $home != .">
28 <div class="navheader">
29 <xsl:if test="$home != .">
30 <table width="100%" summary="Navigation header">
31 <tr>
32 <th colspan="3" align="center">
33 <h4>
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"/>
37 </h4>
38 </th>
39 </tr>
40 <xsl:if test="$up != $home">
41 <tr>
42 <th colspan="3" align="center">
43 <h3>
44 <xsl:apply-templates select="$up" mode="object.title.markup"/>
45 </h3>
46 </th>
47 </tr>
48 </xsl:if>
49 <tr>
50 <td width="33%" align="left">
51 <a accesskey="p">
52 <xsl:attribute name="href">
53 <xsl:call-template name="href.target">
54 <xsl:with-param name="object" select="$prev"/>
55 </xsl:call-template>
56 </xsl:attribute>
57 <xsl:call-template name="navig.content">
58 <xsl:with-param name="direction" select="'prev'"/>
59 </xsl:call-template>
60 </a>
61 <xsl:text>&#160;</xsl:text>
62 </td>
63 <td width="34%" align="center">
64 <a accesskey="h">
65 <xsl:attribute name="href">
66 <xsl:call-template name="href.target">
67 <xsl:with-param name="object" select="$home"/>
68 </xsl:call-template>
69 </xsl:attribute>
70 <xsl:call-template name="navig.content">
71 <xsl:with-param name="direction" select="'home'"/>
72 </xsl:call-template>
73 </a>
74 </td>
75 <td width="33%" align="right">
76 <xsl:text>&#160;</xsl:text>
77 <xsl:if test="count($next)&gt;0">
78 <a accesskey="n">
79 <xsl:attribute name="href">
80 <xsl:call-template name="href.target">
81 <xsl:with-param name="object" select="$next"/>
82 </xsl:call-template>
83 </xsl:attribute>
84 <xsl:call-template name="navig.content">
85 <xsl:with-param name="direction" select="'next'"/>
86 </xsl:call-template>
87 </a>
88 </xsl:if>
89 </td>
90 </tr>
91 </table>
92 <hr/>
93 </xsl:if>
94 </div>
95 </xsl:if>
96 </xsl:template>
97
98</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.