[SWS-159] XPath support needs Function and Variable resolvers... Created: 17/Jul/07  Updated: 25/Sep/07

Status: Reopened
Project: Spring Web Services
Component/s: XML
Affects Version/s: 1.0 RC2
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Ray Krueger Assignee: Arjen Poutsma
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SWS-157 Contribution: XPathProxy Closed

 Description   

Jaxp has the XPathVariableResolver and XPathFunctionResolver interfaces.
Jaxen has the VariableContext and FunctionContext interfaces.

Abstraction support for these two concepts (VariableResolver and FunctionResolver) should be added to the spring-xml modules XPath abstraction.



 Comments   
Comment by Ray Krueger [ 17/Jul/07 ]

I've created a VariableResolver interface and Jaxp/Jaxen adapters for it locally. I was looking at patching the concept into the XPathExpressionFactory, though I am not sure where Arjen would see this fitting exactly.

I think it needs to end up being part of the XPathExpressionFactory.createExpression method, but that might make it a bit lengthy and unwieldy. Another option is for it to be included in every "evaluate" method on XPathExpression. A third option would be a setter on XPathExpression. Each of these has a downside...

Comment by Arjen Poutsma [ 24/Sep/07 ]

Since SWS-157, the issue which needed this functionality, has been closed with Won't Fix, I will close this issue as well.

Comment by Ray Krueger [ 25/Sep/07 ]

This is a feature that should still be implemented in the XPath abstractions in Spring-xml package, regardless of SWS-157.
Granted it's not high priority, but it is relatively easy to pull off.

Comment by Arjen Poutsma [ 25/Sep/07 ]

Ok, I've reopened the issue. If people vote for it, I will implement it.

Generated at Fri Dec 15 08:20:28 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.