source: stylesheets/xhtml/lfs-navigational.xsl@ 1423d58f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1423d58f was 3fe8b511, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Update stylesheets and fix Python references

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

  • Property mode set to 100644
File size: 9.9 KB
RevLine 
[5d4975d]1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/1999/xhtml"
5 version="1.0">
6
7 <!-- Dropping the HEAD links -->
8 <xsl:template name="html.head">
9 <head>
10 <xsl:call-template name="system.head.content"/>
11 <xsl:call-template name="head.content"/>
12 <xsl:call-template name="user.head.content"/>
13 </head>
14 </xsl:template>
15
[3fe8b511]16 <!-- Header Navigation-->
[5d4975d]17 <xsl:template name="header.navigation">
18 <xsl:param name="prev" select="/foo"/>
19 <xsl:param name="next" select="/foo"/>
20 <xsl:param name="nav.context"/>
21 <xsl:variable name="home" select="/*[1]"/>
22 <xsl:variable name="up" select="parent::*"/>
23 <xsl:variable name="row" select="count($prev) &gt; 0 or (count($up) &gt; 0
24 and generate-id($up) != generate-id($home)) or count($next) &gt; 0"/>
25 <xsl:if test="$row and $home != .">
26 <div class="navheader">
27 <xsl:if test="$home != .">
28 <div class="headertitles">
[3fe8b511]29 <h4>
30 <xsl:text>Beyond Linux From Scratch - </xsl:text>
[5d4975d]31 <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
[3fe8b511]32 </h4>
[5d4975d]33 <xsl:if test="$up != $home">
[3fe8b511]34 <h3>
[5d4975d]35 <xsl:apply-templates select="$up" mode="object.title.markup"/>
[3fe8b511]36 </h3>
[5d4975d]37 </xsl:if>
38 </div>
39 </xsl:if>
[3fe8b511]40 <ul class="headerlinks">
41 <xsl:if test="count($prev)&gt;0 and $prev != $home">
42 <li class="prev">
[5d4975d]43 <a accesskey="p">
44 <xsl:attribute name="href">
45 <xsl:call-template name="href.target">
46 <xsl:with-param name="object" select="$prev"/>
47 </xsl:call-template>
48 </xsl:attribute>
[3fe8b511]49 <xsl:attribute name="title">
50 <xsl:value-of select="$prev/title"/>
51 </xsl:attribute>
52 <xsl:call-template name="navig.content">
53 <xsl:with-param name="direction" select="'prev'"/>
54 </xsl:call-template>
[5d4975d]55 </a>
[3fe8b511]56 <p>
57 <xsl:value-of select="$prev/title"/>
58 </p>
59 </li>
60 </xsl:if>
61 <xsl:if test="count($next)&gt;0">
62 <li class="next">
[5d4975d]63 <a accesskey="n">
64 <xsl:attribute name="href">
65 <xsl:call-template name="href.target">
66 <xsl:with-param name="object" select="$next"/>
67 </xsl:call-template>
68 </xsl:attribute>
[3fe8b511]69 <xsl:attribute name="title">
70 <xsl:choose>
71 <xsl:when test="local-name($next)='index'">
72 <xsl:call-template name="gentext">
73 <xsl:with-param name="key">Index</xsl:with-param>
74 </xsl:call-template>
75 </xsl:when>
76 <xsl:otherwise>
77 <xsl:value-of select="$next/title"/>
78 </xsl:otherwise>
79 </xsl:choose>
80 </xsl:attribute>
81 <xsl:call-template name="navig.content">
82 <xsl:with-param name="direction" select="'next'"/>
83 </xsl:call-template>
[5d4975d]84 </a>
[3fe8b511]85 <p>
86 <xsl:choose>
87 <xsl:when test="local-name($next)='index'">
88 <xsl:call-template name="gentext">
89 <xsl:with-param name="key">Index</xsl:with-param>
90 </xsl:call-template>
91 </xsl:when>
92 <xsl:otherwise>
93 <xsl:value-of select="$next/title"/>
94 </xsl:otherwise>
95 </xsl:choose>
96 </p>
97 </li>
98 </xsl:if>
99 <li class="up">
100 <xsl:if test="count($up)&gt;0 and $up != $home">
101 <a accesskey="u">
102 <xsl:attribute name="href">
103 <xsl:call-template name="href.target">
104 <xsl:with-param name="object" select="$up"/>
105 </xsl:call-template>
106 </xsl:attribute>
107 <xsl:attribute name="title">
108 <xsl:apply-templates select="$up" mode="object.title.markup"/>
109 </xsl:attribute>
110 <xsl:call-template name="navig.content">
111 <xsl:with-param name="direction" select="'up'"/>
112 </xsl:call-template>
113 </a>
114 </xsl:if>
115 <xsl:text>.</xsl:text>
116 </li>
117 <li class="home">
[3984104]118 <a accesskey="h">
119 <xsl:attribute name="href">
120 <xsl:call-template name="href.target">
121 <xsl:with-param name="object" select="$home"/>
122 </xsl:call-template>
123 </xsl:attribute>
[3fe8b511]124 <xsl:attribute name="title">
125 <xsl:value-of select="$home/bookinfo/title"/>
126 <xsl:text> - </xsl:text>
127 <xsl:value-of select="$home/bookinfo/subtitle"/>
128 </xsl:attribute>
129 <xsl:call-template name="navig.content">
130 <xsl:with-param name="direction" select="'home'"/>
131 </xsl:call-template>
[3984104]132 </a>
[3fe8b511]133 </li>
134 </ul>
[5d4975d]135 </div>
136 </xsl:if>
137 </xsl:template>
138
[3fe8b511]139 <!-- Footer Navigation-->
[5d4975d]140 <xsl:template name="footer.navigation">
141 <xsl:param name="prev" select="/foo"/>
142 <xsl:param name="next" select="/foo"/>
143 <xsl:param name="nav.context"/>
144 <xsl:variable name="home" select="/*[1]"/>
145 <xsl:variable name="up" select="parent::*"/>
146 <xsl:variable name="row" select="count($prev) &gt; 0 or count($up) &gt; 0
147 or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
148 <xsl:if test="$row">
149 <div class="navfooter">
[3fe8b511]150 <ul>
151 <xsl:if test="count($prev)&gt;0 and $prev != $home">
152 <li class="prev">
[5d4975d]153 <a accesskey="p">
154 <xsl:attribute name="href">
155 <xsl:call-template name="href.target">
156 <xsl:with-param name="object" select="$prev"/>
157 </xsl:call-template>
158 </xsl:attribute>
[3fe8b511]159 <xsl:attribute name="title">
160 <xsl:value-of select="$prev/title"/>
161 </xsl:attribute>
162 <xsl:call-template name="navig.content">
163 <xsl:with-param name="direction" select="'prev'"/>
164 </xsl:call-template>
165 </a>
166 <p>
167 <xsl:value-of select="$prev/title"/>
168 </p>
169 </li>
170 </xsl:if>
[3984104]171 <xsl:if test="count($next)&gt;0">
[3fe8b511]172 <li class="next">
[3984104]173 <a accesskey="n">
174 <xsl:attribute name="href">
175 <xsl:call-template name="href.target">
176 <xsl:with-param name="object" select="$next"/>
177 </xsl:call-template>
178 </xsl:attribute>
[3fe8b511]179 <xsl:attribute name="title">
180 <xsl:choose>
181 <xsl:when test="local-name($next)='index'">
182 <xsl:call-template name="gentext">
183 <xsl:with-param name="key">Index</xsl:with-param>
184 </xsl:call-template>
185 </xsl:when>
186 <xsl:otherwise>
187 <xsl:value-of select="$next/title"/>
188 </xsl:otherwise>
189 </xsl:choose>
[5d4975d]190 </xsl:attribute>
[3fe8b511]191 <xsl:call-template name="navig.content">
192 <xsl:with-param name="direction" select="'next'"/>
193 </xsl:call-template>
[5d4975d]194 </a>
[3fe8b511]195 <p>
196 <xsl:choose>
197 <xsl:when test="local-name($next)='index'">
198 <xsl:call-template name="gentext">
199 <xsl:with-param name="key">Index</xsl:with-param>
200 </xsl:call-template>
201 </xsl:when>
202 <xsl:otherwise>
203 <xsl:value-of select="$next/title"/>
204 </xsl:otherwise>
205 </xsl:choose>
206 </p>
207 </li>
[5d4975d]208 </xsl:if>
[3fe8b511]209 <li class="up">
210 <xsl:if test="count($up)&gt;0 and $up != $home">
211 <a accesskey="u">
212 <xsl:attribute name="href">
213 <xsl:call-template name="href.target">
214 <xsl:with-param name="object" select="$up"/>
215 </xsl:call-template>
216 </xsl:attribute>
217 <xsl:attribute name="title">
218 <xsl:apply-templates select="$up" mode="object.title.markup"/>
219 </xsl:attribute>
220 <xsl:call-template name="navig.content">
221 <xsl:with-param name="direction" select="'up'"/>
[5d4975d]222 </xsl:call-template>
[3fe8b511]223 </a>
224 </xsl:if>
225 <xsl:text>.</xsl:text>
226 </li>
227 <li class="home">
228 <xsl:if test="$home != .">
229 <a accesskey="h">
230 <xsl:attribute name="href">
231 <xsl:call-template name="href.target">
232 <xsl:with-param name="object" select="$home"/>
233 </xsl:call-template>
234 </xsl:attribute>
235 <xsl:attribute name="title">
236 <xsl:value-of select="$home/bookinfo/title"/>
237 <xsl:text> - </xsl:text>
238 <xsl:value-of select="$home/bookinfo/subtitle"/>
239 </xsl:attribute>
240 <xsl:call-template name="navig.content">
241 <xsl:with-param name="direction" select="'home'"/>
242 </xsl:call-template>
243 </a>
244 </xsl:if>
245 <xsl:text>.</xsl:text>
246 </li>
247 </ul>
[5d4975d]248 </div>
249 </xsl:if>
250 </xsl:template>
251
252</xsl:stylesheet>
253
254
Note: See TracBrowser for help on using the repository browser.