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

[FO] Errors in fn:max & fn:min examples (editorial)

From: Mary Fernandez <mff@research.att.com>
Date: 17 Mar 2004 13:58:00 -0500
To: public comments <public-qt-comments@w3.org>
Cc: Avinash Vyas <vyas@research.bell-labs.com>
Message-Id: <1079549879.1555.219.camel@squeak.research.att.com>

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:56:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:33 GMT