[opencms-dev] (6b3)validation rules

MickyW funkycms at axidea.fr
Wed May 25 17:35:49 CEST 2005


hi,
I didn't find any documentation related to this feature. There's one code
sample in the 6.0 demo for xmlcontent :
   <rule element="Title" regex="!.*[Ee]rror.*"
message="${key.editor.errormessage.Article.mustnotcontainerror|Hallo
${validation.path}}" />

I understand that the rule applies to Title element in the xml file and that
a regexp is used to check if it contains Error or error
You can check anything with regular expressions but are there other types of
rules to handle simple cases like "numbers only" or "10 characters max"
which may cover most of the needs?

Mickael





More information about the opencms-dev mailing list