I can't find a working solution to my problem. I need to merge two elements with the same name into one when they are in specific position in the document: tags hi when between them stays lb break='no'. How can I do that? The xml code is:
<p>
<lb n="28"/> Lorem ipsum dolor sit
<lb n="29"/> amet, consectetur, <hi rend="u">adi</hi>
<lb n="30" break="no"/><hi rend="u">pisci</hi> elit...
</p>
I transform it into a floating text without line breakes and as there is a hyphen there I need to merge the two elements into one. Now I get always a blank between them.
<p>Lorem ipsum dolor sit amet, consectetur <span class="u">adipisici</span> elit...</p>
Thanks a lot!