All numbers in XSLT are floating point.
Conversion to numbers can be implicit.
You can explicitly convert to a number via: number(expr).
Summing numbers:
<xsl:template match="items"> <p>Total: <xsl:value-of select="sum(item/cost)"/></p> </xsl:template>