Optimization bug with filter applied to stylesheet parameter
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
Saxon-EE optimizes expressions of the form $var[abc = xyz], in the case where abc is a function of the context item and xyz is not. This is done by building an index for the variable to allow items to be found without a sequential search.
The optimization is failing in the case where $var is a global stylesheet parameter. It will probably also fail in the same way for an external variable in XQuery. The failure results in this message:
*** Internal problem: Base value for indexed filter is not indexable
A patch is being committed to Subversion for the 9.1 and 9.2 branches. A secondary effect of the patch is to avoid the overhead of building an index when the sequence being indexed is empty.
Fixed in 9.2.0.5
Fixed in 9.2.0.5