Project

Profile

Help

Bug #2180

closed

Problem to transform to a DOMResult

Added by David Fonquernie about 10 years ago. Updated about 10 years ago.

Status:
Duplicate
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2014-10-13
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

When the transform is done to an empty DOMResult, it is not updated with the result:

Result out = new DOMResult();
transformer.transform(source, out);
// here out.getNode() is null

because in the transform() method:

} else if (outputTarget instanceof DOMResult) {
    Node root = ((DOMResult) outputTarget).getNode();
    // here root is null so the given outputTarget is never updated
    destination = new DOMDestination(root);

Regards


Related issues

Is duplicate of Saxon - Bug #2164: Empty DOMResult provided to transform method produces null resultClosed2014-10-06

Actions
Actions #1

Updated by Michael Kay about 10 years ago

  • Status changed from New to Duplicate
  • Found in version changed from 9.6.0-1 to 9.6

Duplicate of 2164

Please register to edit this issue

Also available in: Atom PDF