Project

Profile

Help

Bug #6003

closed

Inline function expression evaluated using xsl:evaluate

Added by Michael Kay over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2023-05-01
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
11, 12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

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.


Files

evaluationTest.xml (1.1 KB) evaluationTest.xml Michael Kay, 2023-05-01 13:21
validation.xslt (2.89 KB) validation.xslt Michael Kay, 2023-05-01 13:21

Related issues

Has duplicate Saxon - Bug #6004: java.lang.RuntimeException: Internal error in XSLT 3 using xsl:evaluate on function call of anonymous functionDuplicate2023-05-01

Actions

Please register to edit this issue

Also available in: Atom PDF