Support #1377
closedException when key() used in saxon:evaluate
0%
Description
SourceForge user: dpirkle
I have XPath expressions that are programmatically
assembled and passed to saxon:evaluate, and I'm trying
to use the key function in these expressions to get
better performance. When I tried this, I got a
ClassCastException.
If you run foobar1.xsl on foobar.xml, you'll see the
exception. Executing the expression without
saxon:evaluate works fine, and you can see this by
running foobar2.xsl.
Thanks for all your help, by the way!
Files
Updated by Anonymous over 19 years ago
SourceForge user: mhkay
Logged In: YES
user_id=251681
key() is an XSLT-only function; the function, and the keys
defined in the stylesheet, are not part of the context
that's available to an expression evaluated using
saxon:evaluate(). However, this restriction is not being
properly checked at present, hence the crash.
Please register to edit this issue