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