W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2004

Re: [FO] error in fn:substring-before

From: Jim Melton <jim.melton@acm.org>
Date: Thu, 10 Jun 2004 11:04:13 -0600
Message-Id: <6.0.0.22.2.20040610110304.03391358@gmstimap.oraclecorp.com>
To: Douglas Petkanics <petkanics@research.att.com>
Cc: public-qt-comments@w3.org

Doug,

Many thanks for the report.  Happily, this bug has been noticed already and 
the example has been fixed to accurately reflect the behavioral description.

Thanks again!
   Jim

At 07:36 AM 6/10/2004 Thursday, Douglas Petkanics wrote:

>In the functions and operators document, section 7.5.4.1, the function 
>fn:substring-before has the following error:
>
>Definition:
>|fn:substring-before|(|$arg1|| as ||xs:string?|, |$arg2|| as 
>||xs:string?|)| as ||xs:string|
>|Behavior description: |
>||If the value of |$arg2| is the zero-length string, then the function 
>returns the zero-length string.
>Example given:
>|fn:substring-before("Baloney!","")| returns "|Baloney!|".
>
>In the example, $arg2 is given as the 0 length string, however this 
>returns the word Baloney. The behavioral description states that it should 
>return the 0 length string. Am I misunderstanding?
>
>Thanks,
>Doug
>

========================================================================
Jim Melton --- Editor of ISO/IEC 9075-* (SQL)     Phone: +1.801.942.0144
Oracle Corporation        Oracle Email: jim dot melton at oracle dot com
1930 Viscounti Drive      Standards email: jim dot melton at acm dot org
Sandy, UT 84093-1063              Personal email: jim at melton dot name
USA                                                Fax : +1.801.942.3345
========================================================================
=  Facts are facts.  However, any opinions expressed are the opinions  =
=  only of myself and may or may not reflect the opinions of anybody   =
=  else with whom I may or may not have discussed the issues at hand.  =
======================================================================== 
Received on Thursday, 10 June 2004 13:05:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:20 UTC