Hi,
I've created a simple self-submitting query form that works except for one
small part: 'No matches found.' never appears (even when there are no
matches). I'm guessing $qresults is always true and that I am either not
using cts:search correctly or that I am not approaching this situation
correctly (have had to self-teach myself XQuery/ML over the past couple
days). Any help would be greatly appreciated (and I would of course be happy
to further explain if this isn't enough information).
Thanks,
Ruth
declare function local:showresults()
{
if(xdmp:get-request-field("wcq")) then
let $q := xdmp:get-request-field("wcq")
for $qresults in cts:search(doc("wcresults.xml")/wc:wcresults/wc:wcresult,
$q)
return
if($qresults) then <p>{fn:string($qresults)}</p>
else <b>No matches found.</b>
else ()
};
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general