On 20-10-19 16:38, Thomas A. Schmitz wrote:
On 20. Oct 2019, at 16:05, Geert Verhaag
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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Hi, Thomas, thanks a lot, and it is fairly simple if you know how to read the following (taken from page 22, chapter 3.6): \xmlattribute {...} {...} {...} finds a first match for LPATH at NODE and returns the value of attribute NAME or empty if no such attribute exists But now I get it, thanks! Regards, Gerard