W3C home > Mailing lists > Public > www-ql@w3.org > January to March 2006

xq update: what gets deleted when you delete a node?

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 30 Jan 2006 16:59:08 GMT
Message-Id: <200601301659.QAA23688@penguin.nag.co.uk>
To: www-ql@w3.org


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
________________________________________________________________________
Received on Monday, 30 January 2006 16:59:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:21 GMT