Project

Profile

Help

Bug #6134

closed

Partial function application call to function in ixsl namespace fails

Added by Debbie Lockett over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
IXSL extensions
Sprint/Milestone:
-
Start date:
2023-07-19
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2, Trunk
Fix Committed on JS Branch:
2, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

I've stumbled across a bug where some calls to functions in the ixsl namespace fail. It seems that the problem occurs when the function call gets exported as an "fnRef" expression, rather than an "ifCall" expression. For instance, when the ixsl function is called as a partial function application. SaxonJS actually attempts to call the function with the same local name in the fn namespace, resulting in unexpected results, or failure if such a function does not exist.

e.g. array:for-each(['A string', 'B string'], ixsl:contains(?, 'string')) actually ends up calling fn:contains instead of ixsl:contains.

e.g. array:for-each(['A string', 'B string'], ixsl:get(?, 'string')) fails with "The get() construct is not implemented in SaxonJS".

Please register to edit this issue

Also available in: Atom PDF Tracking page