<?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>5337</bug_id>
          
          <creation_ts>2008-01-02 18:14:33 +0000</creation_ts>
          <short_desc>[UPD] removeType() as a result of replace node</short_desc>
          <delta_ts>2008-01-26 22:06:57 +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>Last Call 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>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</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>18178</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-01-02 18:14:33 +0000</bug_when>
    <thetext>The rules for insert and delete are careful to call removeType() only if the nodes being inserted/deleted can affect the type (that is, if they are elements, attributes, or text nodes). The rules for replace make no such provision; they remove the type annotation even if the only effect is to replace a comment with a processing instruction. It&apos;s a minor point, but the rules should be symmetrical.

removeType() is necessary if either the node being replaced or one of the nodes inserted in its place is a text, attribute, or element node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18300</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2008-01-15 01:19:30 +0000</bug_when>
    <thetext>I agree with Mike. We should make the following change:

In Section 3.1.8 (upd:replaceNode), change Rule 4d as follows:

(d) If $target or any node in $replacement is an element, attribute, or text node,  upd:removeType(parent($target)) is invoked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18599</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2008-01-26 22:06:41 +0000</bug_when>
    <thetext>Michael,
On 22 Jan 2008, the Query Working Group considered this bug report and accepted the proposed change in Comment #1. Since this change is aligned with your suggestion, I am marking this bug report as Closed.
--Don Chamberlin (for the Query Working Group)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>