cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Michels <step...@apache.org>
Subject Re: <map:aggregate> from all files in a directory?
Date Fri, 16 May 2003 15:07:00 GMT


On Fri, 16 May 2003, Goetz Botterweck wrote:

> I want to configure the sitemap to extract from all files in a directory
> *WITHOUT* listing the files by name. Instead I would like to apply
> someform of wildcard.
>
> I know that I this works
>
> <map:match pattern="index.xml">
>    <map:aggregate element="files">
>      <map:part src="cocoon:/dir/file1.xml"/>
>      <map:part src="cocoon:/dir/file2.xml"/>
>    </map:aggregate>
>    <map:serialize type="xml"/>
> </map:match>
>
> However I would like to do something like this, without listing file1,
> file2, file3 etc.
>
> <map:match pattern="index.xml">
>    <map:aggregate element="files">
>      <map:part src="cocoon:/dir/file*.xml"/> <!-- wildcard -->
>    </map:aggregate>
>    <map:serialize type="xml"/>
> </map:match>
>
> Does somebody know how to do this?

Use the DirectoryGenerator to generate a list of cincludes, which
the CIncludeTransformer executes.

With <aggregate> doesn't it work.

Stephan.


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message