cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: <map:aggregate> from all files in a directory?
Date Fri, 16 May 2003 15:03:08 GMT
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.

You can use a combination of the DirectoryGenerator and the
CIncludeTransformer.

HTH,
Andreas

> 
> 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?
> TIA, Goetz



---------------------------------------------------------------------
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