Ulrich_Laegeler at arburg.com wrote: > > if i insert a node via copy and paste which has a xi:include child > this child is not automatically replaced with the referenced nodes > like it is done when the document is opened. > Is this a bug
This is not a bug. xi:include elements simply happen to have no special meaning for the Copy and Paste commands. Moreover, we do not consider this as being a limitation which could be removed in the future. When I use the Copy command to copy a para containing, among other child nodes, a *reference* to an element (and not xi:includes), here's what is copied to the clipboard: --- <?xml version="1.0" encoding="UTF-8"?> <para xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:ns2="http://www.xmlmind.com/xmleditor/namespace/property" xmlns:ns="http://www.xmlmind.com/xmleditor/namespace/clipboard"><ns:clipboard ns2:inclusion="com.xmlmind.xml.xinclude.XInclude:href="file:/home/hussein/src/4xxe/demo/docbook-modular-book/glossary.xml" xpointer="XXE"" ns2:readOnly="true" ns2:sourceURL="file:/home/hussein/src/4xxe/demo/docbook-modular-book/glossary.xml"> <phrase id="XXE">XMLmind XML Editor</phrase> </ns:clipboard> does not support XML entities, but you can nevertheless create modular documents with this editor.</para> --- See, no xi:include here. Just XML nodes decorated with properties (serialized as XML attributes belonging to the "http://www.xmlmind.com/xmleditor/namespace/property" namespace). > or do i have this to solve with custom code. > * You need to invoke command reinclude after pasting the contents of the clipboard. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/reinclude.html * Alternatively, you may also directly copy or generate to the clipboard elements containing references to other elements (and not xi:includes). In such case, the Paste command will work as you expect it. The format of the clipboard is briefly documented here http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xml/clipboard/package-summary.html

