Project

Profile

Help

Bug #4251 ยป stacktrace.txt

Tony Graham, 2019-07-12 18:56

 
java.lang.NullPointerException
at net.sf.saxon.expr.VariableReference.computeCardinality(VariableReference.java:395)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1196)
at net.sf.saxon.expr.Expression.getDependencies(Expression.java:772)
at net.sf.saxon.expr.Expression.computeDependencies(Expression.java:1258)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1195)
at net.sf.saxon.expr.Expression.getCardinality(Expression.java:714)
at net.sf.saxon.expr.parser.TypeChecker.staticTypeCheck(TypeChecker.java:159)
at net.sf.saxon.expr.GeneralComparison.typeCheck(GeneralComparison.java:211)
at com.saxonica.ee.optim.IndexedFilterExpression.optimize(IndexedFilterExpression.java:185)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.UnaryExpression.optimize(UnaryExpression.java:102)
at com.saxonica.ee.bytecode.ByteCodeCandidate.optimize(ByteCodeCandidate.java:76)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:230)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:334)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.optim.OptimizerEE.tryInlineFunctionCall(OptimizerEE.java:1150)
at net.sf.saxon.expr.UserFunctionCall.optimize(UserFunctionCall.java:406)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.FilterExpression.optimize(FilterExpression.java:315)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.instruct.Choose.optimize(Choose.java:502)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.instruct.Block.optimize(Block.java:658)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.trans.TemplateRuleInitializer.init(TemplateRuleInitializer.java:63)
at com.saxonica.ee.trans.TemplateRuleEE.initialize(TemplateRuleEE.java:85)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:509)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.ForEach.lambda$processLeavingTail$0(ForEach.java:484)
at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:484)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.constructElement(ElementCreator.java:432)
at net.sf.saxon.expr.instruct.ElementCreator.evaluateItem(ElementCreator.java:375)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:411)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:425)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:721)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:747)
at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347)
at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:311)
at net.sf.saxon.Transform.processFile(Transform.java:1287)
at net.sf.saxon.Transform.doTransform(Transform.java:815)
at net.sf.saxon.Transform.main(Transform.java:80)
java.lang.RuntimeException: Internal error evaluating template rule at line 98 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/generateBookmarks.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.ForEach.lambda$processLeavingTail$0(ForEach.java:484)
at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:484)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.constructElement(ElementCreator.java:432)
at net.sf.saxon.expr.instruct.ElementCreator.evaluateItem(ElementCreator.java:375)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:411)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:425)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:721)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:747)
at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347)
at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:311)
at net.sf.saxon.Transform.processFile(Transform.java:1287)
at net.sf.saxon.Transform.doTransform(Transform.java:815)
at net.sf.saxon.Transform.main(Transform.java:80)
Caused by: java.lang.NullPointerException
at net.sf.saxon.expr.VariableReference.computeCardinality(VariableReference.java:395)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1196)
at net.sf.saxon.expr.Expression.getDependencies(Expression.java:772)
at net.sf.saxon.expr.Expression.computeDependencies(Expression.java:1258)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1195)
at net.sf.saxon.expr.Expression.getCardinality(Expression.java:714)
at net.sf.saxon.expr.parser.TypeChecker.staticTypeCheck(TypeChecker.java:159)
at net.sf.saxon.expr.GeneralComparison.typeCheck(GeneralComparison.java:211)
at com.saxonica.ee.optim.IndexedFilterExpression.optimize(IndexedFilterExpression.java:185)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.UnaryExpression.optimize(UnaryExpression.java:102)
at com.saxonica.ee.bytecode.ByteCodeCandidate.optimize(ByteCodeCandidate.java:76)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:230)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:334)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.optim.OptimizerEE.tryInlineFunctionCall(OptimizerEE.java:1150)
at net.sf.saxon.expr.UserFunctionCall.optimize(UserFunctionCall.java:406)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.FilterExpression.optimize(FilterExpression.java:315)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.instruct.Choose.optimize(Choose.java:502)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.instruct.Block.optimize(Block.java:658)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.trans.TemplateRuleInitializer.init(TemplateRuleInitializer.java:63)
at com.saxonica.ee.trans.TemplateRuleEE.initialize(TemplateRuleEE.java:85)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:509)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 62 more
java.lang.RuntimeException: Internal error evaluating template rule at line 137 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/baseProcessing.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:721)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:747)
at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347)
at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:311)
at net.sf.saxon.Transform.processFile(Transform.java:1287)
at net.sf.saxon.Transform.doTransform(Transform.java:815)
at net.sf.saxon.Transform.main(Transform.java:80)
Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 98 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/generateBookmarks.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.ForEach.lambda$processLeavingTail$0(ForEach.java:484)
at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:484)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.constructElement(ElementCreator.java:432)
at net.sf.saxon.expr.instruct.ElementCreator.evaluateItem(ElementCreator.java:375)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:411)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:425)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 23 more
Caused by: java.lang.NullPointerException
at net.sf.saxon.expr.VariableReference.computeCardinality(VariableReference.java:395)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1196)
at net.sf.saxon.expr.Expression.getDependencies(Expression.java:772)
at net.sf.saxon.expr.Expression.computeDependencies(Expression.java:1258)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1195)
at net.sf.saxon.expr.Expression.getCardinality(Expression.java:714)
at net.sf.saxon.expr.parser.TypeChecker.staticTypeCheck(TypeChecker.java:159)
at net.sf.saxon.expr.GeneralComparison.typeCheck(GeneralComparison.java:211)
at com.saxonica.ee.optim.IndexedFilterExpression.optimize(IndexedFilterExpression.java:185)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.UnaryExpression.optimize(UnaryExpression.java:102)
at com.saxonica.ee.bytecode.ByteCodeCandidate.optimize(ByteCodeCandidate.java:76)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:230)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:334)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.optim.OptimizerEE.tryInlineFunctionCall(OptimizerEE.java:1150)
at net.sf.saxon.expr.UserFunctionCall.optimize(UserFunctionCall.java:406)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.FilterExpression.optimize(FilterExpression.java:315)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.instruct.Choose.optimize(Choose.java:502)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.instruct.Block.optimize(Block.java:658)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.trans.TemplateRuleInitializer.init(TemplateRuleInitializer.java:63)
at com.saxonica.ee.trans.TemplateRuleEE.initialize(TemplateRuleEE.java:85)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:509)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 62 more
java.lang.RuntimeException: Internal error evaluating template rule at line 103 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/baseProcessing.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:721)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:747)
at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347)
at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:311)
at net.sf.saxon.Transform.processFile(Transform.java:1287)
at net.sf.saxon.Transform.doTransform(Transform.java:815)
at net.sf.saxon.Transform.main(Transform.java:80)
Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 137 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/baseProcessing.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 14 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 98 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/generateBookmarks.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.ForEach.lambda$processLeavingTail$0(ForEach.java:484)
at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:484)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.constructElement(ElementCreator.java:432)
at net.sf.saxon.expr.instruct.ElementCreator.evaluateItem(ElementCreator.java:375)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:411)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:425)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 23 more
Caused by: java.lang.NullPointerException
at net.sf.saxon.expr.VariableReference.computeCardinality(VariableReference.java:395)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1196)
at net.sf.saxon.expr.Expression.getDependencies(Expression.java:772)
at net.sf.saxon.expr.Expression.computeDependencies(Expression.java:1258)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1195)
at net.sf.saxon.expr.Expression.getCardinality(Expression.java:714)
at net.sf.saxon.expr.parser.TypeChecker.staticTypeCheck(TypeChecker.java:159)
at net.sf.saxon.expr.GeneralComparison.typeCheck(GeneralComparison.java:211)
at com.saxonica.ee.optim.IndexedFilterExpression.optimize(IndexedFilterExpression.java:185)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.UnaryExpression.optimize(UnaryExpression.java:102)
at com.saxonica.ee.bytecode.ByteCodeCandidate.optimize(ByteCodeCandidate.java:76)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:230)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:334)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.optim.OptimizerEE.tryInlineFunctionCall(OptimizerEE.java:1150)
at net.sf.saxon.expr.UserFunctionCall.optimize(UserFunctionCall.java:406)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.FilterExpression.optimize(FilterExpression.java:315)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.instruct.Choose.optimize(Choose.java:502)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.instruct.Block.optimize(Block.java:658)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.trans.TemplateRuleInitializer.init(TemplateRuleInitializer.java:63)
at com.saxonica.ee.trans.TemplateRuleEE.initialize(TemplateRuleEE.java:85)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:509)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 62 more
java.lang.RuntimeException: Internal error evaluating template rule at line 26 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/baseProcessing.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:747)
at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347)
at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:311)
at net.sf.saxon.Transform.processFile(Transform.java:1287)
at net.sf.saxon.Transform.doTransform(Transform.java:815)
at net.sf.saxon.Transform.main(Transform.java:80)
Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 103 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/baseProcessing.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:721)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 7 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 137 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/baseProcessing.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:255)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 14 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 98 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/generateBookmarks.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:371)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:532)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.ForEach.lambda$processLeavingTail$0(ForEach.java:484)
at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:484)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:299)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.constructElement(ElementCreator.java:432)
at net.sf.saxon.expr.instruct.ElementCreator.evaluateItem(ElementCreator.java:375)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:179)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:353)
at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:411)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:132)
at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:425)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 23 more
Caused by: java.lang.NullPointerException
at net.sf.saxon.expr.VariableReference.computeCardinality(VariableReference.java:395)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1196)
at net.sf.saxon.expr.Expression.getDependencies(Expression.java:772)
at net.sf.saxon.expr.Expression.computeDependencies(Expression.java:1258)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1195)
at net.sf.saxon.expr.Expression.getCardinality(Expression.java:714)
at net.sf.saxon.expr.parser.TypeChecker.staticTypeCheck(TypeChecker.java:159)
at net.sf.saxon.expr.GeneralComparison.typeCheck(GeneralComparison.java:211)
at com.saxonica.ee.optim.IndexedFilterExpression.optimize(IndexedFilterExpression.java:185)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.UnaryExpression.optimize(UnaryExpression.java:102)
at com.saxonica.ee.bytecode.ByteCodeCandidate.optimize(ByteCodeCandidate.java:76)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:230)
at net.sf.saxon.expr.LetExpression.optimize(LetExpression.java:334)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.optim.OptimizerEE.tryInlineFunctionCall(OptimizerEE.java:1150)
at net.sf.saxon.expr.UserFunctionCall.optimize(UserFunctionCall.java:406)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.FilterExpression.optimize(FilterExpression.java:315)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.FunctionCall.optimize(FunctionCall.java:236)
at net.sf.saxon.expr.SystemFunctionCall.optimize(SystemFunctionCall.java:238)
at net.sf.saxon.functions.Exists$1.optimize(Exists.java:32)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.instruct.Choose.optimize(Choose.java:502)
at net.sf.saxon.expr.Operand.optimize(Operand.java:206)
at net.sf.saxon.expr.Expression.optimizeChildren(Expression.java:617)
at net.sf.saxon.expr.instruct.Block.optimize(Block.java:658)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1201)
at com.saxonica.ee.trans.TemplateRuleInitializer.init(TemplateRuleInitializer.java:63)
at com.saxonica.ee.trans.TemplateRuleEE.initialize(TemplateRuleEE.java:85)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:509)
at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:300)
at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:251)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:300)
at net.sf.saxon.expr.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:45)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:191)
at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:188)
at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:531)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:712)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:352)
... 62 more
Fatal error during transformation: java.lang.RuntimeException: Internal error evaluating template rule at line 26 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/baseProcessing.xsl
    (1-1/1)