commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Vivoda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JXPATH-161) negative index in xpath expression
Date Mon, 19 Aug 2013 18:40:51 GMT
Michele Vivoda created JXPATH-161:
-------------------------------------

             Summary: negative index in xpath expression
                 Key: JXPATH-161
                 URL: https://issues.apache.org/jira/browse/JXPATH-161
             Project: Commons JXPath
          Issue Type: Bug
    Affects Versions: 1.3, 1.4
            Reporter: Michele Vivoda
            Priority: Minor


JXPath seems to handle incorrectly negative indexes in XPath expressions 

Given xml <root><a>1<a></root> and xpath "/root/a[-1]"

Xalan and Saxon match no node

JXPath matches <a>.

The same happens also for expressions "/root/a[-2]" and "/root/a[0]" (in XPath index starts
with one)


This problem does not affect xpath on beans, that seems to work correctly, but is present
when performing xpath on DOM.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message