This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2988 - [Update] side-effect of deletion on the value of external variables
Summary: [Update] side-effect of deletion on the value of external variables
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Update Facility (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-07 01:51 UTC by Jim Melton
Modified: 2006-08-01 17:32 UTC (History)
0 users

See Also:


Attachments

Description Jim Melton 2006-03-07 01:51:22 UTC
(Originally reported by .)

Let's assume the following situation. Let n1 be an element and n2 be its parent. Let the external variables $x1 being bound to n1, and $x2 being bound to n2.

What should be effect of the following update program

delete $x2/*

What should be the value of the variable $x1 after the deletion? Should it contain the node n1 (that was just deleted) or not ?


------- Comment #1 From Daniela Florescu 2005-12-06 17:30 [reply] -------

This is also related to bug 2729 (http://www.w3.org/Bugs/Public/show_bug.cgi?id=2979).
Comment 1 Daniela Florescu 2006-08-01 16:57:24 UTC
The latest update document already includes the resolution 
for this question. A deleted node is simply detached from its
parent and has no impact on the binding of external variables.
Comment 2 Daniela Florescu 2006-08-01 16:59:15 UTC
The latest update document already includes the resolution 
for this question. A deleted node is simply detached from its
parent and this operation has no impact on the binding of 
external variables.