cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <pro...@apache.org>
Subject Re: [RFI] Garbage
Date Wed, 18 Jun 2003 21:17:05 GMT
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:
>
> <document>
>   #foreach $header in {request/headers}
>     #if {starts-with($header/name, 'X-'}
>       <paragraph bold="true">
>     #else
>       <paragraph>
>     #end
>       The header called &quot;{$header/name}&quot;
>       has value &quot;{$header/value}&quot;
>     </paragraph>
>   #end
> </document>

ah, neat! :)

of course, why not use Jelly with JXPath as the EL?
-pete


Mime
View raw message