2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <xsl:import href="slides-common.xsl"/>
7 <xsl:param name="but-fforward.png" select="'active/but-fforward.png'"/>
8 <xsl:param name="but-info.png" select="'active/but-info.png'"/>
9 <xsl:param name="but-next.png" select="'active/but-next.png'"/>
10 <xsl:param name="but-prev.png" select="'active/but-prev.png'"/>
11 <xsl:param name="but-rewind.png" select="'active/but-rewind.png'"/>
13 <xsl:param name="but-xfforward.png" select="'inactive/but-fforward.png'"/>
14 <xsl:param name="but-xinfo.png" select="'inactive/but-info.png'"/>
15 <xsl:param name="but-xnext.png" select="'inactive/but-next.png'"/>
16 <xsl:param name="but-xprev.png" select="'inactive/but-prev.png'"/>
17 <xsl:param name="but-xrewind.png" select="'inactive/but-rewind.png'"/>
19 <!-- overrides for this stylesheet -->
20 <xsl:param name="titlefoil.html" select="concat('index', $html.ext)"/>
21 <xsl:param name="toc.width" select="40"/>
23 <!-- ============================================================ -->
25 <xsl:template match="slides">
26 <xsl:call-template name="write.chunk">
27 <xsl:with-param name="indent" select="$output.indent"/>
28 <xsl:with-param name="filename" select="concat($base.dir, $toc.html)"/>
29 <xsl:with-param name="content">
32 <title><xsl:value-of select="slidesinfo/title"/></title>
33 <xsl:if test="$css.stylesheet != ''">
34 <link type="text/css" rel="stylesheet">
35 <xsl:attribute name="href">
36 <xsl:call-template name="css.stylesheet"/>
40 <xsl:apply-templates select="/processing-instruction('dbhtml')" mode="css.pi"/>
42 <xsl:call-template name="links">
43 <xsl:with-param name="next" select="/slides"/>
44 <xsl:with-param name="tocfile" select="$toc.html"/>
47 <xsl:if test="$keyboard.nav != 0">
48 <script language="javascript" type="text/javascript">
49 <xsl:text> </xsl:text>
53 <xsl:if test="$keyboard.nav != 0">
54 <xsl:call-template name="ua.js"/>
55 <xsl:call-template name="xbDOM.js">
56 <xsl:with-param name="language" select="'javascript'"/>
58 <xsl:call-template name="xbLibrary.js"/>
59 <script language="javascript" type="text/javascript">
60 <xsl:text disable-output-escaping="yes">
62 xblibrary = new xbLibrary('../browser');
66 <xsl:call-template name="xbStyle.js"/>
67 <xsl:call-template name="xbCollapsibleLists.js"/>
68 <xsl:call-template name="slides.js">
69 <xsl:with-param name="language" select="'javascript'"/>
73 <body class="tocpage">
74 <xsl:call-template name="body.attributes"/>
75 <xsl:if test="$keyboard.nav != 0">
76 <xsl:attribute name="onkeypress">
77 <xsl:text>navigate(event)</xsl:text>
81 <table border="0" width="100%" summary="Navigation and body table"
82 cellpadding="0" cellspacing="0">
85 <td><xsl:apply-templates select="." mode="header"/></td>
89 <td width="{$toc.width}" valign="top" align="left">
90 <xsl:if test="$toc.bg.color != ''">
91 <xsl:attribute name="bgcolor">
92 <xsl:value-of select="$toc.bg.color"/>
96 <xsl:call-template name="vertical-navigation">
97 <xsl:with-param name="next" select="/slides"/>
98 <xsl:with-param name="tocfile"/>
102 <td valign="top" align="left">
103 <xsl:if test="$body.bg.color != ''">
104 <xsl:attribute name="bgcolor">
105 <xsl:value-of select="$body.bg.color"/>
109 <div class="{name(.)}">
111 <div class="toc-body">
112 <xsl:call-template name="toc-body"/>
121 <td><xsl:apply-templates select="." mode="footer"/></td>
129 <xsl:apply-templates/>
132 <xsl:template match="slidesinfo">
133 <xsl:call-template name="write.chunk">
134 <xsl:with-param name="indent" select="$output.indent"/>
135 <xsl:with-param name="filename" select="concat($base.dir, $titlefoil.html)"/>
136 <xsl:with-param name="content">
139 <title><xsl:value-of select="title"/></title>
140 <xsl:if test="$css.stylesheet != ''">
141 <link type="text/css" rel="stylesheet">
142 <xsl:attribute name="href">
143 <xsl:call-template name="css.stylesheet"/>
147 <xsl:apply-templates select="/processing-instruction('dbhtml')" mode="css.pi"/>
149 <xsl:call-template name="links">
150 <xsl:with-param name="next" select="(/slides/foil|/slides/foilgroup)[1]"/>
151 <xsl:with-param name="tocfile" select="$toc.html"/>
154 <xsl:if test="$keyboard.nav != 0">
155 <script language="javascript" type="text/javascript">
156 <xsl:text> </xsl:text>
160 <xsl:if test="$keyboard.nav != 0">
161 <xsl:call-template name="ua.js"/>
162 <xsl:call-template name="xbDOM.js">
163 <xsl:with-param name="language" select="'javascript'"/>
165 <xsl:call-template name="xbLibrary.js"/>
166 <script language="javascript" type="text/javascript">
167 <xsl:text disable-output-escaping="yes">
169 xblibrary = new xbLibrary('../browser');
173 <xsl:call-template name="xbStyle.js"/>
174 <xsl:call-template name="xbCollapsibleLists.js"/>
175 <xsl:call-template name="slides.js">
176 <xsl:with-param name="language" select="'javascript'"/>
180 <body class="titlepage">
181 <xsl:call-template name="body.attributes"/>
182 <xsl:if test="$keyboard.nav != 0">
183 <xsl:attribute name="onkeypress">
184 <xsl:text>navigate(event)</xsl:text>
188 <table border="0" width="100%" summary="Navigation and body table"
189 cellpadding="0" cellspacing="0">
192 <td><xsl:apply-templates select="." mode="header"/></td>
196 <td width="{$toc.width}" valign="top" align="left">
197 <xsl:if test="$toc.bg.color != ''">
198 <xsl:attribute name="bgcolor">
199 <xsl:value-of select="$toc.bg.color"/>
203 <xsl:call-template name="vertical-navigation">
204 <xsl:with-param name="first"/>
205 <xsl:with-param name="last" select="(following::foilgroup|following::foil)[last()]"/>
206 <xsl:with-param name="next" select="(following::foilgroup|following::foil)[1]"/>
210 <td valign="top" align="left">
211 <xsl:if test="$body.bg.color != ''">
212 <xsl:attribute name="bgcolor">
213 <xsl:value-of select="$body.bg.color"/>
216 <div class="{name(.)}">
217 <xsl:apply-templates mode="titlepage.mode"/>
224 <td><xsl:apply-templates select="." mode="footer"/></td>
233 <xsl:template match="foilgroup">
234 <xsl:param name="thisfoilgroup">
235 <xsl:apply-templates select="." mode="filename"/>
238 <xsl:variable name="id">
239 <xsl:call-template name="object.id"/>
242 <xsl:variable name="nextfoil" select="foil[1]"/>
243 <xsl:variable name="lastfoil" select="(descendant::foil|following::foil)[last()]"/>
244 <xsl:variable name="prevfoil" select="(preceding::foil|/slides)[last()]"/>
246 <xsl:call-template name="write.chunk">
247 <xsl:with-param name="indent" select="$output.indent"/>
248 <xsl:with-param name="filename" select="concat($base.dir, $thisfoilgroup)"/>
249 <xsl:with-param name="content">
252 <title><xsl:value-of select="title"/></title>
253 <xsl:if test="$css.stylesheet != ''">
254 <link type="text/css" rel="stylesheet">
255 <xsl:attribute name="href">
256 <xsl:call-template name="css.stylesheet"/>
260 <xsl:apply-templates select="/processing-instruction('dbhtml')" mode="css.pi"/>
262 <xsl:call-template name="links">
263 <xsl:with-param name="prev" select="$prevfoil"/>
264 <xsl:with-param name="next" select="$nextfoil"/>
267 <xsl:if test="$keyboard.nav != 0">
268 <script language="javascript" type="text/javascript">
269 <xsl:text> </xsl:text>
273 <xsl:if test="$keyboard.nav != 0">
274 <xsl:call-template name="ua.js"/>
275 <xsl:call-template name="xbDOM.js">
276 <xsl:with-param name="language" select="'javascript'"/>
278 <xsl:call-template name="xbLibrary.js"/>
279 <script language="javascript" type="text/javascript">
280 <xsl:text disable-output-escaping="yes">
282 xblibrary = new xbLibrary('../browser');
286 <xsl:call-template name="xbStyle.js"/>
287 <xsl:call-template name="xbCollapsibleLists.js"/>
288 <xsl:call-template name="slides.js">
289 <xsl:with-param name="language" select="'javascript'"/>
293 <body class="foilgroup">
294 <xsl:call-template name="body.attributes"/>
295 <xsl:if test="$keyboard.nav != 0">
296 <xsl:attribute name="onkeypress">
297 <xsl:text>navigate(event)</xsl:text>
301 <table border="0" width="100%" summary="Navigation and body table"
302 cellpadding="0" cellspacing="0">
305 <td><xsl:apply-templates select="." mode="header"/></td>
309 <td width="{$toc.width}" valign="top" align="left">
310 <xsl:if test="$toc.bg.color != ''">
311 <xsl:attribute name="bgcolor">
312 <xsl:value-of select="$toc.bg.color"/>
316 <xsl:call-template name="vertical-navigation">
317 <xsl:with-param name="last" select="$lastfoil"/>
318 <xsl:with-param name="prev" select="$prevfoil"/>
319 <xsl:with-param name="next" select="$nextfoil"/>
323 <td valign="top" align="left">
324 <xsl:if test="$body.bg.color != ''">
325 <xsl:attribute name="bgcolor">
326 <xsl:value-of select="$body.bg.color"/>
330 <div class="{name(.)}">
331 <xsl:apply-templates/>
338 <td><xsl:apply-templates select="." mode="footer"/></td>
346 <xsl:apply-templates select="foil"/>
349 <xsl:template match="foil">
350 <xsl:variable name="id">
351 <xsl:call-template name="object.id"/>
354 <xsl:variable name="foilgroup" select="ancestor::foilgroup"/>
356 <xsl:variable name="thisfoil">
357 <xsl:apply-templates select="." mode="filename"/>
360 <xsl:variable name="nextfoil" select="(following::foil
361 |following::foilgroup)[1]"/>
363 <xsl:variable name="lastfoil" select="following::foil[last()]"/>
365 <xsl:variable name="prevfoil" select="(preceding-sibling::foil[1]
366 |parent::foilgroup[1]
369 <xsl:call-template name="write.chunk">
370 <xsl:with-param name="indent" select="$output.indent"/>
371 <xsl:with-param name="filename" select="concat($base.dir, $thisfoil)"/>
372 <xsl:with-param name="content">
375 <title><xsl:value-of select="title"/></title>
376 <xsl:if test="$css.stylesheet != ''">
377 <link type="text/css" rel="stylesheet">
378 <xsl:attribute name="href">
379 <xsl:call-template name="css.stylesheet"/>
383 <xsl:apply-templates select="/processing-instruction('dbhtml')" mode="css.pi"/>
385 <xsl:call-template name="links">
386 <xsl:with-param name="prev" select="$prevfoil"/>
387 <xsl:with-param name="next" select="$nextfoil"/>
390 <xsl:if test="$keyboard.nav != 0">
391 <script language="javascript" type="text/javascript">
392 <xsl:text> </xsl:text>
396 <xsl:if test="$keyboard.nav != 0">
397 <xsl:call-template name="ua.js"/>
398 <xsl:call-template name="xbDOM.js">
399 <xsl:with-param name="language" select="'javascript'"/>
401 <xsl:call-template name="xbLibrary.js"/>
402 <script language="javascript" type="text/javascript">
403 <xsl:text disable-output-escaping="yes">
405 xblibrary = new xbLibrary('../browser');
409 <xsl:call-template name="xbStyle.js"/>
410 <xsl:call-template name="xbCollapsibleLists.js"/>
411 <xsl:call-template name="slides.js">
412 <xsl:with-param name="language" select="'javascript'"/>
417 <xsl:call-template name="body.attributes"/>
418 <xsl:if test="$keyboard.nav != 0">
419 <xsl:attribute name="onkeypress">
420 <xsl:text>navigate(event)</xsl:text>
424 <table border="0" width="100%" summary="Navigation and body table"
425 cellpadding="0" cellspacing="0">
428 <td><xsl:apply-templates select="." mode="header"/></td>
432 <td width="{$toc.width}" valign="top" align="left">
433 <xsl:if test="$toc.bg.color != ''">
434 <xsl:attribute name="bgcolor">
435 <xsl:value-of select="$toc.bg.color"/>
439 <xsl:call-template name="vertical-navigation">
440 <xsl:with-param name="last" select="$lastfoil"/>
441 <xsl:with-param name="prev" select="$prevfoil"/>
442 <xsl:with-param name="next" select="$nextfoil"/>
446 <td valign="top" align="left">
447 <xsl:if test="$body.bg.color != ''">
448 <xsl:attribute name="bgcolor">
449 <xsl:value-of select="$body.bg.color"/>
453 <div class="{name(.)}">
454 <xsl:apply-templates/>
461 <td><xsl:apply-templates select="." mode="footer"/></td>
470 <!-- ============================================================ -->
472 <xsl:template match="slidesinfo" mode="header">
473 <div class="navhead">
478 <xsl:template match="foil|foilgroup" mode="header">
479 <div class="navhead">
480 <table border="0" width="100%" summary="Header table"
481 cellpadding="0" cellspacing="0">
484 <xsl:apply-templates select="/slides/slidesinfo/title"
485 mode="slide.footer.mode"/>
488 <xsl:value-of select="count(preceding::foil)
489 + count(preceding::foilgroup)
490 + count(ancestor::foilgroup)
498 <xsl:template match="slidesinfo" mode="footer">
499 <div class="navfoot">
504 <xsl:template match="foil|foilgroup" mode="footer">
505 <div class="navfoot">
506 <table border="0" width="100%" summary="Header table"
507 cellpadding="0" cellspacing="0">
510 <xsl:text>Slide </xsl:text>
511 <xsl:value-of select="count(preceding::foil)
512 + count(preceding::foilgroup)
513 + count(ancestor::foilgroup)
515 <xsl:text> of </xsl:text>
516 <xsl:value-of select="count(//foil) + count(//foilgroup)"/>
523 <xsl:template match="slides" mode="footer"/>
525 <!-- ============================================================ -->
527 <xsl:template name="vertical-navigation">
528 <xsl:param name="first" select="/slides"/>
529 <xsl:param name="prev"/>
530 <xsl:param name="last"/>
531 <xsl:param name="next"/>
532 <xsl:param name="tocfile" select="$toc.html"/>
536 <xsl:when test="$first">
538 <xsl:attribute name="href">
539 <xsl:apply-templates select="$first" mode="filename"/>
541 <img border="0" alt="First">
542 <xsl:attribute name="src">
543 <xsl:call-template name="graphics-file">
544 <xsl:with-param name="image" select="$but-rewind.png"/>
552 <xsl:attribute name="src">
553 <xsl:call-template name="graphics-file">
554 <xsl:with-param name="image" select="$but-xrewind.png"/>
562 <xsl:when test="$prev">
564 <xsl:attribute name="href">
565 <xsl:apply-templates select="$prev" mode="filename"/>
567 <img border="0" alt="Previous">
568 <xsl:attribute name="src">
569 <xsl:call-template name="graphics-file">
570 <xsl:with-param name="image" select="$but-prev.png"/>
578 <xsl:attribute name="src">
579 <xsl:call-template name="graphics-file">
580 <xsl:with-param name="image" select="$but-xprev.png"/>
588 <xsl:when test="$next">
590 <xsl:attribute name="href">
591 <xsl:apply-templates select="$next" mode="filename"/>
593 <img border="0" alt="Last">
594 <xsl:attribute name="src">
595 <xsl:call-template name="graphics-file">
596 <xsl:with-param name="image" select="$but-next.png"/>
604 <xsl:attribute name="src">
605 <xsl:call-template name="graphics-file">
606 <xsl:with-param name="image" select="$but-xnext.png"/>
614 <xsl:when test="$last">
616 <xsl:attribute name="href">
617 <xsl:apply-templates select="$last" mode="filename"/>
619 <img border="0" alt="Next">
620 <xsl:attribute name="src">
621 <xsl:call-template name="graphics-file">
622 <xsl:with-param name="image" select="$but-fforward.png"/>
630 <xsl:attribute name="src">
631 <xsl:call-template name="graphics-file">
632 <xsl:with-param name="image" select="$but-xfforward.png"/>
643 <xsl:when test="$tocfile != ''">
644 <a href="{$tocfile}">
645 <img border="0" alt="ToC">
646 <xsl:attribute name="src">
647 <xsl:call-template name="graphics-file">
648 <xsl:with-param name="image" select="$but-info.png"/>
655 <img border="0" alt="ToC">
656 <xsl:attribute name="src">
657 <xsl:call-template name="graphics-file">
658 <xsl:with-param name="image" select="$but-xinfo.png"/>