annotate _test/Resources/test.schema @ 14:65a7bb156fb7

Дом модель и схема
author Sergey
date Fri, 04 Sep 2009 16:38:15 +0400
parents 955b2324c1bf
children 16795016e70b
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>
12
955b2324c1bf Работа над навигаторами и схемой DOM модели
Sergey
parents: 10
diff changeset
3 <!-- Директивы -->
10
Sergey
parents: 9
diff changeset
4 <!-- Загрузка фрагмента схемы -->
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
5 <Include src="basic.types.schema"/>
10
Sergey
parents: 9
diff changeset
6
12
955b2324c1bf Работа над навигаторами и схемой DOM модели
Sergey
parents: 10
diff changeset
7 <!-- Содержимое возможные варианты для документов-->
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
8 <ComplexNode nodeName="Form">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
9 <NodeSet>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
10 <SimpleNode nodeName="FirstName">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
11 <Regexp>\w+</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
12 </SimpleNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
13 <SimpleNode nodeName="LastName">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
14 <Regexp>\w+</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
15 </SimpleNode>
10
Sergey
parents: 9
diff changeset
16 <Node nodeName="BirthDate" type="DateTime" />
Sergey
parents: 9
diff changeset
17 <Node nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" />
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
18 <ComplexNode nodeName="AviaTicket" minOccur="0">
10
Sergey
parents: 9
diff changeset
19 <Node nodeName="From" type="Airport" control="ListBox" datasource="Airports"/>
Sergey
parents: 9
diff changeset
20 <Node nodeName="To" type="Airport" >
Sergey
parents: 9
diff changeset
21 <Check op='!=' LVal='nodeValue' RVal="From.nodeValue"/>
Sergey
parents: 9
diff changeset
22 </Node>
9
5899df8c289e DOM schema
Sergey
parents:
diff changeset
23 </ComplexNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
24 </NodeSet>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
25 </ComplexNode>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
26 <Type typeName="DateTime" deriveFrom="SimpleNode">
5899df8c289e DOM schema
Sergey
parents:
diff changeset
27 <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
28 </Type>
5899df8c289e DOM schema
Sergey
parents:
diff changeset
29 </schema>