| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <wd:form |
| xmlns:wd="http://apache.org/cocoon/woody/definition/1.0" |
| xmlns:i18n="http://apache.org/cocoon/i18n/2.1"> |
| |
| <wd:widgets> |
| |
| <wd:field id="message" required="false"> |
| <wd:label>message:</wd:label> |
| <wd:datatype base="string"> |
| </wd:datatype> |
| </wd:field> |
| <wd:field id="username" required="true"> |
| <wd:label>Username:</wd:label> |
| <wd:datatype base="string"> |
| <wd:validation> |
| <wd:length min="2"/> |
| </wd:validation> |
| </wd:datatype> |
| </wd:field> |
| |
| <wd:field id="password" required="true"> |
| <wd:label>Password:</wd:label> |
| <wd:datatype base="string"> |
| <wd:validation> |
| <wd:length min="2" max="20"/> |
| </wd:validation> |
| </wd:datatype> |
| </wd:field> |
| |
| <wd:field id="retypepassword" required="true"> |
| <wd:label>Re-enter password:</wd:label> |
| <wd:datatype base="string"> |
| <wd:validation> |
| <wd:assert test="password = retypepassword"> |
| <wd:failmessage>The two passwords are not equal.</wd:failmessage> |
| </wd:assert> |
| </wd:validation> |
| </wd:datatype> |
| </wd:field> |
| |
| </wd:widgets> |
| </wd:form> |