jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Simon (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-740) Support for the decendant-or-self axis in XPath predicates
Date Mon, 12 Feb 2007 16:02:06 GMT
Support for the decendant-or-self axis in XPath predicates

                 Key: JCR-740
                 URL: https://issues.apache.org/jira/browse/JCR-740
             Project: Jackrabbit
          Issue Type: Improvement
          Components: xpath
    Affects Versions: 1.2.1
            Reporter: Randy Simon

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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message