- From: Ashok Malhotra <ashokma@microsoft.com>
- Date: Wed, 17 Mar 2004 10:59:04 -0800
- To: "Mary Fernandez" <mff@research.att.com>, "public comments" <public-qt-comments@w3.org>
- Cc: "Avinash Vyas" <vyas@research.bell-labs.com>
Mary:
These have been fixed as a result of an earlier comment.
All the best, Ashok
-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Mary Fernandez
Sent: Wednesday, March 17, 2004 10:58 AM
To: public comments
Cc: Avinash Vyas
Subject: [FO] Errors in fn:max & fn:min examples (editorial)
The fn:max and fn:min functions are not variadic,
but the following examples imply that they are:
* fn:max(3,4,5) returns 5.
* fn:max(5, 5.0e0) may return the xs:integer 5 or the xs:double
5.0e0.
* fn:max(3,4,"Zero") raises an error [invalid argument to
aggregate function].
* fn:max(fn:current-date(), xs:date(2001-01-01) typically returns
the current date.
* fn:max("a", "b", "c") returns "c" under a typical default
collation.
They should be written as follows:
* fn:max((3,4,5)) returns 5.
* fn:max((5, 5.0e0)) may return the xs:integer 5 or the xs:double
5.0e0.
* fn:max((3,4,"Zero")) raises an error [invalid argument to
aggregate function].
* fn:max((fn:current-date(), xs:date(2001-01-01))) typically
returns the current date.
* fn:max(("a", "b", "c")) returns "c" under a typical default
collation.
Similar changes are required for fn:max. fn:sum and fn:avg examples are
OK.
--
Mary Fernandez <mff@research.att.com>
AT&T Labs - Research
Received on Wednesday, 17 March 2004 13:59:37 UTC