<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>Struggling with XML in ConTeXt.</p>
    <p>I'have the following tag in my xml file:</p>
    ...<br>
    <tt><font size="+1"><invoice></font></tt><br>
    <tt><font size="+1">  <travel></font></tt><br>
    <tt><font size="+1">    <distance
        unit="km">20</distance></font></tt><br>
    <tt><font size="+1">  </travel></font></tt><br>
    ...<br>
    <tt><font size="+1"></invoice></font></tt>
    <p><tt><font size="+1">\startxmlsetups xml:invoice:travel<br>
            \xmlfirst{#1}{distance}<br>
          \stopxmlsetups<br>
        </font></tt></p>
    <p>The \xmlfirst{#1}{distance} yields <i>20</i>, but how can the
      unit attribute value <i>km</i> be accessed?</p>
    <p>Gerard<tt><font size="+1"><br>
        </font></tt></p>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <br>
      <div class="moz-signature"><br>
      </div>
    </div>
  </body>
</html>