Fco. Mario Barcala Rodr?guez wrote: > I have noticed a strange? behaviour in xxe-std-29 and also in xxe-std-29p1. > > In my dtd I have something like: > > division_body (paragraph*|division*). > > And sometimes this division_body is empty (it has no paragraphs or divisions).
With this DTD snippet, a newly created division_body is *always* empty. If this is not the desired behavior, you need to created an element template for division_body in the proper XXE configuration file. This named element template must have attribute "selectable" set to "override". See http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch06s09.html > The problem is that it is not possible to copy a division from another part > of the document and paste it into this division_body. Command Paste (not "Paste After", not "Paste Before") is in fact command "paste" with parameter "toOrInto". Excerpts of http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s35.html --- toOrInto ~~~~~~~~ Pastes the content of system clipboard replacing text selection or selected nodes. OR if there is no explicit selection, pastes the content of system clipboard into element containing caret, at caret position. --- This means that the command bound to Ctrl-I will always attempt to replace explicitly selected element. In your case, division_body. Therefore: * It will work with a division_body copied from another part of the document. * It will not work with a paragraph or division copied from another part of the document. Command "paste" with parameter "into" would work like you want but has its own drawbacks. We have chosen to bind Ctrl-I to "paste toOrInto" because we have found this is the best trade-off. This trade-off does not work nicely with your DTD and for this, you are out of luck. For us the best solution to your problem is to create an XXE configuration for your DTD and add a named element template for division_body. [[[Changing the DTD to --- division_body (paragraph+|division+) --- would work fine too.]]] > You can insert a division and then paste the other at the following, for > instance, but it cannot be made on one step (xxe-m13p2 version allowed to do > this, so I don't know if there is a bug or if paste semantic has changed). XXE V2 is a total rewrite of XXE M1. These two programs clearly don't behave the same.

