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 5627 - [F&O] Collation in fn:deep-equal
Summary: [F&O] Collation in fn:deep-equal
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Recommendation
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
Depends on:
Reported: 2008-04-04 10:43 UTC by Tim Mills
Modified: 2008-04-04 11:20 UTC (History)
0 users

See Also:


Description Tim Mills 2008-04-04 10:43:41 UTC
Could you please clarify whether the following checks for deep equality should use the collation, if specified?

1. Comparing the typed values of element nodes with a type annotation that is simple content.
2. Comparing the typed values of attribute nodes.
3. Comparing the string value of processing instructors.
4. Comparing the string value of text nodes.
5. Comparing the string value of comment nodes.
Comment 1 Michael Kay 2008-04-04 11:13:59 UTC
The spec says "collation ... is used at all levels of recursion when strings are compared (but not when names are compared)". Does this really leave any room for doubt that it is used in all the cases you mention, assuming the values in question are strings?
Comment 2 Tim Mills 2008-04-04 11:20:19 UTC
Fair enough!