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

[www-forms] <none>

From: T. V. Raman <tvraman@us.ibm.com>
Date: Wed, 18 Aug 2004 12:43:58 -0700
Message-ID: <16675.45438.649681.735428@bubbles.almaden.ibm.com>
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

>>>>> "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> <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> 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> Thanks for any help.
    Andrew> Andrew MacDonald
    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>&nbsp;</DIV> <DIV>&lt;fieldset&gt;</DIV>
    Andrew> <DIV>&nbsp; &lt;legend&gt;XForms&lt;/legend&gt;</DIV>
    Andrew> <DIV>&nbsp; &lt;input type="radio"
    Andrew> name="xformsSource" value="url"&gt;XForms
    Andrew> URL:<BR>&nbsp;&nbsp;&nbsp; &lt;input type="text"
    Andrew> name="xformsURL" value="XForms URL" /&gt;</DIV>
    Andrew> <DIV>&nbsp; &lt;/input&gt;</DIV> <DIV>&nbsp;
    Andrew> &lt;input type="radio" name="xformsSource"
    Andrew> value="local"&gt;Upload XForms
    Andrew> file:<BR>&nbsp;&nbsp;&nbsp; &lt;input type="file"
    Andrew> name="xformsLocal" /&gt;<BR>&nbsp;
    Andrew> &lt;/input&gt;<BR>&lt;/fieldset&gt;</DIV>
    Andrew> <DIV>&nbsp;</DIV> <DIV>I tried to do something
    Andrew> similar in XForms, but discovered that placing input
    Andrew> elements within item elements isn't allowed.&nbsp; Is
    Andrew> there an alternate way to do this?</DIV>
    Andrew> <DIV>&nbsp;</DIV> <DIV>Thanks for any help.</DIV>
    Andrew> <DIV>&nbsp;</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,
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:13 UTC