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

DOM
author Sergey
date Fri, 28 Aug 2009 16:26:20 +0400
parents 5899df8c289e
children 955b2324c1bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
2 <schema>
10
Sergey
parents: 9
diff changeset
3 <!-- Загрузка фрагмента схемы -->
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
4 <Include src="basic.types.schema"/>
10
Sergey
parents: 9
diff changeset
5
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
6 <ComplexNode nodeName="Form">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
7 <NodeSet>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
8 <SimpleNode nodeName="FirstName">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
9 <Regexp>\w+</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
10 </SimpleNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
11 <SimpleNode nodeName="LastName">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
12 <Regexp>\w+</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
13 </SimpleNode>
10
Sergey
parents: 9
diff changeset
14 <Node nodeName="BirthDate" type="DateTime" />
Sergey
parents: 9
diff changeset
15 <Node nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" />
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
16 <ComplexNode nodeName="AviaTicket" minOccur="0">
10
Sergey
parents: 9
diff changeset
17 <Node nodeName="From" type="Airport" control="ListBox" datasource="Airports"/>
Sergey
parents: 9
diff changeset
18 <Node nodeName="To" type="Airport" >
Sergey
parents: 9
diff changeset
19 <Check op='!=' LVal='nodeValue' RVal="From.nodeValue"/>
Sergey
parents: 9
diff changeset
20 </Node>
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
21 </ComplexNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
22 </NodeSet>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
23 </ComplexNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
24 <Type typeName="DateTime" deriveFrom="SimpleNode">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
25 <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
26 </Type>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
27 </schema>