summaryrefslogtreecommitdiff
path: root/docs/specs/application.xsd
blob: 6886160690c7e25cd2f2721d08a912afd37abc22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- This is the XML Schema Definition for the application.xml file used in Prado/3 framework. -->
<!-- @package prado.config -->
<!-- @author Robert Kummer <r.kummer@ipunkt.biz> -->
<!-- @since Prado/3.0b rev688 -->
<!-- @version 1.0/2006-02-21 -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:complexType name="aliasType">
		<xs:attribute name="id" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="path" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="application">
		<xs:annotation>
			<xs:documentation>Application configuration for PRADO 3</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:all>
				<xs:element name="paths" type="pathsType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="modules" type="modulesType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="services" type="servicesType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="parameters" type="parametersType" minOccurs="0" maxOccurs="1"/>
			</xs:all>
			<xs:anyAttribute namespace="##local" processContents="lax"/>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="moduleType">
		<xs:attribute name="id" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="class" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:anyAttribute namespace="##local" processContents="lax"/>
	</xs:complexType>
	<xs:complexType name="modulesType">
		<xs:sequence>
			<xs:element name="module" maxOccurs="unbounded">
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="moduleType">
							<xs:sequence minOccurs="0" maxOccurs="unbounded">
								<xs:any namespace="##local" processContents="lax"/>
							</xs:sequence>
						</xs:extension>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="parameterType">
		<xs:attribute name="id" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="class" use="optional">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="value" type="xs:string" use="optional"/>
		<xs:anyAttribute namespace="##local" processContents="lax"/>
	</xs:complexType>
	<xs:complexType name="parametersType">
		<xs:sequence>
			<xs:element name="parameter" maxOccurs="unbounded">
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="parameterType">
							<xs:sequence minOccurs="0" maxOccurs="unbounded">
								<xs:any namespace="##local" processContents="lax"/>
							</xs:sequence>
						</xs:extension>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="pathsType">
		<xs:choice maxOccurs="unbounded">
			<xs:element name="alias" type="aliasType" minOccurs="0"/>
			<xs:element name="using" type="usingType" minOccurs="0"/>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="serviceType">
		<xs:attribute name="id" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="class" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:anyAttribute namespace="##local" processContents="lax"/>
	</xs:complexType>
	<xs:complexType name="servicesType">
		<xs:sequence>
			<xs:element name="service" maxOccurs="unbounded">
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="serviceType">
							<xs:sequence minOccurs="0" maxOccurs="unbounded">
								<xs:any namespace="##local" processContents="lax"/>
							</xs:sequence>
						</xs:extension>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="usingType">
		<xs:attribute name="namespace" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
</xs:schema>