W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > February 2004

RE: XPointer example error

From: Jonathan Marsh <jmarsh@microsoft.com>
Date: Tue, 10 Feb 2004 08:35:51 -0800
Message-ID: <DF1BAFBC28DF694A823C9A8400E71EA2028867FD@RED-MSG-30.redmond.corp.microsoft.com>
To: <daniel@veillard.com>, <www-xml-xinclude-comments@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:16:09 GMT