Project

Profile

Help

Support #1377

closed

Exception when key() used in saxon:evaluate

Added by Anonymous about 19 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Internals
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Legacy ID:
sf-1165529
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

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

foobar.zip (9.56 KB) foobar.zip Anonymous, 2005-03-17 20:12
Actions #1

Updated by Anonymous about 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

Also available in: Atom PDF