W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2003

RE: MS-FO-LC1-100: Promotion of untyped values in fn:distinct-val ues?

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Mon, 11 Aug 2003 12:12:40 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD051@daemsg02.software-ag.de>
To: Ashok Malhotra <ashokma@microsoft.com>, Michael Rys <mrys@microsoft.com>, public-qt-comments@w3.org
> fn:distinct-values does not say how values of type 
> xdt:untypedAtomic are handled.  I suggest we use the same 
> rule that we use for aggregate functions, namely  "Values of 
> type xdt:untypedAtomic are cast to the type of the other 
> items in $arg. If all values in $arg are of type 
> xdt:untypedAtomic they are converted to xs:string."

But we have other threads that point out that this is a really bad rule,
because it prevents a pipelined implementation. It must be possible to
process untypedAtomic values without looking ahead to discover the types of
all other items in the sequence. This means that each aggregate function
must have a "default type", and untypedAtomic values should be converted to
the default type. For fn:distinct-values, the only sensible default type is
string.

Michael Kay
Received on Monday, 11 August 2003 06:12:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:13 UTC