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