I am using TEI Lite, and trying to typeset with ConTeXt. TEI Lite defines <divGen type='toc' /> to signal the Table of Contents, which in ConTeXt is \completecontents
Now I am trying this:
\startxmlsetups xml:divGen[@type='toc']
\completecontents
\stopxmlsetups
but it's not working.
How do I map this self-closing tag to the ConTeXt Table of Contents command?