After reading XQuery documentation and eXist-db documentation, I can\'t figure it out. The fulltexte search with KWIC doesn\'t work if result is put in a tag.