title: How can I use XPath to find the minimum value of an attribute in a set of elements?
body: <p>If I have XML like:</p>
  
  <pre><code>&lt;foo&gt;
    &lt;bar id="1" score="192" /&gt;
    &lt;bar id="2" score="227" /&gt;
    &lt;bar id="3" score="105" /&gt;
    ...
  &lt;/foo&gt;
  </code></pre>
  
  <p>Can I use XPath to find the minimum and maximum values of <code>score</code>?</p>
  
  <p><strong>Edit</strong>: The tool i'm using (<a href="http://andariel.uworks.net/" rel="noreferrer">Andariel</a> ant tasks) doesn't support the XPath 2.0 solution.</p>