|
Subject: Re: [xsl] Need a little help with xsl:evaluate From: "Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 30 Jun 2024 10:08:26 -0000 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Need a little help with x, Martin Honnen martin | Thread | Aw: Re: [xsl] Need a little help wi, Martin Honnen martin |
| Re: [xsl] Need a little help with x, Martin Honnen martin | Date | Aw: Re: [xsl] Need a little help wi, Martin Honnen martin |
| Month |