/[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.2 by julian, Mon Nov 22 22:29:58 2004 UTC revision 1.3 by julian, Tue Nov 23 12:49:55 2004 UTC
# Line 174  Line 174 
174      <xsl:param name="p_label"/>      <xsl:param name="p_label"/>
175      <xsl:param name="p_target" select="'_self'"/>      <xsl:param name="p_target" select="'_self'"/>
176      <xsl:param name="p_enabled"/>      <xsl:param name="p_enabled"/>
177        <xsl:param name="p_last" select="0"/>
178    
179      <span class="navi-button">&#8658;&#160;<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>&#160;|&#160;      <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>
180        <xsl:if test="not($p_last)"> | </xsl:if>
181    </xsl:template>    </xsl:template>
182    
183    <xsl:template name="output_navbar">    <xsl:template name="output_navbar">
# Line 186  Line 188 
188      <xsl:param name="p_show_full_tree"/>      <xsl:param name="p_show_full_tree"/>
189      <xsl:param name="p_show_index"/>      <xsl:param name="p_show_index"/>
190      <xsl:param name="p_show_help"/>      <xsl:param name="p_show_help"/>
191        <xsl:param name="p_show_about" select="1"/>
192        <xsl:param name="p_show_source"/>
193        <xsl:param name="p_show_class"/>
194        <xsl:param name="p_show_use"/>
195    
196      <xsl:if test="not($gjdoc.option.nonavbar)">      <xsl:if test="not($gjdoc.option.nonavbar)">
197        <div class="header">        <div class="navbar-first-row">
         <xsl:call-template name="output_navlink">  
           <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index.html')"/>  
           <xsl:with-param name="p_label" select="'Home&#160;(Frames)'"/>  
           <xsl:with-param name="p_enabled" select="$p_show_frames"/>  
           <xsl:with-param name="p_target" select="'_top'"/>  
         </xsl:call-template>  
198          <xsl:call-template name="output_navlink">          <xsl:call-template name="output_navlink">
199            <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')"/>
200            <xsl:with-param name="p_label" select="'Home&#160;(No&#160;Frames)'"/>            <xsl:with-param name="p_label" select="'Home'"/>
201            <xsl:with-param name="p_enabled" select="$p_show_noframes"/>            <xsl:with-param name="p_enabled" select="$p_show_noframes"/>
           <xsl:with-param name="p_target" select="'_top'"/>  
202          </xsl:call-template>          </xsl:call-template>
203          <xsl:call-template name="output_navlink">          <xsl:call-template name="output_navlink">
204            <xsl:with-param name="p_href" select="'package-summary.html'"/>            <xsl:with-param name="p_href" select="'package-summary.html'"/>
# Line 207  Line 206 
206            <xsl:with-param name="p_enabled" select="$p_show_package"/>            <xsl:with-param name="p_enabled" select="$p_show_package"/>
207          </xsl:call-template>          </xsl:call-template>
208          <xsl:call-template name="output_navlink">          <xsl:call-template name="output_navlink">
209              <xsl:with-param name="p_href" select="$p_show_class"/>
210              <xsl:with-param name="p_label" select="'Class'"/>
211              <xsl:with-param name="p_enabled" select="$p_show_class"/>
212            </xsl:call-template>
213            <xsl:call-template name="output_navlink">
214              <xsl:with-param name="p_href" select="$p_show_source"/>
215              <xsl:with-param name="p_label" select="'Source'"/>
216              <xsl:with-param name="p_enabled" select="$p_show_source"/>
217            </xsl:call-template>
218            <xsl:call-template name="output_navlink">
219              <xsl:with-param name="p_href" select="$p_show_use"/>
220              <xsl:with-param name="p_label" select="'Use'"/>
221              <xsl:with-param name="p_enabled" select="$p_show_use"/>
222            </xsl:call-template>
223            <xsl:call-template name="output_navlink">
224            <xsl:with-param name="p_href" select="'package-tree.html'"/>            <xsl:with-param name="p_href" select="'package-tree.html'"/>
225            <xsl:with-param name="p_label" select="'Package Tree'"/>            <xsl:with-param name="p_label" select="'Tree'"/>
226            <xsl:with-param name="p_enabled" select="$p_show_package_tree"/>            <xsl:with-param name="p_enabled" select="$p_show_package_tree"/>
227          </xsl:call-template>          </xsl:call-template>
         <xsl:if test="not($gjdoc.option.notree)">  
           <xsl:call-template name="output_navlink">  
             <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'fulltree.html')"/>  
             <xsl:with-param name="p_label" select="'Full Tree'"/>  
             <xsl:with-param name="p_enabled" select="$p_show_full_tree"/>  
           </xsl:call-template>  
         </xsl:if>  
228          <xsl:if test="not($gjdoc.option.noindex)">          <xsl:if test="not($gjdoc.option.noindex)">
229            <xsl:call-template name="output_navlink">            <xsl:call-template name="output_navlink">
230              <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'alphaindex.html')"/>              <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'alphaindex.html')"/>
# Line 225  Line 232 
232              <xsl:with-param name="p_enabled" select="$p_show_index"/>              <xsl:with-param name="p_enabled" select="$p_show_index"/>
233            </xsl:call-template>            </xsl:call-template>
234          </xsl:if>          </xsl:if>
235            <xsl:if test="not($gjdoc.option.notree)">
236              <xsl:call-template name="output_navlink">
237                <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'fulltree.html')"/>
238                <xsl:with-param name="p_label" select="'Full Tree'"/>
239                <xsl:with-param name="p_enabled" select="$p_show_full_tree"/>
240              </xsl:call-template>
241            </xsl:if>
242          <xsl:if test="not($gjdoc.option.nohelp)">          <xsl:if test="not($gjdoc.option.nohelp)">
243            <xsl:call-template name="output_navlink">            <xsl:call-template name="output_navlink">
244              <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'help.html')"/>              <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'help.html')"/>
# Line 232  Line 246 
246              <xsl:with-param name="p_enabled" select="$p_show_help"/>              <xsl:with-param name="p_enabled" select="$p_show_help"/>
247            </xsl:call-template>            </xsl:call-template>
248          </xsl:if>          </xsl:if>
249            <xsl:call-template name="output_navlink">
250              <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'about.html')"/>
251              <xsl:with-param name="p_label" select="'About'"/>
252              <xsl:with-param name="p_enabled" select="$p_show_about"/>
253              <xsl:with-param name="p_last" select="1"/>
254            </xsl:call-template>
255          </div>
256          <div class="navbar-second-row">
257            <xsl:call-template name="output_navlink">
258              <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index.html')"/>
259              <xsl:with-param name="p_label" select="'Frames'"/>
260              <xsl:with-param name="p_enabled" select="$p_show_frames"/>
261              <xsl:with-param name="p_target" select="'_top'"/>
262            </xsl:call-template>
263            <xsl:call-template name="output_navlink">
264              <xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'index_noframes.html')"/>
265              <xsl:with-param name="p_label" select="'No&#160;Frames'"/>
266              <xsl:with-param name="p_enabled" select="$p_show_noframes"/>
267              <xsl:with-param name="p_target" select="'_top'"/>
268              <xsl:with-param name="p_last" select="1"/>
269            </xsl:call-template>
270        </div>        </div>
271      </xsl:if>      </xsl:if>
272    </xsl:template>    </xsl:template>
273    
274      <xsl:template name="link_to_class_source">
275        <xsl:choose>
276          <xsl:when test="$gjdoc.option.linksource">
277            <a href="{concat($gjdoc.pathtoroot, 'src-html/', translate(gjdoc:containingPackage/@name, '.', '/'), '/', @name, '.html')}"><b><xsl:value-of select="@name"/></b></a>
278          </xsl:when>
279          <xsl:otherwise>
280            <b><xsl:value-of select="@name"/></b>
281          </xsl:otherwise>
282        </xsl:choose>
283      </xsl:template>
284    
285      <xsl:template name="link_to_member_source">
286        <xsl:choose>
287          <xsl:when test="$gjdoc.option.linksource">
288            <a href="{concat($gjdoc.pathtoroot, 'src-html/', translate(gjdoc:containingPackage/@name, '.', '/'), '/', gjdoc:containingClass/@typename, '.html#line.', gjdoc:position/@line)}"><b><xsl:value-of select="@name"/></b></a>
289          </xsl:when>
290          <xsl:otherwise>
291            <b><xsl:value-of select="@name"/></b>
292          </xsl:otherwise>
293        </xsl:choose>
294      </xsl:template>
295    
296      <xsl:template name="output_title">
297        <xsl:param name="p_pagetitle"/>
298    
299        <title>
300          <xsl:value-of select="$p_pagetitle"/>
301          <xsl:if test="$gjdoc.option.windowtitle">
302            <xsl:text> (</xsl:text>
303            <xsl:value-of select="$gjdoc.option.windowtitle"/>
304            <xsl:text>)</xsl:text>
305          </xsl:if>
306        </title>
307      </xsl:template>
308    
309  </xsl:stylesheet>  </xsl:stylesheet>
310    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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