These are actually being executed as a single transaction: updates aren't
visible until *after* the transaction completes.  I think you could use ";"
instead of "," and get the result you're after
 
-Mike


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Chowdhury,
Soumadri
Sent: Saturday, December 05, 2009 8:19 AM
To: [email protected]
Subject: [MarkLogic Dev General] Not able to retrive content from uri



Hi,

 

I have written two consecutive FLOWR expressions like the following,

 

let $a1 := "" return (xdmp:document-insert("/demo010",<a>data</a>)),

let $a2 := "" return (fn:doc("/demo010"))

 

The problem is the 2nd line returns an empty sequence, instead of the
content of the uri "/demo010"

 

How to resolve this problem? Any idea?

 

Thanks & Regards,

Soumadri Roy

 



  _____  

Disclaimer:
-----------

"This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message. Any
unauthorized review, use, disclosure, dissemination, forwarding, printing or
copying of this e-mail or any action taken in reliance on this e-mail is
strictly prohibited and may be unlawful."




_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to