Alex, Thanks a bunch! I didnt know we could use jcr:like with fn:name() now and on top of that it would have never occurred to me to put the '*[jcr:like(fn:name(),"9__")]' inside the path structure. This worked great. Neil -- View this message in context: http://jackrabbit.510166.n4.nabble.com/XPath-Query-Help-tp3306804p3306891.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.