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

          Jens created issue -
          Jens made changes -
          Field Original Value New Value
          Summary ends-with function not implemented (starts-with is) XPath "ends-with" XPath function is not implemented (although "starts-with" is)
          Description XPathParser does not have handler for ends-with function. Also, XPathParserConstants does not contain a function constant so this was probably just forgotten. XPathParser does not have handler for ends-with function. Also, XPathParserConstants does not contain a function constant so this probably was never implemented.
          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
          Emmanuel Bourg made changes -
          Summary "ends-with" XPath function is not implemented (although "starts-with" is) "ends-with" XPath function is not implemented (although "starts-with" is)
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Priority Blocker [ 1 ] Minor [ 4 ]
          Emmanuel Bourg made changes -
          Fix Version/s post-1.3 [ 12312254 ]
          Emmanuel Bourg made changes -
          Link This issue blocks JXPATH-67 [ JXPATH-67 ]
          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?
          Emmanuel Bourg made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Link This issue blocks JXPATH-67 [ JXPATH-67 ]
          Gavin made changes -
          Link This issue is depended upon by JXPATH-67 [ JXPATH-67 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          6d 9h 22m 1 Emmanuel Bourg 29/May/09 11:25

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development