W3C home > Mailing lists > Public > public-xformsusers@w3.org > April 2018

@class on <repeat>

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Fri, 06 Apr 2018 14:30:09 +0200
To: " XForms" <public-xformsusers@w3.org>
Message-ID: <op.zg1ucjhlsmjzpq@steven-xps>

	a repeat like
	<repeat ref="/products/product">
	  <output ref="."/><html:br/>

	is conceptually similar to
	<group ref="/products/product[1]"><output ref="."/><html:br/></group>
	<group ref="/products/product[2]"><output ref="."/><html:br/></group>
	<group ref="/products/product[3]"><output ref="."/><html:br/></group>
	<group ref="/products/product[4]"><output ref="."/><html:br/></group>

What I realise is that we need agreement on what @class applies to when  
used on a repeat.

If I say
	<repeat class="thing" ref="item">
	   <output ref="."/>

does this mean

	<group class="thing">
	   <group ref="item[1]"><output ref="."/></group>
	   <group ref="item[2]"><output ref="."/></group>
	   <group ref="item[3]"><output ref="."/></group>


	   <group class="thing" ref="item[1]"><output ref="."/></group>
	   <group class="thing" ref="item[2]"><output ref="."/></group>
	   <group class="thing" ref="item[3]"><output ref="."/></group>


My feeling is for the former, but I'd like to hear your opinion.

Received on Friday, 6 April 2018 12:30:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:49 UTC