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

RE: "required" question

From: Kia Dabirian <kia_dabirian@yahoo.com>
Date: Fri, 16 Aug 2002 06:45:37 -0700 (PDT)
Message-ID: <20020816134537.39455.qmail@web12302.mail.yahoo.com>
To: Dan Dennedy <DDennedy@digitalbang.com>, www-forms@w3.org

Let me try again. Hopefully this is more valid :).

<!-- stuff -->

<model xmlns="...Xforms" id="f1">
  <instance xmlns="">
    <data>
      <!-- other stuff -->
      <userdata>
        <username/>
        <password/>
        <domain/>
      </userdata>
    <data/>
  </instance>
  <bind id="bindL" ref="//userdata" required="not(//userid)"/>
  <bind id="bindL" ref="//username" required="true()"/>
  <bind id="bindP" ref="//password" required="true()"/>
  <bind id="bindD" ref="//domain"/>
  <submitInfo action="doit.exe" method="post" id="s"/>
</model>

<!-- other stuff -->

<group xmlns="...Xforms" id="l" bind="bindL">
  <caption>User Login</caption>
  <input id="u" bind="bindU">
    <caption>username</caption>
  </input>
  <secret id="p" bind="bindP">
    <caption>password</caption>
  </secret>
  <input id="d" bind="bindD">
    <caption>domain</caption>
  </input>
  <submit submitInfo="s">
    <caption>Login</caption>
  </submit>
</group>

<!-- other stuff -->

And if it is, will the resulting domain field be required? And If so,
how do I make it not required?

The question can be boiled down to:

  Is a field "F" required when
    Required(F) and 
    Required(Parent(F)) and 
    Required(Parent(Parent(F))) and
    ...

  or when
  
    Required(F) or 
    Required(Parent(F)) or
    Required(Parent(Parent(F))) or
    ...


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
Received on Friday, 16 August 2002 09:45:39 GMT

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