/[classpath]/gjdoc/src/resources/doctranslets/html/html_common.xsl
ViewVC logotype

Diff of /gjdoc/src/resources/doctranslets/html/html_common.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by julian, Tue Nov 23 20:56:11 2004 UTC revision 1.6 by julian, Thu Nov 25 14:40:20 2004 UTC
# Line 35  Line 35 
35    <!-- HTML head directives to be included in all generated HTML files. -->    <!-- HTML head directives to be included in all generated HTML files. -->
36    
37    <xsl:template name="include_common">    <xsl:template name="include_common">
38      <link rel="stylesheet" type="text/css" href="{concat($gjdoc.pathtoroot, 'gjdochtml.css')}"/>      <script src="{concat($gjdoc.pathtoroot, 'gjdoc.js')}" type="text/javascript"><xsl:comment>this comment required for konqueror 3.2.2</xsl:comment>
39        </script>
40        <xsl:choose>
41          <xsl:when test="$gjdoc.option.stylesheetfile">
42            <link rel="stylesheet" type="text/css"
43              href="{concat($gjdoc.pathtoroot, 'user.css')}"/>
44          </xsl:when>
45          <xsl:otherwise>
46            <link rel="stylesheet" type="text/css"
47              href="{concat($gjdoc.pathtoroot, 'gjdochtml.css')}" title="GNU Clean"/>
48            <link rel="stylesheet" type="text/css"
49              href="{concat($gjdoc.pathtoroot, 'gjdochtml-clean.css')}" title="GNU Clean"/>
50            <link rel="alternate stylesheet" type="text/css"
51              href="{concat($gjdoc.pathtoroot, 'gjdochtml.css')}" title="Santa Clara"/>
52            <link rel="alternate stylesheet" type="text/css"
53              href="{concat($gjdoc.pathtoroot, 'gjdochtml-sclara.css')}" title="Santa Clara"/>
54            <link rel="alternate stylesheet" type="text/css"
55              href="{concat($gjdoc.pathtoroot, 'gjdochtml.css')}" title="Fixed Fruit"/>
56            <link rel="alternate stylesheet" type="text/css"
57              href="{concat($gjdoc.pathtoroot, 'gjdochtml-fixed.css')}" title="Fixed Fruit"/>
58          </xsl:otherwise>
59        </xsl:choose>
60    </xsl:template>    </xsl:template>
61    
62    <xsl:template name="output_copyright_footer">    <xsl:template name="output_copyright_footer">
# Line 174  Line 195 
195      <xsl:param name="p_label"/>      <xsl:param name="p_label"/>
196      <xsl:param name="p_target" select="'_self'"/>      <xsl:param name="p_target" select="'_self'"/>
197      <xsl:param name="p_enabled"/>      <xsl:param name="p_enabled"/>
198        <xsl:param name="p_current"/>
199        <xsl:param name="p_onclick"/>
200      <xsl:param name="p_last" select="0"/>      <xsl:param name="p_last" select="0"/>
201        <xsl:param name="p_css_class"/>
202        <xsl:param name="p_title"/>
203    
204      <span class="navi-button"><xsl:choose><xsl:when test="$p_enabled"><a href="{$p_href}" target="{$p_target}"><xsl:value-of select="$p_label"/></a></xsl:when><xsl:otherwise><xsl:value-of select="$p_label"/></xsl:otherwise></xsl:choose></span>      <xsl:choose>
205      <xsl:if test="not($p_last)"> | </xsl:if>        <xsl:when test="$p_enabled">
206            <span class="navi-button link"><a href="{$p_href}" target="{$p_target}" class="navi-button" title="{$p_title}" onClick="{$p_onclick}"><span class="{concat('navi-link ', $p_css_class)}"><xsl:value-of select="$p_label" disable-output-escaping="yes"/></span></a></span>
207          </xsl:when>
208          <xsl:when test="$p_current">
209            <span class="navi-button current"><xsl:value-of select="$p_label" disable-output-escaping="yes"/></span>
210          </xsl:when>
211          <xsl:otherwise>
212            <span class="navi-button unavailable"><xsl:value-of select="$p_label" disable-output-escaping="yes"/></span>
213          </xsl:otherwise>
214        </xsl:choose>
215        <xsl:if test="not($p_last)"><span class="navsep"><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></span></xsl:if>
216    </xsl:template>    </xsl:template>
217    
218    <xsl:template name="output_navbar">    <xsl:template name="output_navbar">
219      <xsl:param name="p_show_frames"/>      <xsl:param name="p_show_frames" select="1"/>
220      <xsl:param name="p_show_noframes"/>      <xsl:param name="p_curr_frames"/>
221      <xsl:param name="p_show_package"/>  
222      <xsl:param name="p_show_package_tree"/>      <xsl:param name="p_show_noframes" select="1"/>
223      <xsl:param name="p_show_full_tree"/>      <xsl:param name="p_curr_noframes"/>
224      <xsl:param name="p_show_index"/>  
225      <xsl:param name="p_show_help"/>      <xsl:param name="p_show_package" select="1"/>
226        <xsl:param name="p_curr_package"/>
227    
228        <xsl:param name="p_show_package_tree" select="1"/>
229        <xsl:param name="p_curr_package_tree"/>
230    
231        <xsl:param name="p_show_full_tree" select="1"/>
232        <xsl:param name="p_curr_full_tree"/>
233    
234        <xsl:param name="p_show_index" select="1"/>
235        <xsl:param name="p_curr_index"/>
236    
237        <xsl:param name="p_show_help" select="1"/>
238        <xsl:param name="p_curr_help"/>
239    
240      <xsl:param name="p_show_about" select="1"/>      <xsl:param name="p_show_about" select="1"/>
241      <xsl:param name="p_show_source"/>      <xsl:param name="p_curr_about"/>
242    
243        <xsl:param name="p_show_source" select="1"/>
244        <xsl:param name="p_curr_source"/>
245    
246      <xsl:param name="p_show_class"/>      <xsl:param name="p_show_class"/>
247        <xsl:param name="p_curr_class"/>
248    
249      <xsl:param name="p_show_use"/>      <xsl:param name="p_show_use"/>
250      <xsl:param name="p_top"/>      <xsl:param name="p_curr_use"/>
251    
252      <xsl:param name="p_show_deprecated" select="1"/>      <xsl:param name="p_show_deprecated" select="1"/>
253        <xsl:param name="p_curr_deprecated"/>
254    
255        <xsl:param name="p_top"/>
256    
257      <xsl:variable name="v_navbar_class">      <xsl:variable name="v_navbar_class">
258        <xsl:choose>        <xsl:choose>
259          <xsl:when test="$p_top">          <xsl:when test="$p_top">
# Line 206  Line 266 
266      </xsl:variable>      </xsl:variable>
267    
268      <xsl:if test="not($gjdoc.option.nonavbar)">      <xsl:if test="not($gjdoc.option.nonavbar)">
269        <table class="{$v_navbar_class}">        <div class="{$v_navbar_class}">
270          <table border="1" cellspacing="0" class="{$v_navbar_class}">
271          <tr class="{$v_navbar_class}">          <tr class="{$v_navbar_class}">
272            <td class="{$v_navbar_class}">            <td class="{$v_navbar_class}">
273              <div class="navbar-first-row">              <div class="navbar-first-row">
274                <xsl:call-template name="output_navlink">                <xsl:call-template name="output_navlink">
275                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index_noframes.html')"/>                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index_noframes.html')"/>
276                  <xsl:with-param name="p_label" select="'Home'"/>                  <xsl:with-param name="p_label" select="'Overview'"/>
277                  <xsl:with-param name="p_enabled" select="$p_show_noframes"/>                  <xsl:with-param name="p_enabled" select="$p_show_noframes"/>
278                    <xsl:with-param name="p_current" select="$p_curr_noframes"/>
279                </xsl:call-template>                </xsl:call-template>
280                <xsl:call-template name="output_navlink">                <xsl:call-template name="output_navlink">
281                  <xsl:with-param name="p_href" select="'package-summary.html'"/>                  <xsl:with-param name="p_href" select="'package-summary.html'"/>
282                  <xsl:with-param name="p_label" select="'Package'"/>                  <xsl:with-param name="p_label" select="'Package'"/>
283                  <xsl:with-param name="p_enabled" select="$p_show_package"/>                  <xsl:with-param name="p_enabled" select="$p_show_package"/>
284                    <xsl:with-param name="p_current" select="$p_curr_package"/>
285                </xsl:call-template>                </xsl:call-template>
286                <xsl:call-template name="output_navlink">                <xsl:call-template name="output_navlink">
287                  <xsl:with-param name="p_href" select="$p_show_class"/>                  <xsl:with-param name="p_href" select="$p_show_class"/>
288                  <xsl:with-param name="p_label" select="'Class'"/>                  <xsl:with-param name="p_label" select="'Class'"/>
289                  <xsl:with-param name="p_enabled" select="$p_show_class"/>                  <xsl:with-param name="p_enabled" select="$p_show_class"/>
290                    <xsl:with-param name="p_current" select="$p_curr_class"/>
291                </xsl:call-template>                </xsl:call-template>
292                <xsl:call-template name="output_navlink">                <xsl:if test="$gjdoc.option.linksource">
293                  <xsl:with-param name="p_href" select="$p_show_source"/>                  <xsl:call-template name="output_navlink">
294                  <xsl:with-param name="p_label" select="'Source'"/>                    <xsl:with-param name="p_href" select="$p_show_source"/>
295                  <xsl:with-param name="p_enabled" select="$p_show_source"/>                    <xsl:with-param name="p_label" select="'Source'"/>
296                </xsl:call-template>                    <xsl:with-param name="p_enabled" select="$p_show_source"/>
297                <xsl:call-template name="output_navlink">                    <xsl:with-param name="p_current" select="$p_curr_source"/>
298                  <xsl:with-param name="p_href" select="$p_show_use"/>                  </xsl:call-template>
299                  <xsl:with-param name="p_label" select="'Use'"/>                </xsl:if>
300                  <xsl:with-param name="p_enabled" select="$p_show_use"/>                <xsl:if test="$gjdoc.option.uses">
301                    <xsl:call-template name="output_navlink">
302                      <xsl:with-param name="p_href" select="$p_show_use"/>
303                      <xsl:with-param name="p_label" select="'Use'"/>
304                      <xsl:with-param name="p_enabled" select="$p_show_use"/>
305                      <xsl:with-param name="p_current" select="$p_curr_use"/>
306                </xsl:call-template>                </xsl:call-template>
307                  </xsl:if>
308                <xsl:call-template name="output_navlink">                <xsl:call-template name="output_navlink">
309                  <xsl:with-param name="p_href" select="'package-tree.html'"/>                  <xsl:with-param name="p_href" select="'package-tree.html'"/>
310                  <xsl:with-param name="p_label" select="'Tree'"/>                  <xsl:with-param name="p_label" select="'Tree'"/>
311                  <xsl:with-param name="p_enabled" select="$p_show_package_tree"/>                  <xsl:with-param name="p_enabled" select="$p_show_package_tree"/>
312                    <xsl:with-param name="p_current" select="$p_curr_package_tree"/>
313                </xsl:call-template>                </xsl:call-template>
314                <xsl:if test="not($gjdoc.option.noindex)">                <xsl:if test="not($gjdoc.option.noindex)">
315                  <xsl:call-template name="output_navlink">                  <xsl:call-template name="output_navlink">
316                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'alphaindex.html')"/>                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'alphaindex.html')"/>
317                    <xsl:with-param name="p_label" select="'Index'"/>                    <xsl:with-param name="p_label" select="'Index'"/>
318                    <xsl:with-param name="p_enabled" select="$p_show_index"/>                    <xsl:with-param name="p_enabled" select="$p_show_index"/>
319                      <xsl:with-param name="p_current" select="$p_curr_index"/>
320                  </xsl:call-template>                  </xsl:call-template>
321                </xsl:if>                </xsl:if>
322                <xsl:if test="not($gjdoc.option.notree)">                <xsl:if test="not($gjdoc.option.notree)">
323                  <xsl:call-template name="output_navlink">                  <xsl:call-template name="output_navlink">
324                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'fulltree.html')"/>                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'fulltree.html')"/>
325                    <xsl:with-param name="p_label" select="'Full Tree'"/>                    <xsl:with-param name="p_label" select="'Full&amp;nbsp;Tree'"/>
326                    <xsl:with-param name="p_enabled" select="$p_show_full_tree"/>                    <xsl:with-param name="p_enabled" select="$p_show_full_tree"/>
327                      <xsl:with-param name="p_current" select="$p_curr_full_tree"/>
328                  </xsl:call-template>                  </xsl:call-template>
329                </xsl:if>                </xsl:if>
330                <xsl:if test="not($gjdoc.option.nodeprecatedlist)">                <xsl:if test="not($gjdoc.option.nodeprecatedlist)">
# Line 259  Line 332 
332                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'deprecated.html')"/>                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'deprecated.html')"/>
333                    <xsl:with-param name="p_label" select="'Deprecated'"/>                    <xsl:with-param name="p_label" select="'Deprecated'"/>
334                    <xsl:with-param name="p_enabled" select="$p_show_deprecated"/>                    <xsl:with-param name="p_enabled" select="$p_show_deprecated"/>
335                      <xsl:with-param name="p_current" select="$p_curr_deprecated"/>
336                  </xsl:call-template>                  </xsl:call-template>
337                </xsl:if>                </xsl:if>
338                <xsl:if test="not($gjdoc.option.nohelp)">                <xsl:if test="not($gjdoc.option.nohelp)">
# Line 266  Line 340 
340                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'help.html')"/>                    <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'help.html')"/>
341                    <xsl:with-param name="p_label" select="'Help'"/>                    <xsl:with-param name="p_label" select="'Help'"/>
342                    <xsl:with-param name="p_enabled" select="$p_show_help"/>                    <xsl:with-param name="p_enabled" select="$p_show_help"/>
343                      <xsl:with-param name="p_current" select="$p_curr_help"/>
344                  </xsl:call-template>                  </xsl:call-template>
345                </xsl:if>                </xsl:if>
346                <xsl:call-template name="output_navlink">                <xsl:call-template name="output_navlink">
347                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'about.html')"/>                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'about.html')"/>
348                  <xsl:with-param name="p_label" select="'About'"/>                  <xsl:with-param name="p_label" select="'About'"/>
349                  <xsl:with-param name="p_enabled" select="$p_show_about"/>                  <xsl:with-param name="p_enabled" select="$p_show_about"/>
350                    <xsl:with-param name="p_current" select="$p_curr_about"/>
351                  <xsl:with-param name="p_last" select="1"/>                  <xsl:with-param name="p_last" select="1"/>
352                </xsl:call-template>                </xsl:call-template>
353              </div>              </div>
# Line 279  Line 355 
355                <xsl:call-template name="output_navlink">                <xsl:call-template name="output_navlink">
356                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index.html')"/>                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index.html')"/>
357                  <xsl:with-param name="p_label" select="'Frames'"/>                  <xsl:with-param name="p_label" select="'Frames'"/>
358                  <xsl:with-param name="p_enabled" select="$p_show_frames"/>                  <xsl:with-param name="p_enabled" select="1"/>
359                  <xsl:with-param name="p_target" select="'_top'"/>                  <xsl:with-param name="p_target" select="'_top'"/>
360                </xsl:call-template>                </xsl:call-template>
361                <xsl:call-template name="output_navlink">                <xsl:call-template name="output_navlink">
362                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index_noframes.html')"/>                  <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index_noframes.html')"/>
363                  <xsl:with-param name="p_label" select="'No&#160;Frames'"/>                  <xsl:with-param name="p_label" select="'No&amp;nbsp;Frames'"/>
364                  <xsl:with-param name="p_enabled" select="$p_show_noframes"/>                  <xsl:with-param name="p_enabled" select="1"/>
365                  <xsl:with-param name="p_target" select="'_top'"/>                  <xsl:with-param name="p_target" select="'_top'"/>
366                  <xsl:with-param name="p_last" select="1"/>                  <xsl:with-param name="p_last" select="0"/>
367                </xsl:call-template>                </xsl:call-template>
368                    <xsl:call-template name="output_navlink">
369                      <xsl:with-param name="p_onclick" select="'return setStyleSheet(&quot;GNU Clean&quot;);'"/>
370                      <xsl:with-param name="p_title" select="'GNU Clean Style'"/>
371                      <xsl:with-param name="p_label" select="'GNU Clean'"/>
372                      <xsl:with-param name="p_enabled" select="1"/>
373                      <xsl:with-param name="p_last" select="0"/>
374                    </xsl:call-template>
375                    <xsl:call-template name="output_navlink">
376                      <xsl:with-param name="p_onclick" select="'return setStyleSheet(&quot;Santa Clara&quot;);'"/>
377                      <xsl:with-param name="p_title" select="'Santa Clara Style'"/>
378                      <xsl:with-param name="p_label" select="'Santa Clara'"/>
379                      <xsl:with-param name="p_enabled" select="1"/>
380                      <xsl:with-param name="p_last" select="0"/>
381                    </xsl:call-template>
382                    <xsl:call-template name="output_navlink">
383                      <xsl:with-param name="p_onclick" select="'return setStyleSheet(&quot;Fixed Fruit&quot;);'"/>
384                      <xsl:with-param name="p_title" select="'Fixed Fruit Style'"/>
385                      <xsl:with-param name="p_label" select="'Fixed Fruit'"/>
386                      <xsl:with-param name="p_enabled" select="1"/>
387                      <xsl:with-param name="p_last" select="0"/>
388                    </xsl:call-template>
389                    <xsl:call-template name="output_navlink">
390                      <xsl:with-param name="p_onclick" select="'return setStyleSheet(&quot;Vanilla&quot;);'"/>
391                      <xsl:with-param name="p_title" select="'Vanilla Style'"/>
392                      <xsl:with-param name="p_label" select="'Vanilla'"/>
393                      <xsl:with-param name="p_enabled" select="1"/>
394                      <xsl:with-param name="p_last" select="0"/>
395                    </xsl:call-template>
396    
397              </div>              </div>
398            </td>            </td>
399            <xsl:choose>            <xsl:choose>
# Line 307  Line 412 
412                </xsl:if>                </xsl:if>
413              </xsl:otherwise>              </xsl:otherwise>
414            </xsl:choose>            </xsl:choose>
415    
416          </tr>          </tr>
417        </table>        </table>
418    
419          </div>
420        <xsl:if test="not($p_top) and $gjdoc.option.bottom">        <xsl:if test="not($p_top) and $gjdoc.option.bottom">
421          <hr/>          <hr/>
422          <xsl:value-of select="$gjdoc.option.bottom"/>          <xsl:value-of select="$gjdoc.option.bottom"/>

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26