I don't know if it's a that good idea. I guess you're supposed to use
cinclude as soon as it becomes more complex

-----Message d'origine-----
De : Jorg Heymans [mailto:[EMAIL PROTECTED]
Envoy� : mercredi 26 novembre 2003 14:37
� : [EMAIL PROTECTED]
Objet : Re: aggregating defined resources


yup i have this workaround currently as well, too bad it's not supported...

Aggregation could be made a bit more clever (note i'm running 2.0.4) eg
straight support for generators, but i guess that's a different topic.

thanks for the confirmation!
Jorg

Nicolas Toper wrote:

> Well I've tried to do that and it would be really practical to do so with
> the ability to use a select inside.
>
> I didn't succeed.
>
> I think in that case you're supposed to use a C/Xinclude instead. It'll
give
> you more flexibility.
>
> If you want to call a resource do that:
>
> <resource name="test>
> ..
> </resource>
>
> <pipeline>
> ...
> <match pattern="mypipeline">
> <call resource="test>
> ...
> <match...
> <map:aggregate..
> <map:part src="cocoon:/mypipeline"/>
>
> -----Message d'origine-----
> De : Jorg Heymans [mailto:[EMAIL PROTECTED]
> Envoy� : mercredi 26 novembre 2003 14:17
> � : [EMAIL PROTECTED]
> Objet : aggregating defined resources
>
>
> Hi,
>
> How can i use a defined resource in an aggregation?
>
> I have
>
> <map:resource name="myresource">
>       .....................
> </map:resource>
>
>
> <map:aggregate element="aggregation">
>       <map:part src="file://{1}.xml"/>
>       <!-- call somehow the resource here -->
> </map:aggregate>
>
>
>  From the wiki i read that there is a resource part, but this is used to
> retrieve data from the classpath (unfortunate naming if you ask me)
> resource://class-path-context/foo/bar
>
>
> Is this possible?
>
> Thanks
> Jorg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to