W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2008

[Bug 5337] removeType() as a result of replace node

From: <bugzilla@wiggum.w3.org>
Date: Wed, 02 Jan 2008 18:14:33 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JA86r-0006JT-Oo@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5337

           Summary: removeType() as a result of replace node
           Product: XPath / XQuery / XSLFO / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Update Facility
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


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'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.
Received on Wednesday, 2 January 2008 18:14:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:49 GMT