2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <xsl:import href="slides-common.xsl"/>
7 <xsl:output method="html"/>
9 <xsl:param name="css.stylesheet" select="'slides-default.css'"/>
11 <xsl:template name="top-nav">
12 <xsl:param name="home"/>
13 <xsl:param name="up"/>
14 <xsl:param name="next"/>
15 <xsl:param name="prev"/>
16 <xsl:param name="tocfile" select="$toc.html"/>
19 <table width="100%" border="0" cellpadding="0" cellspacing="0"
22 <xsl:call-template name="generate.toc.hide.show"/>
23 <td align="left" width="10%">
25 <xsl:when test="$prev">
27 <xsl:attribute name="href">
28 <xsl:apply-templates select="$prev" mode="filename"/>
31 <img alt="Prev" border="0">
32 <xsl:attribute name="src">
33 <xsl:call-template name="prev.image"/>
38 <xsl:otherwise> </xsl:otherwise>
41 <td align="center" width="80%">
42 <xsl:variable name="prestitle">
43 <xsl:value-of select="(/slides/slidesinfo/title
47 <span class="navheader">
48 <xsl:value-of select="$prestitle"/>
51 <td align="right" width="10%">
53 <xsl:when test="$next">
55 <xsl:attribute name="href">
56 <xsl:apply-templates select="$next" mode="filename"/>
59 <img alt="Next" border="0">
60 <xsl:attribute name="src">
61 <xsl:call-template name="next.image"/>
66 <xsl:otherwise> </xsl:otherwise>
71 <hr class="top-nav-sep"/>
75 <xsl:template name="bottom-nav">
76 <xsl:param name="home"/>
77 <xsl:param name="up"/>
78 <xsl:param name="next"/>
79 <xsl:param name="prev"/>
80 <xsl:param name="tocfile" select="$toc.html"/>
83 <hr class="bottom-nav-sep"/>
84 <table width="100%" border="0" cellpadding="0" cellspacing="0"
87 <td align="left" width="80%" valign="top">
88 <span class="navfooter">
89 <xsl:apply-templates select="/slides/slidesinfo/copyright"
90 mode="slide.footer.mode"/>
93 <td align="right" width="20%" valign="top">
95 <xsl:value-of select="count(preceding::foil)
96 + count(preceding::foilgroup)
97 + count(ancestor::foilgroup)
100 <xsl:text> </xsl:text>
107 <!-- ====================================================================== -->
109 <xsl:template name="titlepage-top-nav">
110 <xsl:param name="home"/>
111 <xsl:param name="up"/>
112 <xsl:param name="next"/>
113 <xsl:param name="prev"/>
114 <xsl:param name="tocfile" select="$toc.html"/>
116 <div class="navhead">
117 <table width="100%" border="0" cellpadding="0" cellspacing="0"
118 summary="Navigation">
120 <td align="left" width="10%">
121 <span class="toclink">
122 <a href="{$toc.html}">
123 <xsl:call-template name="gentext">
124 <xsl:with-param name="key">TableofContents</xsl:with-param>
129 <td align="center" width="80%">
130 <xsl:text> </xsl:text>
132 <td align="right" width="10%">
133 <xsl:text> </xsl:text>
140 <xsl:template name="titlepage-bottom-nav">
141 <xsl:param name="home"/>
142 <xsl:param name="up"/>
143 <xsl:param name="next"/>
144 <xsl:param name="prev"/>
145 <xsl:param name="tocfile" select="$toc.html"/>
147 <div class="navfoot">
148 <table width="100%" border="0"
149 cellspacing="0" cellpadding="0"
150 summary="Navigation">
152 <td align="left" width="80%" valign="top">
153 <span class="navfooter">
154 <xsl:apply-templates select="/slides/slidesinfo/copyright"
155 mode="slide.footer.mode"/>
158 <td align="right" width="20%" valign="top">
160 <xsl:attribute name="href">
161 <xsl:apply-templates select="(following::foilgroup|following::foil)[1]"
164 <img alt="Next" border="0">
165 <xsl:attribute name="src">
166 <xsl:call-template name="next.image"/>
176 <xsl:template name="toc-top-nav">
177 <xsl:param name="home"/>
178 <xsl:param name="up"/>
179 <xsl:param name="next"/>
180 <xsl:param name="prev"/>
181 <xsl:param name="tocfile" select="$toc.html"/>
183 <div class="navhead">
184 <table width="100%" border="0" cellpadding="0" cellspacing="0"
185 summary="Navigation">
188 <xsl:text> </xsl:text>
195 <xsl:template name="toc-bottom-nav">
196 <div class="navfoot">
197 <table width="100%" border="0"
198 cellspacing="0" cellpadding="0"
199 summary="Navigation">
201 <td align="left" width="80%" valign="top">
202 <span class="navfooter">
203 <xsl:apply-templates select="/slides/slidesinfo/copyright"
204 mode="slide.footer.mode"/>
207 <td align="right" width="20%" valign="top">
208 <a href="{$titlefoil.html}">
209 <img alt="Next" border="0">
210 <xsl:attribute name="src">
211 <xsl:call-template name="next.image"/>
221 <!-- ====================================================================== -->
223 <xsl:template name="generate.toc.hide.show">
224 <xsl:if test="$toc.hide.show != 0">
226 <img hspace="4" alt="Hide/Show TOC">
227 <xsl:attribute name="src">
228 <xsl:call-template name="hidetoc.image"/>
230 <xsl:attribute name="onClick">
231 <xsl:text>toggletoc(this,</xsl:text>
232 <xsl:value-of select="$toc.width"/>
233 <xsl:text>,'</xsl:text>
234 <xsl:call-template name="hidetoc.image"/>
235 <xsl:text>','</xsl:text>
236 <xsl:call-template name="showtoc.image"/>
237 <xsl:text>');</xsl:text>
244 <!-- ====================================================================== -->
246 <xsl:template match="@*" mode="copy">
247 <xsl:attribute name="{local-name(.)}">
248 <xsl:value-of select="."/>
252 <xsl:template match="html:*" xmlns:html='http://www.w3.org/1999/xhtml'>
253 <xsl:element name="{local-name(.)}" namespace="">
254 <xsl:apply-templates select="@*" mode="copy"/>
255 <xsl:apply-templates/>
259 <!-- ====================================================================== -->