W3C home > Mailing lists > Public > www-forms@w3.org > August 2001

xform:selectMany

From: Torsten Curdt <tcurdt@dff.st>
Date: Mon, 13 Aug 2001 10:59:31 +0200
To: <www-forms@w3.org>
Message-ID: <CHEGLKNOIJHFNDNBCIAJMEFFCBAA.tcurdt@dff.st>
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 Monday, 13 August 2001 05:00:04 GMT

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