Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 66209 invoked by uid 500); 18 Jun 2003 21:17:10 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 66196 invoked from network); 18 Jun 2003 21:17:10 -0000 Received: from unknown (HELO wahoo) (65.196.130.133) by daedalus.apache.org with SMTP; 18 Jun 2003 21:17:10 -0000 Received: from leeler.oceania ([192.168.1.113] helo=apache.org) by wahoo with asmtp (Exim 3.35 #1 (Debian)) id 19SkIu-00007S-00 for ; Wed, 18 Jun 2003 17:17:16 -0400 Date: Wed, 18 Jun 2003 17:17:05 -0400 X-Image-Url: http://fotap.org/~osi/mail/peter.royal@pobox.com Subject: Re: [RFI] Garbage Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Peter Royal To: cocoon-dev@xml.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <36731658-A1D2-11D7-B386-000393B61B56@apache.org> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wednesday, June 18, 2003, at 01:34 PM, Pier Fumagalli wrote: > Concise question, concise answer: > > Forget the XML syntax, use JXPath instead of JEXL for expressions... > Like: > > > #foreach $header in {request/headers} > #if {starts-with($header/name, 'X-'} > > #else > > #end > The header called "{$header/name}" > has value "{$header/value}" > > #end > ah, neat! :) of course, why not use Jelly with JXPath as the EL? -pete