[Bug 5671] [FO] Type promotion in fn:min and fn:max

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5671





------- Comment #4 from tim@cbcl.co.uk  2008-05-27 09:15 -------
I believe that the upshot of this is that:

1. When no type promotion is required, we can always return an item (with its
type unchanged) from the input sequence.  The static type of the function call
will be the least common type of the input item types.

2. When type promotion is required, we can always return an item from the input
cast as the promoted type (which will be xs:decimal, xs:float, xs:double or
xs:string).  The static type of the function call will be the promoted type.

Received on Tuesday, 27 May 2008 09:16:10 UTC