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

Support for the decendant-or-self axis in XPath predicates

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.1
    • None
    • jackrabbit-core, xpath
    • None

    Description

      For example,
      I want to find the root of a node tree that contains a node with a specified id. The child node may be n layers deep in the node tree. In my specific case, I know how deep it is so

      //element(*, my:foo)[bar/*/*/*/*/@jcr:uuid = 'abc']

      finds the node of type my:foo that contains the child node with id 'abc'.

      Now, I would like to generalize this so I thought i could simply do the following.
      //element(*, my:foo)[bar//*/@jcr:uuid = 'abc']

      but this does not work.

      Attachments

        1. patch.txt
          6 kB
          Christoph Kiehl

        Issue Links

          Activity

            People

              Unassigned Unassigned
              randy_simon Randy Simon
              Votes:
              5 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: