I want to sent more then one expression to xpath something like this.

expression = "/BOOKLIST/BOOKS/ITEM|sum(//BOOKLIST/BOOKS/ITEM/PAGES)";

thats the problem my evaluation function expects a NodeSet and for the sum a String. Ofcourse I can split those on the'  |  ' character en use two return types XPathConstants.NodeSet and XPathConstants.Number. But I prefer to handle this in one expression. So I thought XPath 2.0 can to this for me.

So this is the file I used from Saxon http://kickjava.com/src/ApplyXPathJAXP.java.htm examples.

Sorry but I dont understand how I can use s9api to solve this problem..

thanks.