[
https://issues.apache.org/jira/browse/JCR-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471888
]
Randy Simon commented on JCR-247:
---------------------------------
This feature has saved me. However, I think there may still be some issues.
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.
Is this supported? Should this bug be re-opened? Thanks.
> Child axis support for XPath predicates
> ---------------------------------------
>
> Key: JCR-247
> URL: https://issues.apache.org/jira/browse/JCR-247
> Project: Jackrabbit
> Issue Type: Improvement
> Components: xpath
> Reporter: Jukka Zitting
> Fix For: 1.2.1
>
>
> It seems that Jackrabbit currently only supports the attribute axis in XPath
> predicates. Support for the child axis would be a nice addition.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.