[ https://issues.apache.org/jira/browse/JCR-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507833 ]
Marcel Reutegger commented on JCR-740: -------------------------------------- Well, the problem with the current implementation is how the path is stored in the abstract query tree. Because it uses a Path instance in RelationQueryNode other axis than child are not possible currently. The correct solution is probably to replace the Path with a full fledged PathQueryNode. Anything else is rather a hack. > 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 > Attachments: patch.txt > > > 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.