forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Jose Pablos <>
Subject [PATCH] directory2book support for n-levels
Date Wed, 02 Jul 2003 15:55:22 GMT
Hi There,
The directory2book style sheet only works with menu-items that are in 
the same level ie:

on navigation.xmap:
     <map:match pattern="subdir/book-*">
      <map:generate type="directory" src="content/xdocs/subdir">
       <map:parameter name="dateFormat" value="yyyy-MM-dd hh:mm" />
       <map:parameter name="depth" value="10" />
      <map:transform src="resources/stylesheets/directory2book.xsl" />
      <map:serialize type="xml"/>

Only the links on the xdocs/subdir would work. If you created 
xdocs/subdir/test directory and add a file there, the href attribute 
will be pointed to xdocs/subdir instead.

So to fix this problem and allow a multilevel support I got a patch for 
it, I know that it is far from perfect but I got it working.

Can anyone review this code and add it to the CVS for me?



View raw message