Applying patch from Jonathon Rossi
[castle.git] / Experiments / MVC / Castle.MVC / castle.mvc.xsd
blobc72184786d8123ce1578e2a0903a4ae313679225
1 <?xml version="1.0" encoding="UTF-8"?>
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
6 <xs:element name="command">
7 <xs:complexType>
8 <xs:attribute name="id" use="required" type="xs:string" />
9 <xs:attribute name="view" use="required" type="xs:string"/>
10 </xs:complexType>
11 </xs:element>
13 <xs:element name="global-commands">
14 <xs:complexType>
15 <xs:sequence>
16 <xs:element ref="command" minOccurs="0" maxOccurs="unbounded"/>
17 </xs:sequence>
18 </xs:complexType>
19 </xs:element>
21 <xs:element name="command-mappings">
22 <xs:complexType>
23 <xs:sequence>
24 <xs:element ref="commands" maxOccurs="unbounded"/>
25 </xs:sequence>
26 </xs:complexType>
27 </xs:element>
29 <xs:element name="commands">
30 <xs:complexType>
31 <xs:sequence>
32 <xs:element ref="command" minOccurs="0" maxOccurs="unbounded"/>
33 </xs:sequence>
34 <xs:attribute name="view" use="required" type="xs:string"/>
35 </xs:complexType>
36 </xs:element>
38 <xs:element name="mvc">
39 <xs:complexType>
40 <xs:sequence>
41 <xs:element ref="webViews" minOccurs="0" maxOccurs="1"/>
42 <xs:element ref="winViews" minOccurs="0" maxOccurs="1"/>
43 <xs:element ref="global-commands" minOccurs="0" maxOccurs="1"/>
44 <xs:element ref="command-mappings"/>
45 </xs:sequence>
46 </xs:complexType>
47 </xs:element>
49 <xs:element name="view">
50 <xs:complexType>
51 <xs:attribute name="id" use="required" type="xs:string"/>
52 <xs:attribute name="path" type="xs:string"/>
53 <xs:attribute name="type" type="xs:string"/>
54 </xs:complexType>
55 </xs:element>
57 <xs:element name="webViews">
58 <xs:complexType>
59 <xs:sequence>
60 <xs:element ref="view" maxOccurs="unbounded"/>
61 </xs:sequence>
62 </xs:complexType>
63 </xs:element>
65 <xs:element name="winViews">
66 <xs:complexType>
67 <xs:sequence>
68 <xs:element ref="view" maxOccurs="unbounded"/>
69 </xs:sequence>
70 </xs:complexType>
71 </xs:element>
73 </xs:schema>