jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "AJ Chen" <cano...@gmail.com>
Subject Re: Fwd: xpath syntax error
Date Mon, 18 Feb 2008 17:54:23 GMT
thanks.
-aj

On Feb 18, 2008 1:08 AM, Marcel Reutegger <marcel.reutegger@gmx.net> wrote:

> AJ Chen wrote:
> > 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?
>
> this is per spec. "1" is not a valid XML name, you need to escape it. see
> section 6.4.3.
>
> //A/_x0031_/B
>
> will work.
>
> regards
>  marcel
>



-- 
AJ Chen, PhD
Co-Chair, SDForum Semantic Web SIG
http://web2express.org
http://healthline.com

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