[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Aw: Re: Need a little help with xsl:evaluate

Subject: Aw: Re: Need a little help with xsl:evaluate
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Jun 2024 10:18:19 -0000
Aw: Re:  Need a little help with xsl:evaluate
 I can't reproduce that with Saxon 12.4 HE.On line fiddle.Which Saxon
version is that? Gesendet: Sonntag, 30. Juni 2024 um 12:08 Uhr
Von: "Roger L Costello costello@xxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
An: "xsl-list@xxxxxxxxxxxxxxxxxxxxxx" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Betreff: Re:  Need a little help with xsl:evaluateMartin 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.j
ava:52)

at net.sf.saxon.Controller.warning(Controller.java:469)

at
net.sf.saxon.expr.instruct.EvaluateInstr$1.issueWarning(EvaluateInstr.jav
a:354)

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(ForEac
h.java:489)

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.j
ava:52)

at net.sf.saxon.Controller.warning(Controller.java:469)

at
net.sf.saxon.expr.instruct.EvaluateInstr$1.issueWarning(EvaluateInstr.jav
a:354)

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(ForEac
h.java:489)

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

XSL-List info and archiveEasyUnsubscribe (by email)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.