- From: T. V. Raman <tvraman@us.ibm.com>
- Date: Wed, 18 Aug 2004 12:43:58 -0700
- To: andrew_james_macdonald@yahoo.com
- Cc: www-forms@w3.org
Try using XForms switch -- with two "case" children -- one
holding the URL input field, the other holding the upload
control.
>>>>> "Andrew" == Andrew MacDonald <andrew_james_macdonald@yahoo.com> writes:
Andrew> Is there a way in XForms to produce the equivalent to
Andrew> the following HTML?
Andrew>
Andrew> <fieldset> <legend>XForms</legend> <input
Andrew> type="radio" name="xformsSource" value="url">XForms
Andrew> URL: <input type="text" name="xformsURL"
Andrew> value="XForms URL" /> </input> <input type="radio"
Andrew> name="xformsSource" value="local">Upload XForms file:
Andrew> <input type="file" name="xformsLocal" /> </input>
Andrew> </fieldset>
Andrew>
Andrew> I tried to do something similar in XForms, but
Andrew> discovered that placing input elements within item
Andrew> elements isn't allowed. Is there an alternate way to
Andrew> do this?
Andrew>
Andrew> Thanks for any help.
Andrew>
Andrew> Andrew MacDonald
Andrew>
Andrew>
Andrew>
Andrew> --------------------------------- Do you Yahoo!?
Andrew> Express yourself with Y! Messenger! Free. Download
Andrew> now.<DIV> <DIV>Is there a way in XForms to produce
Andrew> the equivalent to the following HTML?</DIV>
Andrew> <DIV> </DIV> <DIV><fieldset></DIV>
Andrew> <DIV> <legend>XForms</legend></DIV>
Andrew> <DIV> <input type="radio"
Andrew> name="xformsSource" value="url">XForms
Andrew> URL:<BR> <input type="text"
Andrew> name="xformsURL" value="XForms URL" /></DIV>
Andrew> <DIV> </input></DIV> <DIV>
Andrew> <input type="radio" name="xformsSource"
Andrew> value="local">Upload XForms
Andrew> file:<BR> <input type="file"
Andrew> name="xformsLocal" /><BR>
Andrew> </input><BR></fieldset></DIV>
Andrew> <DIV> </DIV> <DIV>I tried to do something
Andrew> similar in XForms, but discovered that placing input
Andrew> elements within item elements isn't allowed. Is
Andrew> there an alternate way to do this?</DIV>
Andrew> <DIV> </DIV> <DIV>Thanks for any help.</DIV>
Andrew> <DIV> </DIV> <DIV>Andrew
Andrew> MacDonald</DIV></DIV><p> <hr size=1>Do you
Andrew> Yahoo!?<br> Express yourself with Y! Messenger!
Andrew> Free. <a
Andrew> href="http://us.rd.yahoo.com/mail_us/taglines/msgr/evt=26089/*http://messenger.yahoo.com">Download now</a>.
--
Best Regards,
--raman
------------------------------------------------------------
T. V. Raman: PhD (Cornell University)
IBM Research: Human Language Technologies
Architect: Conversational And Multimodal WWW Standards
Phone: 1 (408) 927 2608 T-Line 457-2608
Fax: 1 (408) 927 3012 Cell: 1 650 799 5724
Email: tvraman@us.ibm.com
WWW: http://almaden.ibm.com/u/tvraman
AIM: TVRaman
GPG: http://www.almaden.ibm.com/cs/people/tvraman/raman-almaden.asc
Snail: IBM Almaden Research Center,
650 Harry Road
San Jose 95120
Received on Wednesday, 18 August 2004 19:44:09 UTC