I'm just doing practical training on xml-databases/Xindice. I do some benchmarks using XMark.
I've converted a part of the  XQuery queries of the XMark-benchmark into XPath queries. Some work correct but if I execute the following queries an exception is thrown on the server(!) side:

1) Query=count(/site/closed_auctions/closed_auction/price[.>40])
2) Query=count(/site/regions//item)
3) Query=count(//description) + count(//mail) + count(//email)

The occuring exception on the server side:

org.apache.xpath.XPathException: #NUMBER kann nicht in NodeList konvertiert werden!
    at org.apache.xpath.objects.XObject.error(XObject.java:718)
    at org.apache.xpath.objects.XObject.nodeset(XObject.java:448)
    at org.apache.xindice.core.query.XPathQueryResolver$ResultSet.prepareNextNode(XPathQueryResolver.java:1021)

Two other queries return no results but they should:

4) Query=/site/regions//item[description~='gold']/name
5) Query=site/closed_auctions/closed_auction[count(./annotation/description//emph/keyword) > 0]/seller/@person

(at least no errors occur)

What's wrong with all these queries? Is this a bug?
By the way, does anybody know if Xindice provides full support of XPath?

I use xindice1.0, jdk1.4, windows professional 2000.

Thanks for your help,