Fix manifest xsd schema
[platform/core/appfw/pkgmgr-info.git] / parser / manifest.xsd.in
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://tizen.org/ns/packages" xmlns:packages="http://tizen.org/ns/packages">
3   <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
4
5   <xs:element name="manifest">
6     <xs:complexType>
7       <xs:choice maxOccurs="unbounded">
8         <xs:element ref="packages:label"/>
9         <xs:element ref="packages:icon"/>
10         <xs:element ref="packages:author"/>
11         <xs:element ref="packages:description"/>
12         <xs:element ref="packages:compatibility"/>
13         <xs:element ref="packages:profile"/>
14         <xs:element ref="packages:watch-application"/>
15         <xs:element ref="packages:watchface"/>
16         <xs:element ref="packages:service-application"/>
17         <xs:element ref="packages:ui-application"/>
18         <xs:element ref="packages:ime-application"/>
19         <xs:element ref="packages:shortcut-list"/>
20         <xs:element ref="packages:widget"/>
21         <xs:element ref="packages:widget-application"/>
22         <xs:element ref="packages:account"/>
23         <xs:element ref="packages:notifications"/>
24         <xs:element ref="packages:privileges"/>
25         <xs:element ref="packages:font"/>
26         <xs:element ref="packages:ime"/>
27         <xs:element ref="packages:feature"/>
28         <xs:element ref="packages:trust-anchor"/>
29         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
30       </xs:choice>
31       <xs:attribute name="storeclient-id" type="xs:string"/>
32       <xs:attribute name="install-location" type="xs:string"/>
33       <xs:attribute name="package" use="required" type="xs:string"/>
34       <xs:attribute name="type" type="xs:string"/>
35       <xs:attribute name="version" use="required" type="xs:string"/>
36       <xs:attribute name="size" type="xs:NMTOKEN"/>
37       <xs:attribute name="root_path" type="xs:string"/>
38       <xs:attribute name="csc_path" type="xs:string"/>
39       <xs:attribute name="appsetting" type="xs:boolean"/>
40       <xs:attribute name="nodisplay-setting" type="xs:boolean"/>
41       <xs:attribute name="url" type="xs:string"/>
42       <xs:attribute name="support-disable" type="xs:boolean"/>
43       <xs:attribute name="api-version" type="xs:string"/>
44       <xs:attribute name="backend-installer" type="xs:string"/>
45       <xs:attribute name="preload" type="xs:boolean"/>
46       <xs:anyAttribute namespace="##any" processContents="lax"/>
47     </xs:complexType>
48   </xs:element>
49
50   <xs:element name="author">
51     <xs:complexType mixed="true">
52       <xs:attribute name="email"/>
53       <xs:attribute name="href"/>
54       <xs:attribute ref="xml:lang"/>
55       <xs:anyAttribute namespace="##any" processContents="lax"/>
56     </xs:complexType>
57   </xs:element>
58   <xs:element name="description">
59     <xs:complexType mixed="true">
60       <xs:attribute ref="xml:lang"/>
61       <xs:anyAttribute namespace="##any" processContents="lax"/>
62     </xs:complexType>
63   </xs:element>
64   <xs:element name="compatibility">
65     <xs:complexType>
66       <xs:anyAttribute namespace="##any" processContents="lax"/>
67     </xs:complexType>
68   </xs:element>
69   <xs:element name="profile">
70     <xs:complexType>
71       <xs:attribute name="name" use="required" type="xs:string"/>
72       <xs:anyAttribute namespace="##any" processContents="lax"/>
73     </xs:complexType>
74   </xs:element>
75   <xs:element name="watch-application">
76     <xs:complexType>
77       <xs:choice maxOccurs="unbounded" minOccurs="0">
78         <xs:element ref="packages:label"/>
79         <xs:element ref="packages:icon"/>
80         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
81       </xs:choice>
82       <xs:attribute name="appid" use="required" type="xs:string"/>
83       <xs:attribute name="exec" use="required"/>
84       <xs:attribute name="ambient-support" type="xs:boolean"/>
85       <xs:anyAttribute namespace="##any" processContents="lax"/>
86     </xs:complexType>
87   </xs:element>
88   <xs:element name="watchface">
89   </xs:element>
90   <xs:element name="service-application">
91     <xs:complexType>
92       <xs:choice maxOccurs="unbounded" minOccurs="0">
93         <xs:element ref="packages:label"/>
94         <xs:element ref="packages:icon"/>
95         <xs:element ref="packages:application-service"/>
96         <xs:element ref="packages:app-control"/>
97         <xs:element ref="packages:category"/>
98         <xs:element ref="packages:metadata"/>
99         <xs:element ref="packages:permission"/>
100         <xs:element ref="packages:datacontrol"/>
101         <xs:element ref="packages:background-category"/>
102         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
103       </xs:choice>
104       <xs:attribute name="appid" use="required" type="xs:string"/>
105       <xs:attribute name="auto-restart" type="xs:boolean"/>
106       <xs:attribute name="exec" use="required"/>
107       <xs:attribute name="on-boot" type="xs:boolean"/>
108       <xs:attribute name="type" use="required" type="xs:string"/>
109       <xs:attribute name="multiple" type="xs:boolean"/>
110       <xs:attribute name="taskmanage" type="xs:boolean"/>
111       <xs:attribute name="permission-type" type="xs:string"/>
112       <xs:attribute name="component-type" type="xs:string"/>
113       <xs:attribute name="nodisplay" type="xs:boolean"/>
114       <xs:anyAttribute namespace="##any" processContents="lax"/>
115     </xs:complexType>
116   </xs:element>
117   <xs:element name="ui-application">
118     <xs:complexType>
119       <xs:choice maxOccurs="unbounded" minOccurs="0">
120         <xs:element ref="packages:label"/>
121         <xs:element ref="packages:icon"/>
122         <xs:element ref="packages:image"/>
123         <xs:element ref="packages:application-service"/>
124         <xs:element ref="packages:app-control"/>
125         <xs:element ref="packages:category"/>
126         <xs:element ref="packages:metadata"/>
127         <xs:element ref="packages:permission"/>
128         <xs:element ref="packages:datacontrol"/>
129         <xs:element ref="packages:background-category"/>
130         <xs:element ref="packages:splash-screens"/>
131         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
132       </xs:choice>
133       <xs:attribute name="appid" use="required" type="xs:string"/>
134       <xs:attribute name="exec" use="required"/>
135       <xs:attribute name="multiple" type="xs:boolean"/>
136       <xs:attribute name="nodisplay" type="xs:boolean"/>
137       <xs:attribute name="taskmanage" type="xs:boolean"/>
138       <xs:attribute name="enabled" type="xs:boolean"/>
139       <xs:attribute name="type" use="required" type="xs:string"/>
140       <xs:attribute name="categories" type="xs:NCName"/>
141       <xs:attribute name="extraid"/>
142       <xs:attribute name="hw-acceleration" type="xs:string"/>
143       <xs:attribute name="screen-reader" type="xs:string"/>
144       <xs:attribute name="recentimage" type="xs:string"/>
145       <xs:attribute name="mainapp" type="xs:boolean"/>
146       <xs:attribute name="indicatordisplay" type="xs:boolean"/>
147       <xs:attribute name="portrait-effectimage" type="xs:string"/>
148       <xs:attribute name="landscape-effectimage" type="xs:string"/>
149       <xs:attribute name="effectimage-type" type="xs:string"/>
150       <xs:attribute name="guestmode-visibility" type="xs:string"/>
151       <xs:attribute name="launchcondition" type="xs:boolean"/>
152       <xs:attribute name="permission-type" type="xs:string"/>
153       <xs:attribute name="component-type" type="xs:string"/>
154       <xs:attribute name="submode" type="xs:boolean"/>
155       <xs:attribute name="submode-mainid" type="xs:string"/>
156       <xs:attribute name="process-pool" type="xs:boolean"/>
157       <xs:attribute name="auto-restart" type="xs:boolean"/>
158       <xs:attribute name="on-boot" type="xs:boolean"/>
159       <xs:attribute name="multi-instance" type="xs:boolean"/>
160       <xs:attribute name="multi-instance-mainid" type="xs:string"/>
161       <xs:attribute name="ui-gadget" type="xs:boolean"/>
162       <xs:attribute name="launch_mode" type="xs:string"/>
163       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
164       <xs:anyAttribute namespace="##any" processContents="lax"/>
165     </xs:complexType>
166   </xs:element>
167   <xs:element name="ime-application">
168     <xs:complexType>
169       <xs:choice maxOccurs="unbounded">
170         <xs:element ref="packages:label"/>
171         <xs:element ref="packages:icon"/>
172         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
173       </xs:choice>
174       <xs:attribute name="appid" use="required" type="xs:string"/>
175       <xs:attribute name="exec" use="required" type="xs:NCName"/>
176       <xs:attribute name="multiple" type="xs:boolean"/>
177       <xs:attribute name="nodisplay" type="xs:boolean"/>
178       <xs:attribute name="type" use="required" type="xs:string"/>
179       <xs:anyAttribute namespace="##any" processContents="lax"/>
180     </xs:complexType>
181   </xs:element>
182   <xs:element name="shortcut-list">
183   </xs:element>
184   <xs:element name="widget">
185   </xs:element>
186   <xs:element name="widget-application">
187     <xs:complexType>
188       <xs:choice maxOccurs="unbounded" minOccurs="0">
189         <xs:element ref="packages:label"/>
190         <xs:element ref="packages:icon"/>
191         <xs:element ref="packages:metadata"/>
192         <xs:element ref="packages:support-size"/>
193         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
194       </xs:choice>
195       <xs:attribute name="appid" use="required" type="xs:string"/>
196       <xs:attribute name="exec" use="required"/>
197       <xs:attribute name="main" type="xs:boolean"/>
198       <xs:attribute name="update-period" type="xs:nonNegativeInteger"/>
199       <xs:attribute name="max-instance" type="xs:nonNegativeInteger"/>
200       <xs:attribute name="preview" type="xs:string"/>
201       <xs:anyAttribute namespace="##any" processContents="lax"/>
202     </xs:complexType>
203   </xs:element>
204   <xs:element name="account">
205   </xs:element>
206   <xs:element name="notifications">
207   </xs:element>
208   <xs:element name="ime">
209   </xs:element>
210   <xs:element name="feature">
211   </xs:element>
212   <xs:element name="trust-anchor">
213     <xs:complexType>
214       <xs:attribute name="pkg-certs-dir" type="xs:string"/>
215       <xs:attribute name="use-system-certs" type="xs:string"/>
216     </xs:complexType>
217   </xs:element>
218   <xs:element name="privileges">
219     <xs:complexType>
220       <xs:choice maxOccurs="unbounded" minOccurs="0">
221         <xs:element ref="packages:privilege"/>
222         <xs:element ref="packages:appdefined-privilege"/>
223       </xs:choice>
224     </xs:complexType>
225   </xs:element>
226   <xs:element name="privilege">
227     <xs:complexType mixed="true">
228       <xs:attribute name="type" type="xs:string"/>
229     </xs:complexType>
230   </xs:element>
231   <xs:element name="provides-appdefined-privileges">
232     <xs:complexType>
233       <xs:choice maxOccurs="unbounded" minOccurs="0">
234         <xs:element ref="packages:appdefined-privilege"/>
235       </xs:choice>
236     </xs:complexType>
237   </xs:element>
238   <xs:element name="appdefined-privilege">
239     <xs:complexType mixed="true">
240       <xs:attribute name="type" type="xs:string"/>
241       <xs:attribute name="license" type="xs:string"/>
242     </xs:complexType>
243   </xs:element>
244   <xs:element name="font">
245   </xs:element>
246   <xs:element name="label">
247     <xs:complexType mixed="true">
248       <xs:attribute ref="xml:lang"/>
249       <xs:anyAttribute namespace="##any" processContents="lax"/>
250     </xs:complexType>
251   </xs:element>
252   <xs:element name="icon">
253   <xs:complexType mixed="true">
254     <xs:attribute ref="xml:lang"/>
255     <xs:attribute name="section" type="xs:string"/>
256     <xs:attribute name="resolution" type="xs:string"/>
257     <xs:attribute name="dpi" type="xs:string"/>
258     <xs:anyAttribute namespace="##any" processContents="lax"/>
259   </xs:complexType>
260   </xs:element>
261   <xs:element name="image">
262   <xs:complexType mixed="true">
263     <xs:attribute ref="xml:lang"/>
264     <xs:attribute name="section" type="xs:string"/>
265       <xs:anyAttribute namespace="##any" processContents="lax"/>
266   </xs:complexType>
267   </xs:element>
268   <xs:element name="application-service">
269     <xs:complexType>
270       <xs:choice maxOccurs="unbounded">
271         <xs:element ref="packages:operation"/>
272         <xs:element ref="packages:uri"/>
273         <xs:element ref="packages:mime"/>
274         <xs:element ref="packages:subapp"/>
275         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
276       </xs:choice>
277     </xs:complexType>
278   </xs:element>
279   <xs:element name="app-control">
280     <xs:complexType>
281       <xs:choice maxOccurs="unbounded">
282         <xs:element ref="packages:operation"/>
283         <xs:element ref="packages:uri"/>
284         <xs:element ref="packages:mime"/>
285         <xs:element ref="packages:subapp"/>
286         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
287       </xs:choice>
288     </xs:complexType>
289   </xs:element>
290   <xs:element name="category">
291     <xs:complexType>
292       <xs:choice maxOccurs="unbounded">
293         <xs:any minOccurs="0" processContents="lax"/>
294       </xs:choice>
295       <xs:attribute name="name" use="required"/>
296       <xs:anyAttribute processContents="lax"/>
297     </xs:complexType>
298   </xs:element>
299   <xs:element name="metadata">
300     <xs:complexType>
301       <xs:attribute name="key" use="required" type="xs:string"/>
302       <xs:attribute name="value" type="xs:string"/>
303       <xs:anyAttribute processContents="lax"/>
304     </xs:complexType>
305   </xs:element>
306   <xs:element name="permission">
307   <xs:complexType>
308     <xs:attribute name="type" type="xs:string"/>
309     <xs:anyAttribute processContents="lax"/>
310   </xs:complexType>
311   </xs:element>
312   <xs:element name="datacontrol">
313   <xs:complexType>
314     <xs:choice maxOccurs="unbounded" minOccurs="0">
315       <xs:element ref="packages:privilege"/>
316     </xs:choice>
317     <xs:attribute name="providerid" type="xs:string"/>
318     <xs:attribute name="access" type="xs:string"/>
319     <xs:attribute name="type" type="xs:string"/>
320     <xs:attribute name="trusted" type="xs:boolean"/>
321     <xs:anyAttribute processContents="lax"/>
322   </xs:complexType>
323   </xs:element>
324   <xs:element name="operation">
325     <xs:complexType>
326       <xs:attribute name="name" use="required"/>
327       <xs:anyAttribute processContents="lax"/>
328     </xs:complexType>
329   </xs:element>
330   <xs:element name="uri">
331     <xs:complexType>
332       <xs:attribute name="name" use="required"/>
333       <xs:anyAttribute processContents="lax"/>
334     </xs:complexType>
335   </xs:element>
336   <xs:element name="mime">
337     <xs:complexType>
338       <xs:attribute name="name" use="required"/>
339       <xs:anyAttribute processContents="lax"/>
340     </xs:complexType>
341   </xs:element>
342   <xs:element name="subapp">
343     <xs:complexType>
344       <xs:attribute name="name" use="required"/>
345       <xs:anyAttribute namespace="##any" processContents="lax"/>
346     </xs:complexType>
347   </xs:element>
348   <xs:element name="background-category">
349     <xs:complexType mixed="true">
350       <xs:attribute name="value" type="xs:string"/>
351       <xs:anyAttribute namespace="##any" processContents="lax"/>
352     </xs:complexType>
353   </xs:element>
354   <xs:element name="support-size">
355   </xs:element>
356   <xs:element name="splash-screens">
357     <xs:complexType>
358       <xs:choice maxOccurs="unbounded" minOccurs="0">
359         <xs:element ref="packages:splash-screen"/>
360         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
361       </xs:choice>
362     </xs:complexType>
363   </xs:element>
364   <xs:element name="splash-screen">
365     <xs:complexType>
366       <xs:attribute name="src" use="required" type="xs:string"/>
367       <xs:attribute name="type" use="required" type="xs:string"/>
368       <xs:attribute name="dpi" type="xs:string"/>
369       <xs:attribute name="orientation" use="required" type="xs:string"/>
370       <xs:attribute name="indicator-display" type="xs:string"/>
371       <xs:attribute name="app-control-operation" type="xs:string"/>
372       <xs:attribute name="color-depth" type="xs:string"/>
373       <xs:anyAttribute namespace="##any" processContents="lax"/>
374     </xs:complexType>
375   </xs:element>
376 </xs:schema>