---------- Forwarded message ---------- From: Rahul Saluja <[email protected]> Date: Mon, Oct 12, 2009 at 9:56 PM Subject: help on updating node To: General Mark Logic Developer Discussion <[email protected] >
hello all,
I am trying to update a particular element in an xml document using
node-replace api, in the process of it i have been doing couple of things
here is the flow after getting the result from search i call another query
named update-write.xqy , which in turns call my function to update the data
into the database
in process of doing so i am not getting any error nor my data is getting
updated, i am attaching code for your reference for the same as i don't want
this post to be too big .
i am thinking culprit is me trying to find uri using
<input type="hidden" name="calculatedUri" value="{(xdmp:node-uri($book))}"/>
consider starting point as
1)update-main-searchresult.xqy
which is calling
update-write.xqy on submit action
2) in update-write.xqy i am calling a function written in my another module
which is supposed to update the data
but call is not reaching there as in browser i can see title of
update-main-searchresult.xqy
i know its bit messy, but this is first time i amputting my hands on it.
please help me.
looking forward to your response.
regards
Rahul
update-main-searchresult.xqy
Description: Binary data
update-write.xqy
Description: Binary data
search-lib1.xqy
Description: Binary data
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
