Mercurial > pub > Impl
diff _test/Resources/types.xml @ 103:c289ed9662ca
Schema beta 2
More strict validation, support for inflating a simple nodes and properties
author | wizard |
---|---|
date | Fri, 07 May 2010 18:17:40 +0400 |
parents | cf3b6ef2be22 |
children | d1676be8afcc |
line wrap: on
line diff
--- a/_test/Resources/types.xml Fri May 07 08:05:23 2010 +0400 +++ b/_test/Resources/types.xml Fri May 07 18:17:40 2010 +0400 @@ -1,10 +1,9 @@ <schema> - <SimpleType type="email" nativeType="SCALAR"> + <SimpleType type="email"> <RegExp message="Неверный формат %Node.name_no%">^\w+(\.\w+)*@$\w+(\.\w+)+</RegExp> - <Property name='locale'/> </SimpleType> - <SimpleType type="scalar" nativeType="SCALAR"/> - <SimpleType type="date" nativeType="DateTime"> + <SimpleType type="scalar"/> + <SimpleType type="date" inflate="DateTime"> <Property name="timezone" optional="1"/> <Property name="locale" optional="1"/> </SimpleType>