Hi Sedna Team, Is it possible to execute a UPDATE replace inside a function? Something like: module namespace uid = "https://registrar.ualberta.ca/functions"; declare function uid:get-unique-id() as xs:decimal { let $val := document('unique-sequence')/id let $id := $val + 1 {UPDATE replace $v in document('unique-sequence')/id with <id>{$id}</id>} return $id; } I am simply trying to create a function that will generate a unique id similar to a Sequence in Oracle. Thank you, Jocelyn Raymond
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Sedna-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sedna-discussion
