RE: C2 XPointer Error

Thanks for pointing this out.  I'll fix it in my sources right away. 

> -----Original Message-----
> From: Elliotte Rusty Harold [mailto:elharo@macfaq.com]
> Sent: Thursday, October 26, 2000 9:13 AM
> To: www-xml-xinclude-comments@w3.org
> Subject: C2 XPointer Error
> 
> 
> The  XPointer in the following example from appendix C2 is incorrect:
> 
> <?xml version='1.0'?>
>   <document>
>     <p>The relevant excerpt is:</p>
>     <quotation>
>       <xinclude:include 
> xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"
>          href="source.xml#xpointer(string-range(chapter/p[1],'Sentence
> 2') to 
>                                    
> string-range(chapter/p[2]/i,'3.',0,11))"/>
>     </quotation>
>   </document>
> 
> The to keyword is from an old working draft of XPointer. I think it
> should now be replaced by range-to like this:
> 
> <?xml version='1.0'?>
>   <document>
>     <p>The relevant excerpt is:</p>
>     <quotation>
>       <xinclude:include 
> xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"
>          href="source.xml#xpointer(string-range(chapter/p[1],'Sentence
> 2')/range-to (string-range(chapter/p[2]/i,'3.',0,11)))"/>
>     </quotation>
>   </document>
> 
> -- 
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
> +-----------------------+------------------------+------------
> -------+ 
> |                  The XML Bible (IDG Books, 1999)                   |
> |              http://metalab.unc.edu/xml/books/bible/               |
> |   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  
> http://metalab.unc.edu/javafaq/ | 
> |  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
> +----------------------------------+---------------------------------+
> 

Received on Thursday, 26 October 2000 18:18:29 UTC