You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mansour Al Akeel <ma...@gmail.com> on 2009/05/23 05:25:03 UTC
Regular expression for directory generator.
I need to generate a list of directories and xhtml files. I need to
include only directory that has an file called "index.xhtml". If it
doesn't have this file, this it shoud be ignored.
I am able to genrate a listing of the xhtml files but not the
directories:
<map:generate type="xpathdirectory" src="${site.contents.directory}/{1}">
<map:parameter name="depth" value="2"/>
<map:parameter name="include" value="\*/\.xhtml$"/>
<map:parameter name="xpath" value="/html/head/title"/>
<map:parameter name="xmlFiles" value="\.xhtml$"/>
</map:generate>
Any ideas ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Regular expression for directory generator.
Posted by Mansour Al Akeel <ma...@gmail.com>.
Ok, let's put it this way. When I use the include parameter with the
directory generator, the depth is reset to 1 no matter what I do. Is
this a bug, or an undocumented feature ? :)
On Sat May 23,2009 12:25 am, Mansour Al Akeel wrote:
> I need to generate a list of directories and xhtml files. I need to
> include only directory that has an file called "index.xhtml". If it
> doesn't have this file, this it shoud be ignored.
>
> I am able to genrate a listing of the xhtml files but not the
> directories:
>
> <map:generate type="xpathdirectory" src="${site.contents.directory}/{1}">
> <map:parameter name="depth" value="2"/>
> <map:parameter name="include" value="\*/\.xhtml$"/>
> <map:parameter name="xpath" value="/html/head/title"/>
> <map:parameter name="xmlFiles" value="\.xhtml$"/>
> </map:generate>
>
>
> Any ideas ?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org