Dear colleagues,

I want to validate a field with the validation as follows:

<root>
  <parameter name="startzip" type="string" min-len="5" max-len="6"/>
</root>

If I type in a string with 4 characters, validation is successful (but
should not!).

If I change validation to

<root>
  <parameter name="startzip" type="long" min-len="5" max-len="6"/>
</root>

and type in some non-numeric characters, validation will fail (it should).
What can be wrong? I took the min-len and max-len attributes with the
string-type from documentation.

Thank you, best regards
- Volker -


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to