W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2009

[Bug 6372] New: [FO] deep equality of namespace nodes

From: <bugzilla@wiggum.w3.org>
Date: Tue, 06 Jan 2009 14:10:19 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-6372-523@http.www.w3.org/Bugs/Public/>


           Summary: [FO] deep equality of namespace nodes
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: mike@saxonica.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org

One of the principles behind the design of fn:deep-equal() was that a node
should always be deep-equal to itself (that's why we defined NaN = NaN, for

But as currently written, the rule for comparing namespace nodes (or
"bindings") requires (node-name($i1) eq node-name($i2)), which will not be true
for an unnamed namespace node (the default namespace), because node-name()
returns () for such a node, and (() eq ()) is ().

This doesn't affect XQuery 1.0 because namespace nodes are inaccessible, but it
does affect XPath and XSLT.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 6 January 2009 14:10:29 UTC

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