<choices> without attributes ?

actually that label goes in sub-element caption of 
element choices --
<choices>
<caption>group 1</caption>
<item/>
<item/>
</choices>

>>>>> "Martin" == Martin Nussbaumer <martin@nussbaumers.de> writes:

    Martin> Hi, you wrote in the Draft from 8/6/01, chapter
    Martin> 7.13.2.6 choices: "This element is used within
    Martin> list form controls to group items. This provides
    Martin> the same functionality as element optgroup in
    Martin> HTML 4.0. "


    Martin> I think there should be a attribute "label" for
    Martin> each <choices> for rendering like follows:

    Martin> XForms: <choices label="A"> <item/> <item/>
    Martin> </choices> <choices label="B"> <item/> <choices
    Martin> label="C"> <item/> </choices> </choices>

    Martin> rendered: optgroup A->item1
    -> item2
    Martin> optgroup B->item1
    -> optGroupC->item1
    Martin>                 ......


    Martin> Greetings, Martin Nussbaumer

    Martin> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Martin> Transitional//EN"> <HTML><HEAD> <META
    Martin> content="text/html; charset=iso-8859-1"
    Martin> http-equiv=Content-Type> <META content="MSHTML
    Martin> 5.00.2920.0" name=GENERATOR> <STYLE></STYLE>
    Martin> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT
    Martin> face=Arial size=2>Hi,</FONT></DIV>
    Martin> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial
    Martin> size=2>you wrote in the Draft from 8/6/01,
    Martin> chapter 7.13.2.6 choices:<BR>"This element is
    Martin> used within list form controls to group
    Martin> items. This provides the same functionality as
    Martin> element <CODE>optgroup</CODE> in HTML
    Martin> 4.0. "</FONT></DIV> <DIV>&nbsp;</DIV>
    Martin> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial size=2>I
    Martin> think there should be a attribute "label" for
    Martin> each &lt;choices&gt; for rendering like
    Martin> follows:</FONT></DIV> <DIV><FONT face=Arial
    Martin> size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial
    Martin> size=2>XForms:</FONT></DIV> <DIV><FONT
    Martin> face=Arial size=2>&lt;choices
    Martin> label="A"&gt;</FONT></DIV> <DIV><FONT face=Arial
    Martin> size=2>&nbsp;&nbsp;&nbsp;
    Martin> &lt;item/&gt;</FONT></DIV> <DIV><FONT face=Arial
    Martin> size=2>&nbsp;&nbsp;&nbsp;
    Martin> &lt;item/&gt;</FONT></DIV> <DIV><FONT face=Arial
    Martin> size=2>&lt;/choices&gt;</FONT></DIV> <DIV><FONT
    Martin> face=Arial size=2> <DIV><FONT face=Arial
    Martin> size=2>&lt;choices label="B"&gt;</FONT></DIV>
    Martin> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
    Martin> &lt;item/&gt;</FONT></DIV> <DIV><FONT face=Arial
    Martin> size=2>&nbsp;&nbsp;&nbsp; &lt;choices
    Martin> label="C"&gt;</FONT></DIV>
    Martin> <DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
    Martin> &lt;item/&gt;</DIV> <DIV>&nbsp;&nbsp;&nbsp;
    Martin> &lt;/choices&gt;</DIV> <DIV><FONT face=Arial
    Martin> size=2>&lt;/choices&gt;</FONT></DIV></FONT></DIV>
    Martin> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial
    Martin> size=2>rendered:</FONT></DIV> <DIV><FONT
    Martin> face=Arial size=2>optgroup
    Martin> A-&gt;item1</FONT></DIV> <DIV><FONT face=Arial
    Martin> size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
    Martin> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
    Martin> -&gt;item2</FONT></DIV> <DIV><FONT face=Arial
    Martin> size=2>optgroup B-&gt;item1</FONT></DIV>
    Martin> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
    Martin> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
    Martin> &nbsp;&nbsp;&nbsp;
    Martin> -&gt;optGroupC-&gt;item1</FONT></DIV> <DIV><FONT
    Martin> face=Arial size=2>&nbsp;&nbsp;&nbsp;
    Martin> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
    Martin> &nbsp;&nbsp;&nbsp; ......</FONT></DIV>
    Martin> <DIV>&nbsp;</DIV> <DIV><FONT face=Arial
    Martin> size=2></FONT>&nbsp;</DIV> <DIV><FONT face=Arial
    Martin> size=2>Greetings,</FONT></DIV> <DIV><FONT
    Martin> face=Arial size=2>Martin Nussbaumer</FONT></DIV>
    Martin> <DIV>&nbsp;</DIV></BODY></HTML>

-- 
Best Regards,
--raman
------------------------------------------------------------

IBM Research: Human Language Technologies
Phone:        1 (408) 927 2608
Fax:        1 (408) 927 3012
Email:        tvraman@us.ibm.com
WWW:      http://www.cs.cornell.edu/home/raman
PGP:          http://emacspeak.sf.net/raman.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120

Received on Saturday, 14 July 2001 14:07:41 UTC