jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "AJ Chen" <cano...@gmail.com>
Subject Fwd: xpath syntax error
Date Thu, 14 Feb 2008 06:57:59 GMT
I found out the following parse error is caused by the number in node path:
If the number "1" is replaced by "*", the xpath query works: //A/*/B
Is it a bug or by spec?

---------- Forwarded message ----------
From: AJ Chen <canovaj@gmail.com>
Date: Wed, Feb 13, 2008 at 10:25 PM
Subject: xpath syntax error
To: users@jackrabbit.apache.org

I have a question about xpath search syntax.  The following xpath search
   //A//*[ @rdf:type = 'w2x:News' ]
but, the following multi-level node path gives exception: Parse error: data
is not a RelationQueryNode
   //A/1/B//*[ @rdf:type = 'w2x:News' ]

I want to search for any descendants under node //A/1/B. What's the right
way to specify the node path in xpath query?


AJ Chen, PhD
Co-Chair, SDForum Semantic Web SIG

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message