Manuel Darveau wrote:

No, that's not correct statement. When applied on
collection, it does not work in 1.1b3 at all (it merges all results into
one string, so 0.0 and 0.0 becomes 0.00.0) and it was fixed in 1.1b4.



Ok, so if I get it right, doing a
sum(count(/SOMETHING)) will always return the count of
/SOMETHING, document or collection?



I'm not sure that I got you right... Running XPath sum(count()) and count() on collection will give the same result: ResultSet contining results of execution of this xpath expression against each document in the collection.


So running this against document will give ResultSet with one result, running against collection with 100 documents will give ResultSet with 100 results.

Take a look at the document as well:
http://cvs.apache.org/viewcvs.cgi/xml-xindice/src/documentation/content/xdocs/guide-xpath.xml?rev=1.1&view=auto


Send patches if document is not correct.

Vadim



Reply via email to