Unbound function call
Added by Anonymous over 18 years ago
Legacy ID: #3610063 Legacy Poster: marcvc (marcvc)
Michael, with Saxon 8.7, consider the following query: declare function local:foo(){ ((<e1 id="1" att1="1"/>, <e1 id="5" att1="2"/>, <e1 id="3" att1="3"/>, <e1 id="4" att1="4"/>)[fn:position() < 3])[./@id = 5] }; local:foo() We get the following error: java.lang.NullPointerException: Unbound function call local:foo at net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:259) at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:206) at net.sf.saxon.expr.ComputedExpression.process(ComputedExpression.java:584) at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:312) at net.sf.saxon.Query.doQuery(Query.java:445) at net.sf.saxon.Query.main(Query.java:81) Thanks, Marc
Replies (1)
RE: Unbound function call - Added by Anonymous over 18 years ago
Legacy ID: #3610492 Legacy Poster: Michael Kay (mhkay)
Thanks, now fixed. See https://sourceforge.net/tracker/index.php?func=detail&aid=1443046&group_id=29872&atid=397617 Michael Kay
Please register to reply