annotate _test/Resources/test.schema @ 9:5899df8c289e

DOM schema
author Sergey
date Thu, 27 Aug 2009 17:49:42 +0400
parents
children 63f6653b094e
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>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
3 <Include src="basic.types.schema"/>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
4 <TypeNodeMapping>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
5 <ListBox type="IMPL::Web::Control::ListBox"/>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
6 <RadioList type="IMPL::Web::Control::RadioList"/>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
7 <EditBox type="IMPL::Web::Control::EditBox"/>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
8 <DateTimeBox type="IMPL::Web::Control::EditBox"/>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
9 </TypeNodeMapping>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
10 <ComplexNode nodeName="Form">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
11 <NodeSet>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
12 <SimpleNode nodeName="FirstName">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
13 <Regexp>\w+</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
14 </SimpleNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
15 <SimpleNode nodeName="LastName">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
16 <Regexp>\w+</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
17 </SimpleNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
18 <TypeNode nodeName="BirthDate" type="DateTime" />
5899df8c289e DOM schema
Sergey
parents:
diff changeset
19 <TypeNode nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" />
5899df8c289e DOM schema
Sergey
parents:
diff changeset
20 <ComplexNode nodeName="AviaTicket" minOccur="0">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
21 <TypeNode nodeName="From" type="Airport" control="ListBox" datasource="Airports"/>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
22 <TypeNode nodeName="To" type="Airport" >
5899df8c289e DOM schema
Sergey
parents:
diff changeset
23 <DiffersFrom query="From"/>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
24 </TypeNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
25 </ComplexNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
26 </NodeSet>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
27 </ComplexNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
28 <Type typeName="DateTime" deriveFrom="SimpleNode">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
29 <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
30 </Type>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
31 </schema>