Empty DOMResult provided to transform method produces null result
In mvn:net.sf.saxon:Saxon-HE:9.5.1-6 the following code snippet:
DOMSource inputSource = ... DOMResult result = new DOMResult(); transformer.transform(inputSource, result); return (Document) result.getNode();
returns valid Document.
it returns null.
#1 Updated by Michael Kay almost 5 years ago
- Status changed from New to Resolved
- Found in version changed from 9.6.0-1 to 9.6
Thanks for reporting it. I have added a JUnit test case JAXPTests/DOMTest/testEmptyDomResult, and I have committed a patch on the 9.6 and 9.7 code branches. The fix will appear in the next maintenance release.
Please register to edit this issue