in a setup you can say: \xmlshow{#1} to see what is the (current) node
It does not help me. I ask you in other way: if I have this % Presentació: defineix \Presentacio{activitat-id}{presentacio-id} \def\Presentacio#1#2% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/presentacio[@tipus=='#2']/command(xml:display)} } % Si la presentació és de tipus tradicional, aleshores és un 'exercici'. Altrament és una activitat. \startxmlsetups xml:display \startitem[\xmlatt{..}{id}] \xmlflushcontext{#1} \stopexercici \stopxmlsetups gives me nothing in the label of startitem: \startitem[] contents.... \stopexercici when I run \Presentacio{foo}{bar} and it *should* give me \startitem[foo] \xmlflushcontext{#1} \stopexercici It seems like when I descend to activitat/presentacio then I can't go up.