jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Lombart <christophe.lomb...@gmail.com>
Subject Query on version nodes
Date Fri, 28 Oct 2005 23:23:56 GMT
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

Mime
View raw message