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