<span class="hljs-title">xquery version "3.1";</span>
<span class="hljs-keyword">let</span> <span class="hljs-variable">$var</span> := <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">root</span> <span class="hljs-attr">n</span>=<span class="hljs-string">"x1"</span>&gt;</span>"rooting" out 1 or 2 root causes<span class="hljs-tag">&lt;/<span class="hljs-name">root</span>&gt;</span></span>
<span class="hljs-keyword">return</span>
  <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">result</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"test"</span>&gt;</span>
    disable highlight for a name such as root </span><span class="xquery">{
      <span class="hljs-keyword">for</span> <span class="hljs-variable">$name</span> <span class="hljs-keyword">in</span> <span class="hljs-variable">$var</span>
      <span class="hljs-keyword">return</span>
        <span class="hljs-variable">$name</span> <span class="hljs-keyword">as</span> <span class="hljs-type">xs:string</span>
      }</span><span class="xml">
    return to unhighlighted order of things.
    </span><span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">test</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"{$name}"</span>&gt;</span>"rooting" out root causes<span class="hljs-tag">&lt;/<span class="hljs-name">test</span>&gt;</span></span><span class="xml">
  <span class="hljs-tag">&lt;/<span class="hljs-name">result</span>&gt;</span></span>
