cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@betaversion.org>
Subject Re: processPipelineTo[Stream|SAX|DOM]
Date Fri, 12 Dec 2003 17:54:45 GMT
On 11 Dec 2003, at 21:39, Sylvain Wallez wrote:

> One more new feature ;-)
>
> Following the thread "extending FOM" about extending processPipelineTo  
> to SAX and DOM, I wrote a utility class that handles all this.
>
> This class is totally decorrelated from the FOM and the "cocoon"  
> object and provides the processToDOM(), processToSAX() and  
> processToStream() methods. Here's a usage example to get a DOM:
>
>  var pipelineUtil =  
> cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.Pip 
> elineUtil);
>  var doc = pipelineUtil.processToDOM("my-pipeline", { foo:bar });
>  // do something with "doc", such as binding to a woody form
>
> This class replaces and extends "cocoon.processPipelineTo". Being  
> implemented totally externally to the flow engine, it shows that this  
> method isn't actually core to the FOM.
>
> So what about deprecating "cocoon.processPipelineTo" from the official  
> FOM and direct users to the new class

Ohhhh Yes... :-) :-)

	Pier


Mime
View raw message