Project

Profile

Help

Revision fd0656bb

Added by Michael Kay about 13 years ago

Fix bug 2309294 (Saxon-SA with tracing enabled: no slot for local param)

View differences:

latest9.1/bj/net/sf/saxon/style/XSLTemplate.java
355 355
//        ExpressionPresenter presenter = ExpressionPresenter.make(getConfiguration());
356 356
//        exp.explain(presenter);
357 357
//        presenter.close();
358
        Expression exp2 = getConfiguration().getOptimizer().promoteExpressionsToGlobal(exp, visitor);
359
        if (exp != exp2) {
360
            compiledTemplate.setBody(exp2);
361
            exp = exp2;
358
        if (!getConfiguration().isCompileWithTracing()) {
359
            Expression exp2 = getConfiguration().getOptimizer().promoteExpressionsToGlobal(exp, visitor);
360
            if (exp != exp2) {
361
                compiledTemplate.setBody(exp2);
362
                exp = exp2;
363
            }
362 364
        }
363 365

  
364 366
        allocateSlots(exp);

Also available in: Unified diff