Marcel, Thanks for your reply. Are there some utility methods to encode properly ?
Christophe On 10/31/05, Marcel Reutegger <[EMAIL PROTECTED]> wrote: > Hi Christophe, > > that's because xpath does not allow names that start with a digit, you > need to encode them properly. > > e.g. if you are looking for the 1.0 nodes your query would be: > > /jcr:root/jcr:system//_x0031_.0 > > regards > marcel > > Christophe Lombart wrote: > > Hi all, > > > > I cannot search correctly on version nodes. > > In fact, I'm getting version node paths from the version history by > > using the JCR API. That works correctly but I got an exception when I > > build a query like this : > > > > /jcr:system/jcr:versionStorage/e8/5a/3b/e85a3b3b-942f-4b98-9b92-efceaad07352/1.0//element(*,graffito:paragraph) > > > > Is it not a correct query ? > > > > Here is the exception : > > javax.jcr.query.InvalidQueryException: Encountered "/" at line 1, column > > 47. > > Was expecting one of: > > <IntegerLiteral> ... > > <DecimalLiteral> ... > > <DoubleLiteral> ... > > <StringLiteral> ... > > "<?" ... > > "<?" ... > > <AxisChild> ... > > <AxisDescendant> ... > > <AxisParent> ... > > <AxisAttribute> ... > > <AxisSelf> ... > > <AxisDescendantOrSelf> ... > > <AxisAncestor> ... > > <AxisFollowingSibling> ... > > <AxisPrecedingSibling> ... > > <AxisFollowing> ... > > ..... > > > > > > Thanks, > > Christophe > > > > >