}
</syntaxhighlight>
'''Example 3''': The following expression returns {{Code|<<code><p><>hello <b>>word<</b><></p>}}></code>:
<syntaxhighlight lang="xquery">
copy $p := <<p>>hello word<</p>>
modify ()
return ft:mark($p[text() contains text 'word'], 'b')</syntaxhighlight>
|}