Could you possibly copy and paste the query I send to you in my last response, and modify it that it allows me to reproduce the problem out-of-the-box?
On Thu, Jan 7, 2016 at 11:29 AM, kleist-digital kleist@mail.dunzwolff.de wrote:
<item> <s xmlns="http://www.tei-c.org/ns/1.0" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="N111A6">JeztJetzt darf ich zu dem Mittel meine Zuflucht noch nicht ergreifen nehmen, u.und für die Folge da werden Sie, Gnädigstegnädigste <mark>Tante</mark>, schon sorgen.</s> <s xmlns="http://www.tei-c.org/ns/1.0" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="N111A6">JeztJetzt darf ich zu dem Mittel meine Zuflucht noch nicht ergreifen nehmen, u.und für die Folge da werden Sie, Gnädigstegnädigste Tante, schon sorgen.</s> </item>
The query is db:create('kleist_index_search‘, for $item in db:open('kleist-data‘) return $item update (delete node .//(tei:note|tei:rdg|tei:lb|tei:del|tei:reg|tei:sic), for $s in .//tei:s return replace value of node $s with normalize-space($s)), db:open('kleist-data')/db:path(.))