- From: Josef Dietl <josef@mozquito.com>
- Date: Tue, 14 Aug 2001 17:44:35 +0200
- To: "Torsten Curdt" <tcurdt@dff.st>, <www-forms@w3.org>
Hi Torsten, you are spot-on with your question. This is one of the current topics of discussion. There are several solutions possible. Our favorites as of this writing are: - if there is no Schema: <xform:instance> <poll> <interests>reading music</interests> </poll> </xform:instance> (unfortunately, there is no alternative to using a Schema list type in this context.) - if there is a Schema, there is an opportunity to define poll as an enumeration. Then we can create something like: <xform:instance> <poll> <interests>reading</interests> <interests>music</interests> </poll> </xform:instance> What do you think about this solution? Josef > -----Original Message----- > From: Torsten Curdt [mailto:tcurdt@dff.st] > Sent: Monday, August 13, 2001 11:00 AM > To: www-forms@w3.org > Subject: xform:selectMany > > > I couldn't find it in the current WD. > > How does a "selectMany" selection look like in the instance data? > > <xform:instance> > <poll> > <interests/> > </poll> > </xform:instance> > > <xform:selectMany ref="poll/interests" xform=".."> > <choices> > <item value="reading">Reading</item> > <item value="music">Music</item> > <item value="sports">Sports</item> > </choices> > </xform:selectMany> > > I was guessing the following: > > <xform:instance> > <poll> > <interests> > <choices> > <item value="reading">Reading</item> > <item value="music">Music</item> > </choices> > </interests> > </poll> > </xform:instance> > > ...for only the first two options selected. > > I would also like to add that building a standard > xform2html.xsl stylesheet is not quite as easy as > expected. Up to now I don't even see another > way but using xslt-extension functions for an > implementation. (Problem is the evaluation of the > binding) > > Providing a standard xform2html.xsl would a nice > thing to have... > -- > Torsten > >
Received on Tuesday, 14 August 2001 11:45:14 UTC