![](https://secure.gravatar.com/avatar/e862dbef37733a423141a033116bc6f0.jpg?s=120&d=mm&r=g)
20 Oct
2019
20 Oct
'19
8:05 a.m.
Hi, Struggling with XML in ConTeXt. I'have the following tag in my xml file: ... <invoice> <travel> <distance unit="km">20</distance> </travel> ... </invoice> \startxmlsetups xml:invoice:travel \xmlfirst{#1}{distance} \stopxmlsetups The \xmlfirst{#1}{distance} yields /20/, but how can the unit attribute value /km/ be accessed? Gerard --