From: Pierrick B. <pie...@fr...> - 2007-05-08 14:35:35
|
Hi, bryan rasmussen a écrit : > for $elem in collection("/db/FrontalMain/ClientXML")//*[text()='Recno'] > return > <queryResult count="{text:match-count($elem)}"> > {$elem} > </queryResult> > > and I want to get the following other information other than the query: > 1. the count of the queryResult, text:match-count = 0 all the way through. Errr... match-count()would only work with fulltext function and operators, no ? Whare are they in your query ? > 2. The name of the document in the collection that returned this information There is a standard XQuery function for this. Change what you call a "name" to the more specific "URI" and you'll find it, for sure :-) Cheers, p.b. |