You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sternath Elmar <El...@icn.siemens.de> on 2002/06/14 17:59:39 UTC

aggregation with different generators

Hi,

I would like to know if it's possible to use self-implemented generators inside an aggregation, something like:

<map:aggregate element="SCWPage">
	<map:part type="UploadGenerator" src="http://scw_de:scw_xx@mhha7txc.mchh.siemens.de:8888/BOLServlet/ProductService.uploadDocument">
</map:aggregate>

Regards,
Elmar

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: aggregation with different generators

Posted by Per Kreipke <pe...@onclave.com>.
> I would like to know if it's possible to use self-implemented
> generators inside an aggregation, something like:
>
> <map:aggregate element="SCWPage">
> 	<map:part type="UploadGenerator"
> src="http://scw_de:scw_xx@mhha7txc.mchh.siemens.de:8888/BOLServlet
> /ProductService.uploadDocument">
> </map:aggregate>

I've wanted to do the same thing but after looking through the sitemap's
code generator (sitemap.xsl), I don't think it's that easy.

However, you can just set up different pipelines or matchers to achieve some
of what you want:

<map:match pattern="foo.data">
   <map:generate type="UploadGenerator"
src="http://scw_de.....uploadDocument" />
   <map:serialize type="xml" />
</map:match>

<map:match pattern="whatever">
	<map:aggregate element="SCWPage">
		<map:part src="cocoon:/foo.data" />
	</map:aggregate>
	<map:serialize type="xml" />
</map:match>

Per


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>