<repeat/> Element

Hello All,

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

 [quote]
  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.
 [/quote]

 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.
 [/quote]
 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:
 [copy]
  1 This element defines a UI mapping over a node-set selected by Node Set Binding Attributes.
 [/copy]

 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