2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <xsl:import href="slides-common.xsl"/>
7 <xsl:param name="prev.image" select="'active/nav-prev.png'"/>
8 <xsl:param name="next.image" select="'active/nav-next.png'"/>
9 <xsl:param name="up.image" select="'active/nav-up.png'"/>
10 <xsl:param name="toc.image" select="'active/nav-toc.png'"/>
11 <xsl:param name="home.image" select="'active/nav-home.png'"/>
13 <xsl:param name="no.prev.image" select="'inactive/nav-prev.png'"/>
14 <xsl:param name="no.next.image" select="'inactive/nav-next.png'"/>
15 <xsl:param name="no.up.image" select="'inactive/nav-up.png'"/>
16 <xsl:param name="no.toc.image" select="'inactive/nav-toc.png'"/>
17 <xsl:param name="no.home.image" select="'inactive/nav-home.png'"/>
19 <xsl:param name="css.stylesheet" select="'slides-plain.css'"/>
21 <!-- ====================================================================== -->
23 <xsl:template name="top-nav">
24 <xsl:param name="prev"/>
25 <xsl:param name="next"/>
26 <xsl:param name="up"/>
27 <xsl:param name="home"/>
28 <xsl:param name="toc" select="$toc.html"/>
31 <table width="100%" border="0" cellpadding="0" cellspacing="0"
34 <td align="left" width="45%">
35 <span class="slidestitle">
36 <xsl:value-of select="(/slides/slidesinfo/title)[1]"/>
38 <xsl:text> </xsl:text>
40 <td width="10%" align="center" valign="bottom">
41 <xsl:call-template name="foil.number"/>
43 <td align="right" width="45%">
45 <xsl:when test="$home">
47 <xsl:attribute name="href">
48 <xsl:apply-templates select="$home" mode="filename"/>
50 <xsl:attribute name="title">
51 <xsl:value-of select="$home/slidesinfo/title"/>
53 <img alt="Home" border="0">
54 <xsl:attribute name="src">
55 <xsl:call-template name="home.image"/>
61 <img alt="Home" border="0">
62 <xsl:attribute name="src">
63 <xsl:call-template name="no.home.image"/>
68 <xsl:text> </xsl:text>
71 <xsl:when test="$toc != ''">
72 <a title="ToC" href="{$toc}">
73 <img alt="ToC" border="0">
74 <xsl:attribute name="src">
75 <xsl:call-template name="toc.image"/>
81 <img alt="ToC" border="0">
82 <xsl:attribute name="src">
83 <xsl:call-template name="no.toc.image"/>
88 <xsl:text> </xsl:text>
91 <xsl:when test="$prev">
93 <xsl:attribute name="href">
94 <xsl:apply-templates select="$prev" mode="filename"/>
96 <xsl:attribute name="title">
97 <xsl:value-of select="$prev/title"/>
99 <img alt="Prev" border="0">
100 <xsl:attribute name="src">
101 <xsl:call-template name="prev.image"/>
107 <img alt="Prev" border="0">
108 <xsl:attribute name="src">
109 <xsl:call-template name="no.prev.image"/>
114 <xsl:text> </xsl:text>
117 <xsl:when test="$up">
119 <xsl:attribute name="href">
120 <xsl:apply-templates select="$up" mode="filename"/>
122 <xsl:attribute name="title">
123 <xsl:value-of select="$up/title"/>
125 <img alt="Up" border="0">
126 <xsl:attribute name="src">
127 <xsl:call-template name="up.image"/>
133 <img alt="Up" border="0">
134 <xsl:attribute name="src">
135 <xsl:call-template name="no.up.image"/>
140 <xsl:text> </xsl:text>
143 <xsl:when test="$next">
145 <xsl:attribute name="href">
146 <xsl:apply-templates select="$next" mode="filename"/>
148 <xsl:attribute name="title">
149 <xsl:value-of select="$next/title"/>
151 <img alt="Next" border="0">
152 <xsl:attribute name="src">
153 <xsl:call-template name="next.image"/>
159 <img alt="Next" border="0">
160 <xsl:attribute name="src">
161 <xsl:call-template name="no.next.image"/>
166 <xsl:text> </xsl:text>
170 <hr class="top-nav-sep"/>
174 <!-- ============================================================ -->
176 <xsl:template name="titlepage-top-nav">
177 <xsl:param name="home"/>
178 <xsl:param name="up"/>
179 <xsl:param name="prev"/>
180 <xsl:param name="next"/>
181 <xsl:param name="toc" select="$toc.html"/>
183 <div class="navhead">
184 <table width="100%" border="0" cellpadding="0" cellspacing="0"
185 summary="Navigation">
187 <td align="left" width="50%">
188 <xsl:text> </xsl:text>
190 <td align="right" width="50%">
192 <xsl:when test="$home">
194 <xsl:attribute name="href">
195 <xsl:apply-templates select="$home" mode="filename"/>
197 <xsl:attribute name="title">
198 <xsl:value-of select="$home/slidesinfo/title"/>
200 <img alt="Home" border="0">
201 <xsl:attribute name="src">
202 <xsl:call-template name="home.image"/>
208 <img alt="Home" border="0">
209 <xsl:attribute name="src">
210 <xsl:call-template name="no.home.image"/>
215 <xsl:text> </xsl:text>
218 <xsl:when test="$toc.html != ''">
219 <a title="ToC" href="{$toc.html}">
220 <img alt="ToC" border="0">
221 <xsl:attribute name="src">
222 <xsl:call-template name="toc.image"/>
228 <img alt="ToC" border="0">
229 <xsl:attribute name="src">
230 <xsl:call-template name="no.toc.image"/>
235 <xsl:text> </xsl:text>
238 <xsl:when test="$prev">
240 <xsl:attribute name="href">
241 <xsl:apply-templates select="$prev" mode="filename"/>
243 <xsl:attribute name="title">
244 <xsl:value-of select="$prev/title"/>
246 <img alt="Prev" border="0">
247 <xsl:attribute name="src">
248 <xsl:call-template name="prev.image"/>
254 <img alt="Prev" border="0">
255 <xsl:attribute name="src">
256 <xsl:call-template name="no.prev.image"/>
261 <xsl:text> </xsl:text>
264 <xsl:when test="$up">
266 <xsl:attribute name="href">
267 <xsl:apply-templates select="$up" mode="filename"/>
269 <xsl:attribute name="title">
270 <xsl:value-of select="$up/title"/>
272 <img alt="Up" border="0">
273 <xsl:attribute name="src">
274 <xsl:call-template name="up.image"/>
280 <img alt="Up" border="0">
281 <xsl:attribute name="src">
282 <xsl:call-template name="no.up.image"/>
287 <xsl:text> </xsl:text>
290 <xsl:when test="$next">
292 <xsl:attribute name="href">
293 <xsl:apply-templates select="$next" mode="filename"/>
295 <xsl:attribute name="title">
296 <xsl:value-of select="$next/title"/>
298 <img alt="Next" border="0">
299 <xsl:attribute name="src">
300 <xsl:call-template name="next.image"/>
306 <img alt="Next" border="0">
307 <xsl:attribute name="src">
308 <xsl:call-template name="no.next.image"/>
313 <xsl:text> </xsl:text>
317 <hr class="top-nav-sep"/>
321 <!-- ============================================================ -->
323 <xsl:template name="toc-top-nav">
324 <xsl:param name="home" select="/slides"/>
325 <xsl:param name="up"/>
326 <xsl:param name="prev"/>
327 <xsl:param name="next" select="(foil|foilgroup)[1]"/>
328 <xsl:param name="toc"/>
330 <div class="navhead">
331 <table width="100%" border="0" cellpadding="0" cellspacing="0"
332 summary="Navigation">
334 <td align="left" width="50%">
335 <xsl:text> </xsl:text>
337 <td align="right" width="50%">
339 <xsl:when test="$home">
341 <xsl:attribute name="href">
342 <xsl:apply-templates select="$home" mode="filename"/>
344 <xsl:attribute name="title">
345 <xsl:value-of select="$home/slidesinfo/title"/>
347 <img alt="Home" border="0">
348 <xsl:attribute name="src">
349 <xsl:call-template name="home.image"/>
355 <img alt="Home" border="0">
356 <xsl:attribute name="src">
357 <xsl:call-template name="no.home.image"/>
362 <xsl:text> </xsl:text>
365 <xsl:when test="$toc != ''">
366 <a title="ToC" href="{$toc}">
367 <img alt="ToC" border="0">
368 <xsl:attribute name="src">
369 <xsl:call-template name="toc.image"/>
375 <img alt="ToC" border="0">
376 <xsl:attribute name="src">
377 <xsl:call-template name="no.toc.image"/>
382 <xsl:text> </xsl:text>
385 <xsl:when test="$prev">
387 <xsl:attribute name="href">
388 <xsl:apply-templates select="$prev" mode="filename"/>
390 <xsl:attribute name="title">
391 <xsl:value-of select="$prev/title"/>
393 <img alt="Prev" border="0">
394 <xsl:attribute name="src">
395 <xsl:call-template name="prev.image"/>
401 <img alt="Prev" border="0">
402 <xsl:attribute name="src">
403 <xsl:call-template name="no.prev.image"/>
408 <xsl:text> </xsl:text>
411 <xsl:when test="$up">
413 <xsl:attribute name="href">
414 <xsl:apply-templates select="$up" mode="filename"/>
416 <xsl:attribute name="title">
417 <xsl:value-of select="$up/title"/>
419 <img alt="Up" border="0">
420 <xsl:attribute name="src">
421 <xsl:call-template name="up.image"/>
427 <img alt="Up" border="0">
428 <xsl:attribute name="src">
429 <xsl:call-template name="no.up.image"/>
434 <xsl:text> </xsl:text>
437 <xsl:when test="$next">
439 <xsl:attribute name="href">
440 <xsl:apply-templates select="$next" mode="filename"/>
442 <xsl:attribute name="title">
443 <xsl:value-of select="$next/title"/>
445 <img alt="Next" border="0">
446 <xsl:attribute name="src">
447 <xsl:call-template name="next.image"/>
453 <img alt="Next" border="0">
454 <xsl:attribute name="src">
455 <xsl:call-template name="no.next.image"/>
460 <xsl:text> </xsl:text>
464 <hr class="top-nav-sep"/>
468 <!-- ====================================================================== -->
470 <xsl:template name="bottom-nav"/>