hgomez      2002/09/10 01:02:13

  Modified:    jk/xdocs menu.idx style.xsl.in
  Log:
  Add section in document, allowing spacing in final HTML.
  
  Still behind JF for XSL but ...
  
  Revision  Changes    Path
  1.9       +14 -5     jakarta-tomcat-connectors/jk/xdocs/menu.idx
  
  Index: menu.idx
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/xdocs/menu.idx,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- menu.idx  9 Sep 2002 15:00:57 -0000       1.8
  +++ menu.idx  10 Sep 2002 08:02:13 -0000      1.9
  @@ -1,18 +1,27 @@
   <?xml version="1.0"?>
   
   <index>
  +  <section name="Presentation">
     <document href="index.xml"/>
  +  </section>
  +  
  +  <section name="Commons">
     <document href="common/AJPv13.xml"/>
     <document href="common/AJPv14-proposal.xml"/>
  -  <document/>
  +  <document href="faq.xml"/>
  +  </section>
  +  
  +  <section name="JK">
     <document href="jk/aphowto.xml"/>
  +  <document href="jk/domhowto.xml"/>
     <document href="jk/iishowto.xml"/>
     <document href="jk/neshowto.xml"/>
  -  <document href="jk/domhowto.xml"/>
     <document href="jk/workershowto.xml"/>
  -  <document/>
  +  </section>
  +  
  +  <section name="JK2">
     <document href="jk2/configtc.xml"/>
     <document href="jk2/configweb.xml"/>
  -  <document/>
  -  <document href="faq.xml"/>
  +  </section>
  +  
   </index>
  
  
  
  1.10      +46 -36    jakarta-tomcat-connectors/jk/xdocs/style.xsl.in
  
  Index: style.xsl.in
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/xdocs/style.xsl.in,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- style.xsl.in      9 Sep 2002 15:00:57 -0000       1.9
  +++ style.xsl.in      10 Sep 2002 08:02:13 -0000      1.10
  @@ -150,50 +150,60 @@
                     within the index.
                   -->
                   <xsl:variable name="root" select="/"/>
  -                <xsl:for-each select="document('menu.idx')/index/document">
  -                  <xsl:variable name="href" select="@href"/>
  -                  <xsl:if test="string-length($href) = 0">
  -                    <tr height="6"/>
  -                  </xsl:if>
  -                  <tr>
  -                    <td bgcolor="#cccccc" width="150" colspan="2">
  -                      <nobr>
  -                        <a class="menu">
  -                          <xsl:call-template name="converturi">
  -                            <xsl:with-param name="href" select="@href"/>
  -                          </xsl:call-template>
  -                        </a>
  -                      </nobr>
  -                    </td>
  -                  </tr>
  -                  <tr height="2">
  +                <xsl:for-each select="document('menu.idx')/index/section">
  +                  <tr height="6">
  +                  <td bgcolor="#cccccc" width="150" colspan="2">
  +                  <xsl:value-of select="@name"/>
  +                  </td>
                     </tr>
  +                     <xsl:for-each select="./document">
  +                       <xsl:variable name="href" select="@href"/>
  +                       <tr>
  +                         <td bgcolor="#cccccc" width="150" colspan="2">
  +                           <nobr>
  +                             <a class="menu">
  +                               <xsl:call-template name="converturi">
  +                                 <xsl:with-param name="href" select="@href"/>
  +                               </xsl:call-template>
  +                             </a>
  +                           </nobr>
  +                         </td>
  +                       </tr>
  +                       <tr height="2">
  +                       </tr>
   
  -                  <!--
  -                    Slightly more complicated, we use the document-location function
  -                    and compare against it to see whether we are in the same file or
  -                    not. If we actually are, we expand to the "section" level.
  -                  -->
  -                  <xsl:if test="$root/document/properties/title = 
document(@href)/document/properties/title">
  -                    <xsl:for-each select="document(@href)/document/section">
  -                      <tr>
  -                        <td bgcolor="#cccccc" width="10"/>
  -                        <td bgcolor="#cccccc" width="140">
  -                          <a class="menu" href="#{@name}">
  -                            <xsl:value-of select="@name"/>
  -                          </a>
  -                        </td>
  -                       </tr>
  -                       <tr height="1">
  -                      </tr>
  -                    </xsl:for-each>
  -                  </xsl:if>
  +                       <!--
  +                         Slightly more complicated, we use the document-location 
function
  +                         and compare against it to see whether we are in the same 
file or
  +                         not. If we actually are, we expand to the "section" level.
  +                       -->
  +                       <xsl:if test="$root/document/properties/title = 
document(@href)/document/properties/title">
  +                         <xsl:for-each select="document(@href)/document/section">
  +                           <tr>
  +                             <td bgcolor="#cccccc" width="10"/>
  +                             <td bgcolor="#cccccc" width="140">
  +                               <a class="menu" href="#{@name}">
  +                                 <xsl:value-of select="@name"/>
  +                               </a>
  +                             </td>
  +                            </tr>
  +                            <tr height="1">
  +                           </tr>
  +                         </xsl:for-each>
  +                       </xsl:if>
  +                  </xsl:for-each>
  +                  <tr height="6"/>
                   </xsl:for-each>
   
                   <!--
                     The last thing to put down in the index are the API docs,
                     both for C and for Java
                   -->
  +                <tr height="6">
  +                <td bgcolor="#cccccc" width="150" colspan="2">
  +                Developpers
  +                </td>
  +                </tr>
                   <tr>
                     <td bgcolor="#cccccc" width="150" colspan="2">
                       <nobr>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to