Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-159

XPath support needs Function and Variable resolvers...

    Details

    • Type: New Feature
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0 RC2
    • Fix Version/s: None
    • Component/s: XML
    • Labels:
      None

      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.

        Issue Links

          Activity

          Hide
          raykrueger Ray Krueger added a comment -

          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...

          Show
          raykrueger Ray Krueger added a comment - 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...
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

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

          Show
          arjen.poutsma Arjen Poutsma added a comment - Since SWS-157 , the issue which needed this functionality, has been closed with Won't Fix, I will close this issue as well.
          Hide
          raykrueger Ray Krueger added a comment -

          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.

          Show
          raykrueger Ray Krueger added a comment - 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.
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

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

          Show
          arjen.poutsma Arjen Poutsma added a comment - Ok, I've reopened the issue. If people vote for it, I will implement it.

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              raykrueger Ray Krueger
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: