declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";
declare namespace tei = "http://www.tei-c.org/ns/1.0";
declare option output:method "html";

let $headings := //tei:head
return <html><body><ul>
{
    for $heading in $headings
    return <li>{$heading/text()}</li>
}
</ul></body></html>
      

Holder of rights
me

Citation Suggestion for this Object
TextGrid Repository (2025). xqueries. toc-html.xq. Keine Wahlwerbung!. me. https://hdl.handle.net/21.T11991/48p82.0