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/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
Date Sun, 09 Feb 2003 18:55:30 GMT
nicolaken    2003/02/09 10:55:30

  Modified:    src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
  Log:
        <action dev="NKB" type="fix" context="skins">
          krysalis-site skin now works better with multi-level menus.
        </action>
        <action dev="NKB" type="update" context="skins">
          Added the CSS validation logo, fixed all skins' CSS to validate,
          minor fixes due to the switch to full HTML-loose DTD.
        </action>
  
  Revision  Changes    Path
  1.8       +59 -51    xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- site2xhtml.xsl	27 Jan 2003 18:35:00 -0000	1.7
  +++ site2xhtml.xsl	9 Feb 2003 18:55:30 -0000	1.8
  @@ -156,56 +156,7 @@
                   
                    <div class="menu"><ul>                
                     <xsl:for-each select = "div[@class='menu']/ul/li">
  -                  	 <li><font color="#000000"><xsl:value-of select="font"/></font>
  -                       <ul>
  -                  	    <xsl:for-each select = "ul/li">
  -                  	    
  -						<xsl:choose>
  -							<xsl:when test="a">
  -							  <li><a href="{a/@href}"><xsl:value-of select="a" /></a></li>
  -							</xsl:when>
  -							<xsl:otherwise>
  -							 <li>
  -							   <span class="sel"><xsl:value-of select="span" /></span>
  -	        	                <xsl:if test="//toc/tocc"> 
  -						        <ul> 
  -						        <xsl:for-each select = "//toc/tocc">
  -						         <li>
  -						         <xsl:choose>
  -						         	<xsl:when test="string-length(toca)>15">
  -						         	  <a href="{toca/@href}" title="{toca}"><xsl:value-of select="substring(toca,0,15)"
/>...</a>
  -						         	</xsl:when>
  -						         	<xsl:otherwise>
  -						              <a href="{toca/@href}"><xsl:value-of select="toca" /></a>
					         	 		                                     </xsl:otherwise>
  -						         </xsl:choose>
  -						         	
  -						        <xsl:if test="toc2/tocc"> 
  -						        	<ul>
  -						              <xsl:for-each select = "toc2/tocc">	
  -						              
  -								          <xsl:choose>
  -								         	<xsl:when test="string-length(toca)>15">
  -								         	  <li><a href="{toca/@href}" title="{toca}"><xsl:value-of
select="substring(toca,0,15)" />...</a></li>
  -								         	</xsl:when>
  -								         	<xsl:otherwise>
  -								              <li><a href="{toca/@href}"><xsl:value-of select="toca"
/></a></li>						         	 
  -								         	</xsl:otherwise>
  -								         </xsl:choose>
  -						         
  -						              </xsl:for-each>   
  -						             </ul>
  -						            </xsl:if>
  -                                  </li> 
  -						         </xsl:for-each>   
  -                                </ul>
  -						       </xsl:if>      
  -                              </li>
  -							</xsl:otherwise>
  -						</xsl:choose>
  -                  	                
  -                       </xsl:for-each>
  -                      </ul>                      
  -                    </li>
  +                  	<xsl:call-template name = "innermenuli" />
                     </xsl:for-each>
                    </ul></div>
                    
  @@ -337,6 +288,63 @@
       </xsl:template>
       
       
  +   <xsl:template name="innermenuli">
  +      <li><font color="#000000"><xsl:value-of select="font"/></font>
  +         <ul>
  +           <xsl:for-each select= "ul/li">
  +                  	    
  +						<xsl:choose>
  +							<xsl:when test="a">
  +							  <li><a href="{a/@href}"><xsl:value-of select="a" /></a></li>
  +							</xsl:when>
  +							<xsl:when test="span/@class='sel'">
  +							 <li>
  +							   <span class="sel"><xsl:value-of select="span" /></span>
  +	        	                <xsl:if test="//toc/tocc"> <i>
  +						        <ul> 
  +						        <xsl:for-each select = "//toc/tocc">
  +						         <li>
  +						         <xsl:choose>
  +						         	<xsl:when test="string-length(toca)>15">
  +						         	  <a href="{toca/@href}" title="{toca}"><xsl:value-of select="substring(toca,0,20)"
/>...</a>
  +						         	</xsl:when>
  +						         	<xsl:otherwise>
  +						              <a href="{toca/@href}"><xsl:value-of select="toca" /></a>
					         	 		                                     </xsl:otherwise>
  +						         </xsl:choose>
  +						         	
  +						        <xsl:if test="toc2/tocc"> 
  +						        	<ul>
  +						              <xsl:for-each select = "toc2/tocc">	
  +						              
  +								          <xsl:choose>
  +								         	<xsl:when test="string-length(toca)>15">
  +								         	  <li><a href="{toca/@href}" title="{toca}"><xsl:value-of
select="substring(toca,0,20)" />...</a></li>
  +								         	</xsl:when>
  +								         	<xsl:otherwise>
  +								              <li><a href="{toca/@href}"><xsl:value-of select="toca"
/></a></li>						         	 
  +								         	</xsl:otherwise>
  +								         </xsl:choose>
  +						         
  +						              </xsl:for-each>   
  +						             </ul>
  +						            </xsl:if>
  +                                  </li> 
  +						         </xsl:for-each>   
  +                                </ul></i>
  +						       </xsl:if>      
  +                              </li>
  +							</xsl:when>
  +			  				<xsl:otherwise>
  +                  	            <xsl:call-template name = "innermenuli" />
  +							</xsl:otherwise>
  +						</xsl:choose>
  +                  	                
  +                       </xsl:for-each>
  +                      </ul>                      
  +                    </li>
  +   </xsl:template>
  +   
  +       
      <xsl:template match="toc|toc2|tocc|toca">
      </xsl:template>
     
  
  
  

Mime
View raw message