9
|
1 <?xml version="1.0" encoding="utf-8"?>
|
|
2 <schema>
|
10
|
3 <!-- Загрузка фрагмента схемы -->
|
9
|
4 <Include src="basic.types.schema"/>
|
10
|
5
|
9
|
6 <ComplexNode nodeName="Form">
|
|
7 <NodeSet>
|
|
8 <SimpleNode nodeName="FirstName">
|
|
9 <Regexp>\w+</Regexp>
|
|
10 </SimpleNode>
|
|
11 <SimpleNode nodeName="LastName">
|
|
12 <Regexp>\w+</Regexp>
|
|
13 </SimpleNode>
|
10
|
14 <Node nodeName="BirthDate" type="DateTime" />
|
|
15 <Node nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" />
|
9
|
16 <ComplexNode nodeName="AviaTicket" minOccur="0">
|
10
|
17 <Node nodeName="From" type="Airport" control="ListBox" datasource="Airports"/>
|
|
18 <Node nodeName="To" type="Airport" >
|
|
19 <Check op='!=' LVal='nodeValue' RVal="From.nodeValue"/>
|
|
20 </Node>
|
9
|
21 </ComplexNode>
|
|
22 </NodeSet>
|
|
23 </ComplexNode>
|
|
24 <Type typeName="DateTime" deriveFrom="SimpleNode">
|
|
25 <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp>
|
|
26 </Type>
|
|
27 </schema> |