Menu

#1004 Optimization bug with filter applied to stylesheet parameter

v9.2
closed
5
2012-10-08
2009-11-06
Michael Kay
No

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.

Discussion

  • Michael Kay

    Michael Kay - 2010-01-27

    Fixed in 9.2.0.5

     
  • Michael Kay

    Michael Kay - 2010-01-27

    Fixed in 9.2.0.5