Suppose we have node <example> and want to execute the xmlsetup: mysetups:examplehandler on it. The idea is not to hardcode this but to do it on the fly from <definesetup name=“example”>.

The following \xmlsetup comes into mind:

\startxmlsetups mysetups:definesetup
\xmlsetsetup{#1}{\xmlatt{#1}{name}}{mysetups:examplehandler}
\stopxmlsetups
\startxmlsetups mysetups:examplehandler
...
\stopxmlsetups

But this is either the wrong call or there is something missing, because on input of <example/> the examplehandler is not invoked.
How to?

dr. Hans van der Meer