kpiroumian 2002/06/08 15:53:57
Modified: src/documentation/stylesheets book2menu.xsl
src/documentation sitemap.xmap
Log:
Improvements to menu:
- fixed selected menu item indication for nested levels
- added heigh and width to the separator image
- added a:hover CSS style and changed selected item's color
Revision Changes Path
1.8 +1 -1 xml-cocoon2/src/documentation/stylesheets/book2menu.xsl
Index: book2menu.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/documentation/stylesheets/book2menu.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- book2menu.xsl 6 Jun 2002 20:00:30 -0000 1.7
+++ book2menu.xsl 8 Jun 2002 22:53:57 -0000 1.8
@@ -24,7 +24,7 @@
<xsl:variable name="encLabel" select="NetUtils:encodePath(@label)"/>
<tr>
<td valign="top" bgcolor="#959595" background="images/label-background_b.gif">
- <img src="images/separator.gif"/><br/>
+ <img src="images/separator.gif" height="6" width="120"/><br/>
<span class="menutitle"><xsl:value-of select="@label"/></span></td>
</tr>
<xsl:apply-templates/>
1.17 +26 -9 xml-cocoon2/src/documentation/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/documentation/sitemap.xmap,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- sitemap.xmap 6 Jun 2002 17:06:03 -0000 1.16
+++ sitemap.xmap 8 Jun 2002 22:53:57 -0000 1.17
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-
+<!-- $Id: sitemap.xmap,v 1.17 2002/06/08 22:53:57 kpiroumian Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
@@ -60,6 +60,18 @@
</map:view>
</map:views>
+
+<!-- =========================== Resources ================================= -->
+ <map:resources>
+ <map:resource name="book">
+ <map:generate src="xdocs/{../1}book.xml"/>
+ <map:transform src="stylesheets/book2menu.xsl">
+ <map:parameter name="use-request-parameters" value="true"/>
+ <map:parameter name="resource" value="{resource}.html"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:resource>
+ </map:resources>
<!-- =========================== Pipelines ================================= -->
@@ -71,14 +83,19 @@
<map:redirect-to uri="index.html"/>
</map:match>
- <map:match pattern="**book-**.xml">
- <map:generate src="xdocs/{1}book.xml"/>
- <map:transform src="stylesheets/book2menu.xsl">
- <map:parameter name="use-request-parameters" value="true"/>
- <map:parameter name="resource" value="{2}.html"/>
- </map:transform>
- <map:serialize type="xml"/>
- </map:match>
+ <!-- Process book.xml for nested levels -->
+ <map:match pattern="**book-**/*.xml">
+ <map:call resource="book">
+ <map:parameter name="resource" value="{3}" />
+ </map:call>
+ </map:match>
+
+ <!-- Process book.xml -->
+ <map:match pattern="**book-**.xml">
+ <map:call resource="book">
+ <map:parameter name="resource" value="{2}" />
+ </map:call>
+ </map:match>
<!-- the main ToDo doc -->
<map:match pattern="body-todo.xml">
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]