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 3800 - [UPD] upd:replaceNode has unexpected semantics for attributes
Summary: [UPD] upd:replaceNode has unexpected semantics for attributes
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Update Facility (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P3 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-10-04 23:21 UTC by Ronald Bourret
Modified: 2007-01-31 05:04 UTC (History)
0 users

See Also:


Attachments

Description Ronald Bourret 2006-10-04 23:21:37 UTC
Rule 3a in section 3.1.8 (upd:replaceNode) states that: "If $target is an attribute node, the attributes property of parent($target) is replaced by $replacement."

This is unexpected, as it states that all attributes -- not just the target attribute -- are replaced by $replacement. I assume this is an editorial error?
Comment 1 Andrew Eisenberg 2007-01-29 04:01:29 UTC
Yes, this statement is in error. Our next WD will replace the rule you cite in 3.1.8 (upd:replaceNode) with:

"If $target is an attribute node, the attributes property of parent($target) is modified by removing $target and adding the nodes in $replacement (if any)."

Please close this bug report if you agree with this resolution.