Author: niclas
Date: Wed May 26 03:33:53 2004
New Revision: 20459

Modified:
   avalon/trunk/central/system/themes/avalon2/html/transform.xsl
Log:
Bug in the selection alogrithm.

Modified: avalon/trunk/central/system/themes/avalon2/html/transform.xsl
==============================================================================
--- avalon/trunk/central/system/themes/avalon2/html/transform.xsl       
(original)
+++ avalon/trunk/central/system/themes/avalon2/html/transform.xsl       Wed May 
26 03:33:53 2004
@@ -150,7 +150,7 @@
     <xsl:param name="class" select="'menuitem'" />
     <a>
       <xsl:choose>
-        <xsl:when test="@selected = true() or contains( $file, @href )" >
+        <xsl:when test="@selected = true() or ( contains( $file, @href ) and 
local-name( ../.. ) = 'body' )" >
           <xsl:attribute name="class"><xsl:value-of select="$class" 
/>-selected</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>

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

Reply via email to