Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 840 invoked from network); 19 Dec 2003 18:01:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Dec 2003 18:01:20 -0000 Received: (qmail 27164 invoked by uid 500); 19 Dec 2003 18:01:01 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 27129 invoked by uid 500); 19 Dec 2003 18:01:00 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 27096 invoked from network); 19 Dec 2003 18:01:00 -0000 Received: from unknown (HELO mx.4dconcept.fr) (195.134.212.162) by daedalus.apache.org with SMTP; 19 Dec 2003 18:01:00 -0000 Received: from pc-016.4dconcept.fr (mx.4dconcept.fr [195.134.212.162]) by mx.4dconcept.fr (Postfix) with ESMTP id EAA5A1781E for ; Fri, 19 Dec 2003 18:56:31 +0100 (CET) Message-Id: <5.2.0.9.2.20031219185109.023b1440@10.0.0.162> X-Sender: lcrine@10.0.0.162 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Fri, 19 Dec 2003 19:00:43 +0100 To: users@cocoon.apache.org From: Lionel Crine Subject: Re: Disable escaping in a Java string in XSP In-Reply-To: References: <5.2.0.9.2.20031219162043.00b1a610@10.0.0.162> <5.2.0.9.2.20031219162043.00b1a610@10.0.0.162> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N For my part, I use these method because I need to get a string and made a=20 request into an XML base. So, I do not parse the String after. I suggest you to look at the util.xsl of your cocoon. There is a link with= =20 the method XSPUtil of cocoon. Also see the API :=20 http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/language/m= arkup/xsp/XSPUtil.html That's all I can do. At 18:03 19/12/2003 +0100, you wrote: >Hi Lionel, > >I bookmarked these usefull links, but I'm afraid this won't help me : the= =20 >unescaped String will be re-escaped by the Cocoon serializer... > >I must parse the String and "Saxize" '\n' characters in >contentHandler.startElement("br"); >contentHandler.endElement("br"); > >Maybe some xsp utils could do that, but I didn't found... > and brothers only work with full xml documents... > >-- >Olivier > >On 19/12/2003 16:28, Lionel Crine wrote: >>Hi, >>I don >>I was looking for the oppoite of your question and I have found some=20 >>useful methods in common-lang-2.0. >>You can get it there : >>http://jakarta.apache.org/site/binindex.cgi?Preferred=3Dhttp%3A%2F%2Fapach= e.crihan.fr%2Fdist=20 >> >>In StringEscapeUtils, you ll find some unescape methods like=20 >>unescapeXm= l(Strin= g=20 >>str) >>You can find the API there : >>http://www.generationjava.com/maven/jakarta-commons/lang/apidocs/index.htm= l >>or inside the jar. >> >>Hope that Help. >>Lionel >> >> >> >>At 14:01 19/12/2003 +0100, you wrote: >> >>>Hi all ! >>> >>>I would like to output a java String in an XSP page, containing some=20 >>>html tags that I would like not to be escaped. >>> >>>How could it be possible ? >>> >>>I tried , but it seems only to work with full XML=20 >>>document, not a fragment. >>> >>>To be more precise, my contains "\n" caracters that I want to translate= =20 >>>to
for html output. >>> >>>Thanks, >>> >>>-- >>>Olivier BILLARD > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >For additional commands, e-mail: users-help@cocoon.apache.org Lionel CRINE Ing=E9nieur Syst=E8mes documentaires Soci=E9t=E9 : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org