Gurbeer,
You can use xdmp:exists(fn:doc("/yourfile")) or fn:doc-available('/your-file')
if you want to confirm a document exists in the database. It will resolve from
index if you have uri index turned on. If you need to check the existence of
multiple documents, then you can simulate the check similar to something like
this.
cts:uris((),(),cts:document-query($list-of-uris))[fn:not(. = $list-of-uris)]
Regards,
Gary Vdial
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general