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: Strange Exception
Date Wed, 30 Jul 2008 09:58:09 GMT
Hi,

unfortunately the exception is not very helpful, but the issue is the path 
segment '222222'. XPath does not allow names that start with a digit, which 
means you need to encode the first digit:

/jcr:root/kmelia60/Root/_x0032_22222/element(*, slv:theme) order by @slv:order

see section 6.4.3 in the specification.

you can use the utility method ISO975.encodePath() in jackrabbit-jcr-commons to 
turn a JCR path into a valid XPath.

regards
  marcel

Emmanuel Hugonnet wrote:
> My xpath query is :
> /jcr:root/kmelia60/Root/222222/element(*, slv:theme) order by @slv:order
> 
> If I have some char in the name the query is working fine. I don't see 
> anything in the JSR specifying that a name must not have only figures.
> Is this a bug ?
> 
> Regards,
> Emmanuel
> 
> 


Mime
View raw message