The parameters must be typecasted in the XSL file for the call.
Example:
<xsl:value-of select="nameUtils:magDat(xs:integer(111))"/>
Here magDat is the function name which expects an integer parameter. You can also pass a variable as shown below:
<xsl:value-of select="nameUtils:magDat(xs:integer($variable))"/>
where variable is a <xsl:variable> element.
Since xs:integer is part of the w3 schema, refer the same in the namespaces by adding the following:
xmlns:xs="http://www.w3.org/2001/XMLSchema"
Note that the above is an example for a one parameter function. It can be extended for multiparameters by passing comma separated input parameters.
Attached is a sample jar and XSL (Filenames: magdat.jar and test.xsl) demonstrating calling of the Java function from within the jar from the XSL.