[Bug 4574] [UPD] Section 2.4.1/3.1.3 upd:insertInto: Preserve order of inserted sequence

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

           Summary: [UPD] Section 2.4.1/3.1.3 upd:insertInto: Preserve order
                    of inserted sequence
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Update Facility
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: mrys@microsoft.com
         QAContact: public-qt-comments@w3.org


Insert into should preserve the order of an inserted sequence. 

Users can always use insert unorder { expr } into target if the order of the
inserted sequence should be implementation-dependent.

Proposed change:
"Semantics
The semantics of upd:insertInto are identical to the semantics of
upd:insertBefore, except that $target is substituted everywhere for
parent($target), and Rule 2a is changed as follows:

The children property of $target is changed to include the nodes in $content.
The order among the new children, and their position within the parent node, is
implementation-dependent."

to 

"Semantics
The semantics of upd:insertInto are identical to the semantics of
upd:insertBefore, except that $target is substituted everywhere for
parent($target), and Rule 2a is changed as follows:

The children property of $target is changed to include the nodes in $content.
The new sequence of children is inserted at an implementation-dependent
location among the parent node's children, preserving the sequence and its
order."

Received on Tuesday, 22 May 2007 17:10:49 UTC