#1006 saxon:continue and shadowed variables

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

Within the saxon:iterate extension instruction, if a saxon:continue contains no xsl:with-param element for one of the declared parameters (say there is a declaration <xsl:param name="Z"> but no <xsl:with-param name="Z">), then Saxon implicitly adds an element <xsl:with-param name="Z" select="$Z"/>. This is incorrect if the parameter Z has been shadowed by a local variable declaration with the same name.

This problem will not be fixed on the 9.2 branch; it will be fixed in the next major release. As a workaround, avoid using local variables that have the same names as the declared parameters.

(Test case iterate009)

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

     
  • Michael Kay

    Michael Kay - 2010-01-27

    Fixed in 9.2.0.5