Hi,

I have a macro that does the following:

- Creates a copy of the current document with copyDocument
- runs an XSL transformation on the result
- Reads the transformation output with read
- Pastes the transformation output back into the original document

The transformation output contains both entity references and XIncludes. It
consists of all children of the original document's root nodes, wrapped in a
"clipboard" element. However, I cannot paste it over the corresponding
elements in the source file.

If I manually create a complete document from the transformation output by
replacing the clipboard element with the source document root element, then
I can open it in XXE, copy the root's children and paste them into the
source document as required. If I examine the contents of the paste buffer
when I copy from XXE, I can see that XXE includes management data with the
inclusions to make this possible.

Is there any way I can paste the inclusions back in from a macro? If not,
would it be possible, for example, to add a parameter to copyDocument that
preserves inclusion management data?  It would then be possible to "round
trip" managed inclusions through an XSL transformation.

Thanks for your attention -

Kevin Flynn
Birdstep Technology ASA
Oslo, Norway



Reply via email to