svn commit: r595181 - in /lenya/trunk/src/modules/menubar: sitemap.xmap xslt/menu2xslt-ajax.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Nov 14 17:43:23 2007
New Revision: 595181

URL: http://svn.apache.org/viewvc?rev=595181&view=rev
Log:
Adding some comments to menubar sitemap

Modified:
    lenya/trunk/src/modules/menubar/sitemap.xmap
    lenya/trunk/src/modules/menubar/xslt/menu2xslt-ajax.xsl

Modified: lenya/trunk/src/modules/menubar/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/menubar/sitemap.xmap?rev=595181&r1=595180&r2=595181&view=diff
==============================================================================
--- lenya/trunk/src/modules/menubar/sitemap.xmap (original)
+++ lenya/trunk/src/modules/menubar/sitemap.xmap Wed Nov 14 17:43:23 2007
@@ -24,6 +24,8 @@
 
     <map:pipeline internal-only="true">  
       
+      <!-- AJAX menubar -->
+      <!-- ajaxmenu/{1:pubId}/{2:area}/{3:...} -->
       <map:match pattern="ajaxmenu/*/*/**">
         <map:generate src="xslt/emptyMenu.xml"/>
         <map:transform src="fallback://lenya/xslt/menu/menubar2xhtml.xsl">
@@ -92,8 +94,8 @@
     
    <map:pipeline>
      
-     <!-- Lenya menubar -->
-     <!-- {publication-id}/{area}/... -->
+     <!-- Default Lenya menubar -->
+     <!-- {1:pubId}/{2:area}/{3:...} -->
      <map:match pattern="*/*/**">
        
        <map:aggregate element="menu" ns="http://apache.org/cocoon/lenya/menubar/1.0">

Modified: lenya/trunk/src/modules/menubar/xslt/menu2xslt-ajax.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/menubar/xslt/menu2xslt-ajax.xsl?rev=595181&r1=595180&r2=595181&view=diff
==============================================================================
--- lenya/trunk/src/modules/menubar/xslt/menu2xslt-ajax.xsl (original)
+++ lenya/trunk/src/modules/menubar/xslt/menu2xslt-ajax.xsl Wed Nov 14 17:43:23 2007
@@ -124,9 +124,10 @@
   </xsl:template>
   
 
-  <xsl:template match="xhtml:li[starts-with(@id, 'nav')]">
+  <xsl:template match="xhtml:div[@id = 'lenya-options']/xhtml:ul/xhtml:li">
     <xsl:copy>
-      <xsl:copy-of select="@*|node()"/>
+      <xsl:attribute name="id">nav<xsl:value-of select="position()"/></xsl:attribute>
+      <xsl:copy-of select="node()"/>
       <ul id="menu{position()}">
         <li id="menuPlaceholder{position()}"><img src="/modules/menubar/images/indicator.gif"/></li>
       </ul>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.