Fix static analysis issues
[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:element ref="packages:component-based-application"/>
30         <xs:element ref="packages:dependencies"/>
31         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
32       </xs:choice>
33       <xs:attribute name="storeclient-id" type="xs:string"/>
34       <xs:attribute name="install-location" type="xs:string"/>
35       <xs:attribute name="package" use="required" type="xs:string"/>
36       <xs:attribute name="type" type="xs:string"/>
37       <xs:attribute name="version" use="required" type="xs:string"/>
38       <xs:attribute name="size" type="xs:NMTOKEN"/>
39       <xs:attribute name="root_path" type="xs:string"/>
40       <xs:attribute name="csc_path" type="xs:string"/>
41       <xs:attribute name="appsetting" type="xs:boolean"/>
42       <xs:attribute name="nodisplay-setting" type="xs:boolean"/>
43       <xs:attribute name="url" type="xs:string"/>
44       <xs:attribute name="support-disable" type="xs:boolean"/>
45       <xs:attribute name="api-version" type="xs:string"/>
46       <xs:attribute name="backend-installer" type="xs:string"/>
47       <xs:attribute name="preload" type="xs:boolean"/>
48       <xs:anyAttribute namespace="##any" processContents="lax"/>
49     </xs:complexType>
50   </xs:element>
51
52   <xs:element name="author">
53     <xs:complexType mixed="true">
54       <xs:attribute name="email"/>
55       <xs:attribute name="href"/>
56       <xs:attribute ref="xml:lang"/>
57       <xs:anyAttribute namespace="##any" processContents="lax"/>
58     </xs:complexType>
59   </xs:element>
60   <xs:element name="description">
61     <xs:complexType mixed="true">
62       <xs:attribute ref="xml:lang"/>
63       <xs:anyAttribute namespace="##any" processContents="lax"/>
64     </xs:complexType>
65   </xs:element>
66   <xs:element name="compatibility">
67     <xs:complexType>
68       <xs:anyAttribute namespace="##any" processContents="lax"/>
69     </xs:complexType>
70   </xs:element>
71   <xs:element name="profile">
72     <xs:complexType>
73       <xs:attribute name="name" use="required" type="xs:string"/>
74       <xs:anyAttribute namespace="##any" processContents="lax"/>
75     </xs:complexType>
76   </xs:element>
77   <xs:element name="watch-application">
78     <xs:complexType>
79       <xs:choice maxOccurs="unbounded" minOccurs="0">
80         <xs:element ref="packages:label"/>
81         <xs:element ref="packages:icon"/>
82         <xs:element ref="packages:res-control"/>
83         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
84       </xs:choice>
85       <xs:attribute name="appid" use="required" type="xs:string"/>
86       <xs:attribute name="exec" use="required"/>
87       <xs:attribute name="ambient-support" type="xs:boolean"/>
88       <xs:attribute name="api-version" type="xs:string"/>
89       <xs:anyAttribute namespace="##any" processContents="lax"/>
90     </xs:complexType>
91   </xs:element>
92   <xs:element name="watchface">
93   </xs:element>
94   <xs:element name="service-application">
95     <xs:complexType>
96       <xs:choice maxOccurs="unbounded" minOccurs="0">
97         <xs:element ref="packages:label"/>
98         <xs:element ref="packages:icon"/>
99         <xs:element ref="packages:application-service"/>
100         <xs:element ref="packages:app-control"/>
101         <xs:element ref="packages:category"/>
102         <xs:element ref="packages:metadata"/>
103         <xs:element ref="packages:permission"/>
104         <xs:element ref="packages:datacontrol"/>
105         <xs:element ref="packages:background-category"/>
106         <xs:element ref="packages:res-control"/>
107         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
108       </xs:choice>
109       <xs:attribute name="appid" use="required" type="xs:string"/>
110       <xs:attribute name="auto-restart" type="xs:boolean"/>
111       <xs:attribute name="exec" use="required"/>
112       <xs:attribute name="on-boot" type="xs:boolean"/>
113       <xs:attribute name="type" use="required" type="xs:string"/>
114       <xs:attribute name="multiple" type="xs:boolean"/>
115       <xs:attribute name="taskmanage" type="xs:boolean"/>
116       <xs:attribute name="permission-type" type="xs:string"/>
117       <xs:attribute name="component-type" type="xs:string"/>
118       <xs:attribute name="nodisplay" type="xs:boolean"/>
119       <xs:attribute name="api-version" type="xs:string"/>
120       <xs:anyAttribute namespace="##any" processContents="lax"/>
121     </xs:complexType>
122   </xs:element>
123   <xs:element name="ui-application">
124     <xs:complexType>
125       <xs:choice maxOccurs="unbounded" minOccurs="0">
126         <xs:element ref="packages:label"/>
127         <xs:element ref="packages:icon"/>
128         <xs:element ref="packages:image"/>
129         <xs:element ref="packages:application-service"/>
130         <xs:element ref="packages:app-control"/>
131         <xs:element ref="packages:category"/>
132         <xs:element ref="packages:metadata"/>
133         <xs:element ref="packages:permission"/>
134         <xs:element ref="packages:datacontrol"/>
135         <xs:element ref="packages:background-category"/>
136         <xs:element ref="packages:splash-screens"/>
137         <xs:element ref="packages:res-control"/>
138         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
139       </xs:choice>
140       <xs:attribute name="appid" use="required" type="xs:string"/>
141       <xs:attribute name="exec" use="required"/>
142       <xs:attribute name="multiple" type="xs:boolean"/>
143       <xs:attribute name="nodisplay" type="xs:boolean"/>
144       <xs:attribute name="taskmanage" type="xs:boolean"/>
145       <xs:attribute name="enabled" type="xs:boolean"/>
146       <xs:attribute name="type" use="required" type="xs:string"/>
147       <xs:attribute name="categories" type="xs:NCName"/>
148       <xs:attribute name="extraid"/>
149       <xs:attribute name="hw-acceleration" type="xs:string"/>
150       <xs:attribute name="screen-reader" type="xs:string"/>
151       <xs:attribute name="recentimage" type="xs:string"/>
152       <xs:attribute name="mainapp" type="xs:boolean"/>
153       <xs:attribute name="indicatordisplay" type="xs:boolean"/>
154       <xs:attribute name="portrait-effectimage" type="xs:string"/>
155       <xs:attribute name="landscape-effectimage" type="xs:string"/>
156       <xs:attribute name="effectimage-type" type="xs:string"/>
157       <xs:attribute name="guestmode-visibility" type="xs:string"/>
158       <xs:attribute name="launchcondition" type="xs:boolean"/>
159       <xs:attribute name="permission-type" type="xs:string"/>
160       <xs:attribute name="component-type" type="xs:string"/>
161       <xs:attribute name="submode" type="xs:boolean"/>
162       <xs:attribute name="submode-mainid" type="xs:string"/>
163       <xs:attribute name="process-pool" type="xs:boolean"/>
164       <xs:attribute name="auto-restart" type="xs:boolean"/>
165       <xs:attribute name="on-boot" type="xs:boolean"/>
166       <xs:attribute name="multi-instance" type="xs:boolean"/>
167       <xs:attribute name="multi-instance-mainid" type="xs:string"/>
168       <xs:attribute name="ui-gadget" type="xs:boolean"/>
169       <xs:attribute name="launch_mode" type="xs:string"/>
170       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
171       <xs:attribute name="api-version" type="xs:string"/>
172       <xs:anyAttribute namespace="##any" processContents="lax"/>
173     </xs:complexType>
174   </xs:element>
175   <xs:element name="ime-application">
176     <xs:complexType>
177       <xs:choice maxOccurs="unbounded">
178         <xs:element ref="packages:label"/>
179         <xs:element ref="packages:icon"/>
180         <xs:element ref="packages:res-control"/>
181         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
182       </xs:choice>
183       <xs:attribute name="appid" use="required" type="xs:string"/>
184       <xs:attribute name="exec" use="required" type="xs:NCName"/>
185       <xs:attribute name="multiple" type="xs:boolean"/>
186       <xs:attribute name="nodisplay" type="xs:boolean"/>
187       <xs:attribute name="type" use="required" type="xs:string"/>
188       <xs:attribute name="api-version" type="xs:string"/>
189       <xs:anyAttribute namespace="##any" processContents="lax"/>
190     </xs:complexType>
191   </xs:element>
192   <xs:element name="shortcut-list">
193   </xs:element>
194   <xs:element name="widget">
195   </xs:element>
196   <xs:element name="widget-application">
197     <xs:complexType>
198       <xs:choice maxOccurs="unbounded" minOccurs="0">
199         <xs:element ref="packages:label"/>
200         <xs:element ref="packages:icon"/>
201         <xs:element ref="packages:metadata"/>
202         <xs:element ref="packages:support-size"/>
203         <xs:element ref="packages:res-control"/>
204         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
205       </xs:choice>
206       <xs:attribute name="appid" use="required" type="xs:string"/>
207       <xs:attribute name="exec" use="required"/>
208       <xs:attribute name="main" type="xs:boolean"/>
209       <xs:attribute name="update-period" type="xs:nonNegativeInteger"/>
210       <xs:attribute name="max-instance" type="xs:nonNegativeInteger"/>
211       <xs:attribute name="preview" type="xs:string"/>
212       <xs:attribute name="api-version" type="xs:string"/>
213       <xs:anyAttribute namespace="##any" processContents="lax"/>
214     </xs:complexType>
215   </xs:element>
216   <xs:element name="account">
217   </xs:element>
218   <xs:element name="notifications">
219   </xs:element>
220   <xs:element name="ime">
221   </xs:element>
222   <xs:element name="feature">
223   </xs:element>
224   <xs:element name="trust-anchor">
225     <xs:complexType>
226       <xs:attribute name="use-system-certs" type="xs:string"/>
227     </xs:complexType>
228   </xs:element>
229   <xs:element name="privileges">
230     <xs:complexType>
231       <xs:choice maxOccurs="unbounded" minOccurs="0">
232         <xs:element ref="packages:privilege"/>
233         <xs:element ref="packages:appdefined-privilege"/>
234       </xs:choice>
235     </xs:complexType>
236   </xs:element>
237   <xs:element name="privilege">
238     <xs:complexType mixed="true">
239       <xs:attribute name="type" type="xs:string"/>
240     </xs:complexType>
241   </xs:element>
242   <xs:element name="provides-appdefined-privileges">
243     <xs:complexType>
244       <xs:choice maxOccurs="unbounded" minOccurs="0">
245         <xs:element ref="packages:appdefined-privilege"/>
246       </xs:choice>
247     </xs:complexType>
248   </xs:element>
249   <xs:element name="appdefined-privilege">
250     <xs:complexType mixed="true">
251       <xs:attribute name="type" type="xs:string"/>
252       <xs:attribute name="license" type="xs:string"/>
253     </xs:complexType>
254   </xs:element>
255   <xs:element name="font">
256   </xs:element>
257   <xs:element name="label">
258     <xs:complexType mixed="true">
259       <xs:attribute ref="xml:lang"/>
260       <xs:anyAttribute namespace="##any" processContents="lax"/>
261     </xs:complexType>
262   </xs:element>
263   <xs:element name="icon">
264   <xs:complexType mixed="true">
265     <xs:attribute ref="xml:lang"/>
266     <xs:attribute name="section" type="xs:string"/>
267     <xs:attribute name="resolution" type="xs:string"/>
268     <xs:attribute name="dpi" type="xs:string"/>
269     <xs:anyAttribute namespace="##any" processContents="lax"/>
270   </xs:complexType>
271   </xs:element>
272   <xs:element name="image">
273   <xs:complexType mixed="true">
274     <xs:attribute ref="xml:lang"/>
275     <xs:attribute name="section" type="xs:string"/>
276       <xs:anyAttribute namespace="##any" processContents="lax"/>
277   </xs:complexType>
278   </xs:element>
279   <xs:element name="application-service">
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="app-control">
291     <xs:complexType>
292       <xs:choice maxOccurs="unbounded">
293         <xs:element ref="packages:operation"/>
294         <xs:element ref="packages:uri"/>
295         <xs:element ref="packages:mime"/>
296         <xs:element ref="packages:subapp"/>
297         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
298       </xs:choice>
299       <xs:attribute name="id" type="xs:string"/>
300       <xs:attribute name="visibility" type="xs:string"/>
301       <xs:anyAttribute namespace="##any" processContents="lax"/>
302     </xs:complexType>
303   </xs:element>
304   <xs:element name="category">
305     <xs:complexType>
306       <xs:choice maxOccurs="unbounded">
307         <xs:any minOccurs="0" processContents="lax"/>
308       </xs:choice>
309       <xs:attribute name="name" use="required"/>
310       <xs:anyAttribute processContents="lax"/>
311     </xs:complexType>
312   </xs:element>
313   <xs:element name="metadata">
314     <xs:complexType>
315       <xs:attribute name="key" use="required" type="xs:string"/>
316       <xs:attribute name="value" type="xs:string"/>
317       <xs:anyAttribute processContents="lax"/>
318     </xs:complexType>
319   </xs:element>
320   <xs:element name="permission">
321   <xs:complexType>
322     <xs:attribute name="type" type="xs:string"/>
323     <xs:anyAttribute processContents="lax"/>
324   </xs:complexType>
325   </xs:element>
326   <xs:element name="datacontrol">
327   <xs:complexType>
328     <xs:choice maxOccurs="unbounded" minOccurs="0">
329       <xs:element ref="packages:privilege"/>
330     </xs:choice>
331     <xs:attribute name="providerid" type="xs:string"/>
332     <xs:attribute name="access" type="xs:string"/>
333     <xs:attribute name="type" type="xs:string"/>
334     <xs:attribute name="trusted" type="xs:boolean"/>
335     <xs:anyAttribute processContents="lax"/>
336   </xs:complexType>
337   </xs:element>
338   <xs:element name="operation">
339     <xs:complexType>
340       <xs:attribute name="name" use="required"/>
341       <xs:anyAttribute processContents="lax"/>
342     </xs:complexType>
343   </xs:element>
344   <xs:element name="uri">
345     <xs:complexType>
346       <xs:attribute name="name" use="required"/>
347       <xs:anyAttribute processContents="lax"/>
348     </xs:complexType>
349   </xs:element>
350   <xs:element name="mime">
351     <xs:complexType>
352       <xs:attribute name="name" use="required"/>
353       <xs:anyAttribute processContents="lax"/>
354     </xs:complexType>
355   </xs:element>
356   <xs:element name="subapp">
357     <xs:complexType>
358       <xs:attribute name="name" use="required"/>
359       <xs:anyAttribute namespace="##any" processContents="lax"/>
360     </xs:complexType>
361   </xs:element>
362   <xs:element name="background-category">
363     <xs:complexType mixed="true">
364       <xs:attribute name="value" type="xs:string"/>
365       <xs:anyAttribute namespace="##any" processContents="lax"/>
366     </xs:complexType>
367   </xs:element>
368   <xs:element name="support-size">
369   </xs:element>
370   <xs:element name="splash-screens">
371     <xs:complexType>
372       <xs:choice maxOccurs="unbounded" minOccurs="0">
373         <xs:element ref="packages:splash-screen"/>
374         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
375       </xs:choice>
376     </xs:complexType>
377   </xs:element>
378   <xs:element name="splash-screen">
379     <xs:complexType>
380       <xs:attribute name="src" use="required" type="xs:string"/>
381       <xs:attribute name="type" use="required" type="xs:string"/>
382       <xs:attribute name="dpi" type="xs:string"/>
383       <xs:attribute name="orientation" use="required" type="xs:string"/>
384       <xs:attribute name="indicator-display" type="xs:string"/>
385       <xs:attribute name="app-control-operation" type="xs:string"/>
386       <xs:attribute name="color-depth" type="xs:string"/>
387       <xs:anyAttribute namespace="##any" processContents="lax"/>
388     </xs:complexType>
389   </xs:element>
390   <xs:element name="component-based-application">
391     <xs:complexType>
392       <xs:choice maxOccurs="unbounded" minOccurs="0">
393         <xs:element ref="packages:icon"/>
394         <xs:element ref="packages:label"/>
395         <xs:element ref="packages:metadata"/>
396         <xs:element ref="packages:background-category"/>
397         <xs:element ref="packages:res-control"/>
398         <xs:element ref="packages:app-control"/>
399         <xs:element ref="packages:category"/>
400         <xs:element ref="packages:datacontrol"/>
401         <xs:element ref="packages:splash-screens"/>
402         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
403       </xs:choice>
404       <xs:attribute name="appid" use="required" type="xs:string"/>
405       <xs:attribute name="exec" use="required"/>
406       <xs:attribute name="type" use="required" type="xs:string"/>
407       <xs:attribute name="api-version" type="xs:string"/>
408       <xs:attribute name="hw-acceleration" type="xs:string"/>
409       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
410       <xs:anyAttribute namespace="##any" processContents="lax"/>
411     </xs:complexType>
412   </xs:element>
413   <xs:element name="dependencies">
414     <xs:complexType>
415       <xs:choice maxOccurs="unbounded" minOccurs="0">
416         <xs:element ref="packages:dependency"/>
417       </xs:choice>
418     </xs:complexType>
419   </xs:element>
420   <xs:element name="dependency">
421     <xs:complexType mixed="true">
422       <xs:attribute name="type" use="required" type="xs:string"/>
423       <xs:attribute name="required-version" type="xs:string"/>
424       <xs:anyAttribute namespace="##any" processContents="lax"/>
425     </xs:complexType>
426   </xs:element>
427   <xs:element name="res-control">
428     <xs:complexType>
429       <xs:attribute name="resource-type" use="required" type="xs:string"/>
430       <xs:attribute name="min-res-version" type="xs:string"/>
431       <xs:attribute name="max-res-version" type="xs:string"/>
432       <xs:attribute name="auto-close" type="xs:string"/>
433       <xs:anyAttribute namespace="##any" processContents="lax"/>
434     </xs:complexType>
435   </xs:element>
436 </xs:schema>