Permalink
Browse files

allowing custom validator config in schema.xml without xml validation…

… errors, plus fixing a typo which meant that <validator> element was expecting a "type" attribute.
  • Loading branch information...
1 parent 2a66ead commit 5984645da760f83cab31fa12b4b0d705c70abbf4 oliver committed Jun 27, 2007
Showing with 3 additions and 2 deletions.
  1. +3 −2 generator/resources/dtd/database.dtd
@@ -151,14 +151,15 @@ PHP class or method name.
<!ELEMENT rule EMPTY>
<!ATTLIST rule
- name (mask|maxLength|maxValue|minLength|minValue|required|unique|validValues) #REQUIRED
+ name (mask|maxLength|maxValue|minLength|minValue|required|unique|validValues|class) #REQUIRED
+ class CDATA #IMPLIED
value CDATA #IMPLIED
size ID #IMPLIED
message CDATA #IMPLIED
>
<!ELEMENT vendor (parameter+)>
-<!ATTLIST validator
+<!ATTLIST vendor
type CDATA #REQUIRED
>

0 comments on commit 5984645

Please sign in to comment.