Hello,

Is it possible to set position of elements in DB (which could be used
as id for current path level) with UPDATE replace statement?

I could get the only solution via UPDATE insert like this:

UPDATE
insert
<root>
{
for $item at $id in collection("samples")/root/item
return
<item>
{
<position-id>
{$id}
</position-id>
, $item/node()
}
</item>
}
</root>
into
doc("temp")

-- 
Regards,

   -Andrey

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to