Project

Profile

Help

Saxon 8.1.1 and XPath 2.0 conformance

Added by Anonymous over 19 years ago

Legacy ID: #2959327 Legacy Poster: Yana Kadiyska (ykadiyska)

Hi, I'm trying to evaluate the query shown in section 3.7 of the XPath 2.0 spec: for $a in distinct-values(//author) return ($a, for $b in //book[author = $a] return $b/title) I am using the following code: XPathEvaluator xpe = new XPathEvaluator(new DOMSource(dom)); List l=xpe.evaluate(query); where dom is bound to the input document shown in the spec. I get the following exception: Error java.lang.ArrayIndexOutOfBoundsException: 2 java.lang.ArrayIndexOutOfBoundsException: 2 at net.sf.saxon.expr.XPathContextMajor.setLocalVariable(XPathContextMajo r.java:213) at net.sf.saxon.expr.ForExpression$MappingAction.map(ForExpression.java: 208) at net.sf.saxon.expr.MappingIterator.next(MappingIterator.java:64) at net.sf.saxon.expr.AppendExpression$AppendIterator.next(AppendExpressi on.java:155) at net.sf.saxon.expr.MappingIterator.next(MappingIterator.java:54) at net.sf.saxon.xpath.XPathEvaluator.evaluate(XPathEvaluator.java:186) is this a bug or am I doing something wrong?


Replies (1)

RE: Saxon 8.1.1 and XPath 2.0 conformance - Added by Anonymous over 19 years ago

Legacy ID: #2961527 Legacy Poster: Michael Kay (mhkay)

This is the known error https://sourceforge.net/tracker/index.php?func=detail&aid=1059840&group_id=29872&atid=397617 which is fixed in Saxon 8.2 Michael Kay

    (1-1/1)

    Please register to reply