Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 19700 invoked from network); 5 Jul 2007 18:29:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2007 18:29:16 -0000 Received: (qmail 84146 invoked by uid 500); 5 Jul 2007 18:29:15 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 84074 invoked by uid 500); 5 Jul 2007 18:29:14 -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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 84063 invoked by uid 99); 5 Jul 2007 18:29:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 11:29:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.140.232.141] (HELO mail1.triplemind.com) (195.140.232.141) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 11:29:08 -0700 Received: from noname.local (adsl-dc-4ee73.adsl.wanadoo.nl [85.151.12.115]) (authenticated bits=0) by mail1.triplemind.com (8.12.8/8.12.8) with ESMTP id l65ISWcG005588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Jul 2007 18:28:33 GMT Message-ID: <468D3852.6020101@triplemind.com> Date: Thu, 05 Jul 2007 20:28:34 +0200 From: "Christoph Gaffga (triplemind.com)" Organization: Triplemind Internet Services OHG User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: users@cocoon.apache.org CC: "Imran Pariyani (Triplemind.com)" Subject: Re: [Jexl] linebreaks in jexl expressions References: <468BDF41.9000604@triplemind.com> <20070705140859.GJ30928@localhost.localdomain> In-Reply-To: <20070705140859.GJ30928@localhost.localdomain> X-Enigmail-Version: 0.95.2 OpenPGP: id=5EF8710D; url=http://www.triplemind.com/pgp/cgaffga-at-triplemind-com_pub.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-triplemind.com-MailScanner-Information: Please contact the ISP for more information X-triplemind.com-MailScanner: Found to be clean X-triplemind.com-MailScanner-SpamCheck: not spam, SpamAssassin (score=-99.904, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 1.90, USER_IN_WHITELIST -100.00) X-MailScanner-From: cgaffga@triplemind.com X-Virus-Checked: Checked by ClamAV on apache.org hi, > Did you try all the naive workarounds? yes, we tried most of those, and now tested the rest. For all of them we get NullPointerException. But I think it's a Jexl issue. kind regards, Christoph Tobia wrote: > Christoph Gaffga (triplemind.com) wrote: >> But the encoding of the linebreak in JX Generator expressions seems to >> be a problem: >> >>

${value.indexOf('\n')}

>> >>

${value.indexOf(' ')}

> > Did you try all the naive workarounds? > > ${value.indexOf('\n')} > ${value.indexOf('\\n')} > ${value.indexOf('\\\n')} > ${value.indexOf('\\\\n')} > > ${value.indexOf(' ')} > ${value.indexOf('&#10;')} > ${value.indexOf('&amp;#10;')} > > ${value.indexOf('\ ')} > ${value.indexOf('\\ ')} > ${value.indexOf('\&#10;')} > ... > > Tobia --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org