cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merico Raffaele <raffaele.mer...@less.ch>
Subject AW: JXTemplate and xmlize
Date Wed, 01 Feb 2006 15:49:31 GMT
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:nacho.jimenez@gmail.com]
> Gesendet: Mittwoch, 1. Februar 2006 16:36
> An: users@cocoon.apache.org
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


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


Mime
View raw message