2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <xsl:import href="slides-common.xsl"/>
7 <xsl:param name="logo.image.uri" select="''"/>
8 <xsl:param name="logo.uri" select="''"/>
9 <xsl:param name="logo.title" select="''"/>
11 <xsl:param name="next.image" select="'active/w3c-next.png'"/>
12 <xsl:param name="no.next.image" select="'inactive/w3c-next.png'"/>
14 <xsl:param name="prev.image" select="'active/w3c-prev.png'"/>
15 <xsl:param name="no.prev.image" select="'inactive/w3c-prev.png'"/>
17 <xsl:param name="toc.image" select="'active/w3c-toc.png'"/>
18 <xsl:param name="no.toc.image" select="'inactive/w3c-toc.png'"/>
20 <xsl:param name="css.stylesheet" select="'slides-w3c.css'"/>
22 <xsl:template name="logo">
23 <xsl:if test="$logo.uri != ''">
24 <a href="{$logo.uri}" title="{$logo.title}">
26 <xsl:when test="$logo.image.uri=''">
27 <xsl:value-of select="$logo.title"/>
30 <img src="{$logo.image.uri}" alt="{$logo.title}" border="0"/>
37 <xsl:template name="overlayDiv.attributes">
38 <xsl:if test="$overlay != 0">
39 <xsl:attribute name="style">
40 <xsl:text>position: absolute; visibility: visible;</xsl:text>
45 <!-- ====================================================================== -->
47 <xsl:template name="top-nav">
48 <xsl:param name="home"/>
49 <xsl:param name="up"/>
50 <xsl:param name="next"/>
51 <xsl:param name="prev"/>
52 <xsl:param name="tocfile" select="$toc.html"/>
55 <table class="navbar" cellspacing="0" cellpadding="0" border="0" width="97%"
56 summary="Navigation buttons">
58 <td align="left" valign="top">
59 <xsl:call-template name="logo"/>
61 <td valign="top" nowrap="nowrap" width="150">
64 <xsl:when test="$prev">
65 <a rel="previous" accesskey="P">
66 <xsl:attribute name="href">
67 <xsl:apply-templates select="$prev" mode="filename"/>
69 <img border="0" width="32" height="32"
70 alt=" Previous" title="{$prev/title}">
71 <xsl:attribute name="src">
72 <xsl:call-template name="prev.image"/>
78 <img border="0" width="32" height="32" alt=" Previous" title="">
79 <xsl:attribute name="src">
80 <xsl:call-template name="no.prev.image"/>
87 <xsl:when test="$tocfile != ''">
88 <a rel="contents" href="{$tocfile}" accesskey="C">
89 <img border="0" width="32" height="32"
90 alt=" Contents" title="Table of Contents">
91 <xsl:attribute name="src">
92 <xsl:call-template name="toc.image"/>
98 <img border="0" width="32" height="32"
99 alt=" Contents" title="Table of Contents">
100 <xsl:attribute name="src">
101 <xsl:call-template name="no.toc.image"/>
108 <xsl:when test="$next">
109 <a rel="next" accesskey="N">
110 <xsl:attribute name="href">
111 <xsl:apply-templates select="$next" mode="filename"/>
113 <img border="0" width="32" height="32"
114 alt=" Next" title="{$next/title}">
115 <xsl:attribute name="src">
116 <xsl:call-template name="next.image"/>
122 <img border="0" width="32" height="32" alt=" Next" title="">
123 <xsl:attribute name="src">
124 <xsl:call-template name="no.next.image"/>
134 <xsl:apply-templates select="title"/>
135 <hr class="top-nav-sep"/>
139 <xsl:template name="bottom-nav">
140 <xsl:param name="home"/>
141 <xsl:param name="up"/>
142 <xsl:param name="next"/>
143 <xsl:param name="prev"/>
144 <xsl:param name="tocfile" select="$toc.html"/>
146 <div class="navfoot">
147 <hr class="bottom-nav-sep"/>
148 <table class="footer" cellspacing="0" cellpadding="0" border="0" width="97%"
151 <td align="left" valign="top">
152 <xsl:variable name="author" select="(/slides/slidesinfo//author
153 |/slides/slidesinfo//editor)"/>
154 <xsl:for-each select="$author">
156 <xsl:when test=".//email">
157 <a href="mailto:{.//email[1]}">
158 <xsl:call-template name="person.name"/>
162 <xsl:call-template name="person.name"/>
166 <xsl:if test="position() < last()">, </xsl:if>
169 <td align="right" valign="top">
171 <xsl:value-of select="count(preceding::foil)
172 + count(preceding::foilgroup)
173 + count(ancestor::foilgroup)
175 <xsl:text> of </xsl:text>
176 <xsl:value-of select="count(//foil|//foilgroup)"/>
180 <td valign="top" nowrap="nowrap" width="150">
183 <xsl:when test="$prev">
184 <a rel="previous" accesskey="P">
185 <xsl:attribute name="href">
186 <xsl:apply-templates select="$prev" mode="filename"/>
188 <img border="0" width="32" height="32"
189 alt=" Previous" title="{$prev/title}">
190 <xsl:attribute name="src">
191 <xsl:call-template name="prev.image"/>
197 <img border="0" width="32" height="32" alt=" Prev" title="">
198 <xsl:attribute name="src">
199 <xsl:call-template name="no.prev.image"/>
206 <xsl:when test="$next">
207 <a rel="next" accesskey="N">
208 <xsl:attribute name="href">
209 <xsl:apply-templates select="$next" mode="filename"/>
211 <img border="0" width="32" height="32"
212 alt=" Next" title="{$next/title}">
213 <xsl:attribute name="src">
214 <xsl:call-template name="next.image"/>
220 <img border="0" width="32" height="32" alt=" Next" title="">
221 <xsl:attribute name="src">
222 <xsl:call-template name="no.next.image"/>
234 <!-- ====================================================================== -->
236 <xsl:template name="titlepage-top-nav">
237 <xsl:param name="home"/>
238 <xsl:param name="up"/>
239 <xsl:param name="next"/>
240 <xsl:param name="prev"/>
241 <xsl:param name="tocfile" select="$toc.html"/>
243 <div class="navhead">
244 <table class="navbar" cellspacing="0" cellpadding="0" border="0" width="97%"
245 summary="Navigation buttons">
247 <td align="left" valign="top">
248 <xsl:call-template name="logo"/>
250 <td valign="top" nowrap="nowrap" width="150">
253 <xsl:when test="$prev">
254 <a rel="previous" accesskey="P">
255 <xsl:attribute name="href">
256 <xsl:apply-templates select="$prev" mode="filename"/>
258 <img border="0" width="32" height="32"
259 alt=" Previous" title="{$prev/title}">
260 <xsl:attribute name="src">
261 <xsl:call-template name="prev.image"/>
267 <img border="0" width="32" height="32" alt=" Previous" title="">
268 <xsl:attribute name="src">
269 <xsl:call-template name="no.prev.image"/>
276 <xsl:when test="$tocfile != ''">
277 <a rel="contents" href="{$tocfile}" accesskey="C">
278 <img border="0" width="32" height="32"
279 alt=" Contents" title="Table of Contents">
280 <xsl:attribute name="src">
281 <xsl:call-template name="toc.image"/>
287 <img border="0" width="32" height="32"
288 alt=" Contents" title="Table of Contents">
289 <xsl:attribute name="src">
290 <xsl:call-template name="no.toc.image"/>
297 <xsl:when test="$next">
298 <a rel="next" accesskey="N">
299 <xsl:attribute name="href">
300 <xsl:apply-templates select="$next" mode="filename"/>
302 <img border="0" width="32" height="32"
303 alt=" Next" title="{$next/title}">
304 <xsl:attribute name="src">
305 <xsl:call-template name="next.image"/>
311 <img border="0" width="32" height="32" alt=" Next" title="">
312 <xsl:attribute name="src">
313 <xsl:call-template name="no.next.image"/>
323 <hr class="top-nav-sep"/>
327 <!-- ====================================================================== -->
329 <xsl:template name="foil-body">
330 <xsl:param name="home"/>
331 <xsl:param name="up"/>
332 <xsl:param name="next"/>
333 <xsl:param name="prev"/>
334 <xsl:param name="tocfile" select="$toc.html"/>
336 <!-- skip the title -->
337 <xsl:apply-templates select="*[name(.) != 'title']"/>
340 <xsl:template name="foilgroup-body">
341 <xsl:param name="home"/>
342 <xsl:param name="up"/>
343 <xsl:param name="next"/>
344 <xsl:param name="prev"/>
345 <xsl:param name="tocfile" select="$toc.html"/>
347 <!-- skip the title -->
348 <xsl:apply-templates select="*[name(.) != 'title'
349 and name(.) != 'foil'
350 and name(.) != 'foilgroup']"/>
352 <xsl:if test="$foilgroup.toc != 0">
354 <xsl:apply-templates select="foil" mode="toc"/>
359 <!-- ====================================================================== -->
361 <xsl:template match="@*" mode="copy">
362 <xsl:attribute name="{local-name(.)}">
363 <xsl:value-of select="."/>
367 <xsl:template match="html:*" xmlns:html='http://www.w3.org/1999/xhtml'>
368 <xsl:element name="{local-name(.)}" namespace="">
369 <xsl:apply-templates select="@*" mode="copy"/>
370 <xsl:apply-templates/>
374 <!-- ====================================================================== -->