You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2006/03/19 12:10:14 UTC

Re: HowTo: Further process document object retrieved from flow

On 19.01.2006 09:36, Peter Neu wrote:
> In my flow I do some form binding with an xml document. The result of the
> form I save to an object of this type:
>  
> javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().
> newDocument()
> 
> I put the document in the flow context
> 
> cocoon.sendPage("result-pipeline", document: doc "};
> 
> Now I want do process the xml like this:
> 
> <map:match pattern="result-pipepline">
>        <map:generate type="file" src="{flow-attribute:doc}"/>
>        
>        <map:serialize type="xml"/>
>      </map:match>
> 
> How do I have to adjust the statement to further process the retrieved
> document? 

There is an XMLizable interface and an XModule source:
http://wiki.apache.org/cocoon/XModuleSource.

Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org