I want to apply an XSLTOperation on the root element replacing the previous one. I don't get any error messages but the content is not being replaced.
I guess there is a special behavior required in TransformOperation for the case that the root node needs to be replaced instead of the following lines:
Code: Select all
// Put the result of the XSLT transformation back into the document.
if (ACTION_REPLACE.equals(action)) {
authorAccess.getDocumentController().insertXMLFragment(result, targetNode, ACTION_INSERT_BEFORE);
authorAccess.getDocumentController().deleteNode(targetNode);
} else [...]
Thanks and regards,
Patrik