forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Jose Pablos <che...@che-che.com>
Subject Re: directory generator
Date Fri, 03 Oct 2003 10:06:11 GMT
Dave Brondsema wrote:
> Can the directory generator
> (http://cocoon.apache.org/2.1/userdocs/generators/directory-generator.html)
> be used in forrest?  If so, could someone provide an example for me?
> 
> Thanks,

add this to menu.xmap:

   <map:generators default="file">
     <map:generator name="directory" 
src="org.apache.cocoon.generation.DirectoryGenerator" />
     </map:generators>



     <map:pipeline>
     <map:match pattern="YOURDIR/**book-*">
       <map:generate type="directory" src="content/xdocs/YOURDIR/{1}">
          <map:parameter name="dateFormat" value="yyyy-MM-dd hh:mm" />
          <map:parameter name="depth" value="2" />
          <map:parameter name="exclude" 
value="[.][^x[^m][^l]|~$|^my-images$" />
        </map:generate>
        <map:transform src="resources/stylesheets/directory2book.xsl" />
        <map:serialize type="xml"/>
     </map:match>
       </map:pipeline>


Cheers,
Cheche


Mime
View raw message