Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 20582 invoked from network); 6 Jun 2000 14:40:55 -0000 Received: from p-biset.issy.cnet.fr (139.100.0.33) by locus.apache.org with SMTP; 6 Jun 2000 14:40:55 -0000 Received: from l-mhs1.lannion.cnet.fr ([161.104.1.59]) by p-biset.issy.cnet.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id MD0PN32L; Tue, 6 Jun 2000 16:40:40 +0200 Received: from free.fr (ldiv85.lannion.cnet.fr [161.104.14.69]) by l-mhs1.lannion.cnet.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id KZDJ30FR; Tue, 6 Jun 2000 16:39:50 +0200 Sender: desrefa Message-ID: <393D1026.199326B1@free.fr> Date: Tue, 06 Jun 2000 16:52:22 +0200 From: Echoes Organization: Disorganized X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.5-15smp i686) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Output escaping References: <4474929FF77AD311BB260090276CE9240142292D@mail-paris.sqli.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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 ≶ and <. > > 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