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 - ResearchReceived on Wednesday, 17 March 2004 13:56:00 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:33 GMT