]> git.stg.codes - stg.git/blob - doc/xslt/slides/xhtml/plain.xsl
Adjusted XML RPC documentation.
[stg.git] / doc / xslt / slides / xhtml / plain.xsl
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">
5
6 <xsl:import href="slides-common.xsl"/>
7
8 <xsl:param name="prev.image" select="'active/nav-prev.png'"/>
9 <xsl:param name="next.image" select="'active/nav-next.png'"/>
10 <xsl:param name="up.image" select="'active/nav-up.png'"/>
11 <xsl:param name="toc.image" select="'active/nav-toc.png'"/>
12 <xsl:param name="home.image" select="'active/nav-home.png'"/>
13
14 <xsl:param name="no.prev.image" select="'inactive/nav-prev.png'"/>
15 <xsl:param name="no.next.image" select="'inactive/nav-next.png'"/>
16 <xsl:param name="no.up.image" select="'inactive/nav-up.png'"/>
17 <xsl:param name="no.toc.image" select="'inactive/nav-toc.png'"/>
18 <xsl:param name="no.home.image" select="'inactive/nav-home.png'"/>
19
20 <xsl:param name="css.stylesheet" select="'slides-plain.css'"/>
21
22 <!-- ====================================================================== -->
23
24 <xsl:template name="top-nav">
25   <xsl:param name="prev"/>
26   <xsl:param name="next"/>
27   <xsl:param name="up"/>
28   <xsl:param name="home"/>
29   <xsl:param name="toc" select="$toc.html"/>
30
31   <div class="navhead">
32     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Navigation">
33       <tr>
34         <td align="left" width="45%">
35           <span class="slidestitle">
36             <xsl:value-of select="(/slides/slidesinfo/title)[1]"/>
37           </span>
38           <xsl:text>&#160;</xsl:text>
39         </td>
40         <td width="10%" align="center" valign="bottom">
41           <xsl:call-template name="foil.number"/>
42         </td>
43         <td align="right" width="45%">
44           <xsl:choose>
45             <xsl:when test="$home">
46               <a>
47                 <xsl:attribute name="href">
48                   <xsl:apply-templates select="$home" mode="filename"/>
49                 </xsl:attribute>
50                 <xsl:attribute name="title">
51                   <xsl:value-of select="$home/slidesinfo/title"/>
52                 </xsl:attribute>
53                 <img alt="Home" border="0">
54                   <xsl:attribute name="src">
55                     <xsl:call-template name="home.image"/>
56                   </xsl:attribute>
57                 </img>
58               </a>
59             </xsl:when>
60             <xsl:otherwise>
61               <img alt="Home" border="0">
62                 <xsl:attribute name="src">
63                   <xsl:call-template name="no.home.image"/>
64                 </xsl:attribute>
65               </img>
66             </xsl:otherwise>
67           </xsl:choose>
68           <xsl:text>&#160;</xsl:text>
69
70           <xsl:choose>
71             <xsl:when test="$toc != ''">
72               <a title="ToC" href="{$toc}">
73                 <img alt="ToC" border="0">
74                   <xsl:attribute name="src">
75                     <xsl:call-template name="toc.image"/>
76                   </xsl:attribute>
77                 </img>
78               </a>
79             </xsl:when>
80             <xsl:otherwise>
81               <img alt="ToC" border="0">
82                 <xsl:attribute name="src">
83                   <xsl:call-template name="no.toc.image"/>
84                 </xsl:attribute>
85               </img>
86             </xsl:otherwise>
87           </xsl:choose>
88           <xsl:text>&#160;</xsl:text>
89
90           <xsl:choose>
91             <xsl:when test="$prev">
92               <a>
93                 <xsl:attribute name="href">
94                   <xsl:apply-templates select="$prev" mode="filename"/>
95                 </xsl:attribute>
96                 <xsl:attribute name="title">
97                   <xsl:value-of select="$prev/title"/>
98                 </xsl:attribute>
99                 <img alt="Prev" border="0">
100                   <xsl:attribute name="src">
101                     <xsl:call-template name="prev.image"/>
102                   </xsl:attribute>
103                 </img>
104               </a>
105             </xsl:when>
106             <xsl:otherwise>
107               <img alt="Prev" border="0">
108                 <xsl:attribute name="src">
109                   <xsl:call-template name="no.prev.image"/>
110                 </xsl:attribute>
111               </img>
112             </xsl:otherwise>
113           </xsl:choose>
114           <xsl:text>&#160;</xsl:text>
115
116           <xsl:choose>
117             <xsl:when test="$up">
118               <a>
119                 <xsl:attribute name="href">
120                   <xsl:apply-templates select="$up" mode="filename"/>
121                 </xsl:attribute>
122                 <xsl:attribute name="title">
123                   <xsl:value-of select="$up/title"/>
124                 </xsl:attribute>
125                 <img alt="Up" border="0">
126                   <xsl:attribute name="src">
127                     <xsl:call-template name="up.image"/>
128                   </xsl:attribute>
129                 </img>
130               </a>
131             </xsl:when>
132             <xsl:otherwise>
133               <img alt="Up" border="0">
134                 <xsl:attribute name="src">
135                   <xsl:call-template name="no.up.image"/>
136                 </xsl:attribute>
137               </img>
138             </xsl:otherwise>
139           </xsl:choose>
140           <xsl:text>&#160;</xsl:text>
141
142           <xsl:choose>
143             <xsl:when test="$next">
144               <a>
145                 <xsl:attribute name="href">
146                   <xsl:apply-templates select="$next" mode="filename"/>
147                 </xsl:attribute>
148                 <xsl:attribute name="title">
149                   <xsl:value-of select="$next/title"/>
150                 </xsl:attribute>
151                 <img alt="Next" border="0">
152                   <xsl:attribute name="src">
153                     <xsl:call-template name="next.image"/>
154                   </xsl:attribute>
155                 </img>
156               </a>
157             </xsl:when>
158             <xsl:otherwise>
159               <img alt="Next" border="0">
160                 <xsl:attribute name="src">
161                   <xsl:call-template name="no.next.image"/>
162                 </xsl:attribute>
163               </img>
164             </xsl:otherwise>
165           </xsl:choose>
166           <xsl:text>&#160;</xsl:text>
167         </td>
168       </tr>
169     </table>
170     <hr class="top-nav-sep"/>
171   </div>
172 </xsl:template>
173
174 <!-- ============================================================ -->
175
176 <xsl:template name="titlepage-top-nav">
177   <xsl:param name="home"/>
178   <xsl:param name="up"/>
179   <xsl:param name="prev"/>
180   <xsl:param name="next"/>
181   <xsl:param name="toc" select="$toc.html"/>
182
183   <div class="navhead">
184     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Navigation">
185       <tr>
186         <td align="left" width="50%">
187           <xsl:text>&#160;</xsl:text>
188         </td>
189         <td align="right" width="50%">
190           <xsl:choose>
191             <xsl:when test="$home">
192               <a>
193                 <xsl:attribute name="href">
194                   <xsl:apply-templates select="$home" mode="filename"/>
195                 </xsl:attribute>
196                 <xsl:attribute name="title">
197                   <xsl:value-of select="$home/slidesinfo/title"/>
198                 </xsl:attribute>
199                 <img alt="Home" border="0">
200                   <xsl:attribute name="src">
201                     <xsl:call-template name="home.image"/>
202                   </xsl:attribute>
203                 </img>
204               </a>
205             </xsl:when>
206             <xsl:otherwise>
207               <img alt="Home" border="0">
208                 <xsl:attribute name="src">
209                   <xsl:call-template name="no.home.image"/>
210                 </xsl:attribute>
211               </img>
212             </xsl:otherwise>
213           </xsl:choose>
214           <xsl:text>&#160;</xsl:text>
215
216           <xsl:choose>
217             <xsl:when test="$toc.html != ''">
218               <a title="ToC" href="{$toc.html}">
219                 <img alt="ToC" border="0">
220                   <xsl:attribute name="src">
221                     <xsl:call-template name="toc.image"/>
222                   </xsl:attribute>
223                 </img>
224               </a>
225             </xsl:when>
226             <xsl:otherwise>
227               <img alt="ToC" border="0">
228                 <xsl:attribute name="src">
229                   <xsl:call-template name="no.toc.image"/>
230                 </xsl:attribute>
231               </img>
232             </xsl:otherwise>
233           </xsl:choose>
234           <xsl:text>&#160;</xsl:text>
235
236           <xsl:choose>
237             <xsl:when test="$prev">
238               <a>
239                 <xsl:attribute name="href">
240                   <xsl:apply-templates select="$prev" mode="filename"/>
241                 </xsl:attribute>
242                 <xsl:attribute name="title">
243                   <xsl:value-of select="$prev/title"/>
244                 </xsl:attribute>
245                 <img alt="Prev" border="0">
246                   <xsl:attribute name="src">
247                     <xsl:call-template name="prev.image"/>
248                   </xsl:attribute>
249                 </img>
250               </a>
251             </xsl:when>
252             <xsl:otherwise>
253               <img alt="Prev" border="0">
254                 <xsl:attribute name="src">
255                   <xsl:call-template name="no.prev.image"/>
256                 </xsl:attribute>
257               </img>
258             </xsl:otherwise>
259           </xsl:choose>
260           <xsl:text>&#160;</xsl:text>
261
262           <xsl:choose>
263             <xsl:when test="$up">
264               <a>
265                 <xsl:attribute name="href">
266                   <xsl:apply-templates select="$up" mode="filename"/>
267                 </xsl:attribute>
268                 <xsl:attribute name="title">
269                   <xsl:value-of select="$up/title"/>
270                 </xsl:attribute>
271                 <img alt="Up" border="0">
272                   <xsl:attribute name="src">
273                     <xsl:call-template name="up.image"/>
274                   </xsl:attribute>
275                 </img>
276               </a>
277             </xsl:when>
278             <xsl:otherwise>
279               <img alt="Up" border="0">
280                 <xsl:attribute name="src">
281                   <xsl:call-template name="no.up.image"/>
282                 </xsl:attribute>
283               </img>
284             </xsl:otherwise>
285           </xsl:choose>
286           <xsl:text>&#160;</xsl:text>
287
288           <xsl:choose>
289             <xsl:when test="$next">
290               <a>
291                 <xsl:attribute name="href">
292                   <xsl:apply-templates select="$next" mode="filename"/>
293                 </xsl:attribute>
294                 <xsl:attribute name="title">
295                   <xsl:value-of select="$next/title"/>
296                 </xsl:attribute>
297                 <img alt="Next" border="0">
298                   <xsl:attribute name="src">
299                     <xsl:call-template name="next.image"/>
300                   </xsl:attribute>
301                 </img>
302               </a>
303             </xsl:when>
304             <xsl:otherwise>
305               <img alt="Next" border="0">
306                 <xsl:attribute name="src">
307                   <xsl:call-template name="no.next.image"/>
308                 </xsl:attribute>
309               </img>
310             </xsl:otherwise>
311           </xsl:choose>
312           <xsl:text>&#160;</xsl:text>
313         </td>
314       </tr>
315     </table>
316     <hr class="top-nav-sep"/>
317   </div>
318 </xsl:template>
319
320 <!-- ============================================================ -->
321
322 <xsl:template name="toc-top-nav">
323   <xsl:param name="home" select="/slides"/>
324   <xsl:param name="up"/>
325   <xsl:param name="prev"/>
326   <xsl:param name="next" select="(foil|foilgroup)[1]"/>
327   <xsl:param name="toc"/>
328
329   <div class="navhead">
330     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Navigation">
331       <tr>
332         <td align="left" width="50%">
333           <xsl:text>&#160;</xsl:text>
334         </td>
335         <td align="right" width="50%">
336           <xsl:choose>
337             <xsl:when test="$home">
338               <a>
339                 <xsl:attribute name="href">
340                   <xsl:apply-templates select="$home" mode="filename"/>
341                 </xsl:attribute>
342                 <xsl:attribute name="title">
343                   <xsl:value-of select="$home/slidesinfo/title"/>
344                 </xsl:attribute>
345                 <img alt="Home" border="0">
346                   <xsl:attribute name="src">
347                     <xsl:call-template name="home.image"/>
348                   </xsl:attribute>
349                 </img>
350               </a>
351             </xsl:when>
352             <xsl:otherwise>
353               <img alt="Home" border="0">
354                 <xsl:attribute name="src">
355                   <xsl:call-template name="no.home.image"/>
356                 </xsl:attribute>
357               </img>
358             </xsl:otherwise>
359           </xsl:choose>
360           <xsl:text>&#160;</xsl:text>
361
362           <xsl:choose>
363             <xsl:when test="$toc != ''">
364               <a title="ToC" href="{$toc}">
365                 <img alt="ToC" border="0">
366                   <xsl:attribute name="src">
367                     <xsl:call-template name="toc.image"/>
368                   </xsl:attribute>
369                 </img>
370               </a>
371             </xsl:when>
372             <xsl:otherwise>
373               <img alt="ToC" border="0">
374                 <xsl:attribute name="src">
375                   <xsl:call-template name="no.toc.image"/>
376                 </xsl:attribute>
377               </img>
378             </xsl:otherwise>
379           </xsl:choose>
380           <xsl:text>&#160;</xsl:text>
381
382           <xsl:choose>
383             <xsl:when test="$prev">
384               <a>
385                 <xsl:attribute name="href">
386                   <xsl:apply-templates select="$prev" mode="filename"/>
387                 </xsl:attribute>
388                 <xsl:attribute name="title">
389                   <xsl:value-of select="$prev/title"/>
390                 </xsl:attribute>
391                 <img alt="Prev" border="0">
392                   <xsl:attribute name="src">
393                     <xsl:call-template name="prev.image"/>
394                   </xsl:attribute>
395                 </img>
396               </a>
397             </xsl:when>
398             <xsl:otherwise>
399               <img alt="Prev" border="0">
400                 <xsl:attribute name="src">
401                   <xsl:call-template name="no.prev.image"/>
402                 </xsl:attribute>
403               </img>
404             </xsl:otherwise>
405           </xsl:choose>
406           <xsl:text>&#160;</xsl:text>
407
408           <xsl:choose>
409             <xsl:when test="$up">
410               <a>
411                 <xsl:attribute name="href">
412                   <xsl:apply-templates select="$up" mode="filename"/>
413                 </xsl:attribute>
414                 <xsl:attribute name="title">
415                   <xsl:value-of select="$up/title"/>
416                 </xsl:attribute>
417                 <img alt="Up" border="0">
418                   <xsl:attribute name="src">
419                     <xsl:call-template name="up.image"/>
420                   </xsl:attribute>
421                 </img>
422               </a>
423             </xsl:when>
424             <xsl:otherwise>
425               <img alt="Up" border="0">
426                 <xsl:attribute name="src">
427                   <xsl:call-template name="no.up.image"/>
428                 </xsl:attribute>
429               </img>
430             </xsl:otherwise>
431           </xsl:choose>
432           <xsl:text>&#160;</xsl:text>
433
434           <xsl:choose>
435             <xsl:when test="$next">
436               <a>
437                 <xsl:attribute name="href">
438                   <xsl:apply-templates select="$next" mode="filename"/>
439                 </xsl:attribute>
440                 <xsl:attribute name="title">
441                   <xsl:value-of select="$next/title"/>
442                 </xsl:attribute>
443                 <img alt="Next" border="0">
444                   <xsl:attribute name="src">
445                     <xsl:call-template name="next.image"/>
446                   </xsl:attribute>
447                 </img>
448               </a>
449             </xsl:when>
450             <xsl:otherwise>
451               <img alt="Next" border="0">
452                 <xsl:attribute name="src">
453                   <xsl:call-template name="no.next.image"/>
454                 </xsl:attribute>
455               </img>
456             </xsl:otherwise>
457           </xsl:choose>
458           <xsl:text>&#160;</xsl:text>
459         </td>
460       </tr>
461     </table>
462     <hr class="top-nav-sep"/>
463   </div>
464 </xsl:template>
465
466 <!-- ====================================================================== -->
467
468 <xsl:template name="bottom-nav"/>
469
470 </xsl:stylesheet>