On 8/27/2015 11:00 AM, Xan wrote:
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.
if you use commands that accept a path you can backtrack, like \xmlall{#1}{../../*} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------