Omit the select="" attribute.
Node also, you could be a lot more concise and readable:
<xsl:with-param name="input">
<xsl:value-of select="Val"/>
</xsl:with-param>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference