In LocPathIterator#setCacheNodes, don't replace the current m_cachedNodes if
it is non-null.  This fixes a bug with the NodeIterator/NodeSet
adapters.

In getDTMHandleFromNode, if a DTM has to be created, create
it from the ownerDocument instead of the node argument.  I think
this will avoid a lot of problems with node identity coming from
extensions and the XPath API.

3 files changed