[NTG-context] How to get attribute value from xml tag?

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Sun Oct 20 16:38:41 CEST 2019



> On 20. Oct 2019, at 16:05, Geert Verhaag <verhaaggchm at ziggo.nl> wrote:
> 
> The \xmlfirst{#1}{distance} yields 20, but how can the unit attribute value km be accessed?
> 
> Gerard
> 
> 

\xmlattribute{#1}{/distance}{unit}

(probably, you need to make a real example. See xml-mkiv.pdf, chapter 3.6)

Thomas


More information about the ntg-context mailing list