On Wed, 2005-11-16 at 14:36 +0100, Askild Aaberg Olsen wrote:
> cocoon.erard wrote:
>
> >hello,
> >
> >I've e dom Element and like to start the pipeline processing from
> this Element. How can I do that? Do I have to write a Generator?
> >
> >Regards
> >
> >Mike
> >
> >
> >
> If it's from flow, you can use pass the dom element to a jx-template
> generator like this:
>
> In flow:
> cocoon.sendPage("pipelineWithJX", {"domElement" : domElement})
>
> In jx:
>
> <jx:template
> xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">#{domElement}</jx:template>
Another option: start the pipeline with:
<map:generate src="xmodule:flow-attr:domElement"/>
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]