% adapted from list

\startxmlsetups xml:test
    \xmlsetsetup{#1}{c}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:c
    \ctxlua{title = "test=" .. xml.filter(lxml.id("#1"),"xml://./attribute(title)") context(title)}
    \par
    \ctxlua{context("test=") xml.filter(lxml.id("#1"),"./attribute(title)")}
    \par
    \ctxlua{context("test=") lxml.att("#1","title")}
\stopxmlsetups

\starttext

    \xmlprocessdata
      {maths}
      {<?xml version='1.0' standalone='yes?><c title="My title"></c>}
      {}

\stoptext
