|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Need a little help with xsl:evaluate
Martin wrote:
>> Set the context item with e.g.
>> <xsl:evaluate xpath="." context-item="."/>
Okay, I did that. It resulted in the following error message. Is this a bug in
Saxon?
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:222)
at
net.sf.saxon.trans.XmlProcessingIncident.<init>(XmlProcessingIncident.java:52)
at net.sf.saxon.Controller.warning(Controller.java:469)
at
net.sf.saxon.expr.instruct.EvaluateInstr$1.issueWarning(EvaluateInstr.java:35
4)
at
net.sf.saxon.expr.ValueComparison.typeCheck(ValueComparison.java:205)
at
net.sf.saxon.expr.instruct.EvaluateInstr.iterate(EvaluateInstr.java:444)
at net.sf.saxon.expr.Expression.process(Expression.java:949)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:346)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:292)
at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:136)
at
net.sf.saxon.expr.instruct.ForEach.lambda$processLeavingTail$0(ForEach.java:4
89)
at
net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:135)
at
net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:489)
at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:136)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:346)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:292)
at
net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:37
4)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:555)
at
net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:659)
at
net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsl
tTransformer.java:360)
at
net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:28
5)
at net.sf.saxon.Transform.processFile(Transform.java:1313)
at net.sf.saxon.Transform.doTransform(Transform.java:853)
at net.sf.saxon.Transform.main(Transform.java:82)
java.lang.RuntimeException: Internal error evaluating template rule at line 8
in module file:/C:/verify.xsl
at
net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:39
3)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:555)
at
net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:659)
at
net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsl
tTransformer.java:360)
at
net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(Xslt30Transformer.java:28
5)
at net.sf.saxon.Transform.processFile(Transform.java:1313)
at net.sf.saxon.Transform.doTransform(Transform.java:853)
at net.sf.saxon.Transform.main(Transform.java:82)
Caused by: java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:222)
at
net.sf.saxon.trans.XmlProcessingIncident.<init>(XmlProcessingIncident.java:52)
at net.sf.saxon.Controller.warning(Controller.java:469)
at
net.sf.saxon.expr.instruct.EvaluateInstr$1.issueWarning(EvaluateInstr.java:35
4)
at
net.sf.saxon.expr.ValueComparison.typeCheck(ValueComparison.java:205)
at
net.sf.saxon.expr.instruct.EvaluateInstr.iterate(EvaluateInstr.java:444)
at net.sf.saxon.expr.Expression.process(Expression.java:949)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:346)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:292)
at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:136)
at
net.sf.saxon.expr.instruct.ForEach.lambda$processLeavingTail$0(ForEach.java:4
89)
at
net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:135)
at
net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:489)
at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:136)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:346)
at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.j
ava:292)
at
net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:37
4)
... 7 more
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








