Le 29 oct. 04, à 15:51, Sylvain Wallez a écrit :
Vadim Gritsenko wrote:
Bertrand Delacretaz wrote:
... 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
Eeek. Do you really think people will write their introspectors to have a readable syntax?
No. But we already do this for CForms and JavaScript. Why not for JXPath? It's totally feasible.
I'm a bit lost here (ok it's Friday ;-)
JXPath *does* actually do stuff like $bean/member/submember, right?
Yes, it does, if you have getMember() in $bean, and getSubmember() in $bean/member.
And according to its docs [1] it should also allow $bean/member/@submember and return the same result.
So, I don't see what we're talking about really - I must be missing something obviously ;-)
But we were talking about getChild("foo")...
Vadim
-Bertrand
[1] http://jakarta.apache.org/commons/jxpath/users-guide.html#Attributes