Hi, I can't find a way for a macro to copy an element from another document that the one where the macro was started. I found this thread in the archives on this topic: http://www.xmlmind.com/pipermail/xmleditor-support/2007-January/004964.html But the solution proposed (get) only gets strings from the external document, not elements.
My findings: - cfg:get only returns string (this is documented). - cfg:set does not accept an expression with document() that returns nodes from a foreign document (there is an error message if trace is enabled). - xpathSearch command throws a NullPointerException when document() is used. - XXE.open opens a doc, gives it the focus, the caret is visible and a user could start typing in it, yet $implicitElement and the other variables still point to the (now out of focus) initial document. So, it looks like the only way to copy nodes from 1 doc to another is via the clipboard, but this cannot be done by a macro: there must be a user action to change the current document before copying or pasting. Did I miss anything? Should any of the above method work and so I must have made a mistake somewhere? Thanks for any help, Benoit -- Benoit Maisonny benoit at synclude.com Director & Consultant http://synclude.com Synclude

