You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/06/18 15:52:35 UTC

svn commit: r415136 - /lenya/trunk/src/modules/sitetree/xslt/navigation/tabs.xsl

Author: andreas
Date: Sun Jun 18 06:52:34 2006
New Revision: 415136

URL: http://svn.apache.org/viewvc?rev=415136&view=rev
Log:
Tabs: add <a> also for non-link tabs to support CSS backgrounds

Modified:
    lenya/trunk/src/modules/sitetree/xslt/navigation/tabs.xsl

Modified: lenya/trunk/src/modules/sitetree/xslt/navigation/tabs.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/xslt/navigation/tabs.xsl?rev=415136&r1=415135&r2=415136&view=diff
==============================================================================
--- lenya/trunk/src/modules/sitetree/xslt/navigation/tabs.xsl (original)
+++ lenya/trunk/src/modules/sitetree/xslt/navigation/tabs.xsl Sun Jun 18 06:52:34 2006
@@ -62,10 +62,12 @@
 
 
 <xsl:template name="label">
-   <xsl:choose>
-    <xsl:when test="@current='true'"><xsl:apply-templates select="nav:label"/></xsl:when>
-    <xsl:otherwise><a href="{@href}"><xsl:apply-templates select="nav:label"/></a></xsl:otherwise>
-  </xsl:choose>	  
+  <a>
+    <xsl:if test="@current='true'">
+      <xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
+    </xsl:if>
+    <xsl:apply-templates select="nav:label"/>
+  </a>
 </xsl:template>
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org