You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Kevin O'Neill <ke...@rocketred.com.au> on 2003/08/06 10:24:29 UTC
None Node XPath results
I've been implementing support for none Node XPath results, which I have
working to an extent.
My sticking point is this. If I query 'count(//foo)' on a collection with
say 5 documents should there be 5 result nodes or should there be one
aggregated node?
Unfortunatly the spec is a little unclear:
"Run an XPath query against the Collection. The XPath will be applied to
all XML resources stored in the Collection. The result is a ResourceSet
containing the results of the query. Any namespaces used in the query
string will be evaluated using the mappings setup using setNamespace."
Thoughts?
-k.