cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: Expression languages (was Re: [RT] StringTemplate: The answer to our templating needs?)
Date Fri, 29 Oct 2004 13:35:11 GMT


> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim@reverycodes.com]
> 
> Bertrand Delacretaz wrote:
> > Le 29 oct. 04, à 15:05, Vadim Gritsenko a écrit :
> >
> >> Sylvain Wallez wrote:
> >>
> >>> ...Technically this should be possible, but how do we write something
> >>> like "widget.getChild("foo").getAttribute("bar")" in XPath?
> >>
> >>
> >> Tecnically, this will be
> >>   getAttribute(getChild($widget, "foo"), "bar")
> >>
> >> in JXPath. Not exactly easy to read, but possible :)
> >
> >
> > And technically in plain XPath it would be something like
> >
> >   //widget/foo/@bar
> 
> IIUC, JXPath has pluggable introspectors, so it above can be reduced to:
> 
>    $widget/foo/@bar
> 
> 
> Vadim

Or maybe one or more DynamicPropertyHandlers are enough (or are those the same as the introspectors
you're talking about?).

Bart.

Mime
View raw message