W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

RE: Erratum substring() function in XPath 1.0?

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Fri, 22 Mar 2002 12:46:30 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679CEF@daemsg02.software-ag.de>
To: "'Svgdeveloper@aol.com'" <Svgdeveloper@aol.com>, www-xpath-comments@w3.org
No. Following the detailed specification, substring("12345", 0, 3) selects
all characters whose position is >= 0 and < 3. The position of the "3" is 3,
which is not <3, therefore it is not included in the result.

Michael Kay

> -----Original Message-----
> From: Svgdeveloper@aol.com [mailto:Svgdeveloper@aol.com]
> Sent: 21 March 2002 21:26
> To: www-xpath-comments@w3.org
> Subject: Erratum substring() function in XPath 1.0?
> 
> 
> It seems to me that the following bullet point for the 
> substring() function 
> is incorrect:
> 
> substring("12345", 0, 3) returns "12" 
> 
> Shouldn't it read
> substring("12345", 0, 3) returns "123"?
> 
> Andrew Watt 
> 
Received on Friday, 22 March 2002 06:46:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:54 GMT