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

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

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

revision 1.11 by julian, Tue Nov 23 20:56:11 2004 UTC revision 1.12 by julian, Thu Nov 25 14:40:20 2004 UTC
# Line 108  Line 108 
108            <xsl:with-param name="p_pagetitle" select="@name"/>            <xsl:with-param name="p_pagetitle" select="@name"/>
109          </xsl:call-template>          </xsl:call-template>
110        </head>        </head>
111        <body class="classdoc" onload="top.document.title=document.title;">        <body class="classdoc" onload="top.contentPageLoaded();">
112    
113            <div class="pagebody">
114    
115          <xsl:call-template name="classdoc_header"/>          <xsl:call-template name="classdoc_header"/>
116          <xsl:call-template name="classdoc_all_field_summary">          <xsl:call-template name="classdoc_all_field_summary">
# Line 165  Line 167 
167            <xsl:with-param name="p_show_index" select="1"/>            <xsl:with-param name="p_show_index" select="1"/>
168            <xsl:with-param name="p_show_help" select="1"/>            <xsl:with-param name="p_show_help" select="1"/>
169            <xsl:with-param name="p_top" select="0"/>            <xsl:with-param name="p_top" select="0"/>
170              <xsl:with-param name="p_show_source" select="concat($gjdoc.pathtoroot, 'src-html/', translate(gjdoc:containingPackage/@name, '.', '/'), '/', @name, '.html')"/>
171              <xsl:with-param name="p_show_use" select="concat($gjdoc.pathtoroot, 'class-use/', translate(gjdoc:containingPackage/@name, '.', '/'), '/', @name, '.html')"/>
172              <xsl:with-param name="p_curr_class" select="1"/>
173          </xsl:call-template>          </xsl:call-template>
174                    
175            </div>
176        </body>        </body>
177      </html>      </html>
178    </xsl:template>    </xsl:template>
# Line 185  Line 191 
191        <xsl:with-param name="p_show_index" select="1"/>        <xsl:with-param name="p_show_index" select="1"/>
192        <xsl:with-param name="p_show_help" select="1"/>        <xsl:with-param name="p_show_help" select="1"/>
193        <xsl:with-param name="p_top" select="1"/>        <xsl:with-param name="p_top" select="1"/>
194          <xsl:with-param name="p_show_source" select="concat($gjdoc.pathtoroot, 'src-html/', translate(gjdoc:containingPackage/@name, '.', '/'), '/', @name, '.html')"/>
195          <xsl:with-param name="p_show_use" select="concat($gjdoc.pathtoroot, 'class-use/', translate(gjdoc:containingPackage/@name, '.', '/'), '/', @name, '.html')"/>
196          <xsl:with-param name="p_curr_class" select="1"/>
197      </xsl:call-template>      </xsl:call-template>
198    
199      <div class="classdoc-head">      <div class="classdoc-head">
200    
201        <div class="classdoc-head-inner">          <div class="classdoc-head-packagename classdoc-subtitle">
   
         <b class="classdoc-head-packagename">  
202            <xsl:value-of select="gjdoc:containingPackage/@name"/>            <xsl:value-of select="gjdoc:containingPackage/@name"/>
203          </b>          </div>
         <br/>  
204            
205          <h1 class="classdoc-head-classname">          <h1 class="classdoc-head-classname classdoc-title">
206            <xsl:choose>            <xsl:choose>
207              <xsl:when test="gjdoc:isInterface">              <xsl:when test="gjdoc:isInterface">
208                <xsl:text>Interface </xsl:text>                <xsl:text>Interface </xsl:text>
# Line 208  Line 214 
214            <xsl:value-of select="@name"/>            <xsl:value-of select="@name"/>
215          </h1>          </h1>
216    
       </div>  
   
217      </div>      </div>
218    
219      <xsl:if test="gjdoc:isClass">      <xsl:if test="gjdoc:isClass">
# Line 220  Line 224 
224        <xsl:variable name="v_qualifiedtypename" select="attribute::qualifiedtypename"/>        <xsl:variable name="v_qualifiedtypename" select="attribute::qualifiedtypename"/>
225        <b>Enclosing Class:</b><br/>        <b>Enclosing Class:</b><br/>
226        <xsl:call-template name="link_to_class">        <xsl:call-template name="link_to_class">
227          <xsl:with-param name="p_name" select="gjdoc:containingClass/@name"/>          <xsl:with-param name="p_name" select="gjdoc:containingClass/@typename"/>
228          <xsl:with-param name="p_qualifiedname" select="gjdoc:containingClass/@qualifiedtypename"/>          <xsl:with-param name="p_qualifiedname" select="gjdoc:containingClass/@qualifiedtypename"/>
229        </xsl:call-template>        </xsl:call-template>
230      </xsl:if>      </xsl:if>
# Line 391  Line 395 
395    
396    <xsl:template name="classdoc_all_field_summary">    <xsl:template name="classdoc_all_field_summary">
397    
398      <xsl:if test="gjdoc:fielddoc">          <xsl:if test=".//gjdoc:fielddoc">    
       <h1 class="classdoc-header">Field Summary</h1>  
399            
400        <table border="1" cellspacing="0" width="100%" class="classdoc-table">        <table border="1" cellspacing="0" class="classdoc-table">
401            <tr><td class="section-header" colspan="2"><div class="section-header">Field Summary</div></td></tr>
402          <xsl:for-each select="gjdoc:fielddoc">          <xsl:for-each select="gjdoc:fielddoc">
403            <xsl:sort select="@name" order="ascending"/>            <xsl:sort select="@name" order="ascending"/>
404            <xsl:call-template name="classdoc_field_summary_tr"/>              <xsl:call-template name="classdoc_field_summary_tr"/>  
405          </xsl:for-each>          </xsl:for-each>
406        </table>        </table>
     </xsl:if>  
407    
408      <xsl:variable name="v_superclass" select="gjdoc:superclass/@qualifiedtypename"/>        <xsl:for-each select="gjdoc:superclass">
409                <xsl:call-template name="output_superclass_fields"/>
410      <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[attribute::qualifiedtypename=$v_superclass]">        </xsl:for-each>
411        <xsl:call-template name="output_superclass_fields"/>      </xsl:if>
     </xsl:for-each>  
412    
413    </xsl:template>    </xsl:template>
414    
# Line 414  Line 416 
416        
417    <xsl:template name="classdoc_all_method_summary">    <xsl:template name="classdoc_all_method_summary">
418            
419      <xsl:if test="gjdoc:methoddoc">      <xsl:if test=".//gjdoc:methoddoc">
420        <h1 class="classdoc-header">Method Summary</h1>        <table border="1" cellspacing="0" class="classdoc-table">
421                <tr><td class="section-header" colspan="2"><div class="section-header">Method Summary</div></td></tr>
       <table border="1" cellspacing="0" width="100%" class="classdoc-table">  
422          <xsl:for-each select="gjdoc:methoddoc">          <xsl:for-each select="gjdoc:methoddoc">
423            <xsl:sort select="@name" order="ascending"/>            <xsl:sort select="@name" order="ascending"/>
424            <xsl:call-template name="classdoc_method_summary_tr"/>              <xsl:call-template name="classdoc_method_summary_tr"/>  
425          </xsl:for-each>          </xsl:for-each>
426        </table>        </table>
     </xsl:if>  
427    
428      <xsl:variable name="v_superclass">        <xsl:for-each select="gjdoc:superclass">
429        <xsl:value-of select="gjdoc:superclass/@qualifiedtypename"/>          <xsl:call-template name="output_superclass_methods"/>
430      </xsl:variable>        </xsl:for-each>
431            </xsl:if>
     <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[attribute::qualifiedtypename=$v_superclass]">  
       <xsl:call-template name="output_superclass_methods"/>  
     </xsl:for-each>  
432            
433    </xsl:template>    </xsl:template>
434        
# Line 439  Line 436 
436        
437    <xsl:template name="classdoc_all_constructor_summary">    <xsl:template name="classdoc_all_constructor_summary">
438            
439      <xsl:if test="gjdoc:constructordoc">      <xsl:if test=".//gjdoc:constructordoc">
440          <!--
441        <h1 class="classdoc-header">Constructor Summary</h1>        <h1 class="classdoc-header">Constructor Summary</h1>
442    -->
443            
444        <table border="1" cellspacing="0" width="100%" class="classdoc-table">        <table class="classdoc-table">
445            <tr><td class="section-header" colspan="2"><div class="section-header">Constructor Summary</div></td></tr>
446          <xsl:for-each select="gjdoc:constructordoc">          <xsl:for-each select="gjdoc:constructordoc">
447            <xsl:sort select="@name" order="ascending"/>            <xsl:sort select="@name" order="ascending"/>
448            <xsl:call-template name="classdoc_method_summary_tr"/>              <xsl:call-template name="classdoc_method_summary_tr"/>  
# Line 456  Line 456 
456        
457    <xsl:template name="classdoc_field_summary_tr">    <xsl:template name="classdoc_field_summary_tr">
458            
459      <tr>      <tr valign="top">
460    
461        <!-- Left table cell: Modifiers and Return Type  -->        <!-- Left table cell: Modifiers and Return Type  -->
462                
463        <td width="1%" align="right" valign="top" class="no-border-r">        <td valign="top" class="member-summary field modifiers">
464          <p class="prototype-type">          <code class="member-summary field modifiers">
465            <xsl:call-template name="output_modifiers_summary"/>            <xsl:call-template name="output_modifiers_summary"/>
466            <xsl:call-template name="link_to_class">            <xsl:call-template name="link_to_class">
467              <xsl:with-param name="p_name">              <xsl:with-param name="p_name">
# Line 472  Line 472 
472              </xsl:with-param>              </xsl:with-param>
473            </xsl:call-template>            </xsl:call-template>
474            <xsl:value-of select="gjdoc:type/@dimension"/>            <xsl:value-of select="gjdoc:type/@dimension"/>
475          </p>          </code>
476        </td>        </td>
477    
478        <!-- Right table cell: name and short description  -->        <!-- Right table cell: name and short description  -->
479                
480        <td align="left" valign="top" class="with-border">        <td class="member-summary field name">
481          <!-- Method signature -->          <!-- Method signature -->
482                    
483          <!-- Link to field definition -->          <!-- Link to field definition -->
484                        
485          <p class="prototype">          <code class="member-summary field name">
486            <a href="{concat('#',@name)}"><xsl:value-of select="@name"/></a>            <a href="{concat('#',@name)}" class="field name"><xsl:value-of select="@name"/></a>
487          </p>          </code>
488    
489          <!-- Brief description of field -->          <!-- Brief description of field -->
490                    
491          <blockquote class="classdoc-summary-comment">          <blockquote class="member-summary field comment">
492            <xsl:for-each select="gjdoc:firstSentenceTags/node()">            <xsl:for-each select="gjdoc:firstSentenceTags/node()">
493              <xsl:value-of select="." disable-output-escaping="yes"/>              <xsl:value-of select="." disable-output-escaping="yes"/>
494            </xsl:for-each>            </xsl:for-each>
# Line 545  Line 545 
545        
546    <xsl:template name="classdoc_method_summary_tr">    <xsl:template name="classdoc_method_summary_tr">
547            
548      <tr>      <tr valign="top">
549                
550        <!-- Left table cell: Modifiers and Return Type  -->        <!-- Left table cell: Modifiers and Return Type  -->
551                
552        <xsl:if test="gjdoc:isMethod">        <xsl:if test="gjdoc:isMethod">
553          <td width="1%" align="right" valign="top" class="no-border-r">          <td valign="top" class="member-summary method modifiers">
554            <p class="prototype-type">            <code class="member-summary method modifiers">
555              <xsl:call-template name="output_modifiers_summary"/>              <xsl:call-template name="output_modifiers_summary"/>
556              <xsl:text> </xsl:text>              <xsl:text> </xsl:text>
557              <xsl:call-template name="link_to_class">              <xsl:call-template name="link_to_class">
# Line 559  Line 559 
559                <xsl:with-param name="p_name" select="gjdoc:returns/@typename"/>                <xsl:with-param name="p_name" select="gjdoc:returns/@typename"/>
560              </xsl:call-template>              </xsl:call-template>
561              <xsl:value-of select="gjdoc:returns/@dimension"/>              <xsl:value-of select="gjdoc:returns/@dimension"/>
562            </p>            </code>
563          </td>          </td>
564        </xsl:if>        </xsl:if>
565                
566        <!-- Right table cell: signature and short description  -->        <!-- Right table cell: signature and short description  -->
567                
568        <td align="left" valign="top" class="with-border">        <td align="left" valign="top" class="member-summary method name">
569                    
570          <!-- Method signature -->          <!-- Method signature -->
571                    
572          <p class="prototype">          <code class="member-summary method signature">
573                        
574            <!-- Link to method definition -->            <!-- Link to method definition -->
575                        
576            <a href="{concat('#',@name,gjdoc:signature/@full)}"><xsl:value-of select="@name"/></a>            <a href="{concat('#',@name,gjdoc:signature/@full)}" class="member-summary method name"><xsl:value-of select="@name"/></a>
577                        
578            <!-- Parameter List -->            <!-- Parameter List -->
579                        
580            <xsl:text>(</xsl:text>            <xsl:text>(</xsl:text>
581            <xsl:call-template name="list_parameters"/>            <xsl:call-template name="list_parameters"/>
582            <xsl:text>)</xsl:text>            <xsl:text>)</xsl:text>
583          </p>          </code>
584                    
585          <!-- Brief description of Method -->          <!-- Brief description of Method -->
586                    
587          <blockquote class="classdoc-summary-comment">          <blockquote class="member-summary method comment">
588            <xsl:choose>            <xsl:choose>
589              <xsl:when test="gjdoc:tags/gjdoc:tag[kind='@deprecated']">              <xsl:when test="gjdoc:tags/gjdoc:tag[kind='@deprecated']">
590                <b>Deprecated.</b>                <b>Deprecated.</b>
# Line 654  Line 654 
654    
655    <xsl:template name="output_see_tags">    <xsl:template name="output_see_tags">
656      <xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@see']">      <xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@see']">
657        <div class="classdoc-tag-section-header">See Also:</div>        <div class="classdoc-tag-section-header"><b>See Also:</b></div>
658    
659        <dl class="classdoc-list">        <dl class="classdoc-list">
660          <xsl:for-each select="gjdoc:tags/gjdoc:tag[attribute::kind='@see']">          <xsl:for-each select="gjdoc:tags/gjdoc:tag[attribute::kind='@see']">
# Line 675  Line 675 
675        
676    <xsl:template name="classdoc_field_details">    <xsl:template name="classdoc_field_details">
677    
678      <a name="{@name}"/>      <a name="{@name}" class="classdoc"> </a>
679        <div class="before-details"> </div>
680    
681      <h3><xsl:value-of select="@name"/></h3>      <h3><xsl:value-of select="@name"/></h3>
682            
683      <p class="prototype">      <p class="prototype"><code>
684        <xsl:value-of select="gjdoc:access/@scope"/>        <xsl:value-of select="gjdoc:access/@scope"/>
685        <xsl:text> </xsl:text>        <xsl:text> </xsl:text>
686        <xsl:call-template name="output_modifiers"/>        <xsl:call-template name="output_modifiers"/>
# Line 687  Line 688 
688        <xsl:value-of select="gjdoc:type/@dimension"/>        <xsl:value-of select="gjdoc:type/@dimension"/>
689        <xsl:text> </xsl:text>        <xsl:text> </xsl:text>
690        <xsl:call-template name="link_to_member_source"/>        <xsl:call-template name="link_to_member_source"/>
691      </p>      </code></p>
692    
693      <p/>      <p/>
694            
# Line 720  Line 721 
721        
722    <xsl:template name="classdoc_method_details">    <xsl:template name="classdoc_method_details">
723    
724      <a name="{concat(@name,gjdoc:signature/@full)}"/>      <a name="{concat(@name,gjdoc:signature/@full)}" class="classdoc"> </a>
725        <div class="before-details"> </div>
726            
727      <h3><xsl:value-of select="@name"/></h3>      <h3><xsl:value-of select="@name"/></h3>
728            
729      <p class="prototype">      <p class="prototype"><code>
730        <xsl:value-of select="gjdoc:access/@scope"/>        <xsl:value-of select="gjdoc:access/@scope"/>
731        <xsl:text> </xsl:text>        <xsl:text> </xsl:text>
732        <xsl:call-template name="output_modifiers"/>        <xsl:call-template name="output_modifiers"/>
# Line 734  Line 736 
736        <xsl:text>(</xsl:text>        <xsl:text>(</xsl:text>
737        <xsl:call-template name="list_parameters"/>        <xsl:call-template name="list_parameters"/>
738        <xsl:text>)</xsl:text>        <xsl:text>)</xsl:text>
739      </p>          </code></p>    
740            
741      <!-- Full comment text -->      <!-- Full comment text -->
742            
# Line 751  Line 753 
753      <xsl:call-template name="output_taglet_tags"/>      <xsl:call-template name="output_taglet_tags"/>
754            
755      <xsl:if test="gjdoc:parameter">      <xsl:if test="gjdoc:parameter">
756        <div class="classdoc-tag-section-header">Parameters:</div>        <div class="classdoc-tag-section-header"><b>Parameters:</b></div>
757        <xsl:call-template name="list_parameter_details"/>        <xsl:call-template name="list_parameter_details"/>
758      </xsl:if>      </xsl:if>
759            
760      <xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@return']">      <xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@return']">
761        <div class="classdoc-tag-section-header">Returns:</div>        <div class="classdoc-tag-section-header"><b>Returns:</b></div>
762        <dl class="classdoc-list">        <dl class="classdoc-list">
763          <dt>          <dt>
764            <xsl:for-each select="gjdoc:tags/gjdoc:tag[attribute::kind='@return']">            <xsl:for-each select="gjdoc:tags/gjdoc:tag[attribute::kind='@return']">
# Line 767  Line 769 
769      </xsl:if>      </xsl:if>
770            
771      <xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@throws']">      <xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@throws']">
772        <div class="classdoc-tag-section-header">Throws:</div>        <div class="classdoc-tag-section-header"><b>Throws:</b></div>
773        <dl class="classdoc-list">        <dl class="classdoc-list">
774          <xsl:for-each select="gjdoc:tags/gjdoc:tag[attribute::kind='@throws']">          <xsl:for-each select="gjdoc:tags/gjdoc:tag[attribute::kind='@throws']">
775            <dt>            <dt>
# Line 999  Line 1001 
1001      </xsl:choose>      </xsl:choose>
1002    </xsl:template>    </xsl:template>
1003    
   <!-- FIXME: Implement this template or remove references to it. -->  
   
1004    <xsl:template name="output_superclass_methods">    <xsl:template name="output_superclass_methods">
1005        <xsl:if test="gjdoc:methoddoc">
1006          <table class="classdoc-table">
1007            <tr>
1008              <td class="sub-section-header">
1009                <div class="sub-section-header">Methods inherited from class <xsl:value-of select="@qualifiedtypename"/></div>
1010              </td>
1011            </tr>
1012            <tr>
1013              <td class="member-summary super method">
1014                <xsl:for-each select="gjdoc:methoddoc">
1015                  <code class="member-summary super method"><a href="{concat($gjdoc.pathtoroot, translate(../gjdoc:containingPackage/@name, '.', '/'), '/', ../@typename, '.html#', @name, gjdoc:signature/@full)}" class="member-summary super method"><xsl:value-of select="@name"/></a><xsl:if test="position() != last()">, </xsl:if></code>
1016                </xsl:for-each>
1017              </td>
1018            </tr>
1019          </table>
1020        </xsl:if>
1021    </xsl:template>    </xsl:template>
1022    
   <!-- FIXME: Implement this template or remove references to it. -->  
1023    
1024    <xsl:template name="output_superclass_fields">    <xsl:template name="output_superclass_fields">
1025        <xsl:if test="gjdoc:fielddoc">
1026          <table class="classdoc-table">
1027            <tr>
1028              <td class="sub-section-header">
1029                <div class="sub-section-header">Fields inherited from class <xsl:value-of select="@qualifiedtypename"/></div>
1030              </td>
1031            </tr>
1032            <tr>
1033              <td class="member-summary super field">
1034                <xsl:for-each select="gjdoc:fielddoc">
1035                  <code class="member-summary super field"><a href="{concat($gjdoc.pathtoroot, translate(../gjdoc:containingPackage/@name, '.', '/'), '/', ../@typename, '.html#', @name)}" class="member-summary super field"><xsl:value-of select="@name"/></a><xsl:if test="position() != last()">, </xsl:if></code>
1036                </xsl:for-each>
1037              </td>
1038            </tr>
1039          </table>
1040        </xsl:if>
1041    </xsl:template>    </xsl:template>
1042    
1043  </xsl:stylesheet>  </xsl:stylesheet>

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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