Project

Profile

Help

Bug #5413

closed

Test case accept-0903 crashes (when compiled with XJ)

Added by Michael Kay about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2022-03-22
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

The test is crashing at transform.js#591

const template = templateComp.decl["C"][0];

because templateComp (the component corresponding to the named template xsl:initial-template) has a decl property with no C property.

The test cannot be run with the XX compiler as this does not currently handle multiple packages.

Actions #1

Updated by Michael Kay about 2 years ago

  • Applies to JS Branch 2, Trunk added
  • Fix Committed on JS Branch 2, Trunk added

Changing this line to

const template = templateComp.actor;

Seems to do the trick.

The problem occurs when invoking a transformation using a named template, when the template in question is not in the root package of the stylesheet, but in a used package.

Actions #2

Updated by Michael Kay about 2 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Debbie Lockett about 2 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to SaxonJS 2.4

Bug fix applied in the SaxonJS 2.4 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page