Hi,

I've managed to add custom location step functions to jaxen, to allow xpath
expressions like thing/ext:related-thing()[@color='red']. The idea is that a
function may generate the elements in a step, e.g. to support navigating
across idref's or increase speed.

Main features of the implementation:
- add support for this in the XPathHandler interface
- make the saxpath parser recognize the new syntax
- add support in XPathFactory, DefaultXPathFactory and JaxenHandler
- add new DefaultFunctionStep class, extending DefaultStep which uses the
custom function to generate elements to iterate over (the axis is ignored)

Any interest in adding this to Jaxen? Anyone care to validate the
implementation?

Hallvard Trętteberg, stipendiat ved IDI, NTNU
http://www.idi.ntnu.no/~hal, mailto:[EMAIL PROTECTED], phone:+47 7359 3443


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to