[Bug 5874] New: [UPD] Clarification of upd:insertAttributes

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

           Summary: [UPD] Clarification of upd:insertAttributes
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows NT
            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


My reading of the semantics of upd:insertAttributes was that the new attribute
is added to the list of attributes of the parent element, even if the parent
element already has an attribute of the same name; and at the end of processing
the PUL (after processing any delete and rename operations), a consistency
error (XUDY0021) is reported if an element has two attributes with the same
name at that stage.

However, one of my users came up with a different reading: they thought that
upd:insertAttributes would add the new attribute to the parent element,
replacing any existing attribute with the same name. Reading the text, this
seems to be a legitimate reading, since upd:insertAttributes only says that the
attributes property of the parent element is modified to include the new
attributes, and does not give any further detail about how that modification is
done.

It seems that clarification is needed.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 18 July 2008 09:06:28 UTC