RE: XPointer example error

Fixed, thanks.

> -----Original Message-----
> From: www-xml-xinclude-comments-request@w3.org
[mailto:www-xml-xinclude-
> comments-request@w3.org] On Behalf Of Daniel Veillard
> Sent: Wednesday, January 07, 2004 10:43 AM
> To: www-xml-xinclude-comments@w3.org
> Subject: XPointer example error
> 
> 
>   The range inclusion example has a small XPointer error:
>     http://www.w3.org/TR/2003/WD-xinclude-20031110/#range-example
> 
> xpointer(string-range(chapter/p[1],'Sentence 2')/
>              range-to(string-range(chapter/p[2]/i,'3.',1,2)))
> 
>   the range-to is constructed from the location set found in the
> initial lookup, i.e. from a point given in /chapter/p[1] ,
> and at that point there exist no "chapter/p[2]/i" node. I believe
> the simplest is to change it to "/chapter/p[2]/i", i.e.
> 
> xpointer(string-range(chapter/p[1],'Sentence 2')/
>              range-to(string-range(/chapter/p[2]/i,'3.',1,2)))
> 
>   It might be a good idea to initialize the fist path as /chapter/p[1]
> but not needed.
> 
> Daniel
> 
> --
> Daniel Veillard      | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
> daniel@veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
> http://veillard.com/ |
> 

Received on Tuesday, 10 February 2004 11:36:17 UTC