Dynamic generation of Menus in XForms

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 UTC