I actually tried to do this:
>I could run two transformations, one to generate the elements before the
external entities,
>and one to generate the elements after, then paste in the before and after
segments
>separately. This seems a bit clunky, though. Is there a better way around
it?
but still had no luck. Eventually, however, I found the reason: if the
output from a transformation consists of a node set rather than a single
element hierarchy, then you cannot paste it into a document using the
<command name="paste" parameter="to %_"/>
command. In order to be able to paste in the node set you must wrap it in an
XXE <clipboard> element in your XSL transformation's root template, for
example:
<xsl:template match="/">
<ns:clipboard
xmlns:ns="http://www.xmlmind.com/xmleditor/namespace/clipboard">
<xsl:apply-templates/>
</ns:clipboard>
</xsl:template>
I don't know if this is documented anywhere, but I didn't find it. I think
an example somewhere might help.
Best regards
--------------
Kevin Flynn
Birdstep Technology www.birdstep.com
Mobile: +47 93433942