[ 
https://issues.apache.org/jira/browse/AXIOM-367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070132#comment-13070132
 ] 

Andreas Veithen commented on AXIOM-367:
---------------------------------------

There are actually two aspects:

1. Axiom's XPath API is strongly coupled to Jaxen. It would indeed be a good 
idea to change that and to introduce an abstract API that would eventually 
allow to replace Jaxen (which doesn't seem to be under active development) by 
another XPath implementation. Instead of defining a completely new Axiom 
specific API for this, the best approach is probably to reuse (parts of) the 
javax.xml.xpath API, which is already designed to be object model independent.

2. Adding XPath 2.0 support. Creating and maintaining an Axiom specific 
implementation of XPath 2.0 is probably out of scope for this project. 
Therefore we would have to identify an existing XPath 2.0 implementation that 
can be integrated with Axiom. For implementations of the Axiom object model 
that also implement DOM, one could reuse an existing DOM based XPath 
implementation. For LLOM one would have to find an XPath 2.0 implementation 
that has an abstraction layer to support multiple object models. I'm not aware 
of any XPath implementation that offers this, but I didn't do an extensive 
search.

> Improving AXIOMXPath to support XPath 2.0 
> ------------------------------------------
>
>                 Key: AXIOM-367
>                 URL: https://issues.apache.org/jira/browse/AXIOM-367
>             Project: Axiom
>          Issue Type: Improvement
>            Reporter: Heshan Suriyaarachchi
>
> AXIOMXPath is developed by extending org.jaxen.BaseXPath. Since Jaxen is only 
> supporting Xpath 1.0, Axiom XPath will also be only supporting XPath 1.0. It 
> would be really useful if AXIOMXPath is improved to support XPath 2.0. It 
> will be beneficial for the projects which are using AXIOMXPath. eg. Apache 
> Synapse is also extending AXIOMXPath in it's 
> org.apache.synapse.util.xpath.SynapseXPath implementation. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to