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

Re: xf:switch inside xf:repeat ...

From: Chimezie Ogbuji <ogbujic@ccf.org>
Date: Wed, 10 Jan 2007 15:44:16 -0500
To: "Aaron Reed" <aaronr@us.ibm.com>
cc: www-forms@w3.org
Message-ID: <1168461857.6008.13.camel@localhost>

I was planning to write one up for Mark and would be happy to CC this
list.

On Wed, 2007-01-10 at 13:44 -0600, Aaron Reed wrote:
> Does anyone have a testcase for this erratum so that we know if we 
> implemented it correctly?  Will a testcase be added to the testsuite?
> 
> --Aaron
> 
> John Boyer wrote:
> > 
> > Hi Sebastian,
> > 
> > Happy New Year to you as well!
> > 
> > Please see Erratum E32: 
> > http://www.w3.org/2006/03/REC-xforms-20060314-errata.html#E32
> > 
> > You will need an XForms processor that conforms to this erratum, but it 
> > does explain how IDREFs are resolved in repeated content.
> > 
> > If you find that the latest version of your favorite processor doesn't 
> > conform, please send the implementers a note so they will know you need 
> > the update.
> > 
> > Best regards,
> > John M. Boyer, Ph.D.
> > STSM: Workplace Forms Architect and Researcher
> > Co-Chair, W3C Forms Working Group
> > Workplace, Portal and Collaboration Software
> > IBM Victoria Software Lab
> > E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/
> > 
> > Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
> > 
> > 
> > 
> > 
> > *S├ębastien CRAMATTE <contact@zeninteractif.com>*
> > Sent by: www-forms-request@w3.org
> > 
> > 01/05/2007 05:34 AM
> > 
> > 	
> > To
> > 	www-forms@w3.org
> > cc
> > 	
> > Subject
> > 	xf:switch inside xf:repeat ...
> > 
> > 
> > 	
> > 
> > 
> > 
> > 
> > 
> > 
> > Hello
> > 
> > First of all  happy to new year !
> > 
> > Well I've trie to use "switch" element inside  "repeat" element  with a
> > "toggle action"
> > What happens is that each "switch" case have got an ID that should be
> > unique ... isn't it ?
> > But in a "repeat" context the repeated block will have same ID o no ID
> > at all ... so  how it possible to use "switch + toggle" inside  "repeat"
> > context ?
> > 
> >     <form:repeat nodeset="qos:class">
> >              <form:input ref="@enable">
> >                <form:label>Activar</form:label>
> >              </form:input>
> > 
> >              <form:group ref=".">
> >                <form:label value="concat(@id,' ',qos:label/text())" />
> > 
> >              <form:input ref="qos:rate">
> >                <form:label>Garantizado:</form:label>
> >              </form:input>
> > 
> >              <form:input ref="qos:ceil" >
> >                <form:label>Maximo:</form:label>
> >              </form:input>
> > 
> >              <form:range ref="qos:prio" start="1" end="10" step="1">
> >                <form:label value="concat('Prioridad ',.,':')" />
> >              </form:range>
> > 
> >              <form:switch>
> >                <form:case id="c1">
> >                        <form:trigger>
> >                                <form:label>Opciones advanzadas</form:label>
> >                                <form:toggle case="c2"
> > ev:event="DOMActivate" />
> >                        </form:trigger>
> >                </form:case>
> >                <form:case id="c2">
> >                        Hello world
> >                </form:case>
> >    </form:group>
> > </form:repeat>
> > 
> > Note that my XML instance have got three "qos:class" nodes and logically
> > the "repeat module" copy the switch block 3 times ...
> > Does anyone have got any ideas ? Does it possible to achieve this ?
> > 
> > 
> > Best regards
> > 
> > 
> 
> 
> 
> 
-- 
Chimezie Ogbuji
Lead Systems Analyst
Thoracic and Cardiovascular Surgery
Cleveland Clinic Foundation
9500 Euclid Avenue/ W26
Cleveland, Ohio 44195
Office: (216)444-8593
ogbujic@ccf.org

===================================




Cleveland Clinic is ranked one of the top 3 hospitals in
America by U.S.News & World Report. Visit us online at
http://www.clevelandclinic.org for a complete listing of
our services, staff and locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.
Received on Wednesday, 10 January 2007 20:48:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:08 GMT