cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: aggregating defined resources
Date Wed, 26 Nov 2003 13:36:46 GMT
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:jh@domek.be]
> Envoyé : mercredi 26 novembre 2003 14:17
> À : users@cocoon.apache.org
> 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: 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


Mime
View raw message