Within minutes of sending this mail, I found the documentation of copyDocument's preserveInclusions parameter, which is of course the answer to my problem. Sorry for the noise!
Kevin -----Original Message----- From: Kevin Flynn [mailto:[email protected]] Sent: Tuesday, February 27, 2007 4:53 PM To: 'xmleditor-support at xmlmind.com' Subject: Identifying included nodes Hi, Is there any way of identifying Xincluded nodes from a macro? The reason I need this is that I have a macro that uses copyDocument, transform and read to transform document contents. If the document contains Xincludes, however, the macro also effectively copies the xincluded nodes into the document, since the includes are resolved in the xml output by copyDocument. I would like to be able to replace the xincluded nodes with comments or processing instructions (that contain the necessary urls etc.) before calling copyDocument. The XSL transformation run by transform would then be able to convert these comments back to proper Xinclude elements, and I wouldn't lose my includes. Or maybe there is another solution to this problem? Regards, Kevin Flynn Birdstep Technology ASA Oslo, Norway

