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 2004/02/03 17:20:55 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/xslt/menu menu2xhtml.xsl
andreas 2004/02/03 08:20:55
Modified: src/webapp/lenya/xslt/menu menu2xhtml.xsl
Log:
added support for block titles
Revision Changes Path
1.17 +12 -6 cocoon-lenya/src/webapp/lenya/xslt/menu/menu2xhtml.xsl
Index: menu2xhtml.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/menu/menu2xhtml.xsl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- menu2xhtml.xsl 27 Nov 2003 13:08:59 -0000 1.16
+++ menu2xhtml.xsl 3 Feb 2004 16:20:55 -0000 1.17
@@ -190,13 +190,19 @@
<!-- match blocks with not area='false' -->
<xsl:template match="menu:block">
- <xsl:apply-templates select="menu:item[not(@info = 'false') and starts-with($completearea, 'info') or not(@*[local-name() = $completearea] = 'false') and not(starts-with($completearea, 'info'))]"/>
+ <xsl:apply-templates select="menu:title"/>
+ <xsl:apply-templates select="menu:item[not(@info = 'false') and starts-with($completearea, 'info') or not(@*[local-name() = $completearea] = 'false') and not(starts-with($completearea, 'info'))]"/>
- <xsl:if test="position() != last()">
- <div class="lenya-menubar-separator">
- <img src="{$image-prefix}/pixel.gif" height="1" alt="" />
- </div>
- </xsl:if>
+ <xsl:if test="position() != last()">
+ <div class="lenya-menubar-separator">
+ <img src="{$image-prefix}/pixel.gif" height="1" alt="" />
+ </div>
+ </xsl:if>
+ </xsl:template>
+
+
+ <xsl:template match="menu:title">
+ <span class="mI"><strong><xsl:apply-templates/></strong></span>
</xsl:template>
<!-- match items with not area='false' -->
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org