Change visibility to private for net.sourceforge.phpeclipse.xdebug.php.model.XDebugEl...
[phpeclipse.git] / net.sourceforge.phpeclipse.help / docbook-src / guide / xsl / phpeclipse_htmlchunk.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0">
3
4 <xsl:import href="file:///c:/docbook/docbook-xsl/xhtml/chunk.xsl"/>
5
6 <xsl:param name="profile.role" select="'with_index;html;bold'"/>
7
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
16
17 <xsl:param name="tablecolumns.extension" select="'0'"></xsl:param>
18
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>
22
23 <xsl:param name="admon.graphics" select="1"></xsl:param>
24 <xsl:param name="admon.graphics.path">img/admon/</xsl:param>
25
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"/>
29
30 <xsl:param name="formal.title.placement">
31 figure after
32 example before
33 equation after
34 table after
35 procedure before
36 </xsl:param>
37
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" />
41 </xsl:template>
42
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"/>
47
48   <xsl:variable name="home" select="/*[1]"/>
49   <xsl:variable name="up" select="parent::*"/>
50
51   <xsl:variable name="row1" select="$navig.showtitles != 0"/>
52   <xsl:variable name="row2" select="count($prev) &gt; 0
53                                     or (count($up) &gt; 0
54                                         and $up != $home
55                                         and $navig.showtitles != 0)
56                                     or count($next) &gt; 0"/>
57
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">
62           <xsl:if test="$row1">
63             <tr>
64               <th colspan="3" align="left">
65                 <xsl:apply-templates select="." mode="object.title.markup"/>
66               </th>
67             </tr>
68           </xsl:if>
69
70           <xsl:if test="$row2">
71             <tr>
72
73               <th width="60%" align="left">
74                 <xsl:choose>
75                   <xsl:when test="count($up) &gt; 0
76                                   and $up != $home
77                                   and $navig.showtitles != 0">
78                     <xsl:apply-templates select="$up" mode="object.title.markup"/>
79                   </xsl:when>
80                   <xsl:otherwise>&#160;</xsl:otherwise>
81                 </xsl:choose>
82               </th>
83
84               <td width="20%" align="right">
85                 <font face="Arial" size="2">
86
87                 <xsl:choose>
88                   <xsl:when test="count($up)&gt;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"/>
93                         </xsl:call-template>
94                       </xsl:attribute>
95 <!--
96                       <xsl:call-template name="navig.content">
97                         <xsl:with-param name="direction" select="'up'"/>
98                       </xsl:call-template>
99 -->
100                       <img name="main_head" src="img/nav/button_main.gif" border="0" alt="Back to Top" />
101                     </a>
102
103                   </xsl:when>
104                   <xsl:otherwise>&#160;</xsl:otherwise>
105                 </xsl:choose>
106
107                 <xsl:choose>
108                   <xsl:when test="count($prev)&gt;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"/>
113                         </xsl:call-template>
114                       </xsl:attribute>
115 <!--
116                       <xsl:call-template name="navig.content">
117                         <xsl:with-param name="direction" select="'prev'"/>
118                       </xsl:call-template>
119 -->
120                       <img name="prev_head" src="img/nav/button_prev.gif" border="0" alt="Previous page" />
121                     </a>
122                   </xsl:when>
123                   <xsl:otherwise>
124                     <img src="img/nav/button_prev_d.gif" border="0" />
125                   </xsl:otherwise>
126                 </xsl:choose>
127
128                 <xsl:choose>
129                   <xsl:when test="count($next)&gt;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"/>
134                         </xsl:call-template>
135                       </xsl:attribute>
136 <!--
137                       <xsl:call-template name="navig.content">
138                         <xsl:with-param name="direction" select="'next'"/>
139                       </xsl:call-template>
140 -->
141                       <img name="next" src="img/nav/button_next.gif" border="0" alt="Next page" />
142                     </a>
143                   </xsl:when>
144                   <xsl:otherwise>
145                     <img src="img/nav/button_next_d.gif" border="0" />
146                   </xsl:otherwise>
147                 </xsl:choose>
148                 </font>
149               </td>
150             </tr>
151           </xsl:if>
152         </table>
153       </xsl:if>
154       <xsl:if test="$header.rule != 0">
155         <hr/>
156       </xsl:if>
157     </div>
158   </xsl:if>
159 </xsl:template>
160
161
162
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"/>
167
168   <xsl:variable name="home" select="/*[1]"/>
169   <xsl:variable name="up" select="parent::*"/>
170
171   <xsl:variable name="row1" select="count($prev) &gt; 0
172                                     or count($up) &gt; 0
173                                     or count($next) &gt; 0"/>
174
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)"/>
180
181   <xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'">
182     <div class="navfooter">
183       <xsl:if test="$footer.rule != 0">
184         <hr/>
185       </xsl:if>
186
187       <xsl:if test="$row1 or $row2">
188         <table width="100%" summary="Navigation footer">
189           <xsl:if test="$row1">
190             <tr>
191               <td width="40%" align="left">
192                 <xsl:choose>
193                   <xsl:when test="count($prev)&gt;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"/>
198                         </xsl:call-template>
199                       </xsl:attribute>
200 <!--
201                       <xsl:call-template name="navig.content">
202                         <xsl:with-param name="direction" select="'prev'"/>
203                       </xsl:call-template>
204 -->
205                       <img name="prev_foot" src="img/nav/button_prev.gif" border="0" alt="Previous page" />
206                     </a>
207                   </xsl:when>
208                   <xsl:otherwise>
209                     <img src="img/nav/button_prev_d.gif" border="0" />
210                   </xsl:otherwise>
211                 </xsl:choose>
212               </td>
213               <td width="20%" align="center">
214                 <xsl:choose>
215                   <xsl:when test="count($up)&gt;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"/>
220                         </xsl:call-template>
221                       </xsl:attribute>
222 <!--
223                       <xsl:call-template name="navig.content">
224                         <xsl:with-param name="direction" select="'up'"/>
225                       </xsl:call-template>
226 -->
227                       <img name="main_foot" src="img/nav/button_main.gif" border="0" alt="Back to Top" />
228                     </a>
229                   </xsl:when>
230                   <xsl:otherwise>&#160;</xsl:otherwise>
231                 </xsl:choose>
232               </td>
233               <td width="40%" align="right">
234                 <xsl:text>&#160;</xsl:text>
235                 <xsl:choose>
236                   <xsl:when test="count($next)&gt;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"/>
241                         </xsl:call-template>
242                       </xsl:attribute>
243 <!--
244                       <xsl:call-template name="navig.content">
245                         <xsl:with-param name="direction" select="'next'"/>
246                       </xsl:call-template>
247 -->
248                       <img name="next_foot" src="img/nav/button_next.gif" border="0" alt="Next page" />
249                     </a>
250                   </xsl:when>
251                   <xsl:otherwise>
252                     <img src="img/nav/button_next_d.gif" border="0" />
253                   </xsl:otherwise>
254                 </xsl:choose>
255               </td>
256             </tr>
257           </xsl:if>
258
259           <xsl:if test="$row2">
260             <tr>
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"/>
264                 </xsl:if>
265                 <xsl:text>&#160;</xsl:text>
266               </td>
267               <td width="20%" align="center">
268                 <xsl:choose>
269                   <xsl:when test="$home != . or $nav.context = 'toc'">
270                     <a accesskey="h">
271                       <xsl:attribute name="href">
272                         <xsl:call-template name="href.target">
273                           <xsl:with-param name="object" select="$home"/>
274                         </xsl:call-template>
275                       </xsl:attribute>
276                       <xsl:call-template name="navig.content">
277                         <xsl:with-param name="direction" select="'home'"/>
278                       </xsl:call-template>
279                     </a>
280                     <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
281                       <xsl:text>&#160;|&#160;</xsl:text>
282                     </xsl:if>
283                   </xsl:when>
284                   <xsl:otherwise>&#160;</xsl:otherwise>
285                 </xsl:choose>
286
287                 <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
288                   <a accesskey="t">
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"/>
293                     </xsl:attribute>
294                     <xsl:call-template name="gentext">
295                       <xsl:with-param name="key" select="'nav-toc'"/>
296                     </xsl:call-template>
297                   </a>
298                 </xsl:if>
299               </td>
300               <td width="40%" align="right" valign="top">
301                 <xsl:text>&#160;</xsl:text>
302                 <xsl:if test="$navig.showtitles != 0">
303                   <xsl:apply-templates select="$next" mode="object.title.markup"/>
304                 </xsl:if>
305               </td>
306             </tr>
307           </xsl:if>
308         </table>
309       </xsl:if>
310     </div>
311   </xsl:if>
312 </xsl:template>
313
314
315
316
317 </xsl:stylesheet>