This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29159 - [FO31] 14.2.1 fn:distinct-values
Summary: [FO31] 14.2.1 fn:distinct-values
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: https://www.w3.org/XML/Group/qtspecs/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-29 16:05 UTC by Tim Mills
Modified: 2016-03-22 10:11 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2015-09-29 16:05:55 UTC
In the XQuery family of documents, comparison of items is often defined with reference to fn:deep-equal.  In fn:distinct-values, this is not the case.  

I believe that the extensive set of rules in distinct-values follow those of deep-equal, and the text might be simplified by referencing deep-equal.
Comment 1 Michael Kay 2015-09-29 18:58:08 UTC
I agree. I was going to suggest that the same observation also applies to fn:index-of, but it seems that this differs in that NaN != NaN.
Comment 2 Michael Kay 2015-10-06 17:14:24 UTC
The WG agreed to make this change, and it has been made.