Project

Profile

Help

Bug #3020

closed

_APPLY() construct has not been implemented in Saxon-JS

Added by Debbie Lockett over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2016-11-07
Due date:
% Done:

100%

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

Description

The fn:apply() function is not fully implemented in Saxon-JS, since Saxon-JS does not support the higher-order functions feature. However, it is allowed for cases where the function called is a map or array.

The error arises when a dynamic function call on a map or array has been translated (at compile time) to an apply call. Note that how this is done is slightly different for 9.7 and 9.8.

For example, see XSLT 3.0 test -s:maps -t:maps-001.

The SEF produced by 9.7 contains:

The SEF produced by 9.8 contains:

Neither of these constructs is implemented in Saxon-JS 0.9.

Actions #1

Updated by Debbie Lockett over 7 years ago

  • Status changed from New to Resolved

_APPLY() in CoreFn.js and saxon:apply() in ExtraFn.js implemented to share the method already implemented for apply() in CoreFn.js.

Actions #2

Updated by Debbie Lockett over 7 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 0.9.1

Bug fix applied in the Saxon-JS 0.9.1 beta release.

Actions #3

Updated by Community Admin over 6 years ago

  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 0.9.1
  • Applies to JS Branch 0.9 added
  • Fix Committed on JS Branch 0.9 added

Please register to edit this issue

Also available in: Atom PDF Tracking page