- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Fri, 06 Apr 2018 17:31:51 +0200
- To: " XForms" <public-xformsusers@w3.org>, "Philip Fennell" <Philip.Fennell@marklogic.com>
On Fri, 06 Apr 2018 17:16:52 +0200, Philip Fennell <Philip.Fennell@marklogic.com> wrote: > Hello Steven, > > My feeling is the former too but I probably wouldn't have used it like > that anyway. The repeat would, in all likelihood, be within a container > element and I'd have put the class on that container element and not the > repeat. Makes me wonder why the class attribute would be specified for > the repeat element as it is never 'projected' forward into the resulting > document tree. Well, you're speaking from the point of view of an implementer, but from a user's point of view, it's just an element that can take the class attribute. From that point of view, we have to say what will happen. Steven > > > Regards > > Philip > > > On 06/04/2018, 13:31, "Steven Pemberton" <steven.pemberton@cwi.nl> > wrote: > > https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_repeat_Element > says: > a repeat like > <repeat ref="/products/product"> > <output ref="."/><html:br/> > </repeat> > 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="."/> > </repeat> > 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> > or > <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> > </group> > ? > My feeling is for the former, but I'd like to hear your opinion. > Steven
Received on Friday, 6 April 2018 15:32:27 UTC