<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3800</bug_id>
          
          <creation_ts>2006-10-04 23:21:37 +0000</creation_ts>
          <short_desc>[UPD] upd:replaceNode has unexpected semantics for attributes</short_desc>
          <delta_ts>2007-01-31 05:04:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Update Facility</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ronald Bourret">rpbourret</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12291</commentid>
    <comment_count>0</comment_count>
    <who name="Ronald Bourret">rpbourret</who>
    <bug_when>2006-10-04 23:21:37 +0000</bug_when>
    <thetext>Rule 3a in section 3.1.8 (upd:replaceNode) states that: &quot;If $target is an attribute node, the attributes property of parent($target) is replaced by $replacement.&quot;

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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13817</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2007-01-29 04:01:29 +0000</bug_when>
    <thetext>Yes, this statement is in error. Our next WD will replace the rule you cite in 3.1.8 (upd:replaceNode) with:

&quot;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).&quot;

Please close this bug report if you agree with this resolution.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>