cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinhard_po...@gmx.net>
Subject RE: <map:aggregate> from all files in a directory?
Date Fri, 16 May 2003 15:07:26 GMT
Goetz,

Instead of <map:aggregate .../> I would use the directory generator, a
stylesheet that transforms the result of the directory generator in
valid cinclude elements and then you could use the CInclude Transformer.

Reinhard

> -----Original Message-----
> From: Goetz Botterweck [mailto:botterwe@uni-koblenz.de] 
> Sent: Friday, May 16, 2003 4:57 PM
> To: Cocoon Users ML
> Subject: <map:aggregate> from all files in a directory?
> 
> 
> 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?
> TIA, Goetz
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 


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