You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Neu <pe...@gmx.net> on 2006/01/19 09:36:36 UTC

HowTo: Further process document object retrieved from flow

Hello,

I think my last post was not precise enough. :o/ 
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? 

Cheers,
Pete



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


Re: HowTo: Further process document object retrieved from flow

Posted by Joerg Heinicke <jo...@gmx.de>.
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