jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Launay <sebastien.lau...@anyware-tech.com>
Subject Re: xpath queries with node names consisting of numbers?
Date Mon, 04 Aug 2008 08:21:31 GMT
Hi Will,

This is the same problem as described recently here:
http://markmail.org/message/xyvhkjjsm2igtrhb?q=jackrabbit

So you must use :
/jcr:root/public/_x30_00
or
/jrc:root/public/*[fn:name() = '000']  (only one '/' is needed for
direct children)

--
Sébastien Launay

Will Scheidegger a écrit :
> I have a bunch of nodes with numbers as names. When I try to do an
> xpath query like
>
> /jcr:root/public/000
>
> I get a JCR exception: javax.jcr.query.InvalidQueryException: Parse
> error: data is not a RelationQueryNode
>
> I also tried this:
>
> /jrc:root/public//*[name() = '000']
>
> But it seems like name() is not supported by JCR. Is there a way to do
> this?
> Thanks!
>
> will

Mime
View raw message