2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4 <xsl:import href="file:///c:/docbook/docbook-xsl/htmlhelp/htmlhelp.xsl"/>
6 <xsl:param name="profile.role" select="'html;bold'"/>
8 <xsl:param name="paper.type" select="'A4'"/>
9 <xsl:param name="double.sided" select="1"/>
10 <xsl:param name="section.autolabel" select="1"/>
11 <xsl:param name="toc.section.depth" select="2"/>
12 <xsl:param name="section.label.includes.component.label" select="1"/>
13 <xsl:param name="draft.watermark.image" select="''"/>
14 <xsl:param name="draft.mode" select="'no'"/>
15 <xsl:param name="htmlhelp.use.hhk" select="1"/>
16 <xsl:param name="suppress.navigation" select="0"/>
18 <xsl:param name="tablecolumns.extension" select="'0'"></xsl:param>
20 <xsl:param name="callout.graphics">1</xsl:param>
21 <xsl:param name="callout.graphics.extension">.png</xsl:param>
22 <xsl:param name="callout.graphics.path" select="'img/callouts/'"></xsl:param>
24 <xsl:param name="admon.graphics" select="1"></xsl:param>
25 <xsl:param name="admon.graphics.path">img/admon/</xsl:param>
27 <xsl:param name="qanda.defaultlabel">number</xsl:param>
28 <xsl:param name="header.rule" select="0"/>
29 <xsl:param name="footer.rule" select="0"/>
31 <xsl:param name="formal.title.placement">
39 <xsl:template name="user.head.content">
40 <link rel="stylesheet" type="text/css" media="screen" href="style.css" />
41 <link rel="stylesheet" type="text/css" media="print" href="xoopsstyleprint.css" />
44 <xsl:template name="header.navigation">
45 <xsl:param name="prev" select="/foo"/>
46 <xsl:param name="next" select="/foo"/>
47 <xsl:param name="nav.context"/>
49 <xsl:variable name="home" select="/*[1]"/>
50 <xsl:variable name="up" select="parent::*"/>
52 <xsl:variable name="row1" select="$navig.showtitles != 0"/>
53 <xsl:variable name="row2" select="count($prev) > 0
56 and $navig.showtitles != 0)
57 or count($next) > 0"/>
59 <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
60 <div class="navheader">
61 <xsl:if test="$row1 or $row2">
62 <table width="100%" summary="Navigation header">
65 <th colspan="3" align="left">
66 <xsl:apply-templates select="." mode="object.title.markup"/>
74 <th width="60%" align="left">
76 <xsl:when test="count($up) > 0
78 and $navig.showtitles != 0">
79 <xsl:apply-templates select="$up" mode="object.title.markup"/>
81 <xsl:otherwise> </xsl:otherwise>
85 <td width="20%" align="right">
86 <font face="Arial" size="2">
89 <xsl:when test="count($up)>0">
90 <a accesskey="u" onmouseover="document.images.main_head.src='img/nav/button_main_h.gif'" onmouseout="document.images.main_head.src='img/nav/button_main.gif'">
91 <xsl:attribute name="href">
92 <xsl:call-template name="href.target">
93 <xsl:with-param name="object" select="$up"/>
97 <xsl:call-template name="navig.content">
98 <xsl:with-param name="direction" select="'up'"/>
101 <img name="main_head" src="img/nav/button_main.gif" border="0" alt="Back to Top" />
105 <xsl:otherwise> </xsl:otherwise>
109 <xsl:when test="count($prev)>0">
110 <a accesskey="p" onmouseover="document.images.prev_head.src='img/nav/button_prev_h.gif'" onmouseout="document.images.prev_head.src='img/nav/button_prev.gif'">
111 <xsl:attribute name="href">
112 <xsl:call-template name="href.target">
113 <xsl:with-param name="object" select="$prev"/>
117 <xsl:call-template name="navig.content">
118 <xsl:with-param name="direction" select="'prev'"/>
121 <img name="prev_head" src="img/nav/button_prev.gif" border="0" alt="Previous page" />
125 <img src="img/nav/button_prev_d.gif" border="0" />
130 <xsl:when test="count($next)>0">
131 <a accesskey="n" onmouseover="document.images.next.src='img/nav/button_next_h.gif'" onmouseout="document.images.next.src='img/nav/button_next.gif'">
132 <xsl:attribute name="href">
133 <xsl:call-template name="href.target">
134 <xsl:with-param name="object" select="$next"/>
138 <xsl:call-template name="navig.content">
139 <xsl:with-param name="direction" select="'next'"/>
142 <img name="next" src="img/nav/button_next.gif" border="0" alt="Next page" />
146 <img src="img/nav/button_next_d.gif" border="0" />
155 <xsl:if test="$header.rule != 0">
164 <xsl:template name="footer.navigation">
165 <xsl:param name="prev" select="/foo"/>
166 <xsl:param name="next" select="/foo"/>
167 <xsl:param name="nav.context"/>
169 <xsl:variable name="home" select="/*[1]"/>
170 <xsl:variable name="up" select="parent::*"/>
172 <xsl:variable name="row1" select="count($prev) > 0
174 or count($next) > 0"/>
176 <xsl:variable name="row2" select="($prev and $navig.showtitles != 0)
177 or ($home != . or $nav.context = 'toc')
178 or ($chunk.tocs.and.lots != 0
179 and $nav.context != 'toc')
180 or ($next and $navig.showtitles != 0)"/>
182 <xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'">
183 <div class="navfooter">
184 <xsl:if test="$footer.rule != 0">
188 <xsl:if test="$row1 or $row2">
189 <table width="100%" summary="Navigation footer">
190 <xsl:if test="$row1">
192 <td width="40%" align="left">
194 <xsl:when test="count($prev)>0">
195 <a accesskey="p" onmouseover="document.images.prev_foot.src='img/nav/button_prev_h.gif'" onmouseout="document.images.prev_foot.src='img/nav/button_prev.gif'">
196 <xsl:attribute name="href">
197 <xsl:call-template name="href.target">
198 <xsl:with-param name="object" select="$prev"/>
202 <xsl:call-template name="navig.content">
203 <xsl:with-param name="direction" select="'prev'"/>
206 <img name="prev_foot" src="img/nav/button_prev.gif" border="0" alt="Previous page" />
210 <img src="img/nav/button_prev_d.gif" border="0" />
214 <td width="20%" align="center">
216 <xsl:when test="count($up)>0">
217 <a accesskey="u" onmouseover="document.images.main_foot.src='img/nav/button_main_h.gif'" onmouseout="document.images.main_foot.src='img/nav/button_main.gif'">
218 <xsl:attribute name="href">
219 <xsl:call-template name="href.target">
220 <xsl:with-param name="object" select="$up"/>
224 <xsl:call-template name="navig.content">
225 <xsl:with-param name="direction" select="'up'"/>
228 <img name="main_foot" src="img/nav/button_main.gif" border="0" alt="Back to Top" />
231 <xsl:otherwise> </xsl:otherwise>
234 <td width="40%" align="right">
235 <xsl:text> </xsl:text>
237 <xsl:when test="count($next)>0">
238 <a accesskey="n" onmouseover="document.images.next_foot.src='img/nav/button_next_h.gif'" onmouseout="document.images.next_foot.src='img/nav/button_next.gif'">
239 <xsl:attribute name="href">
240 <xsl:call-template name="href.target">
241 <xsl:with-param name="object" select="$next"/>
245 <xsl:call-template name="navig.content">
246 <xsl:with-param name="direction" select="'next'"/>
249 <img name="next_foot" src="img/nav/button_next.gif" border="0" alt="Next page" />
253 <img src="img/nav/button_next_d.gif" border="0" />
260 <xsl:if test="$row2">
262 <td width="40%" align="left" valign="top">
263 <xsl:if test="$navig.showtitles != 0">
264 <xsl:apply-templates select="$prev" mode="object.title.markup"/>
266 <xsl:text> </xsl:text>
268 <td width="20%" align="center">
270 <xsl:when test="$home != . or $nav.context = 'toc'">
272 <xsl:attribute name="href">
273 <xsl:call-template name="href.target">
274 <xsl:with-param name="object" select="$home"/>
277 <xsl:call-template name="navig.content">
278 <xsl:with-param name="direction" select="'home'"/>
281 <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
282 <xsl:text> | </xsl:text>
285 <xsl:otherwise> </xsl:otherwise>
288 <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
290 <xsl:attribute name="href">
291 <xsl:apply-templates select="/*[1]" mode="recursive-chunk-filename"/>
292 <xsl:text>-toc</xsl:text>
293 <xsl:value-of select="$html.ext"/>
295 <xsl:call-template name="gentext">
296 <xsl:with-param name="key" select="'nav-toc'"/>
301 <td width="40%" align="right" valign="top">
302 <xsl:text> </xsl:text>
303 <xsl:if test="$navig.showtitles != 0">
304 <xsl:apply-templates select="$next" mode="object.title.markup"/>