Project

Profile

Help

Bug #3635

closed

passing stylesheet parameters via fn:transform causes an exception

Added by Liam Quin over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2018-01-21
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

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

exception-two.xsl (351 Bytes) exception-two.xsl called from exception.xsl Liam Quin, 2018-01-21 02:22
exception.xsl (467 Bytes) exception.xsl main stylesheet Liam Quin, 2018-01-21 02:22

Please register to edit this issue

Also available in: Atom PDF