XSLTOperation replacing the root element not working
Posted: Mon Feb 24, 2014 3:13 pm
Hi,
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:
Is there any easy way I can fix this behavior?
Thanks and regards,
Patrik
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