You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by go...@osmosis.gr on 2004/02/11 09:14:39 UTC
aggregate files that match in a request
hi people
i just want to ask if it's posible to aggregate
an (unknown) number of .xml files that match in a request
for example all the .xmls that are in a specific folder
or all files that match /content/*.xml
any hint?
--stavros
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: aggregate files that match in a request
Posted by Bert Van Kets <be...@vankets.com>.
Hi Stavros,
Use the Directory Generator to request the list of files and then use
CInclude to aggregate them.
IMHO that is the only way to do it.
HTH,
Bert
----- Original Message -----
From: <go...@osmosis.gr>
To: <us...@cocoon.apache.org>
Sent: Wednesday, February 11, 2004 9:14 AM
Subject: aggregate files that match in a request
>
> hi people
>
> i just want to ask if it's posible to aggregate
> an (unknown) number of .xml files that match in a request
>
> for example all the .xmls that are in a specific folder
> or all files that match /content/*.xml
>
>
> any hint?
>
> --stavros
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: aggregate files that match in a request
Posted by go...@osmosis.gr.
On Wed, 11 Feb 2004, Jan Hoskens wrote:
> You can get a filelist through the directory generator, then apply an
> xsl-stylesheet to create cinclude or xinclude tags and then apply the
> transformer for that include:
>
> 1) generate your filelist by directory generator
> 2) apply xsl that creates something like <cinclude:include src="file"/> or
> xinclude elements
> 3) map:transform type="cinclude" or "xinclude"
>
> Got it? (if not, just say so:), see cocoon docs/wiki for more info!)
>
> So that's a yes;-)
>
> Greetz,
> Jan
>
GREAT, GREAT
an other one time that u have just to keep jour think simple
thnx
--stavros
>
> ----- Original Message -----
> From: <go...@osmosis.gr>
> To: <us...@cocoon.apache.org>
> Sent: Wednesday, February 11, 2004 9:14 AM
> Subject: aggregate files that match in a request
>
>
> >
> > hi people
> >
> > i just want to ask if it's posible to aggregate
> > an (unknown) number of .xml files that match in a request
> >
> > for example all the .xmls that are in a specific folder
> > or all files that match /content/*.xml
> >
> >
> > any hint?
> >
> > --stavros
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: aggregate files that match in a request
Posted by Jan Hoskens <jh...@schaubroeck.be>.
You can get a filelist through the directory generator, then apply an
xsl-stylesheet to create cinclude or xinclude tags and then apply the
transformer for that include:
1) generate your filelist by directory generator
2) apply xsl that creates something like <cinclude:include src="file"/> or
xinclude elements
3) map:transform type="cinclude" or "xinclude"
Got it? (if not, just say so:), see cocoon docs/wiki for more info!)
So that's a yes;-)
Greetz,
Jan
----- Original Message -----
From: <go...@osmosis.gr>
To: <us...@cocoon.apache.org>
Sent: Wednesday, February 11, 2004 9:14 AM
Subject: aggregate files that match in a request
>
> hi people
>
> i just want to ask if it's posible to aggregate
> an (unknown) number of .xml files that match in a request
>
> for example all the .xmls that are in a specific folder
> or all files that match /content/*.xml
>
>
> any hint?
>
> --stavros
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org