evaluating $xpath2: java.lang.RuntimeException: Internal error evaluating template rule at line 6 in module file:/home/pieter/xinterpol/testmap.xslt
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:402)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:456)
at net.sf.saxon.Controller.transformDocument(Controller.java:2291)
at net.sf.saxon.Controller.transform(Controller.java:1889)
at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:553)
at net.sf.saxon.Transform.processFile(Transform.java:1178)
at net.sf.saxon.Transform.doTransform(Transform.java:765)
at net.sf.saxon.Transform.main(Transform.java:77)
Caused by: java.lang.ClassCastException: net.sf.saxon.value.StringValue cannot be cast to net.sf.saxon.value.QNameValue
at com.saxonica.xslt3.instruct.EvaluateInstr.iterate(EvaluateInstr.java:374)
at net.sf.saxon.expr.instruct.BlockIterator.next(BlockIterator.java:49)
at net.sf.saxon.expr.instruct.Message.processLeavingTail(Message.java:212)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:654)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:704)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:389)
... 7 more
Fatal error during transformation: java.lang.RuntimeException: Internal error evaluating template rule at line 6 in module file:/home/pieter/xinterpol/testmap.xslt