xq update: what gets deleted when you delete a node?
David Carlisle <[email protected]> Mon, 30 Jan 2006 16:59:08 GMT
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Message-ID | <[email protected]> |
I just wrote in another thread:
> you are stuck because there is no node with the identity inner-a.
I can't actually see anything in the update spec that says that if you
delete a node then its children are deleted. If you delete (or in the
example posted earlier, replace) a node, are its children still around?
If I go
let $a := <x><y/></x>, $b=$a/y
return
(
delete{$a},
$b
)
do I get <y/> as the value of $b or has that node gone somewhere?
For that matter what do I get if I do
let $a := <x><y/></x>
return
(
delete{$a},
$a
)
what's the value of $a if it holds a deleted node?
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________