forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/core/context/skins/forrest-site/xslt/html site2xhtml.xsl tab2menu.xsl
Date Mon, 29 Dec 2003 10:04:41 GMT
nicolaken    2003/12/29 02:04:41

  Modified:    src/core/context/skins/forrest-site/xslt/html site2xhtml.xsl
                        tab2menu.xsl
  Log:
  Add subtab functionality
  
  Revision  Changes    Path
  1.4       +4 -4      xml-forrest/src/core/context/skins/forrest-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/skins/forrest-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- site2xhtml.xsl	26 Nov 2003 09:15:32 -0000	1.3
  +++ site2xhtml.xsl	29 Dec 2003 10:04:41 -0000	1.4
  @@ -129,10 +129,10 @@
             <xsl:apply-templates select="div[@class='tab']"/>
             <xsl:comment>================= end Tabs ==================</xsl:comment>
           </td>
  -        <td bgcolor="{$header-color}"><img class="spacer" src="{$spacer}" height="1"
width="1" alt="" /></td>
  +        <td bgcolor="{$header-color}"></td>
         </tr>
  -      <tr>
  -        <td colspan="4" bgcolor="{$menu-border}"><img class="spacer" src="{$spacer}"
alt="" height="10" width="1" /></td>
  +      <tr height="16">
  +        <td colspan="4" bgcolor="{$menu-border}" height="10" ><xsl:apply-templates
select="div[@class='level2tab']"/></td>
         </tr>
       </table>
       <xsl:comment>================= end Banner ==================</xsl:comment>
  
  
  
  1.2       +17 -0     xml-forrest/src/core/context/skins/forrest-site/xslt/html/tab2menu.xsl
  
  Index: tab2menu.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/skins/forrest-site/xslt/html/tab2menu.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tab2menu.xsl	20 Oct 2003 16:29:05 -0000	1.1
  +++ tab2menu.xsl	29 Dec 2003 10:04:41 -0000	1.2
  @@ -16,6 +16,11 @@
           </tr>
         </table>
       </div>
  +    <xsl:if test="tab[@dir=$longest-dir]/tab">
  +      <div class="level2tab">
  +         <xsl:call-template name="level2tabs"/>
  +      </div>
  +    </xsl:if>
     </xsl:template>
   
     <xsl:template name="pre-separator">
  @@ -31,6 +36,10 @@
       </td>
     </xsl:template>
   
  +  <xsl:template name="level2-pre-separator"></xsl:template>
  +  <xsl:template name="level2-post-separator"></xsl:template>
  +  <xsl:template name="level2-separator">&#160;|&#160;</xsl:template>
  +
     <xsl:template name="selected">
       <td valign="bottom">
         <table cellspacing="0" cellpadding="0" border="0"  style="height: 1.8em" summary="selected
tab">
  @@ -73,6 +82,14 @@
           </tr>
         </table>
       </td>
  +  </xsl:template>
  +
  +  <xsl:template name="level2-not-selected">
  +    <xsl:call-template name="base-not-selected"/>
  +  </xsl:template>
  +
  +  <xsl:template name="level2-selected">
  +     <xsl:call-template name="base-selected"/>
     </xsl:template>
   
   </xsl:stylesheet>
  
  
  

Mime
View raw message