Mercurial > pub > Impl
diff _test/Resources/test.schema @ 10:63f6653b094e
DOM
author | Sergey |
---|---|
date | Fri, 28 Aug 2009 16:26:20 +0400 |
parents | 5899df8c289e |
children | 955b2324c1bf |
line wrap: on
line diff
--- a/_test/Resources/test.schema Thu Aug 27 17:49:42 2009 +0400 +++ b/_test/Resources/test.schema Fri Aug 28 16:26:20 2009 +0400 @@ -1,12 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <schema> + <!-- Загрузка фрагмента схемы --> <Include src="basic.types.schema"/> - <TypeNodeMapping> - <ListBox type="IMPL::Web::Control::ListBox"/> - <RadioList type="IMPL::Web::Control::RadioList"/> - <EditBox type="IMPL::Web::Control::EditBox"/> - <DateTimeBox type="IMPL::Web::Control::EditBox"/> - </TypeNodeMapping> + <ComplexNode nodeName="Form"> <NodeSet> <SimpleNode nodeName="FirstName"> @@ -15,13 +11,13 @@ <SimpleNode nodeName="LastName"> <Regexp>\w+</Regexp> </SimpleNode> - <TypeNode nodeName="BirthDate" type="DateTime" /> - <TypeNode nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" /> + <Node nodeName="BirthDate" type="DateTime" /> + <Node nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" /> <ComplexNode nodeName="AviaTicket" minOccur="0"> - <TypeNode nodeName="From" type="Airport" control="ListBox" datasource="Airports"/> - <TypeNode nodeName="To" type="Airport" > - <DiffersFrom query="From"/> - </TypeNode> + <Node nodeName="From" type="Airport" control="ListBox" datasource="Airports"/> + <Node nodeName="To" type="Airport" > + <Check op='!=' LVal='nodeValue' RVal="From.nodeValue"/> + </Node> </ComplexNode> </NodeSet> </ComplexNode>