A StackOverflow exception occurs when an xsl:with-param
instruction has a select expression that contains
references to both (a) a local parameter or variable of
the calling template, and (b) the context node (or
something that depends on it, e.g. @name).
The problem is fixed in the current development build
of 7.6, but I haven't found the root cause. It's
something to do with saving a Closure containing the
saved context for delayed evaluation of the expression.
Test case added: bug95