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

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

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: jackrabbit-core, xpath
    • Labels:
      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.

      1. patch.txt
        6 kB
        Christoph Kiehl

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Randy Simon
            • Votes:
              5 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development