cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <mel...@gmail.com>
Subject Struture of form definitions
Date Sat, 02 Apr 2005 12:33:48 GMT
Hello

I'm a little confused about which is the correct structure of form definition. 

<fd:field id="foo" required="true">
  <fd:datatype base="string" />
  <fd:validation>
   <fd:bar>
     <fd:failmessage>Thats a bad foo</fd:failmessage>
   </fd:bar>
</fd:validation>
</fd:field>

One of the samples is structured as follows. 

    <fd:field id="email" required="true">
      <fd:datatype base="string">
        <fd:validation>
          <fd:email/>
        </fd:validation>
      </fd:datatype>
      <fd:failmessage>Enter an <b>email</b> address:</fd:failmessage>
    </fd:field>

Is there a dtd or schema I can validate against, or have I got the
wrong end of the stick?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message