source: trunk/Distribution/XSL/slides/html/plain.xsl

Last change on this file was 2, checked in by jkacer, 18 years ago

Added all DocBook Framework stuff:

  • DocBook DTD
  • Transformation software FOP 0.20.5 and Saxon 6
  • XSL styles
  • Rexx scripts

Also added some WarpIN-related stuff for creation of WarpIN installation packages.
This state corresponds to version 1.0.0 from November 2005, just slightly modified to carry versioning information (Rexx scripts).

File size: 15.8 KB
Line 
1<?xml version="1.0"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 version="1.0">
4
5<xsl:import href="slides-common.xsl"/>
6
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'"/>
12
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'"/>
18
19<xsl:param name="css.stylesheet" select="'slides-plain.css'"/>
20
21<!-- ====================================================================== -->
22
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"/>
29
30 <div class="navhead">
31 <table width="100%" border="0" cellpadding="0" cellspacing="0"
32 summary="Navigation">
33 <tr>
34 <td align="left" width="50%">
35 <span class="slidestitle">
36 <xsl:value-of select="(/slides/slidesinfo/title)[1]"/>
37 </span>
38 <xsl:text>&#160;</xsl:text>
39 </td>
40 <td align="right" width="50%">
41 <xsl:choose>
42 <xsl:when test="$home">
43 <a>
44 <xsl:attribute name="href">
45 <xsl:apply-templates select="$home" mode="filename"/>
46 </xsl:attribute>
47 <xsl:attribute name="title">
48 <xsl:value-of select="$home/slidesinfo/title"/>
49 </xsl:attribute>
50 <img alt="Home" border="0">
51 <xsl:attribute name="src">
52 <xsl:call-template name="home.image"/>
53 </xsl:attribute>
54 </img>
55 </a>
56 </xsl:when>
57 <xsl:otherwise>
58 <img alt="Home" border="0">
59 <xsl:attribute name="src">
60 <xsl:call-template name="no.home.image"/>
61 </xsl:attribute>
62 </img>
63 </xsl:otherwise>
64 </xsl:choose>
65 <xsl:text>&#160;</xsl:text>
66
67 <xsl:choose>
68 <xsl:when test="$toc != ''">
69 <a title="ToC" href="{$toc}">
70 <img alt="ToC" border="0">
71 <xsl:attribute name="src">
72 <xsl:call-template name="toc.image"/>
73 </xsl:attribute>
74 </img>
75 </a>
76 </xsl:when>
77 <xsl:otherwise>
78 <img alt="ToC" border="0">
79 <xsl:attribute name="src">
80 <xsl:call-template name="no.toc.image"/>
81 </xsl:attribute>
82 </img>
83 </xsl:otherwise>
84 </xsl:choose>
85 <xsl:text>&#160;</xsl:text>
86
87 <xsl:choose>
88 <xsl:when test="$prev">
89 <a>
90 <xsl:attribute name="href">
91 <xsl:apply-templates select="$prev" mode="filename"/>
92 </xsl:attribute>
93 <xsl:attribute name="title">
94 <xsl:value-of select="$prev/title"/>
95 </xsl:attribute>
96 <img alt="Prev" border="0">
97 <xsl:attribute name="src">
98 <xsl:call-template name="prev.image"/>
99 </xsl:attribute>
100 </img>
101 </a>
102 </xsl:when>
103 <xsl:otherwise>
104 <img alt="Prev" border="0">
105 <xsl:attribute name="src">
106 <xsl:call-template name="no.prev.image"/>
107 </xsl:attribute>
108 </img>
109 </xsl:otherwise>
110 </xsl:choose>
111 <xsl:text>&#160;</xsl:text>
112
113 <xsl:choose>
114 <xsl:when test="$up">
115 <a>
116 <xsl:attribute name="href">
117 <xsl:apply-templates select="$up" mode="filename"/>
118 </xsl:attribute>
119 <xsl:attribute name="title">
120 <xsl:value-of select="$up/title"/>
121 </xsl:attribute>
122 <img alt="Up" border="0">
123 <xsl:attribute name="src">
124 <xsl:call-template name="up.image"/>
125 </xsl:attribute>
126 </img>
127 </a>
128 </xsl:when>
129 <xsl:otherwise>
130 <img alt="Up" border="0">
131 <xsl:attribute name="src">
132 <xsl:call-template name="no.up.image"/>
133 </xsl:attribute>
134 </img>
135 </xsl:otherwise>
136 </xsl:choose>
137 <xsl:text>&#160;</xsl:text>
138
139 <xsl:choose>
140 <xsl:when test="$next">
141 <a>
142 <xsl:attribute name="href">
143 <xsl:apply-templates select="$next" mode="filename"/>
144 </xsl:attribute>
145 <xsl:attribute name="title">
146 <xsl:value-of select="$next/title"/>
147 </xsl:attribute>
148 <img alt="Next" border="0">
149 <xsl:attribute name="src">
150 <xsl:call-template name="next.image"/>
151 </xsl:attribute>
152 </img>
153 </a>
154 </xsl:when>
155 <xsl:otherwise>
156 <img alt="Next" border="0">
157 <xsl:attribute name="src">
158 <xsl:call-template name="no.next.image"/>
159 </xsl:attribute>
160 </img>
161 </xsl:otherwise>
162 </xsl:choose>
163 <xsl:text>&#160;</xsl:text>
164 </td>
165 </tr>
166 </table>
167 <hr class="top-nav-sep"/>
168 </div>
169</xsl:template>
170
171<!-- ============================================================ -->
172
173<xsl:template name="titlepage-top-nav">
174 <xsl:param name="home"/>
175 <xsl:param name="up"/>
176 <xsl:param name="prev"/>
177 <xsl:param name="next"/>
178 <xsl:param name="toc" select="$toc.html"/>
179
180 <div class="navhead">
181 <table width="100%" border="0" cellpadding="0" cellspacing="0"
182 summary="Navigation">
183 <tr>
184 <td align="left" width="50%">
185 <xsl:text>&#160;</xsl:text>
186 </td>
187 <td align="right" width="50%">
188 <xsl:choose>
189 <xsl:when test="$home">
190 <a>
191 <xsl:attribute name="href">
192 <xsl:apply-templates select="$home" mode="filename"/>
193 </xsl:attribute>
194 <xsl:attribute name="title">
195 <xsl:value-of select="$home/slidesinfo/title"/>
196 </xsl:attribute>
197 <img alt="Home" border="0">
198 <xsl:attribute name="src">
199 <xsl:call-template name="home.image"/>
200 </xsl:attribute>
201 </img>
202 </a>
203 </xsl:when>
204 <xsl:otherwise>
205 <img alt="Home" border="0">
206 <xsl:attribute name="src">
207 <xsl:call-template name="no.home.image"/>
208 </xsl:attribute>
209 </img>
210 </xsl:otherwise>
211 </xsl:choose>
212 <xsl:text>&#160;</xsl:text>
213
214 <xsl:choose>
215 <xsl:when test="$toc.html != ''">
216 <a title="ToC" href="{$toc.html}">
217 <img alt="ToC" border="0">
218 <xsl:attribute name="src">
219 <xsl:call-template name="toc.image"/>
220 </xsl:attribute>
221 </img>
222 </a>
223 </xsl:when>
224 <xsl:otherwise>
225 <img alt="ToC" border="0">
226 <xsl:attribute name="src">
227 <xsl:call-template name="no.toc.image"/>
228 </xsl:attribute>
229 </img>
230 </xsl:otherwise>
231 </xsl:choose>
232 <xsl:text>&#160;</xsl:text>
233
234 <xsl:choose>
235 <xsl:when test="$prev">
236 <a>
237 <xsl:attribute name="href">
238 <xsl:apply-templates select="$prev" mode="filename"/>
239 </xsl:attribute>
240 <xsl:attribute name="title">
241 <xsl:value-of select="$prev/title"/>
242 </xsl:attribute>
243 <img alt="Prev" border="0">
244 <xsl:attribute name="src">
245 <xsl:call-template name="prev.image"/>
246 </xsl:attribute>
247 </img>
248 </a>
249 </xsl:when>
250 <xsl:otherwise>
251 <img alt="Prev" border="0">
252 <xsl:attribute name="src">
253 <xsl:call-template name="no.prev.image"/>
254 </xsl:attribute>
255 </img>
256 </xsl:otherwise>
257 </xsl:choose>
258 <xsl:text>&#160;</xsl:text>
259
260 <xsl:choose>
261 <xsl:when test="$up">
262 <a>
263 <xsl:attribute name="href">
264 <xsl:apply-templates select="$up" mode="filename"/>
265 </xsl:attribute>
266 <xsl:attribute name="title">
267 <xsl:value-of select="$up/title"/>
268 </xsl:attribute>
269 <img alt="Up" border="0">
270 <xsl:attribute name="src">
271 <xsl:call-template name="up.image"/>
272 </xsl:attribute>
273 </img>
274 </a>
275 </xsl:when>
276 <xsl:otherwise>
277 <img alt="Up" border="0">
278 <xsl:attribute name="src">
279 <xsl:call-template name="no.up.image"/>
280 </xsl:attribute>
281 </img>
282 </xsl:otherwise>
283 </xsl:choose>
284 <xsl:text>&#160;</xsl:text>
285
286 <xsl:choose>
287 <xsl:when test="$next">
288 <a>
289 <xsl:attribute name="href">
290 <xsl:apply-templates select="$next" mode="filename"/>
291 </xsl:attribute>
292 <xsl:attribute name="title">
293 <xsl:value-of select="$next/title"/>
294 </xsl:attribute>
295 <img alt="Next" border="0">
296 <xsl:attribute name="src">
297 <xsl:call-template name="next.image"/>
298 </xsl:attribute>
299 </img>
300 </a>
301 </xsl:when>
302 <xsl:otherwise>
303 <img alt="Next" border="0">
304 <xsl:attribute name="src">
305 <xsl:call-template name="no.next.image"/>
306 </xsl:attribute>
307 </img>
308 </xsl:otherwise>
309 </xsl:choose>
310 <xsl:text>&#160;</xsl:text>
311 </td>
312 </tr>
313 </table>
314 <hr class="top-nav-sep"/>
315 </div>
316</xsl:template>
317
318<!-- ============================================================ -->
319
320<xsl:template name="toc-top-nav">
321 <xsl:param name="home" select="/slides"/>
322 <xsl:param name="up"/>
323 <xsl:param name="prev"/>
324 <xsl:param name="next" select="(foil|foilgroup)[1]"/>
325 <xsl:param name="toc"/>
326
327 <div class="navhead">
328 <table width="100%" border="0" cellpadding="0" cellspacing="0"
329 summary="Navigation">
330 <tr>
331 <td align="left" width="50%">
332 <xsl:text>&#160;</xsl:text>
333 </td>
334 <td align="right" width="50%">
335 <xsl:choose>
336 <xsl:when test="$home">
337 <a>
338 <xsl:attribute name="href">
339 <xsl:apply-templates select="$home" mode="filename"/>
340 </xsl:attribute>
341 <xsl:attribute name="title">
342 <xsl:value-of select="$home/slidesinfo/title"/>
343 </xsl:attribute>
344 <img alt="Home" border="0">
345 <xsl:attribute name="src">
346 <xsl:call-template name="home.image"/>
347 </xsl:attribute>
348 </img>
349 </a>
350 </xsl:when>
351 <xsl:otherwise>
352 <img alt="Home" border="0">
353 <xsl:attribute name="src">
354 <xsl:call-template name="no.home.image"/>
355 </xsl:attribute>
356 </img>
357 </xsl:otherwise>
358 </xsl:choose>
359 <xsl:text>&#160;</xsl:text>
360
361 <xsl:choose>
362 <xsl:when test="$toc != ''">
363 <a title="ToC" href="{$toc}">
364 <img alt="ToC" border="0">
365 <xsl:attribute name="src">
366 <xsl:call-template name="toc.image"/>
367 </xsl:attribute>
368 </img>
369 </a>
370 </xsl:when>
371 <xsl:otherwise>
372 <img alt="ToC" border="0">
373 <xsl:attribute name="src">
374 <xsl:call-template name="no.toc.image"/>
375 </xsl:attribute>
376 </img>
377 </xsl:otherwise>
378 </xsl:choose>
379 <xsl:text>&#160;</xsl:text>
380
381 <xsl:choose>
382 <xsl:when test="$prev">
383 <a>
384 <xsl:attribute name="href">
385 <xsl:apply-templates select="$prev" mode="filename"/>
386 </xsl:attribute>
387 <xsl:attribute name="title">
388 <xsl:value-of select="$prev/title"/>
389 </xsl:attribute>
390 <img alt="Prev" border="0">
391 <xsl:attribute name="src">
392 <xsl:call-template name="prev.image"/>
393 </xsl:attribute>
394 </img>
395 </a>
396 </xsl:when>
397 <xsl:otherwise>
398 <img alt="Prev" border="0">
399 <xsl:attribute name="src">
400 <xsl:call-template name="no.prev.image"/>
401 </xsl:attribute>
402 </img>
403 </xsl:otherwise>
404 </xsl:choose>
405 <xsl:text>&#160;</xsl:text>
406
407 <xsl:choose>
408 <xsl:when test="$up">
409 <a>
410 <xsl:attribute name="href">
411 <xsl:apply-templates select="$up" mode="filename"/>
412 </xsl:attribute>
413 <xsl:attribute name="title">
414 <xsl:value-of select="$up/title"/>
415 </xsl:attribute>
416 <img alt="Up" border="0">
417 <xsl:attribute name="src">
418 <xsl:call-template name="up.image"/>
419 </xsl:attribute>
420 </img>
421 </a>
422 </xsl:when>
423 <xsl:otherwise>
424 <img alt="Up" border="0">
425 <xsl:attribute name="src">
426 <xsl:call-template name="no.up.image"/>
427 </xsl:attribute>
428 </img>
429 </xsl:otherwise>
430 </xsl:choose>
431 <xsl:text>&#160;</xsl:text>
432
433 <xsl:choose>
434 <xsl:when test="$next">
435 <a>
436 <xsl:attribute name="href">
437 <xsl:apply-templates select="$next" mode="filename"/>
438 </xsl:attribute>
439 <xsl:attribute name="title">
440 <xsl:value-of select="$next/title"/>
441 </xsl:attribute>
442 <img alt="Next" border="0">
443 <xsl:attribute name="src">
444 <xsl:call-template name="next.image"/>
445 </xsl:attribute>
446 </img>
447 </a>
448 </xsl:when>
449 <xsl:otherwise>
450 <img alt="Next" border="0">
451 <xsl:attribute name="src">
452 <xsl:call-template name="no.next.image"/>
453 </xsl:attribute>
454 </img>
455 </xsl:otherwise>
456 </xsl:choose>
457 <xsl:text>&#160;</xsl:text>
458 </td>
459 </tr>
460 </table>
461 <hr class="top-nav-sep"/>
462 </div>
463</xsl:template>
464
465<!-- ====================================================================== -->
466
467<xsl:template name="bottom-nav"/>
468
469</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.