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 Mon, 27 Jan 2003 18:06:22 GMT
nicolaken    2003/01/27 10:06:22

  Modified:    src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
  Log:
  Fixed validation problem of the left-menu items as described here
  http://issues.cocoondev.org/jira//secure/ViewIssue.jspa?key=FOR-25
  
  Revision  Changes    Path
  1.6       +16 -11    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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- site2xhtml.xsl	27 Jan 2003 11:57:48 -0000	1.5
  +++ site2xhtml.xsl	27 Jan 2003 18:06:22 -0000	1.6
  @@ -166,20 +166,21 @@
   							</xsl:when>
   							<xsl:otherwise>
   							 <li>
  -							   <span class="sel"><xsl:value-of select="span" /></span></li>
  -						       <ul> 
  -						         <xsl:for-each select = "//toc/tocc">
  -						         
  +							   <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">
  -						         	  <li><a href="{toca/@href}" title="{toca}"><xsl:value-of
select="substring(toca,0,15)" />...</a></li>
  +						         	  <a href="{toca/@href}" title="{toca}"><xsl:value-of select="substring(toca,0,15)"
/>...</a>
   						         	</xsl:when>
   						         	<xsl:otherwise>
  -						              <li><a href="{toca/@href}"><xsl:value-of select="toca"
/></a></li>						         	 
  -						         	</xsl:otherwise>
  +						              <a href="{toca/@href}"><xsl:value-of select="toca" /></a>
					         	 		                                     </xsl:otherwise>
   						         </xsl:choose>
   						         	
  -						        	<ul> 
  +						        <xsl:if test="toc2/tocc"> 
  +						        	<ul>
   						              <xsl:for-each select = "toc2/tocc">	
   						              
   								          <xsl:choose>
  @@ -192,9 +193,13 @@
   								         </xsl:choose>
   						         
   						              </xsl:for-each>   
  -                                    </ul>
  +						             </ul>
  +						            </xsl:if>
  +                                  </li> 
   						         </xsl:for-each>   
  -                               </ul>
  +                                </ul>
  +						       </xsl:if>      
  +                              </li>
   							</xsl:otherwise>
   						</xsl:choose>
                     	                
  
  
  

Mime
View raw message