Re: Section 5.4.2 string-range() 3rd and 4th arguments

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.

> Does this just result in 
> pinning the range to the edge of the string?

  IMHO again that would be broken

> The description of the 
> thrid and fourth arguments to string-range needs to be clarified on 
> these points.

  Again I'm pretty sure this was discussed. However, trying my (admitedly
old now) implementation, those cases doesn't work. If this really isn't
defined, recommmending the simplest form would ease implementations.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

Received on Thursday, 1 November 2001 06:20:29 UTC