Project

Profile

Help

*** Internal Saxon error: local variable encountered whose binding has been deleted

Added by Peter Warren about 8 years ago

I've encountered an issue very similar to bug 2070 (https://saxonica.plan.io/issues/2070). That issue involved losing a variable referenced only in a xsl:sort order attribute.

I receive the same Saxon error when trying to use a variable in an xsl:sort select attribute.

Below is code that triggers the problem. I've simplified my select expression for this example.

		
		
			
			

If I uncomment the reference to $global in the xsl:value-of element, the transformation succeeds without error.

Peter


Replies (3)

Please register to reply

RE: *** Internal Saxon error: local variable encountered whose binding has been deleted - Added by Michael Kay about 8 years ago

Sorry not to reply. We've been focusing recently on reported bugs, which are easier to track than forum messages.

If this is still a problem (with the latest 9.7.0.3 maintenance release), please post it in the bug tracker.

The actual error message indicates that at some stage during the static type checking and optimization, a tree rewrite has gone wrong. The fact that the symptoms are the same as some other bug doesn't mean it's the same cause - we get here by a wide variety of routes. Optimization is very sensitive to small details that might seem irrelevant, so we need a complete stylesheet to reproduce the problem; fragments of code usually don't help.

RE: *** Internal Saxon error: local variable encountered whose binding has been deleted - Added by Peter Warren about 8 years ago

No problem. I actually filed as a bug subsequently when I didn't hear anything. You responded quickly there. The problem was on my end with an older version of the Saxon jar hiding in my classpath. Thanks for the response and sorry for the hassle.

    (1-3/3)

    Please register to reply