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.Pipe
lineUtil);
> var doc = pipelineUtil.processToDOM("my-pipeline", { foo:bar });
> // do something with "doc", such as binding to a woody form
That's perfect, thanks Sylvain!
Guido