2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4 <xsl:import href="file:///c:/docbook/docbook-xsl/xhtml/chunk.xsl"/>
6 <xsl:param name="profile.role" select="'with_index;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'"/>
17 <xsl:param name="tablecolumns.extension" select="'0'"></xsl:param>
19 <xsl:param name="callout.graphics">1</xsl:param>
20 <xsl:param name="callout.graphics.extension">.png</xsl:param>
21 <xsl:param name="callout.graphics.path" select="'img/callouts/'"></xsl:param>
23 <xsl:param name="admon.graphics" select="1"></xsl:param>
24 <xsl:param name="admon.graphics.path">img/admon/</xsl:param>
26 <xsl:param name="qanda.defaultlabel">number</xsl:param>
27 <xsl:param name="header.rule" select="0"/>
28 <xsl:param name="footer.rule" select="0"/>
30 <xsl:param name="formal.title.placement">
38 <xsl:template name="user.head.content">
39 <link rel="stylesheet" type="text/css" media="screen" href="style.css" />
40 <link rel="stylesheet" type="text/css" media="print" href="xoopsstyleprint.css" />
43 <xsl:template name="header.navigation">
44 <xsl:param name="prev" select="/foo"/>
45 <xsl:param name="next" select="/foo"/>
46 <xsl:param name="nav.context"/>
48 <xsl:variable name="home" select="/*[1]"/>
49 <xsl:variable name="up" select="parent::*"/>
51 <xsl:variable name="row1" select="$navig.showtitles != 0"/>
52 <xsl:variable name="row2" select="count($prev) > 0
55 and $navig.showtitles != 0)
56 or count($next) > 0"/>
58 <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
59 <div class="navheader">
60 <xsl:if test="$row1 or $row2">
61 <table width="100%" summary="Navigation header">
64 <th colspan="3" align="left">
65 <xsl:apply-templates select="." mode="object.title.markup"/>
73 <th width="60%" align="left">
75 <xsl:when test="count($up) > 0
77 and $navig.showtitles != 0">
78 <xsl:apply-templates select="$up" mode="object.title.markup"/>
80 <xsl:otherwise> </xsl:otherwise>
84 <td width="20%" align="right">
85 <font face="Arial" size="2">
88 <xsl:when test="count($up)>0">
89 <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'">
90 <xsl:attribute name="href">
91 <xsl:call-template name="href.target">
92 <xsl:with-param name="object" select="$up"/>
96 <xsl:call-template name="navig.content">
97 <xsl:with-param name="direction" select="'up'"/>
100 <img name="main_head" src="img/nav/button_main.gif" border="0" alt="Back to Top" />
104 <xsl:otherwise> </xsl:otherwise>
108 <xsl:when test="count($prev)>0">
109 <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'">
110 <xsl:attribute name="href">
111 <xsl:call-template name="href.target">
112 <xsl:with-param name="object" select="$prev"/>
116 <xsl:call-template name="navig.content">
117 <xsl:with-param name="direction" select="'prev'"/>
120 <img name="prev_head" src="img/nav/button_prev.gif" border="0" alt="Previous page" />
124 <img src="img/nav/button_prev_d.gif" border="0" />
129 <xsl:when test="count($next)>0">
130 <a accesskey="n" onmouseover="document.images.next.src='img/nav/button_next_h.gif'" onmouseout="document.images.next.src='img/nav/button_next.gif'">
131 <xsl:attribute name="href">
132 <xsl:call-template name="href.target">
133 <xsl:with-param name="object" select="$next"/>
137 <xsl:call-template name="navig.content">
138 <xsl:with-param name="direction" select="'next'"/>
141 <img name="next" src="img/nav/button_next.gif" border="0" alt="Next page" />
145 <img src="img/nav/button_next_d.gif" border="0" />
154 <xsl:if test="$header.rule != 0">
163 <xsl:template name="footer.navigation">
164 <xsl:param name="prev" select="/foo"/>
165 <xsl:param name="next" select="/foo"/>
166 <xsl:param name="nav.context"/>
168 <xsl:variable name="home" select="/*[1]"/>
169 <xsl:variable name="up" select="parent::*"/>
171 <xsl:variable name="row1" select="count($prev) > 0
173 or count($next) > 0"/>
175 <xsl:variable name="row2" select="($prev and $navig.showtitles != 0)
176 or ($home != . or $nav.context = 'toc')
177 or ($chunk.tocs.and.lots != 0
178 and $nav.context != 'toc')
179 or ($next and $navig.showtitles != 0)"/>
181 <xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'">
182 <div class="navfooter">
183 <xsl:if test="$footer.rule != 0">
187 <xsl:if test="$row1 or $row2">
188 <table width="100%" summary="Navigation footer">
189 <xsl:if test="$row1">
191 <td width="40%" align="left">
193 <xsl:when test="count($prev)>0">
194 <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'">
195 <xsl:attribute name="href">
196 <xsl:call-template name="href.target">
197 <xsl:with-param name="object" select="$prev"/>
201 <xsl:call-template name="navig.content">
202 <xsl:with-param name="direction" select="'prev'"/>
205 <img name="prev_foot" src="img/nav/button_prev.gif" border="0" alt="Previous page" />
209 <img src="img/nav/button_prev_d.gif" border="0" />
213 <td width="20%" align="center">
215 <xsl:when test="count($up)>0">
216 <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'">
217 <xsl:attribute name="href">
218 <xsl:call-template name="href.target">
219 <xsl:with-param name="object" select="$up"/>
223 <xsl:call-template name="navig.content">
224 <xsl:with-param name="direction" select="'up'"/>
227 <img name="main_foot" src="img/nav/button_main.gif" border="0" alt="Back to Top" />
230 <xsl:otherwise> </xsl:otherwise>
233 <td width="40%" align="right">
234 <xsl:text> </xsl:text>
236 <xsl:when test="count($next)>0">
237 <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'">
238 <xsl:attribute name="href">
239 <xsl:call-template name="href.target">
240 <xsl:with-param name="object" select="$next"/>
244 <xsl:call-template name="navig.content">
245 <xsl:with-param name="direction" select="'next'"/>
248 <img name="next_foot" src="img/nav/button_next.gif" border="0" alt="Next page" />
252 <img src="img/nav/button_next_d.gif" border="0" />
259 <xsl:if test="$row2">
261 <td width="40%" align="left" valign="top">
262 <xsl:if test="$navig.showtitles != 0">
263 <xsl:apply-templates select="$prev" mode="object.title.markup"/>
265 <xsl:text> </xsl:text>
267 <td width="20%" align="center">
269 <xsl:when test="$home != . or $nav.context = 'toc'">
271 <xsl:attribute name="href">
272 <xsl:call-template name="href.target">
273 <xsl:with-param name="object" select="$home"/>
276 <xsl:call-template name="navig.content">
277 <xsl:with-param name="direction" select="'home'"/>
280 <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
281 <xsl:text> | </xsl:text>
284 <xsl:otherwise> </xsl:otherwise>
287 <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
289 <xsl:attribute name="href">
290 <xsl:apply-templates select="/*[1]" mode="recursive-chunk-filename"/>
291 <xsl:text>-toc</xsl:text>
292 <xsl:value-of select="$html.ext"/>
294 <xsl:call-template name="gentext">
295 <xsl:with-param name="key" select="'nav-toc'"/>
300 <td width="40%" align="right" valign="top">
301 <xsl:text> </xsl:text>
302 <xsl:if test="$navig.showtitles != 0">
303 <xsl:apply-templates select="$next" mode="object.title.markup"/>