Vadim Gritsenko wrote:
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
Eeek. Do you really think people will write their introspectors to have a readable syntax?
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
