jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: AW: Strange behaviour between sql and xpath search
Date Tue, 10 Apr 2007 10:18:37 GMT
KÖLL Claus wrote:
> found my own failure ;-)
> the scope in xpath must be "." not "*"
> //element(*, nt:base)[jcr:contains(., '*.txt')] works now

and here's the reason why: * matches all child nodes of the context node, while 
. matches the context node itself.

there's a little tool online that maps SQL to XPath and vice versa. you can even 
see the jackrabbit internal representation of the query:



View raw message