The “as” attribute is used to declare types.
<xsl:variable name="i" select="1"/>
is the integer value 1.
<xsl:variable name="fp" select="1" as="xs:double"/>
is the double value 1.0.