Re: [XML-SIG] Re: Equality tests on DOM nodes

Ray Whitmer writes:
 > The problem in Python is much bigger -- possibly rendering my advice
 > irrelevant -- since no official DOM API binding has been released for that

  The spec does include IDL, and a Python binding for IDL is being
developed.  (Now, I've not checked that the Python DOM uses the Python 
IDL binding.  Andrew, perhaps you can address this in the Python
XML-SIG?)

 > I don't know Python, so it is also possible that Python may impose more
 > rigidity on the requirements of == (than Java does on equals), making it
 > possible to know what the standard implementation should be, but your
 > raising the question would seem to indicate that it does not.

  A couple of issues seem appearant to me, but depth is not one of
them.
  First, the current implementation of Python's comparison semantics
require complete ordering, which doesn't make sense in this case.
That can be ignored for now if the documentation states that only
equality/inequality is supported.  Future versions of Python are
expected to correct this problem.
  Second, the concerns Paul Butkiewicz raised about the relevance of
context need to be addressed.  Basic equality may have to be
interpreted as node identity.


  -Fred

--
Fred L. Drake, Jr.	     <fdrake@acm.org>
Corporation for National Research Initiatives
1895 Preston White Dr.	    Reston, VA  20191

Received on Monday, 14 December 1998 08:39:00 UTC