Bug #3261
Updated by Michael Kay over 5 years ago
This is very similar with: https://saxonica.plan.io/issues/3195 with probably the same stack trace but caused by another situation, as it still occurs with the patch from https://saxonica.plan.io/issues/3195 present: ~~~ java.lang.AssertionError: Duplicate binding slot assignment at net.sf.saxon.expr.GlobalVariableReference.setBindingSlot(GlobalVariableReference.java:60) at net.sf.saxon.expr.instruct.ComponentCode.processComponentReference(ComponentCode.java:140) at net.sf.saxon.expr.instruct.ComponentCode.allocateBindingSlotsRecursive(ComponentCode.java:106) at net.sf.saxon.expr.instruct.ComponentCode.allocateBindingSlotsRecursive(ComponentCode.java:109) at net.sf.saxon.expr.instruct.ComponentCode.allocateBindingSlotsRecursive(ComponentCode.java:109) at net.sf.saxon.expr.instruct.ComponentCode.allocateBindingSlotsRecursive(ComponentCode.java:109) at net.sf.saxon.expr.instruct.ComponentCode.allocateBindingSlotsRecursive(ComponentCode.java:109) at net.sf.saxon.expr.instruct.ComponentCode.allocateBindingSlotsRecursive(ComponentCode.java:109) at net.sf.saxon.expr.instruct.ComponentCode.allocateBindingSlotsRecursive(ComponentCode.java:109) at net.sf.saxon.expr.instruct.ComponentCode.allocateAllBindingSlots(ComponentCode.java:100) at net.sf.saxon.style.PrincipalStylesheetModule.compile(PrincipalStylesheetModule.java:1334) at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:265) at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:260) at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:101) at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:859) at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:177) at net.sf.saxon.jaxp.SaxonTransformerFactory.newTransformer(SaxonTransformerFactory.java:131) ~~~ I will try to provide some test XML and XSLT. I did not test this with the latest Saxon 9.8.