Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 80781 invoked from network); 11 Aug 2005 23:16:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 23:16:47 -0000 Received: (qmail 14534 invoked by uid 500); 11 Aug 2005 23:16:43 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 14520 invoked by uid 500); 11 Aug 2005 23:16:42 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 14507 invoked by uid 99); 11 Aug 2005 23:16:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 16:16:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [134.96.188.26] (HELO mail.dfki.de) (134.96.188.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 16:17:03 -0700 Received: from mail.dfki.de (localhost.dfki.uni-sb.de [127.0.0.1]) by localhost (Postfix) with ESMTP id C6B0EE4824; Fri, 12 Aug 2005 01:16:33 +0200 (CEST) Received: from [IPv6:::1] (dave.dfki.uni-sb.de [134.96.184.220]) by mail.dfki.de (Postfix) with ESMTP id 7D0EEE47CA; Fri, 12 Aug 2005 01:16:33 +0200 (CEST) In-Reply-To: <42FBD5BC.5070305@gmail.com> References: <42FBC422.2040300@gmail.com> <27ae60f166aefe7e69b48d252a1af689@activemath.org> <42FBD5BC.5070305@gmail.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <56e40caa195c0c97b957f45d7e69141c@activemath.org> Content-Transfer-Encoding: quoted-printable Cc: alfredo.ledezma@gmail.com From: Paul Libbrecht Subject: Re: [jelly] How to escape character '&' Date: Fri, 12 Aug 2005 01:16:31 +0200 To: "Jakarta Commons Users List" X-Mailer: Apple Mail (2.622) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N How do you know it ? When outputting the character "&" in XML, it has to be output as=20 "&"... I just tried the following: x${x} and this gave me: INFO: xa&a But note... I'm using log:info and not outputting to the XML-stream! Using getstatic, invokestatic and System.out.println should give you=20 the same result as well. Alternatively, peeling each character should help as well. Hope this helps. paul Le 12 ao=FBt 05, =E0 00:48, Guo, Jiaqi a =E9crit : > Thanks for reply. > > This doesn't seem to work. & is interpreted into &amp; when I=20= > set the value to the variable no matter the escapeText attribute is=20 > true or false. Wrapping with CDATA doesn't help either. > > > Regards > > Jiaqi > jiaqi.guo@gmail.com > http://www.cyclopsgroup.com > > > Paul Libbrecht wrote: > >> If you want exactly this sequence of characters you need exactly this=20= >> one: aaa&bbb&ccc >> >> hope that helps. >> >> paul >> >> >> Le 11 ao=FBt 05, =E0 23:33, Guo, Jiaqi a =E9crit : >> >>> I couldn't find the answer from the website. What I want to do is=20 >>> very simple. >>> ... >>> aaa&bbb&ccc >>> or >>> >>> >>> Thanks in advance. >>> >>> >>> >>> >>> Regards >>> >>> Jiaqi >>> >>> jiaqi.guo@gmail.com >>> http://www.cyclopsgroup.com >>> >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >>> For additional commands, e-mail: = commons-user-help@jakarta.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-user-help@jakarta.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org