W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > April to June 2001

Ranges with multiple end points in XPointer WD

From: Elliotte Rusty Harold <ftp_spam@macfaq.com>
Date: Thu, 05 Apr 2001 13:49:42 -0400
Message-ID: <3ACCB035.C6AA5989@macfaq.com>
To: www-xml-linking-comments@w3.org
Michael Dyck pointed out to me that Section 5.4.1, range-to Function,
does not seem to me to clearly define what happens if the location-set
argument contains multiple nodes/locations. 

          location-set range-to(location-set )

 For each location in the context, range-to returns a range. The start
of the range is the start-point of the context location, and the end of
the range is the end-point of the location found by evaluating the
expression argument with respect to that context location.


This all assumes that location-set contains exactly one node. What if it
contains zero nodes? or 17 nodes? are multiple ranges returned for each
start point? Or is this in error? Michael told me that this was an
error, but I don't see any language in the spec that indicates that. A
clarification of the intent in the spec would be appreciated. 


-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|         XML in a Nutshell (O'Reilly & Associates, 2001)            |
|              http://www.ibiblio.org/xml/books/xian/                |
|   http://www.amazon.com/exec/obidos/ISBN=0596000588/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, 5 April 2001 13:50:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:12 UTC