Convert xs:double to xs:integer in xPath 2.0
<p>I am trying to convert a xs:double to xs:integer in xPath 2.0 with functions (I don't want to use an XSLT). </p>

<pre><code>number(//version//number/text())
</code></pre>

<p>The above output to - 6.0 (taking number as 6.0). How can I convert this to be 6?</p>