Re: Clarification needed for insert that replaces instance document element

John,

That sounds reasonable to me.

-Erik

On Jan 26, 2009, at 5:17 PM, John Boyer wrote:

>
> In the insert action [1], the wording of point 8 does not clearly  
> enough support the example of Appendix B.12 [2]
>
> [1] http://www.w3.org/MarkUp/Forms/specs/XForms1.1/index-diff.html#action-insert
>
> [2] http://www.w3.org/MarkUp/Forms/specs/XForms1.1/index-diff.html#insert-delete-patterns-replace-instance
>
> In bullet 8, it says "If the target location was the root element of  
> an instance, then the cloned node replaces the instance root element."
>
> This wording handles what happens when the context attribute is used  
> to indicate the root node of the instance, which is the parent of  
> the root element of the instance.
>
> However, when the nodeset binding is used to indicate the root  
> element of the instance, as is done in appendix B.12, the target  
> location actually resolves to a point before or after the root  
> element in the child list of the root node.
>
> To accommodate both cases, the sentence in bullet 8 should say: "If  
> the parent node of the target location is the root node of the  
> instance, and the cloned node is an element, then the instance root  
> element is deleted before the cloned node is inserted."
>
> John M. Boyer, Ph.D.
> STSM, Interactive Documents and Web 2.0 Applications
> Chair, W3C Forms Working Group
> Workplace, Portal and Collaboration Software
> IBM Victoria Software Lab
> E-Mail: boyerj@ca.ibm.com
>
> Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
> Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/

Received on Wednesday, 28 January 2009 03:42:36 UTC