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 20:56:25 UTC
svn commit: r591823 -
/lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/menu.xsl
Author: andreas
Date: Sun Nov 4 11:56:22 2007
New Revision: 591823
URL: http://svn.apache.org/viewvc?rev=591823&view=rev
Log:
Show section title above menu
Modified:
lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/menu.xsl
Modified: lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/menu.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/menu.xsl?rev=591823&r1=591822&r2=591823&view=diff
==============================================================================
--- lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/menu.xsl (original)
+++ lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/menu.xsl Sun Nov 4 11:56:22 2007
@@ -30,7 +30,7 @@
<xsl:template match="nav:site">
<ul id="menu">
- <xsl:apply-templates select="nav:node[descendant-or-self::nav:node[@current = 'true']]/nav:node"/>
+ <xsl:apply-templates select="nav:node[descendant-or-self::nav:node[@current = 'true']]"/>
</ul>
</xsl:template>
@@ -44,7 +44,15 @@
-->
- <xsl:template match="nav:node">
+ <xsl:template match="nav:site/nav:node">
+ <li id="menuTitle">
+ <span><xsl:value-of select="nav:label"/></span>
+ </li>
+ <xsl:apply-templates select="nav:node"/>
+ </xsl:template>
+
+
+ <xsl:template match="nav:node/nav:node">
<xsl:param name="parent-id"/>
<xsl:variable name="id" select="concat($parent-id, position())"/>
<xsl:call-template name="item">
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org