Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1447

XPath exists/not exists operator with child axis

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • jackrabbit-core, xpath
    • None
    • 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.

      Attachments

        1. asf-jackrabbit-tests_src.zip
          7 kB
          Frederic Laugier

        Activity

          People

            Unassigned Unassigned
            hint Frederic Laugier
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: