Project

Profile

Help

Bug #2527

closed

Failure calling a function returned from a template

Added by Michael Kay almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
Start date:
2015-12-04
Due date:
% Done:

100%

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

Description

Failure running XSLT3 test case higher-order-functions-072, newly created in the course of investigating bug 2523.

The test attempts to return an inline function from a template and then invoke it; the function contains a nested inline function, whose closure refers to the template parameters.

Fails on both 9.6 and 9.7. The error is FOTY0013, cannot atomize a function item (or map), caused by supplying a map as the value of an argument where a string is expected.

Actions #1

Updated by Michael Kay almost 9 years ago

  • Status changed from New to Resolved

Fixed in XPathParserPE on both the 9.6 and 9.7 branches.

The problem was that with nested inline functions within an XSLT template/function, where the innermost function contains a reference to a variable declared at the XSLT level, it was being bound directly to the XSLT variable, rather than setting up a chain of bindings via the parameters of the intermediate functions.

Actions #2

Updated by O'Neil Delpratt almost 9 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.8

Bug fix applied in the Saxon 9.6.0.8 maintenance release

Actions #3

Updated by O'Neil Delpratt almost 9 years ago

  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.8 added
Actions #4

Updated by O'Neil Delpratt almost 9 years ago

  • Sprint/Milestone set to 9.6.0.8

Please register to edit this issue

Also available in: Atom PDF