Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-1447

XPath exists/not exists operator with child axis

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: jackrabbit-core, xpath
    • Labels:
      None
    • Environment:
      Linux 64-Bit (openSUSE 10.3) using Java 1.5.0_12 64-Bit

      Description

      There seems to be an issue regarding the Exists / Not exists XPath operators.

      Given the following test contents :

      + nodeA

      • prop1 = 'value'
        + child
      • subprop1 = 'something'

      + nodeB

      • prop1 = 'value'
        + child

      + nodeC

      • prop1 = 'value'

      The query //*[child/@subprop1)] returns nodeA.

      The query //*[child/not(@subprop1)] returns nodeB.

      The query //*[not(child/@subprop1)] returns only nodeB, it should return nodeC as well.

        Activity

        Hide
        Frederic Laugier added a comment -

        A test case showing the issue (the test data are in French)

        Show
        Frederic Laugier added a comment - A test case showing the issue (the test data are in French)
        Hide
        Jukka Zitting added a comment -

        Classified as a feature request, as such queries are not required by JCR or currently supported by Jackrabbit.

        Show
        Jukka Zitting added a comment - Classified as a feature request, as such queries are not required by JCR or currently supported by Jackrabbit.
        Hide
        Martin Zdila added a comment -

        Also //aaa[nonexistingnode] returns aaa node even when it has no nonexistingnode childnode.

        Show
        Martin Zdila added a comment - Also //aaa [nonexistingnode] returns aaa node even when it has no nonexistingnode childnode.

          People

          • Assignee:
            Unassigned
            Reporter:
            Frederic Laugier
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development