cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Echoes <ech...@free.fr>
Subject Re: Output escaping
Date Tue, 06 Jun 2000 14:52:22 GMT
Didier VILLEVALOIS wrote:
> 
> Hi Echoes,
> 
> This is because of the XSPPage.xspExpr() which try to use the content of
> your xsp:expr as it was returning: (cf XSPPage.java line 136-168)
> 1) a DOM node
> 2) an array (recursively call xspExpr())
> 3) convertible to node (i.e. an XNode)
> and finaly 4) converts it to a string and creates a text node of it.
> 
> The last case is the one that apply to you. As text nodes can't contain <
> and >, Document.createTextNode() converts them to &lg; and &lt;.
> 
> Your toXML() method should build a dom tree instead of an xml String. And
> this would work great !! :-)
> 
> Didier

  Thank you. Can you show me an example ?

	Fabrice

Mime
View raw message