#967 Variable reference in xsl:number count or from pattern

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

If the count or from attribute of xsl:number is a pattern that contains a variable reference within a predicate, and the variable reference is the only reference to a local variable, the variable will be inlined (that is, replaced by its initializing expression). This action is incorrect, because the context for evaluation is different (and it's a bad optimization because the reference is evaluated repeatedly).

A patch for the 9.1 and 9.2 branches is being committed to Subversion.

Discussion

  • Michael Kay
    Michael Kay
    2009-10-29

    Fixed in 9.2.0.3 and in 9.1.0.8