cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: how to start pipeline processing from dom element
Date Wed, 16 Nov 2005 14:08:30 GMT
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
bruno@outerthought.org                          bruno@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