XML : Convert xs:double to xs:integer in xPath 2.0

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).

  number(//version//number/text())    

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

No comments:

Post a Comment