W3C home > Mailing lists > Public > www-ql@w3.org > January to March 2005

Use of fn:distinct-values

From: Probst, Martin <martin.probst@sap.com>
Date: Wed, 9 Feb 2005 17:22:18 +0100
Message-ID: <324B119BAD4D8F42AA66C7E44508DACC1A496C@dewdfe20.wdf.sap.corp>
To: <www-ql@w3.org>

there seems to be somthing wrong with several usecases:
fn:distinct-values is used on node sequences like in R/Q13:
> "distinct-values(doc("bids.xml")//userid)"

Though the spec (XQ Function and Operators and Formal Semantics) says:
> fn:distinct-values($arg as xdt:anyAtomicType*) as xdt:anyAtomicType*

What is the desired behaviour? Should fn:distinct-values operate on
xqdm:Items (and by that on nodes)? Should it apply atomization on it's
input? Or should it (as in the spec by now, though not explicitly) throw
a typing error?

Martin Probst
Received on Wednesday, 9 February 2005 16:22:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:43 UTC