Thank you very much, Hussein, for having taken the time to set up and evaluate a test case.
My mistyping of the variable name "selectedNodes" was indeed the culprit. After having fixed that, replacing the child nodes of the document element with the transformation result works like a charm. (This revealed however another problem, which I would like to discuss in a new thread.) Yves -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support