On Thu, Dec 23, 2010 at 12:58 PM, Thomas A. Schmitz
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
Thanks Thomas, My thought, ill-informed perhaps, was simply for clarity: to make it clear that I'm using the same value in both \note[] and \footnote[]. In any case, sadly, using what you suggest still gets me the same result. Jon