title: How to get maximum value under same node in xslt
body: <p>I have a xml like below :</p>
  
  <pre><code>&lt;Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;Name&gt;HourlyReport&lt;/Name&gt;
    &lt;Id&gt;8&lt;/Id&gt;
    &lt;TotalResults&gt;1&lt;/TotalResults&gt;
    &lt;TotalPages&gt;1&lt;/TotalPages&gt;
    &lt;Items&gt;
      &lt;Item&gt;
        &lt;Id&gt;1&lt;/Id&gt;
        &lt;Hour0&gt;23&lt;/Hour0&gt;
        &lt;Hour1&gt;12&lt;/Hour1&gt;
        &lt;Hour2&gt;7&lt;/Hour2&gt;
        &lt;Hour3&gt;18&lt;/Hour3&gt;
        &lt;Hour4&gt;32&lt;/Hour4&gt;
        .
        .
        .
        &lt;Hour20&gt;28&lt;/Hour20&gt;
        &lt;Hour21&gt;39&lt;/Hour21&gt;
        &lt;Hour22&gt;51&lt;/Hour22&gt;
        &lt;Hour23&gt;49&lt;/Hour23&gt;
      &lt;/Item&gt;
    &lt;/Items&gt;
  &lt;/Report&gt;
  </code></pre>
  
  <p>i Need maximum value from above XML using <strong>xslt</strong> . In above case maximum value is <strong>51</strong>. How i can get that? Also is it possible to get this maximum value in any xslt variable, so i can use it some where else. I am not getting any way. You can use any xslt version 1.0 or 2.0 .</p>