Manuel Darveau wrote:

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.



I dont want to start a flame war, but I am interested in this issue.

Why a collection is not a document?


I guess you should ask on XML:DB about this...


It seem illogical
to me because that mean XPath function (such as
"count()") does not have the same behaviour with
collections and documents. For example, count() return
a single number when applied against a document.
However, it return a dot separated list when applied
on a collection.


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.


Vadim


This look like against the XPath
standard, no?

From the user perspective, I dont see why there is a
difference between a collection and a document. Form
the developper side, for sure, there is differences,
but why are they apparent to the user?

Thank you





Reply via email to