M. Collado wrote:
>>
>> You are right. I propose the following changes:
>>
>> [1] In a macro, $selected will always denote the first (in document
>> order) selected node if any (i.e. otherwise, empty node set).
>>
>> [2] In a macro, $selected2 will always denote the last (in document
>> order) selected node if any (i.e. otherwise, empty node set).
>>
>> Is that OK for you?
> 
> Of course it is. I didn't suggested it myself as I don't know if this
> could break some existing customization code.

I don't think so. Therefore, we'll implement the change in next version.


> Please find attached my general macro code for moving the selection up
> and down among its siblings. It can be used to reorder paragraphs, list
> items, table rows, etc. It still needs some rework, in order to swap
> only elements and not elements and text nodes.
> 
> If you find the code useful, please feel free to use it in any way (even
> to include it in the sample 'customize.xxe' :-)

We have ``recently'' added command moveElement which is similar to your
macros. See
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/moveElement.html.
I hope there is no problem with it.

Reply via email to