I found out the following parse error is caused by the number in node path: //A/1/B If the number "1" is replaced by "*", the xpath query works: //A/*/B Is it a bug or by spec?
-aj ---------- Forwarded message ---------- From: AJ Chen <[EMAIL PROTECTED]> Date: Wed, Feb 13, 2008 at 10:25 PM Subject: xpath syntax error To: [email protected] I have a question about xpath search syntax. The following xpath search works //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? thanks, -aj http://healthline.com -- AJ Chen, PhD Co-Chair, SDForum Semantic Web SIG http://web2express.org http://healthline.com
