Release version 0.13.5
[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="use-system-certs" type="xs:string"/>
215     </xs:complexType>
216   </xs:element>
217   <xs:element name="privileges">
218     <xs:complexType>
219       <xs:choice maxOccurs="unbounded" minOccurs="0">
220         <xs:element ref="packages:privilege"/>
221         <xs:element ref="packages:appdefined-privilege"/>
222       </xs:choice>
223     </xs:complexType>
224   </xs:element>
225   <xs:element name="privilege">
226     <xs:complexType mixed="true">
227       <xs:attribute name="type" type="xs:string"/>
228     </xs:complexType>
229   </xs:element>
230   <xs:element name="provides-appdefined-privileges">
231     <xs:complexType>
232       <xs:choice maxOccurs="unbounded" minOccurs="0">
233         <xs:element ref="packages:appdefined-privilege"/>
234       </xs:choice>
235     </xs:complexType>
236   </xs:element>
237   <xs:element name="appdefined-privilege">
238     <xs:complexType mixed="true">
239       <xs:attribute name="type" type="xs:string"/>
240       <xs:attribute name="license" type="xs:string"/>
241     </xs:complexType>
242   </xs:element>
243   <xs:element name="font">
244   </xs:element>
245   <xs:element name="label">
246     <xs:complexType mixed="true">
247       <xs:attribute ref="xml:lang"/>
248       <xs:anyAttribute namespace="##any" processContents="lax"/>
249     </xs:complexType>
250   </xs:element>
251   <xs:element name="icon">
252   <xs:complexType mixed="true">
253     <xs:attribute ref="xml:lang"/>
254     <xs:attribute name="section" type="xs:string"/>
255     <xs:attribute name="resolution" type="xs:string"/>
256     <xs:attribute name="dpi" type="xs:string"/>
257     <xs:anyAttribute namespace="##any" processContents="lax"/>
258   </xs:complexType>
259   </xs:element>
260   <xs:element name="image">
261   <xs:complexType mixed="true">
262     <xs:attribute ref="xml:lang"/>
263     <xs:attribute name="section" type="xs:string"/>
264       <xs:anyAttribute namespace="##any" processContents="lax"/>
265   </xs:complexType>
266   </xs:element>
267   <xs:element name="application-service">
268     <xs:complexType>
269       <xs:choice maxOccurs="unbounded">
270         <xs:element ref="packages:operation"/>
271         <xs:element ref="packages:uri"/>
272         <xs:element ref="packages:mime"/>
273         <xs:element ref="packages:subapp"/>
274         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
275       </xs:choice>
276     </xs:complexType>
277   </xs:element>
278   <xs:element name="app-control">
279     <xs:complexType>
280       <xs:choice maxOccurs="unbounded">
281         <xs:element ref="packages:operation"/>
282         <xs:element ref="packages:uri"/>
283         <xs:element ref="packages:mime"/>
284         <xs:element ref="packages:subapp"/>
285         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
286       </xs:choice>
287       <xs:attribute name="visibility" type="xs:string"/>
288       <xs:anyAttribute namespace="##any" processContents="lax"/>
289     </xs:complexType>
290   </xs:element>
291   <xs:element name="category">
292     <xs:complexType>
293       <xs:choice maxOccurs="unbounded">
294         <xs:any minOccurs="0" processContents="lax"/>
295       </xs:choice>
296       <xs:attribute name="name" use="required"/>
297       <xs:anyAttribute processContents="lax"/>
298     </xs:complexType>
299   </xs:element>
300   <xs:element name="metadata">
301     <xs:complexType>
302       <xs:attribute name="key" use="required" type="xs:string"/>
303       <xs:attribute name="value" type="xs:string"/>
304       <xs:anyAttribute processContents="lax"/>
305     </xs:complexType>
306   </xs:element>
307   <xs:element name="permission">
308   <xs:complexType>
309     <xs:attribute name="type" type="xs:string"/>
310     <xs:anyAttribute processContents="lax"/>
311   </xs:complexType>
312   </xs:element>
313   <xs:element name="datacontrol">
314   <xs:complexType>
315     <xs:choice maxOccurs="unbounded" minOccurs="0">
316       <xs:element ref="packages:privilege"/>
317     </xs:choice>
318     <xs:attribute name="providerid" type="xs:string"/>
319     <xs:attribute name="access" type="xs:string"/>
320     <xs:attribute name="type" type="xs:string"/>
321     <xs:attribute name="trusted" type="xs:boolean"/>
322     <xs:anyAttribute processContents="lax"/>
323   </xs:complexType>
324   </xs:element>
325   <xs:element name="operation">
326     <xs:complexType>
327       <xs:attribute name="name" use="required"/>
328       <xs:anyAttribute processContents="lax"/>
329     </xs:complexType>
330   </xs:element>
331   <xs:element name="uri">
332     <xs:complexType>
333       <xs:attribute name="name" use="required"/>
334       <xs:anyAttribute processContents="lax"/>
335     </xs:complexType>
336   </xs:element>
337   <xs:element name="mime">
338     <xs:complexType>
339       <xs:attribute name="name" use="required"/>
340       <xs:anyAttribute processContents="lax"/>
341     </xs:complexType>
342   </xs:element>
343   <xs:element name="subapp">
344     <xs:complexType>
345       <xs:attribute name="name" use="required"/>
346       <xs:anyAttribute namespace="##any" processContents="lax"/>
347     </xs:complexType>
348   </xs:element>
349   <xs:element name="background-category">
350     <xs:complexType mixed="true">
351       <xs:attribute name="value" type="xs:string"/>
352       <xs:anyAttribute namespace="##any" processContents="lax"/>
353     </xs:complexType>
354   </xs:element>
355   <xs:element name="support-size">
356   </xs:element>
357   <xs:element name="splash-screens">
358     <xs:complexType>
359       <xs:choice maxOccurs="unbounded" minOccurs="0">
360         <xs:element ref="packages:splash-screen"/>
361         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
362       </xs:choice>
363     </xs:complexType>
364   </xs:element>
365   <xs:element name="splash-screen">
366     <xs:complexType>
367       <xs:attribute name="src" use="required" type="xs:string"/>
368       <xs:attribute name="type" use="required" type="xs:string"/>
369       <xs:attribute name="dpi" type="xs:string"/>
370       <xs:attribute name="orientation" use="required" type="xs:string"/>
371       <xs:attribute name="indicator-display" type="xs:string"/>
372       <xs:attribute name="app-control-operation" type="xs:string"/>
373       <xs:attribute name="color-depth" type="xs:string"/>
374       <xs:anyAttribute namespace="##any" processContents="lax"/>
375     </xs:complexType>
376   </xs:element>
377 </xs:schema>