You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thomas Kjeldahl Nilsson <tn...@marcello.no> on 2004/08/16 13:12:09 UTC

Returning markup strings from jexl\jxtemplate-called functions?

Hello,

I'm stuck on something here. Hope any of you can shed light on it..

I have a jxtemplate page. In this page I call a function on a java 
object, like so:

${someObject.getHTMLText()}

someObject.getHTMLText returns a String containing text and markup.
When called from another java object, getHTMLText returns:

  "This is html markup <br>"

However, when I call getHTMLText() from a template, the output ends up 
like this:

  This is html markup &lt;br&gt;

Is there some way of forcing the jxtemplate call to treat the function 
output as xml, not a text string
(ie outputting xml\html markup without "translating" the xml\markup 
elements)?



Regards,
Thomas Kjeldahl Nilsson
Oslo, Norway

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