W3C home > Mailing lists > Public > public-forms@w3.org > January 2009

Clarification needed for insert that replaces instance document element

From: John Boyer <boyerj@ca.ibm.com>
Date: Mon, 26 Jan 2009 17:17:29 -0800
To: public-forms@w3.org
Cc: "www-forms@w3.org" <www-forms@w3.org>, www-forms-editor@w3.org
Message-ID: <OF48AA6525.70DB872D-ON8825754B.00062C3A-8825754B.00071B07@ca.ibm.com>
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
Received on Tuesday, 27 January 2009 01:19:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:50 UTC