Commons JXPath
  1. Commons JXPath
  2. JXPATH-132

"ends-with" XPath function is not implemented (although "starts-with" is)

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Labels:
      None

      Description

      XPathParser does not have handler for ends-with function. Also, XPathParserConstants does not contain a function constant so this probably was never implemented.

        Issue Links

          Activity

          Hide
          Emmanuel Bourg added a comment -

          ends-with() is now implemented on the trunk. Could you give it a try?

          Show
          Emmanuel Bourg added a comment - ends-with() is now implemented on the trunk. Could you give it a try?
          Hide
          Emmanuel Bourg added a comment -

          ends-with is defined in XPath 2.0, and JXPath implements only XPath 1.0. It's possible to work around this issue with the substring and length functions.

          http://docs.openlinksw.com/virtuoso/xpf_ends_with.html
          http://bytes.com/topic/xml/answers/726552-xpath-query-ends

          Show
          Emmanuel Bourg added a comment - ends-with is defined in XPath 2.0, and JXPath implements only XPath 1.0. It's possible to work around this issue with the substring and length functions. http://docs.openlinksw.com/virtuoso/xpf_ends_with.html http://bytes.com/topic/xml/answers/726552-xpath-query-ends

            People

            • Assignee:
              Unassigned
              Reporter:
              Jens
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development