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/>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6372

           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
example).

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:54 GMT