comparison _test/Resources/test.schema @ 10:63f6653b094e

DOM
author Sergey
date Fri, 28 Aug 2009 16:26:20 +0400
parents 5899df8c289e
children 955b2324c1bf
comparison
equal deleted inserted replaced
9:5899df8c289e 10:63f6653b094e
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <schema> 2 <schema>
3 <!-- Загрузка фрагмента схемы -->
3 <Include src="basic.types.schema"/> 4 <Include src="basic.types.schema"/>
4 <TypeNodeMapping> 5
5 <ListBox type="IMPL::Web::Control::ListBox"/>
6 <RadioList type="IMPL::Web::Control::RadioList"/>
7 <EditBox type="IMPL::Web::Control::EditBox"/>
8 <DateTimeBox type="IMPL::Web::Control::EditBox"/>
9 </TypeNodeMapping>
10 <ComplexNode nodeName="Form"> 6 <ComplexNode nodeName="Form">
11 <NodeSet> 7 <NodeSet>
12 <SimpleNode nodeName="FirstName"> 8 <SimpleNode nodeName="FirstName">
13 <Regexp>\w+</Regexp> 9 <Regexp>\w+</Regexp>
14 </SimpleNode> 10 </SimpleNode>
15 <SimpleNode nodeName="LastName"> 11 <SimpleNode nodeName="LastName">
16 <Regexp>\w+</Regexp> 12 <Regexp>\w+</Regexp>
17 </SimpleNode> 13 </SimpleNode>
18 <TypeNode nodeName="BirthDate" type="DateTime" /> 14 <Node nodeName="BirthDate" type="DateTime" />
19 <TypeNode nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" /> 15 <Node nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" />
20 <ComplexNode nodeName="AviaTicket" minOccur="0"> 16 <ComplexNode nodeName="AviaTicket" minOccur="0">
21 <TypeNode nodeName="From" type="Airport" control="ListBox" datasource="Airports"/> 17 <Node nodeName="From" type="Airport" control="ListBox" datasource="Airports"/>
22 <TypeNode nodeName="To" type="Airport" > 18 <Node nodeName="To" type="Airport" >
23 <DiffersFrom query="From"/> 19 <Check op='!=' LVal='nodeValue' RVal="From.nodeValue"/>
24 </TypeNode> 20 </Node>
25 </ComplexNode> 21 </ComplexNode>
26 </NodeSet> 22 </NodeSet>
27 </ComplexNode> 23 </ComplexNode>
28 <Type typeName="DateTime" deriveFrom="SimpleNode"> 24 <Type typeName="DateTime" deriveFrom="SimpleNode">
29 <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp> 25 <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp>