RE: "required" question

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 UTC