Hi, Good idea! The splitting works perfectly. But unfortunately I wasn't able to place the selected text between the end and open tags. Using "paste into" or "paste to" I just managed to insert it in the second inline element.
Source with "is" selected: <starke-betonung>This is a text</starke-betonung> Should get <starke-betonung>This </starke-betonung>is<starke-betonung> a text</starke-betonung> But with "paste" I just get <starke-betonung>This </starke-betonung><starke-betonung>is a text</starke-betonung> I also tried to move the caret with "moveDotTo" but with no success either. Do you have any more hints on how to achieve this? Thanks a lot for your help in advance! Best regards, Roman -----Urspr?ngliche Nachricht----- Von: Hussein Shafie [mailto:hussein at xmlmind.com] Gesendet: Mittwoch, 19. M?rz 2008 15:14 An: Huditsch, Roman (LNG-VIE) Cc: xmleditor-support at xmlmind.com Betreff: Re: [XXE] exclude selected words from inline elements Huditsch, Roman (LNG-VIE) wrote: > > I have the following requirement to solve in XXE: > > Given is an text paragraph with multiple inline elements like: > > <absatz>Im vorliegenden Fall hat der Arbeitgeber am letzten Tag der > einmonatigen Probezeit gegen?ber der <starke-betonung>Lebensgef?hrtin des > Arbeitnehmers</starke-betonung> die Beendigung des Dienstverh?ltnisses > erkl?rt.</absatz> > > The author selects the text "des" within the <starke-betonung> element. > With pressing ALT + D the author now wants to "exclude" the selected text > from the <starke-betonung> > > As a result the XML should look like: > > <absatz>Im vorliegenden Fall hat der Arbeitgeber am letzten Tag der > einmonatigen Probezeit gegen?ber der <starke-betonung>Lebensgef?hrtin > </starke-betonung>des<starke-betonung> Arbeitnehmers</starke-betonung> die > Beendigung des Dienstverh?ltnisses erkl?rt. </absatz> > > Is there a simple way to accomplish that? Or do I need to run a stylesheet > for that? > Personally, I would write a macro based on the "split" command. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/split.html

