xsl:apply-templates streaming: fails when processing grounded node
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