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="logo.image.uri" select="''"/>
9 <xsl:param name="logo.uri" select="''"/>
10 <xsl:param name="logo.title" select="''"/>
12 <xsl:param name="next.image" select="'active/w3c-next.png'"/>
13 <xsl:param name="no.next.image" select="'inactive/w3c-next.png'"/>
15 <xsl:param name="prev.image" select="'active/w3c-prev.png'"/>
16 <xsl:param name="no.prev.image" select="'inactive/w3c-prev.png'"/>
18 <xsl:param name="toc.image" select="'active/w3c-toc.png'"/>
19 <xsl:param name="no.toc.image" select="'inactive/w3c-toc.png'"/>
21 <xsl:param name="css.stylesheet" select="'slides-w3c.css'"/>
23 <xsl:template name="logo">
24 <xsl:if test="$logo.uri != ''">
25 <a href="{$logo.uri}" title="{$logo.title}">
27 <xsl:when test="$logo.image.uri=''">
28 <xsl:value-of select="$logo.title"/>
31 <img src="{$logo.image.uri}" alt="{$logo.title}" border="0"/>
38 <xsl:template name="overlayDiv.attributes">
39 <xsl:if test="$overlay != 0">
40 <xsl:attribute name="style">
41 <xsl:text>position: absolute; visibility: visible;</xsl:text>
46 <!-- ====================================================================== -->
48 <xsl:template name="top-nav">
49 <xsl:param name="home"/>
50 <xsl:param name="up"/>
51 <xsl:param name="next"/>
52 <xsl:param name="prev"/>
53 <xsl:param name="tocfile" select="$toc.html"/>
56 <table class="navbar" cellspacing="0" cellpadding="0" border="0" width="97%" 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" alt=" Previous" title="{$prev/title}">
70 <xsl:attribute name="src">
71 <xsl:call-template name="prev.image"/>
77 <img border="0" width="32" height="32" alt=" Previous" title="">
78 <xsl:attribute name="src">
79 <xsl:call-template name="no.prev.image"/>
86 <xsl:when test="$tocfile != ''">
87 <a rel="contents" href="{$tocfile}" accesskey="C">
88 <img border="0" width="32" height="32" alt=" Contents" title="Table of Contents">
89 <xsl:attribute name="src">
90 <xsl:call-template name="toc.image"/>
96 <img border="0" width="32" height="32" alt=" Contents" title="Table of Contents">
97 <xsl:attribute name="src">
98 <xsl:call-template name="no.toc.image"/>
105 <xsl:when test="$next">
106 <a rel="next" accesskey="N">
107 <xsl:attribute name="href">
108 <xsl:apply-templates select="$next" mode="filename"/>
110 <img border="0" width="32" height="32" alt=" Next" title="{$next/title}">
111 <xsl:attribute name="src">
112 <xsl:call-template name="next.image"/>
118 <img border="0" width="32" height="32" alt=" Next" title="">
119 <xsl:attribute name="src">
120 <xsl:call-template name="no.next.image"/>
130 <xsl:apply-templates select="title"/>
131 <hr class="top-nav-sep"/>
135 <xsl:template name="bottom-nav">
136 <xsl:param name="home"/>
137 <xsl:param name="up"/>
138 <xsl:param name="next"/>
139 <xsl:param name="prev"/>
140 <xsl:param name="tocfile" select="$toc.html"/>
142 <div class="navfoot">
143 <hr class="bottom-nav-sep"/>
144 <table class="footer" cellspacing="0" cellpadding="0" border="0" width="97%" summary="footer">
146 <td align="left" valign="top">
147 <xsl:variable name="author" select="(/slides/slidesinfo//author |/slides/slidesinfo//editor)"/>
148 <xsl:for-each select="$author">
150 <xsl:when test=".//email">
151 <a href="mailto:{.//email[1]}">
152 <xsl:call-template name="person.name"/>
156 <xsl:call-template name="person.name"/>
160 <xsl:if test="position() < last()">, </xsl:if>
163 <td align="right" valign="top">
165 <xsl:value-of select="count(preceding::foil) + count(preceding::foilgroup) + count(ancestor::foilgroup) + 1"/>
166 <xsl:text> of </xsl:text>
167 <xsl:value-of select="count(//foil|//foilgroup)"/>
171 <td valign="top" nowrap="nowrap" width="150">
174 <xsl:when test="$prev">
175 <a rel="previous" accesskey="P">
176 <xsl:attribute name="href">
177 <xsl:apply-templates select="$prev" mode="filename"/>
179 <img border="0" width="32" height="32" alt=" Previous" title="{$prev/title}">
180 <xsl:attribute name="src">
181 <xsl:call-template name="prev.image"/>
187 <img border="0" width="32" height="32" alt=" Prev" title="">
188 <xsl:attribute name="src">
189 <xsl:call-template name="no.prev.image"/>
196 <xsl:when test="$next">
197 <a rel="next" accesskey="N">
198 <xsl:attribute name="href">
199 <xsl:apply-templates select="$next" mode="filename"/>
201 <img border="0" width="32" height="32" alt=" Next" title="{$next/title}">
202 <xsl:attribute name="src">
203 <xsl:call-template name="next.image"/>
209 <img border="0" width="32" height="32" alt=" Next" title="">
210 <xsl:attribute name="src">
211 <xsl:call-template name="no.next.image"/>
223 <!-- ====================================================================== -->
225 <xsl:template name="titlepage-top-nav">
226 <xsl:param name="home"/>
227 <xsl:param name="up"/>
228 <xsl:param name="next"/>
229 <xsl:param name="prev"/>
230 <xsl:param name="tocfile" select="$toc.html"/>
232 <div class="navhead">
233 <table class="navbar" cellspacing="0" cellpadding="0" border="0" width="97%" summary="Navigation buttons">
235 <td align="left" valign="top">
236 <xsl:call-template name="logo"/>
238 <td valign="top" nowrap="nowrap" width="150">
241 <xsl:when test="$prev">
242 <a rel="previous" accesskey="P">
243 <xsl:attribute name="href">
244 <xsl:apply-templates select="$prev" mode="filename"/>
246 <img border="0" width="32" height="32" alt=" Previous" title="{$prev/title}">
247 <xsl:attribute name="src">
248 <xsl:call-template name="prev.image"/>
254 <img border="0" width="32" height="32" alt=" Previous" title="">
255 <xsl:attribute name="src">
256 <xsl:call-template name="no.prev.image"/>
263 <xsl:when test="$tocfile != ''">
264 <a rel="contents" href="{$tocfile}" accesskey="C">
265 <img border="0" width="32" height="32" alt=" Contents" title="Table of Contents">
266 <xsl:attribute name="src">
267 <xsl:call-template name="toc.image"/>
273 <img border="0" width="32" height="32" alt=" Contents" title="Table of Contents">
274 <xsl:attribute name="src">
275 <xsl:call-template name="no.toc.image"/>
282 <xsl:when test="$next">
283 <a rel="next" accesskey="N">
284 <xsl:attribute name="href">
285 <xsl:apply-templates select="$next" mode="filename"/>
287 <img border="0" width="32" height="32" alt=" Next" title="{$next/title}">
288 <xsl:attribute name="src">
289 <xsl:call-template name="next.image"/>
295 <img border="0" width="32" height="32" alt=" Next" title="">
296 <xsl:attribute name="src">
297 <xsl:call-template name="no.next.image"/>
307 <hr class="top-nav-sep"/>
311 <!-- ====================================================================== -->
313 <xsl:template name="foil-body">
314 <xsl:param name="home"/>
315 <xsl:param name="up"/>
316 <xsl:param name="next"/>
317 <xsl:param name="prev"/>
318 <xsl:param name="tocfile" select="$toc.html"/>
320 <!-- skip the title -->
321 <xsl:apply-templates select="*[name(.) != 'title']"/>
324 <xsl:template name="foilgroup-body">
325 <xsl:param name="home"/>
326 <xsl:param name="up"/>
327 <xsl:param name="next"/>
328 <xsl:param name="prev"/>
329 <xsl:param name="tocfile" select="$toc.html"/>
331 <!-- skip the title -->
332 <xsl:apply-templates select="*[name(.) != 'title' and name(.) != 'foil' and name(.) != 'foilgroup']"/>
334 <xsl:if test="$foilgroup.toc != 0">
336 <xsl:apply-templates select="foil" mode="toc"/>
341 <!-- ====================================================================== -->
343 <xsl:template match="@*" mode="copy">
344 <xsl:attribute name="{local-name(.)}">
345 <xsl:value-of select="."/>
349 <xsl:template xmlns:html="http://www.w3.org/1999/xhtml" match="html:*">
350 <xsl:element name="{local-name(.)}" namespace="http://www.w3.org/1999/xhtml">
351 <xsl:apply-templates select="@*" mode="copy"/>
352 <xsl:apply-templates/>
356 <!-- ====================================================================== -->