A query such as <code>//p[. contains text 'real text']</code> will then match the example paragraph above.
Note that the node structure is completely ignored by the full-text tokenizer: the {{Mono|contains text}} expression applies all full-text operations to the ''string value'' of its left operand. As a consequence, the <code>ft:mark</code> and <code>ft:extract</code> functions (see [[Full-Text Module|Full-Text Functions]]) will only work yield useful results if they are applied to single text nodes, as the following example demonstrates: <pre class="brush:xquery">(: Structure is ignored; no highlighting: :)ft:mark(//p[. contains text 'real'])(: Single text nodes are addressed elements have no descendant elements: results will be highlighted: :)ft:mark(//p[.//text() contains text 'real'])</pre>
==Functions==