jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: special Constraints on Node names ?
Date Mon, 10 Nov 2008 14:37:37 GMT
Sebastian Lindstaedt wrote:
> ...
> Given that creation scheme there are nodes with names that start with an number (e.g.
9428beec5dd65d1b54985661ca3eefca) 
> 
> and there are nodes with names, that start with a character (e.g 	a980d10665f268b0ec6c13ebea43034f
). Using the same QueryString (except the different node names), it seems that those starting
with a number are not found and I get an Exception like this:
> 
> A 'javax.jcr.query.InvalidQueryException' has occured. Reason: Encountered "return" at
line 1, column 71
> 
> The used XQuery String looks like this:
> 
> InfrastructureCategories/R/9428beec5dd65d1b54985661ca3eefca  <-- not working
> 
> InfrastructureCategories/R/a980d10665f268b0ec6c13ebea43034f  <-- working
> 
> Is something wrong wih my XQuery? Are Nodenames constrained to start with a letter?

a) Yes. Leading digits in XPath queries need to be escaped (see JSR170).

b) No.

 > ...

BR, Julian

Mime
View raw message