Hi,
I just found something wrong (I guess) with XPath predicates on ML 6.0-2.1
The following query returns weird result :
fn:count(for $doc in fn:collection("test")[fn:exists(*)][1]
return $doc)
Say I put 10 documents in collection "test", I guess this query return only 1
(the first document) document from the collection. But instead it returns 10
documents.
I seems that after the first predicates there is 10 sequences of 1 document
each instead of one single collection with 10 document inside.
For information, this is the minimal test case I was able to write, but it is
the same with more complexe predicates.
Note that
for $doc in fn:collection("test")[1]
return $doc
successfully return one single element.
Any clue? thanks
Stéphane
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general