jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <mreut...@adobe.com>
Subject RE: Converting XPath to SQL-2
Date Mon, 09 Apr 2012 20:03:01 GMT
Hi,

>     /jcr:root/content//*[@test='hello']
> 
> This XPath query includes the node "content".

that's incorrect. /jcr:root/content//* only selects descendants of content,
but not content itself.

there's a XPath test bed you can use here:
http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm

try the expression: parent//*

Regards
 Marcel

Mime
View raw message