Project

Profile

Help

Support #3750

closed

xsl:evaluate can't see user defined function in xsl stylesheet

Added by Frank Steimke about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2018-04-19
Due date:
% Done:

0%

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

Description

Hello,

we wrote a xslt 3.0 schema-aware stylesheet which constructs a function with a given signature from the input document, which contains the function body. It then applies the constructed function to other parts of the input document. The function definition is constructed as a string (concatenation of signature and body). We use xsl:evaluate to turn this string into a function.

Whe the function body contains a call to a function which is defined in the stylesheet, we observe different behavior in Oxygen 19.1 (SAXON EE 9.7.0.19) and Oxygen 20, bundled with Saxon EE 9.8.0.8. With Oxygen 19.1 it works, but with Oxygen 20 we get the error message:

Static error in XPath expression supplied to xsl:evaluate: Cannot find a 1-argument function named ...

I would think it's a bug, because section 5.3.1 of XSLT 3.0 Spec (initializing the static context) says that

The stylesheet functions defined in the containing package are part of the static context (as far as i understand this section).

I have provided a simple test case. It does work with Oxygen 19 and fails within Oxygen 20.

Sincerely,

Frank


Files

fbug.zip (2.9 KB) fbug.zip Frank Steimke, 2018-04-19 06:34

Please register to edit this issue

Also available in: Atom PDF