#256 ClassCastException when sorting namespace nodes using DOM

v8.1.1
closed
5
2012-10-08
2004-10-16
Michael Kay
No

When namespace nodes are retrieved using the namespace
axis applied to a tree represented as a DOM, a class
cast exception can occur when sorting namespace nodes
into document order.

The patch is to change line 135 of
net.sf.saxon.dom.NamespaceNode to

return (getParent().compareOrder(other.getParent()));

Source code fixed; test case added (axes-dom506).

Discussion