23 Dec
2010
23 Dec
'10
9:58 p.m.
On Dec 23, 2010, at 9:47 PM, Jon Crump wrote:
Attached is a minimal working example, along with the pdf output I got running: context --environment=doublefoot.tex doublefoot.xml
Why do you use the intermediate step of creating a macro? I think this does what you want: \startxmlsetups xml:ref \xmldoifelse{#1}{parent::div[@type='arText']} {\footnote[\xmlatt{#1}{target}] {\xmlfirst{#1} {root::/body/text/div[@type='fnotes']/note[@xml:id==string.sub('\xmlatt{#1}{target}',2)]} } } {\note[\xmlatt{#1}{target}]} \xmlflush{#1} \stopxmlsetups Thomas