> 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:[EMAIL PROTECTED]: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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to