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

Dynamic generation of Menus in XForms

From: Eric Fu <ericfu@etrieve.com>
Date: Fri, 14 Dec 2001 13:34:50 -0800
Message-ID: <BD3A1AAD5A57D411AD6700B0D020246502399FBD@HIMALAYA>
To: "'www-forms@w3.org'" <www-forms@w3.org>
Is the following legal in the current draft (namespace omitted for
simplicity). Specifically lines (A) and (B).

<xform>
  <instance>
   <mybooks>
     <book isbn="1111"  title="Title of book One" />
     <book isbn="2222"  title="Title of book Two" />
     <book isbn="3333"  title="Title of book Three" />
   </mybooks>
  </instance>

  <selectOne>
    <choices>
       <item> 
		<caption ref="mybooks/book/@title"/>    <==== (A)
		<value ref="mybooks/book/@isbn"/>       <==== (B)
       </item>
    </choices>
  </selectOne>
</xform>

What I am trying to to is generate a dynamic list of items that the user can
select. 

Also, does the spec incorporate something like a "Menu"? It's similar to a
"selectOne" except it shows as a Menu on the UI instead of a radio button
group.

thanks,

Eric
Received on Friday, 14 December 2001 16:45:51 GMT

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