1 <?xml version="1.0" encoding="ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
6 <xsl:import href="slides-common.xsl"/>
8 <xsl:param name="blank.image" select="'blank.png'"/>
9 <xsl:param name="arrow.image" select="'pointer.png'"/>
11 <xsl:param name="toc.bg.color">#6A719C</xsl:param>
12 <xsl:param name="toc.width">220</xsl:param>
14 <xsl:param name="css.stylesheet" select="'slides-table.css'"/>
16 <!-- ============================================================ -->
18 <xsl:template name="foilgroup-body">
19 <table border="0" width="100%" summary="Navigation and body table" cellpadding="0" cellspacing="0">
21 <td width="{$toc.width}" valign="top" align="left">
22 <xsl:if test="$toc.bg.color != ''">
23 <xsl:attribute name="bgcolor">
24 <xsl:value-of select="$toc.bg.color"/>
28 <xsl:apply-templates select="." mode="t-toc"/>
32 <td valign="top" align="left">
33 <xsl:if test="$body.bg.color != ''">
34 <xsl:attribute name="bgcolor">
35 <xsl:value-of select="$body.bg.color"/>
38 <div class="{name(.)}">
39 <xsl:apply-templates select="*[name(.) != 'foil' and name(.) != 'foilgroup']"/>
42 <xsl:if test="$foilgroup.toc != 0">
44 <xsl:apply-templates select="foil" mode="toc"/>
52 <xsl:template name="foil-body">
53 <table border="0" width="100%" summary="Navigation and body table" cellpadding="0" cellspacing="0">
55 <td width="{$toc.width}" valign="top" align="left">
56 <xsl:if test="$toc.bg.color != ''">
57 <xsl:attribute name="bgcolor">
58 <xsl:value-of select="$toc.bg.color"/>
62 <xsl:apply-templates select="." mode="t-toc"/>
66 <td valign="top" align="left">
67 <xsl:if test="$body.bg.color != ''">
68 <xsl:attribute name="bgcolor">
69 <xsl:value-of select="$body.bg.color"/>
72 <div class="{name(.)}">
73 <xsl:apply-templates/>
80 <!-- ============================================================ -->
82 <xsl:template match="foilgroup" mode="t-toc">
83 <xsl:variable name="thisfoilgroup" select="."/>
85 <xsl:for-each select="/slides/foil|/slides/foilgroup">
87 <xsl:when test="name(.) = 'foilgroup'">
89 <xsl:when test="$thisfoilgroup = .">
91 <xsl:attribute name="src">
92 <xsl:call-template name="graphics-file">
93 <xsl:with-param name="image" select="$arrow.image"/>
100 <xsl:attribute name="src">
101 <xsl:call-template name="graphics-file">
102 <xsl:with-param name="image" select="$blank.image"/>
109 <span class="ttoc-foilgroup">
111 <xsl:attribute name="href">
112 <xsl:apply-templates select="." mode="filename"/>
114 <xsl:apply-templates select="." mode="toc-title"/>
119 <xsl:if test="$thisfoilgroup = .">
120 <xsl:for-each select="foil">
122 <xsl:attribute name="src">
123 <xsl:call-template name="graphics-file">
124 <xsl:with-param name="image" select="$blank.image"/>
129 <xsl:attribute name="src">
130 <xsl:call-template name="graphics-file">
131 <xsl:with-param name="image" select="$blank.image"/>
136 <span class="ttoc-foil">
138 <xsl:attribute name="href">
139 <xsl:apply-templates select="." mode="filename"/>
141 <xsl:apply-templates select="." mode="toc-title"/>
150 <xsl:attribute name="src">
151 <xsl:call-template name="graphics-file">
152 <xsl:with-param name="image" select="$blank.image"/>
156 <span class="ttoc-foil">
158 <xsl:attribute name="href">
159 <xsl:apply-templates select="." mode="filename"/>
161 <xsl:apply-templates select="." mode="toc-title"/>
170 <xsl:template match="foil" mode="t-toc">
171 <xsl:variable name="thisfoil" select="."/>
173 <xsl:for-each select="/slides/foil|/slides/foilgroup">
175 <xsl:when test="name(.) = 'foilgroup'">
177 <xsl:attribute name="src">
178 <xsl:call-template name="graphics-file">
179 <xsl:with-param name="image" select="$blank.image"/>
183 <span class="ttoc-foilgroup">
185 <xsl:attribute name="href">
186 <xsl:apply-templates select="." mode="filename"/>
188 <xsl:apply-templates select="." mode="toc-title"/>
193 <xsl:if test="$thisfoil/ancestor::foilgroup = .">
194 <xsl:for-each select="foil">
196 <xsl:attribute name="src">
197 <xsl:call-template name="graphics-file">
198 <xsl:with-param name="image" select="$blank.image"/>
204 <xsl:when test="$thisfoil = .">
206 <xsl:attribute name="src">
207 <xsl:call-template name="graphics-file">
208 <xsl:with-param name="image" select="$arrow.image"/>
215 <xsl:attribute name="src">
216 <xsl:call-template name="graphics-file">
217 <xsl:with-param name="image" select="$blank.image"/>
224 <span class="ttoc-foil">
226 <xsl:attribute name="href">
227 <xsl:apply-templates select="." mode="filename"/>
229 <xsl:apply-templates select="." mode="toc-title"/>
238 <xsl:for-each select="/slides/foil">
240 <xsl:when test="$thisfoil = .">
242 <xsl:attribute name="src">
243 <xsl:call-template name="graphics-file">
244 <xsl:with-param name="image" select="$arrow.image"/>
251 <xsl:attribute name="src">
252 <xsl:call-template name="graphics-file">
253 <xsl:with-param name="image" select="$blank.image"/>
259 <span class="ttoc-foil">
260 <xsl:apply-templates select="." mode="toc-title"/>
269 <!-- ============================================================ -->
271 <xsl:template match="slides" mode="toc-title">
272 <xsl:call-template name="nobreak">
273 <xsl:with-param name="string">
275 <xsl:when test="slidesinfo/titleabbrev">
276 <xsl:value-of select="slidesinfo/titleabbrev"/>
279 <xsl:value-of select="slidesinfo/title"/>
286 <xsl:template match="foilgroup" mode="toc-title">
287 <xsl:call-template name="nobreak">
288 <xsl:with-param name="string">
290 <xsl:when test="titleabbrev">
291 <xsl:value-of select="titleabbrev"/>
294 <xsl:value-of select="title"/>
301 <xsl:template match="foil" mode="toc-title">
302 <xsl:call-template name="nobreak">
303 <xsl:with-param name="string">
305 <xsl:when test="titleabbrev">
306 <xsl:value-of select="titleabbrev"/>
309 <xsl:value-of select="title"/>
316 <xsl:template name="nobreak">
317 <xsl:param name="string" select="''"/>
319 <xsl:when test="contains($string, ' ')">
320 <xsl:value-of select="substring-before($string, ' ')"/>
321 <xsl:text> </xsl:text>
322 <xsl:call-template name="nobreak">
323 <xsl:with-param name="string" select="substring-after($string, ' ')"/>
327 <xsl:value-of select="$string"/>
332 <!-- ============================================================ -->