cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <>
Subject Re: generate XML from flowscript
Date Thu, 05 Aug 2004 09:50:39 GMT
Il giorno 05/ago/04, alle 03:39, Mark Lundquist ha scritto:

> I was kinda surprised to find nothing in Cocoon to do this, and even 
> Google came up empty-handed.  I've been thinking of writing a 
> generator that would take the DOM tree (and/or an InputStream and/or 
> String) in the context object, just like the "bizData" to 
> JXTemplateGenerator, and then just plumb that in to its xmlConsumer.  
> So then I could call that pipeline from flowscript using sendPage()... 

JXTemplate can serialize DOM objects for you:

cocoon.sendPage("view", { "dom", document });


<jx:out value="#{dom/*}"/>

Should do the trick.


Ugo Cei -

View raw message