Bug #6003
Updated by Michael Kay over 1 year ago
A problem occurs when using `xsl:evaluate` to evaluate an expression in the form of an inline function such as
```
function($x) { $lib?xyz('abc')}
```
where the value of $lib is supplied using `xsl:evaluate/xsl:with-param`.
The expression compiles OK, but a dynamic error occurs because $lib has the wrong dynamic type; it looks as if the supplied value of `$lib` has not been picked up correctly.
XML and XSLT repro files attached.