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()... WDYT?

JXTemplate can serialize DOM objects for you:

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

...

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


Should do the trick.

        Ugo

--
Ugo Cei - http://beblogging.com/

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to