]> git.stg.codes - stg.git/blob - doc/xslt/slides/xhtml/default.xsl
Store parser answer in configproto.
[stg.git] / doc / xslt / slides / xhtml / default.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:output method="xml" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
9
10 <xsl:param name="css.stylesheet" select="'slides-default.css'"/>
11
12 <xsl:template name="top-nav">
13   <xsl:param name="home"/>
14   <xsl:param name="up"/>
15   <xsl:param name="next"/>
16   <xsl:param name="prev"/>
17   <xsl:param name="tocfile" select="$toc.html"/>
18
19   <div class="navhead">
20     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Navigation">
21       <tr>
22         <xsl:call-template name="generate.toc.hide.show"/>
23         <td align="left" width="10%">
24           <xsl:choose>
25             <xsl:when test="$prev">
26               <a>
27                 <xsl:attribute name="href">
28                   <xsl:apply-templates select="$prev" mode="filename"/>
29                 </xsl:attribute>
30
31                 <img alt="Prev" border="0">
32                   <xsl:attribute name="src">
33                     <xsl:call-template name="prev.image"/>
34                   </xsl:attribute>
35                 </img>
36               </a>
37             </xsl:when>
38             <xsl:otherwise>&#160;</xsl:otherwise>
39           </xsl:choose>
40         </td>
41         <td align="center" width="80%">
42           <xsl:variable name="prestitle">
43             <xsl:value-of select="(/slides/slidesinfo/title                                   |/slides/title)[1]"/>
44           </xsl:variable>
45
46           <span class="navheader">
47             <xsl:value-of select="$prestitle"/>
48           </span>
49         </td>
50         <td align="right" width="10%">
51           <xsl:choose>
52             <xsl:when test="$next">
53               <a>
54                 <xsl:attribute name="href">
55                   <xsl:apply-templates select="$next" mode="filename"/>
56                 </xsl:attribute>
57
58                 <img alt="Next" border="0">
59                   <xsl:attribute name="src">
60                     <xsl:call-template name="next.image"/>
61                   </xsl:attribute>
62                 </img>
63               </a>
64             </xsl:when>
65             <xsl:otherwise>&#160;</xsl:otherwise>
66           </xsl:choose>
67         </td>
68       </tr>
69     </table>
70     <hr class="top-nav-sep"/>
71   </div>
72 </xsl:template>
73
74 <xsl:template name="bottom-nav">
75   <xsl:param name="home"/>
76   <xsl:param name="up"/>
77   <xsl:param name="next"/>
78   <xsl:param name="prev"/>
79   <xsl:param name="tocfile" select="$toc.html"/>
80
81   <div class="navfoot">
82     <hr class="bottom-nav-sep"/>
83     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Navigation">
84       <tr>
85         <td align="left" width="80%" valign="top">
86           <span class="navfooter">
87             <xsl:apply-templates select="/slides/slidesinfo/copyright" mode="slide.footer.mode"/>
88           </span>
89         </td>
90         <td align="right" width="20%" valign="top">
91           <span class="index">
92             <xsl:value-of select="count(preceding::foil)                                   + count(preceding::foilgroup)                                   + count(ancestor::foilgroup)                                   + 1"/>
93           </span>
94           <xsl:text>&#160;</xsl:text>
95         </td>
96       </tr>
97     </table>
98   </div>
99 </xsl:template>
100
101 <!-- ====================================================================== -->
102
103 <xsl:template name="titlepage-top-nav">
104   <xsl:param name="home"/>
105   <xsl:param name="up"/>
106   <xsl:param name="next"/>
107   <xsl:param name="prev"/>
108   <xsl:param name="tocfile" select="$toc.html"/>
109
110   <div class="navhead">
111     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Navigation">
112       <tr>
113         <td align="left" width="10%">
114           <span class="toclink">
115             <a href="{$toc.html}">
116               <xsl:call-template name="gentext">
117                 <xsl:with-param name="key">TableofContents</xsl:with-param>
118               </xsl:call-template>
119             </a>
120           </span>
121         </td>
122         <td align="center" width="80%">
123           <xsl:text>&#160;</xsl:text>
124         </td>
125         <td align="right" width="10%">
126           <xsl:text>&#160;</xsl:text>
127         </td>
128       </tr>
129     </table>
130   </div>
131 </xsl:template>
132
133 <xsl:template name="titlepage-bottom-nav">
134   <xsl:param name="home"/>
135   <xsl:param name="up"/>
136   <xsl:param name="next"/>
137   <xsl:param name="prev"/>
138   <xsl:param name="tocfile" select="$toc.html"/>
139
140   <div class="navfoot">
141     <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Navigation">
142       <tr>
143         <td align="left" width="80%" valign="top">
144           <span class="navfooter">
145             <xsl:apply-templates select="/slides/slidesinfo/copyright" mode="slide.footer.mode"/>
146           </span>
147         </td>
148         <td align="right" width="20%" valign="top">
149           <a>
150             <xsl:attribute name="href">
151               <xsl:apply-templates select="(following::foilgroup|following::foil)[1]" mode="filename"/>
152             </xsl:attribute>
153             <img alt="Next" border="0">
154               <xsl:attribute name="src">
155                 <xsl:call-template name="next.image"/>
156               </xsl:attribute>
157             </img>
158           </a>
159         </td>
160       </tr>
161     </table>
162   </div>
163 </xsl:template>
164
165 <xsl:template name="toc-top-nav">
166   <xsl:param name="home"/>
167   <xsl:param name="up"/>
168   <xsl:param name="next"/>
169   <xsl:param name="prev"/>
170   <xsl:param name="tocfile" select="$toc.html"/>
171
172   <div class="navhead">
173     <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Navigation">
174       <tr>
175         <td align="left">
176           <xsl:text>&#160;</xsl:text>
177         </td>
178       </tr>
179     </table>
180   </div>
181 </xsl:template>
182
183 <xsl:template name="toc-bottom-nav">
184   <div class="navfoot">
185     <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Navigation">
186       <tr>
187         <td align="left" width="80%" valign="top">
188           <span class="navfooter">
189             <xsl:apply-templates select="/slides/slidesinfo/copyright" mode="slide.footer.mode"/>
190           </span>
191         </td>
192         <td align="right" width="20%" valign="top">
193           <a href="{$titlefoil.html}">
194             <img alt="Next" border="0">
195               <xsl:attribute name="src">
196                 <xsl:call-template name="next.image"/>
197               </xsl:attribute>
198             </img>
199           </a>
200         </td>
201       </tr>
202     </table>
203   </div>
204 </xsl:template>
205
206 <!-- ====================================================================== -->
207
208 <xsl:template name="generate.toc.hide.show">
209   <xsl:if test="$toc.hide.show != 0">
210     <td>
211       <img hspace="4" alt="Hide/Show TOC">
212         <xsl:attribute name="src">
213           <xsl:call-template name="hidetoc.image"/>
214         </xsl:attribute>
215         <xsl:attribute name="onClick">
216           <xsl:text>toggletoc(this,</xsl:text>
217           <xsl:value-of select="$toc.width"/>
218           <xsl:text>,'</xsl:text>
219           <xsl:call-template name="hidetoc.image"/>
220           <xsl:text>','</xsl:text>
221           <xsl:call-template name="showtoc.image"/>
222           <xsl:text>');</xsl:text>
223         </xsl:attribute>
224       </img>
225     </td>
226   </xsl:if>
227 </xsl:template>
228
229 <!-- ====================================================================== -->
230
231 <xsl:template match="@*" mode="copy">
232   <xsl:attribute name="{local-name(.)}">
233     <xsl:value-of select="."/>
234   </xsl:attribute>
235 </xsl:template>
236
237 <xsl:template xmlns:html="http://www.w3.org/1999/xhtml" match="html:*">
238   <xsl:element name="{local-name(.)}" namespace="http://www.w3.org/1999/xhtml">
239     <xsl:apply-templates select="@*" mode="copy"/>
240     <xsl:apply-templates/>
241   </xsl:element>
242 </xsl:template>
243
244 <!-- ====================================================================== -->
245
246 </xsl:stylesheet>