xsl:param type conversion
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
No attempt is made on xsl:apply-templates or
xsl:call-template to check the types declared on
xsl:param elements in the called template. If the
supplied value is the wrong type, no error is reported
and no attempt is made to convert the value. Subsequent
code in the called template may fail because the value
of the parameter does not have the type declared for it.
Reported by Dimitre Novatchev on xsl-list. Source code
fixed, test cases added (var16, var904err). Applies to
all earlier 7.x releases.
The current code does dynamic checking/conversion for
all called templates. Ideally the code should be
compiled statically in the case of call-template.
Logged In: YES
user_id=251681
Fixed in 7.8.