Actions
Bug #2172
closed![Author: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
xsl:apply-templates streaming: fails when processing grounded node
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
Actions