#1005 DOMSource only accepts Document and Element nodes

v9.2
closed
Michael Kay
5
2012-10-08
2009-11-15
Michael Kay
No

Saxon's implementation of DOMSource only works when the node wrapped by the DOMSource is a Document (or DocumentFragment) node or an Element node. In other cases it fails silently, treating the input as an empty document.

A patch is being raised on both the 9.1 and 9.2 branches that (a) allows the wrapped node to be a text node, CDATA section node, comment or processing instruction, and (b) throws an exception if it is any other kind of node, for example an attribute node.

Discussion

  • Michael Kay
    Michael Kay
    2010-01-27

    Fixed in 9.2.0.5