% simplification of test by Thomas S

\startxmlsetups xml:mysetups
    \xmlsetsetup{\xmldocument}{document|section|topic}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:document
    \section{\xmlfilter{#1}{topic[1]/text()}}
    \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:section
    \xmlflush{#1} \page
\stopxmlsetups

\startxmlsetups xml:topic
    \writetolist[MyTopics]{\xmlflush{#1}}{}
\stopxmlsetups

\definelist[MyTopics][criterium=all]

\setuplist
  [MyTopics]
  [expansion=yes]

\starttext

    \xmlprocessfile{main}{lists-001.xml}{}

    \placelist[section,MyTopics][criterium=text]

\stoptext
