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

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