Hi,

I have placed small document in database with enabled full-text index:
<text>
Text with hello world phrase.
</text>

The following expression:
ft:mark(db:open('simple')//*[text() contains text 'hello world'])

produces:
<text>Text with <mark>hello</mark> <mark>world</mark> phrase.</text>

Is it possible to enclose result in one element
<mark>hello world</mark> ?



Regards
Bartosz Marciniak