Manuel Darveau wrote:
As far as I understand it, that is correct. Count
works on a per document basis. Which can a times be a pain. But you
can then just add up the counts in each of your resource results, and
you've got your answer.
IMHO, if you ask a count() on a NodeList (whose node come from a single or multiple document), it should return only one value.
If you want the count of nodes from only one document, you should feed count() with a nodes that come only from that document.
In my point of view, there should not be any
difference in the query made on a document or on a
collection. Collection *IS* a document that contain
other documents right? It is a logical document that
regroup physical document.
No, here you are not right. Collection is *NOT* a document, even a logical one. XPath is applied not to collection, but to each individual document in the collection. This is xindice modus operandi.
Vadim