title: last function in xquery
body: <p>I'm using the last() function to try to get the last entry in my xml as so: </p>
  
  <pre><code>//Name[last()]
  </code></pre>
  
  <p>however, it is returning the list to me rather than just the last name in the document... any suggestions?</p>
  
  <p>thanks</p>