If a thesaurus is employed…
<syntaxhighlight pre lang="xml">
<thesaurus xmlns="http://www.w3.org/2007/xqftts/thesaurus">
<entry>
'''Document 'doc.xml'''':
<syntaxhighlight pre lang="xml">
<doc>
<a>house</a>
'''Result:'''
<syntaxhighlight pre lang="xml">
<a>house</a>
<a>hous</a>
When working with so-called narrative XML documents, such as HTML, [https://tei-c.org/ TEI], or [https://docbook.org/ DocBook] documents, you typically have ''mixed content'', i.e., elements containing a mix of text and markup, such as:
<syntaxhighlight pre lang="xml">
<p>This is only an illustrative <hi>example</hi>, not a <q>real</q> text.</p>
</pre>