Thanks David !!!
From: [email protected]
[mailto:[email protected]] On Behalf Of David Lee
Sent: Wednesday, October 21, 2015 6:12 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] fn:doc with multiple URIs
fn:doc takes a sequence of docs, not a varargs
So you can do it like these ways:
(: single argument of sequence type)
let $docs := fn:doc( ("uri1","uri2","uri3" ... ))
or
(: multiple calls :)
let $docs:= (fn:doc("uri1"),fn:doc("uri2"),fn:doc("uri3))
or
(: construct a list
let $uris := ("doc1","doc2","doc2" ...)
for $doc in fn:doc($uris)
return
"got the doc" || $doc//something
or
(: a file like
<uris>
<uri>doc1.xml</uri>
<uri>doc2.xml</uri>
...
:)
let $xuridoc = fn:doc("filewithuris.xml")
return
fn:doc( $xuridoc/uris/uri )
-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
[email protected]<mailto:[email protected]>
Phone: +1 812-482-5224
Cell: +1 812-630-7622
www.marklogic.com<http://www.marklogic.com/>
From:
[email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Anoop Khetan
Sent: Wednesday, October 21, 2015 8:32 AM
To: MarkLogic Developer Discussion
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] fn:doc with multiple URIs
Hi Team,
I would like fn:doc multiple URIs at one go.
I tried fn:doc(“uri1”, “uri2”, “uri3”,…)
Its not supporting, can someone help how to proceed.
Best regards,
Anoop Khetan
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not
to copy, disclose, or distribute this e-mail or its contents to any other
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has
taken
every reasonable precaution to minimize this risk, but is not liable for any
damage
you may sustain as a result of any virus in this e-mail. You should carry out
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general