Mercurial > pub > Impl
diff _test/Resources/test.schema @ 15:16795016e70b
Dom schema in progress
author | Sergey |
---|---|
date | Mon, 07 Sep 2009 17:30:55 +0400 |
parents | 955b2324c1bf |
children | 16ada169ca75 |
line wrap: on
line diff
--- a/_test/Resources/test.schema Fri Sep 04 16:38:15 2009 +0400 +++ b/_test/Resources/test.schema Mon Sep 07 17:30:55 2009 +0400 @@ -4,6 +4,21 @@ <!-- Загрузка фрагмента схемы --> <Include src="basic.types.schema"/> + <!-- Определения типов --> + <SimpleType type="DateTime"> + <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp> + </SimpleType> + <ComplexType type="Person"> + <NodeSet> + <SimpleNode nodeName="FirstName"/> + <SimpleNode nodeName="LastName"/> + <ComplexNode maxOccur="unbounded" nodeName="Passport" type="Passport"> + <Node nodeName="DateExpire" type="DateTime"/> + <SimpleNode nodeName="Code"/> + </ComplexNode> + </NodeSet> + </ComplexType> + <!-- Содержимое возможные варианты для документов--> <ComplexNode nodeName="Form"> <NodeSet> @@ -23,7 +38,4 @@ </ComplexNode> </NodeSet> </ComplexNode> - <Type typeName="DateTime" deriveFrom="SimpleNode"> - <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp> - </Type> </schema> \ No newline at end of file