W3C home > Mailing lists > Public > www-forms@w3.org > April 2007

<repeat/> Element

From: Ivan Latysh <IvanLatysh@yahoo.ca>
Date: Fri, 13 Apr 2007 21:05:06 -0400
Message-ID: <1324517680.20070413210506@yahoo.ca>
To: www-forms@w3.org

Hello All,

 I want to point into inconsistency in "9.3.1 The repeat Element" (http://www.w3.org/TR/xforms11/#ui-repeat).

  1 This element defines a UI mapping over a homogeneous collection selected by Node Set Binding Attributes.
  2 This node-set must consist of contiguous child element nodes, with the same local name and namespace name of a common parent node.
  3 The behavior of element repeat with respect to non-homogeneous node-sets is undefined.

 This definition contradict itself.
 Line 1 "collection selected by Node Set Binding Attributes", let see what does it mean:
 [quote from http://www.w3.org/TR/xforms11/#structure-attrs-nodeset]
  The following attributes define a binding between an XForms element such as a form control or an action and a node-set
  defined by the XPath expression.
 Indeed, "collection selected by Node Set Binding Attributes" will return a node-set and according to XPath spec
 node-set is a collection of nodes without duplicates.
 (Since WG agreed that "homogeneous collection" is confusing and it will be removed I will skip it.)

 Line 2 completely contradict to line 1, node-set cold not have a common parent because it is a collection, as well it
 can not "consist of contiguous child element nodes"

 As the result <repeat/> element unable to work with node-sets even spec define that it should.

 My proposal is to reduce definition to a single sentence:
  1 This element defines a UI mapping over a node-set selected by Node Set Binding Attributes.

 Such change will have absolutely no impact on existing forms and have minimal impact on implementations.
Best regards,
 Ivan                            mailto:IvanLatysh@yahoo.ca
Received on Saturday, 14 April 2007 01:10:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:56 UTC