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 2007/11/04 23:22:42 UTC

svn commit: r591855 - /lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl

Author: andreas
Date: Sun Nov  4 14:22:42 2007
New Revision: 591855

URL: http://svn.apache.org/viewvc?rev=591855&view=rev
Log:
Don't include nodes without children in tabs

Modified:
    lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl

Modified: lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl?rev=591855&r1=591854&r2=591855&view=diff
==============================================================================
--- lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl (original)
+++ lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl Sun Nov  4 14:22:42 2007
@@ -30,7 +30,7 @@
   <xsl:template match="nav:site">
     
     <ul id="tabs">
-      <xsl:for-each select="nav:node[nav:label[normalize-space(.) != '']]">
+      <xsl:for-each select="nav:node[nav:label[normalize-space(.) != ''] and nav:node]">
         <xsl:choose>
           <xsl:when test="@visibleinnav = 'false'"/>
           <xsl:when test="descendant-or-self::nav:node[@current = 'true']">



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