Bug #3635
closedpassing stylesheet parameters via fn:transform causes an exception
100%
Description
If i run the enclosed stylesheet, i get an error; this is a stripped-down example. I get what looks like the same error if i try to pass an option map to fn:serialize. In both cases i can work round it by passing an XML fragment.
I also get the same (or a similr, didn't check) error with Saxon EE run from Oxygen XML Editor version 19 (didn't try earlier versions).
java -jar /home/lee/packages/saxonpe/saxon9pe.jar exception.xsl exception.xsl
java.lang.RuntimeException: Internal error evaluating template rule at line 7 in module file:/home/lee/mulberry/balisage-proceedings/deliver/exception.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
at net.sf.saxon.Controller.transformDocument(Controller.java:2402)
at net.sf.saxon.Controller.transform(Controller.java:1970)
at net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:593)
at net.sf.saxon.Transform.processFile(Transform.java:1257)
at net.sf.saxon.Transform.doTransform(Transform.java:780)
at net.sf.saxon.Transform.main(Transform.java:81)
Caused by: java.lang.ClassCastException: net.sf.saxon.value.StringValue cannot be cast to net.sf.saxon.value.QNameValue
at net.sf.saxon.functions.TransformFn.call(TransformFn.java:639)
at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:547)
at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:434)
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
... 7 more
Fatal error during transformation: java.lang.RuntimeException: Internal error evaluating template rule at line 7 in module file:/home/lee/mulberry/balisage-proceedings/deliver/exception.xsl
Files
Please register to edit this issue