W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2008

[FO] fn:substring arguments

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sun, 23 Nov 2008 14:43:52 +0530
Message-ID: <7870f82e0811230113i33a273dcr6278c2f09ad559c@mail.gmail.com>
To: public-qt-comments@w3.org

Hello,
   The F&O spec defines the fn:substring function as,

fn:substring($sourceString  as xs:string?,
                  $startingLoc  as xs:double) as xs:string

In the above method signature, the 2nd argument is a xs:double.

Whereas in Java language, substring function of the String library
accepts an "int" argument.

What is the motivation for the F&O spec to define the startingLoc
argument as, xs:double and not an integer?


-- 
Regards,
Mukul Gandhi
Received on Sunday, 23 November 2008 09:14:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:25 UTC