Ciao Nacho
Use the following code, it should work cocoon with 2.1.x:
In flowscript:
var xmlizableResult = new org.apache.cocoon.xml.StringXMLizable(xmlString);
cocoon.sendPage(uri, {xmlizable: xmlizableResult});
In JX:
<jx:template xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<jx:out value="${xmlizable}"/>
</jx:template>
Hope this helps ... Raffaele
> -----Ursprüngliche Nachricht-----
> Von: Nacho Jimenez [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 1. Februar 2006 16:36
> An: [email protected]
> Betreff: JXTemplate and xmlize
>
> Hello!
>
> I'm trying to use the xmlize feature of a <jx:eval /> in a JXTemplate,
> but cocoon 2.1.X does not handle it, only cocoon 2.2 does.. ¿Someone
> knows a workarround to this problem? I'm in a bit of a tight schedule,
> and it's a full blown project, so I'd rather not migrate to dev-2.2.
>
> In flowscript:
>
> var textWithHTML="<p>Hello <b>World</b>!</p>"
> cocoon.SendPage("myJxPage",{text: textWithHTML});
>
> ¿Some way of getting the formatted text aout of there?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]