source: stylesheets/xhtml/lfs-navigational.xsl@ 3984104

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3984104 was 3984104, checked in by Bruce Dubbs <bdubbs@…>, 20 years ago

Update to style sheets; added tidy to Makefile

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2171 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.5 KB
RevLine 
[5d4975d]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 <div class="headertitles">
31 <p>
32 <xsl:apply-templates select="$home" mode="object.title.markup"/>
33 <xsl:text> - </xsl:text>
34 <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
35 </p>
36 <xsl:if test="$up != $home">
37 <p><b>
38 <xsl:apply-templates select="$up" mode="object.title.markup"/>
39 </b></p>
40 </xsl:if>
41 </div>
42 </xsl:if>
[3984104]43 <div class="headerlinks">
[5d4975d]44 <xsl:if test="count($prev)&gt;0 and $prev != $home">
[3984104]45 <div class='prev'>
[5d4975d]46 <a accesskey="p">
47 <xsl:attribute name="href">
48 <xsl:call-template name="href.target">
49 <xsl:with-param name="object" select="$prev"/>
50 </xsl:call-template>
51 </xsl:attribute>
52 <xsl:text>Prev</xsl:text>
53 </a>
[3984104]54 </div>
[5d4975d]55 </xsl:if>
56 <xsl:if test="count($next)&gt;0">
[3984104]57 <div class='next'>
[5d4975d]58 <a accesskey="n">
59 <xsl:attribute name="href">
60 <xsl:call-template name="href.target">
61 <xsl:with-param name="object" select="$next"/>
62 </xsl:call-template>
63 </xsl:attribute>
64 <xsl:text>Next</xsl:text>
65 </a>
[3984104]66 </div>
[5d4975d]67 </xsl:if>
[3984104]68 <div class='home'>
69 <a accesskey="h">
70 <xsl:attribute name="href">
71 <xsl:call-template name="href.target">
72 <xsl:with-param name="object" select="$home"/>
73 </xsl:call-template>
74 </xsl:attribute>
75 <xsl:text>Home</xsl:text>
76 </a>
77 </div>
78 </div>
[5d4975d]79 </div>
80 </xsl:if>
81 </xsl:template>
82
83 <!-- Footer Navigation-->
84 <xsl:template name="footer.navigation">
85 <xsl:param name="prev" select="/foo"/>
86 <xsl:param name="next" select="/foo"/>
87 <xsl:param name="nav.context"/>
88 <xsl:variable name="home" select="/*[1]"/>
89 <xsl:variable name="up" select="parent::*"/>
90 <xsl:variable name="row" select="count($prev) &gt; 0 or count($up) &gt; 0
91 or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
92 <xsl:if test="$row">
93 <div class="navfooter">
94 <xsl:if test="count($prev)&gt;0 and $prev != $home">
[3984104]95 <div class='prev'>
[5d4975d]96 <a accesskey="p">
97 <xsl:attribute name="href">
98 <xsl:call-template name="href.target">
99 <xsl:with-param name="object" select="$prev"/>
100 </xsl:call-template>
101 </xsl:attribute>
102 <xsl:text>Prev</xsl:text>
[3984104]103 </a><br/>
104 <!-- <xsl:text> </xsl:text> -->
[5d4975d]105 <xsl:apply-templates select="$prev" mode="object.title.markup"/>
[3984104]106 </div>
107 </xsl:if>
108 <xsl:if test="count($next)&gt;0">
109 <div class='next'>
110 <a accesskey="n">
111 <xsl:attribute name="href">
112 <xsl:call-template name="href.target">
113 <xsl:with-param name="object" select="$next"/>
114 </xsl:call-template>
115 </xsl:attribute>
116 <xsl:text>Next</xsl:text>
117 </a><br/>
118 <!-- <xsl:text> </xsl:text> -->
119 <xsl:apply-templates select="$next" mode="object.title.markup"/>
120 </div>
[5d4975d]121 </xsl:if>
122 <xsl:if test="count($up)&gt;0 and $up != $home">
[3984104]123 <div class='up'>
[5d4975d]124 <a accesskey="u">
125 <xsl:attribute name="href">
126 <xsl:call-template name="href.target">
127 <xsl:with-param name="object" select="$up"/>
128 </xsl:call-template>
129 </xsl:attribute>
130 <xsl:text>Up</xsl:text>
131 </a>
[3984104]132 </div>
[5d4975d]133 </xsl:if>
134 <xsl:if test="$home != .">
[3984104]135 <div class='home'>
[5d4975d]136 <a accesskey="h">
137 <xsl:attribute name="href">
138 <xsl:call-template name="href.target">
139 <xsl:with-param name="object" select="$home"/>
140 </xsl:call-template>
141 </xsl:attribute>
142 <xsl:text>Home</xsl:text>
143 </a>
[3984104]144 </div>
[5d4975d]145 </xsl:if>
146 </div>
147 </xsl:if>
148 </xsl:template>
149
150</xsl:stylesheet>
151
152
Note: See TracBrowser for help on using the repository browser.