Project

Profile

Help

Bug #2172

closed

xsl:apply-templates streaming: fails when processing grounded node

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Streaming
Sprint/Milestone:
Start date:
2014-10-08
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

When the select expression of xsl:apply-templates is consuming but grounded (e.g. select-"/a/b/copy-of()") the processing assumes that the mode is streamable, which it does not have to be. The effect is a ClassCastException attempting to cast a Template to TemplateInversion.

A patch is being applied to the 9.6 and 9.7 branches. Test case si-apply-templates-003 added to the w3c test suite.

Reported by Martin Honnen on the saxon-help list.

Please register to edit this issue

Also available in: Atom PDF