- From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
- Date: Thu, 1 Nov 2001 12:39:23 -0500 (EST)
- To: daniel@veillard.com
- Cc: www-xml-linking-comments@w3.org
At 12:20 PM +0100 11/1/01, Daniel Veillard wrote: >On Wed, Oct 31, 2001 at 11:57:00AM -0500, Elliotte Rusty Harold wrote: >> The string-range() function is underspecified in several ways in the >> XPointer CR. The seocnd problem I note is that there is no discussion >> of what happens when the third and fourth arguments to string-range are >> out of bounds. For instance what is someone asks for the match to begin >> at -3? or to continue for 12 characters when the location string value >> only contains 8 characters? > > Sounds fine to me. The implementation will have to extend the >scope of the range from the original 8 character. > >> Is this an error? > > IMHO only a sub resource error if the document is too small for those >boundaries. > Looking at it again, I think you're right. The relevant text is For any particular match, if the string argument is not found in the string-value of the location, or if the third and fourth argument indicates a range that is wholly beyond the beginning or end of the document or entity, then no range is added to the result for that match. This is clear enough to specify the behavior. If one of the arguments did go outside the document boundaries, it wouldn't necessarily be a sub-resource error, just not return a range. Thanks. -- +-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer | +-----------------------+------------------------+-------------------+ | The XML Bible, 2nd Edition (Hungry Minds, 2001) | | http://www.ibiblio.org/xml/books/bible2/ | | http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | | Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ | +----------------------------------+---------------------------------+
Received on Friday, 2 November 2001 04:41:06 UTC