Add new elements for component-based application
[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:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
31       </xs:choice>
32       <xs:attribute name="storeclient-id" type="xs:string"/>
33       <xs:attribute name="install-location" type="xs:string"/>
34       <xs:attribute name="package" use="required" type="xs:string"/>
35       <xs:attribute name="type" type="xs:string"/>
36       <xs:attribute name="version" use="required" type="xs:string"/>
37       <xs:attribute name="size" type="xs:NMTOKEN"/>
38       <xs:attribute name="root_path" type="xs:string"/>
39       <xs:attribute name="csc_path" type="xs:string"/>
40       <xs:attribute name="appsetting" type="xs:boolean"/>
41       <xs:attribute name="nodisplay-setting" type="xs:boolean"/>
42       <xs:attribute name="url" type="xs:string"/>
43       <xs:attribute name="support-disable" type="xs:boolean"/>
44       <xs:attribute name="api-version" type="xs:string"/>
45       <xs:attribute name="backend-installer" type="xs:string"/>
46       <xs:attribute name="preload" type="xs:boolean"/>
47       <xs:anyAttribute namespace="##any" processContents="lax"/>
48     </xs:complexType>
49   </xs:element>
50
51   <xs:element name="author">
52     <xs:complexType mixed="true">
53       <xs:attribute name="email"/>
54       <xs:attribute name="href"/>
55       <xs:attribute ref="xml:lang"/>
56       <xs:anyAttribute namespace="##any" processContents="lax"/>
57     </xs:complexType>
58   </xs:element>
59   <xs:element name="description">
60     <xs:complexType mixed="true">
61       <xs:attribute ref="xml:lang"/>
62       <xs:anyAttribute namespace="##any" processContents="lax"/>
63     </xs:complexType>
64   </xs:element>
65   <xs:element name="compatibility">
66     <xs:complexType>
67       <xs:anyAttribute namespace="##any" processContents="lax"/>
68     </xs:complexType>
69   </xs:element>
70   <xs:element name="profile">
71     <xs:complexType>
72       <xs:attribute name="name" use="required" type="xs:string"/>
73       <xs:anyAttribute namespace="##any" processContents="lax"/>
74     </xs:complexType>
75   </xs:element>
76   <xs:element name="watch-application">
77     <xs:complexType>
78       <xs:choice maxOccurs="unbounded" minOccurs="0">
79         <xs:element ref="packages:label"/>
80         <xs:element ref="packages:icon"/>
81         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
82       </xs:choice>
83       <xs:attribute name="appid" use="required" type="xs:string"/>
84       <xs:attribute name="exec" use="required"/>
85       <xs:attribute name="ambient-support" type="xs:boolean"/>
86       <xs:anyAttribute namespace="##any" processContents="lax"/>
87     </xs:complexType>
88   </xs:element>
89   <xs:element name="watchface">
90   </xs:element>
91   <xs:element name="service-application">
92     <xs:complexType>
93       <xs:choice maxOccurs="unbounded" minOccurs="0">
94         <xs:element ref="packages:label"/>
95         <xs:element ref="packages:icon"/>
96         <xs:element ref="packages:application-service"/>
97         <xs:element ref="packages:app-control"/>
98         <xs:element ref="packages:category"/>
99         <xs:element ref="packages:metadata"/>
100         <xs:element ref="packages:permission"/>
101         <xs:element ref="packages:datacontrol"/>
102         <xs:element ref="packages:background-category"/>
103         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
104       </xs:choice>
105       <xs:attribute name="appid" use="required" type="xs:string"/>
106       <xs:attribute name="auto-restart" type="xs:boolean"/>
107       <xs:attribute name="exec" use="required"/>
108       <xs:attribute name="on-boot" type="xs:boolean"/>
109       <xs:attribute name="type" use="required" type="xs:string"/>
110       <xs:attribute name="multiple" type="xs:boolean"/>
111       <xs:attribute name="taskmanage" type="xs:boolean"/>
112       <xs:attribute name="permission-type" type="xs:string"/>
113       <xs:attribute name="component-type" type="xs:string"/>
114       <xs:attribute name="nodisplay" type="xs:boolean"/>
115       <xs:anyAttribute namespace="##any" processContents="lax"/>
116     </xs:complexType>
117   </xs:element>
118   <xs:element name="ui-application">
119     <xs:complexType>
120       <xs:choice maxOccurs="unbounded" minOccurs="0">
121         <xs:element ref="packages:label"/>
122         <xs:element ref="packages:icon"/>
123         <xs:element ref="packages:image"/>
124         <xs:element ref="packages:application-service"/>
125         <xs:element ref="packages:app-control"/>
126         <xs:element ref="packages:category"/>
127         <xs:element ref="packages:metadata"/>
128         <xs:element ref="packages:permission"/>
129         <xs:element ref="packages:datacontrol"/>
130         <xs:element ref="packages:background-category"/>
131         <xs:element ref="packages:splash-screens"/>
132         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
133       </xs:choice>
134       <xs:attribute name="appid" use="required" type="xs:string"/>
135       <xs:attribute name="exec" use="required"/>
136       <xs:attribute name="multiple" type="xs:boolean"/>
137       <xs:attribute name="nodisplay" type="xs:boolean"/>
138       <xs:attribute name="taskmanage" type="xs:boolean"/>
139       <xs:attribute name="enabled" type="xs:boolean"/>
140       <xs:attribute name="type" use="required" type="xs:string"/>
141       <xs:attribute name="categories" type="xs:NCName"/>
142       <xs:attribute name="extraid"/>
143       <xs:attribute name="hw-acceleration" type="xs:string"/>
144       <xs:attribute name="screen-reader" type="xs:string"/>
145       <xs:attribute name="recentimage" type="xs:string"/>
146       <xs:attribute name="mainapp" type="xs:boolean"/>
147       <xs:attribute name="indicatordisplay" type="xs:boolean"/>
148       <xs:attribute name="portrait-effectimage" type="xs:string"/>
149       <xs:attribute name="landscape-effectimage" type="xs:string"/>
150       <xs:attribute name="effectimage-type" type="xs:string"/>
151       <xs:attribute name="guestmode-visibility" type="xs:string"/>
152       <xs:attribute name="launchcondition" type="xs:boolean"/>
153       <xs:attribute name="permission-type" type="xs:string"/>
154       <xs:attribute name="component-type" type="xs:string"/>
155       <xs:attribute name="submode" type="xs:boolean"/>
156       <xs:attribute name="submode-mainid" type="xs:string"/>
157       <xs:attribute name="process-pool" type="xs:boolean"/>
158       <xs:attribute name="auto-restart" type="xs:boolean"/>
159       <xs:attribute name="on-boot" type="xs:boolean"/>
160       <xs:attribute name="multi-instance" type="xs:boolean"/>
161       <xs:attribute name="multi-instance-mainid" type="xs:string"/>
162       <xs:attribute name="ui-gadget" type="xs:boolean"/>
163       <xs:attribute name="launch_mode" type="xs:string"/>
164       <xs:attribute name="splash-screen-display" type="xs:boolean"/>
165       <xs:anyAttribute namespace="##any" processContents="lax"/>
166     </xs:complexType>
167   </xs:element>
168   <xs:element name="ime-application">
169     <xs:complexType>
170       <xs:choice maxOccurs="unbounded">
171         <xs:element ref="packages:label"/>
172         <xs:element ref="packages:icon"/>
173         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
174       </xs:choice>
175       <xs:attribute name="appid" use="required" type="xs:string"/>
176       <xs:attribute name="exec" use="required" type="xs:NCName"/>
177       <xs:attribute name="multiple" type="xs:boolean"/>
178       <xs:attribute name="nodisplay" type="xs:boolean"/>
179       <xs:attribute name="type" use="required" type="xs:string"/>
180       <xs:anyAttribute namespace="##any" processContents="lax"/>
181     </xs:complexType>
182   </xs:element>
183   <xs:element name="shortcut-list">
184   </xs:element>
185   <xs:element name="widget">
186   </xs:element>
187   <xs:element name="widget-application">
188     <xs:complexType>
189       <xs:choice maxOccurs="unbounded" minOccurs="0">
190         <xs:element ref="packages:label"/>
191         <xs:element ref="packages:icon"/>
192         <xs:element ref="packages:metadata"/>
193         <xs:element ref="packages:support-size"/>
194         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
195       </xs:choice>
196       <xs:attribute name="appid" use="required" type="xs:string"/>
197       <xs:attribute name="exec" use="required"/>
198       <xs:attribute name="main" type="xs:boolean"/>
199       <xs:attribute name="update-period" type="xs:nonNegativeInteger"/>
200       <xs:attribute name="max-instance" type="xs:nonNegativeInteger"/>
201       <xs:attribute name="preview" type="xs:string"/>
202       <xs:anyAttribute namespace="##any" processContents="lax"/>
203     </xs:complexType>
204   </xs:element>
205   <xs:element name="account">
206   </xs:element>
207   <xs:element name="notifications">
208   </xs:element>
209   <xs:element name="ime">
210   </xs:element>
211   <xs:element name="feature">
212   </xs:element>
213   <xs:element name="trust-anchor">
214     <xs:complexType>
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:attribute name="id" type="xs:string"/>
289       <xs:attribute name="visibility" type="xs:string"/>
290       <xs:anyAttribute namespace="##any" processContents="lax"/>
291     </xs:complexType>
292   </xs:element>
293   <xs:element name="category">
294     <xs:complexType>
295       <xs:choice maxOccurs="unbounded">
296         <xs:any minOccurs="0" processContents="lax"/>
297       </xs:choice>
298       <xs:attribute name="name" use="required"/>
299       <xs:anyAttribute processContents="lax"/>
300     </xs:complexType>
301   </xs:element>
302   <xs:element name="metadata">
303     <xs:complexType>
304       <xs:attribute name="key" use="required" type="xs:string"/>
305       <xs:attribute name="value" type="xs:string"/>
306       <xs:anyAttribute processContents="lax"/>
307     </xs:complexType>
308   </xs:element>
309   <xs:element name="permission">
310   <xs:complexType>
311     <xs:attribute name="type" type="xs:string"/>
312     <xs:anyAttribute processContents="lax"/>
313   </xs:complexType>
314   </xs:element>
315   <xs:element name="datacontrol">
316   <xs:complexType>
317     <xs:choice maxOccurs="unbounded" minOccurs="0">
318       <xs:element ref="packages:privilege"/>
319     </xs:choice>
320     <xs:attribute name="providerid" type="xs:string"/>
321     <xs:attribute name="access" type="xs:string"/>
322     <xs:attribute name="type" type="xs:string"/>
323     <xs:attribute name="trusted" type="xs:boolean"/>
324     <xs:anyAttribute processContents="lax"/>
325   </xs:complexType>
326   </xs:element>
327   <xs:element name="operation">
328     <xs:complexType>
329       <xs:attribute name="name" use="required"/>
330       <xs:anyAttribute processContents="lax"/>
331     </xs:complexType>
332   </xs:element>
333   <xs:element name="uri">
334     <xs:complexType>
335       <xs:attribute name="name" use="required"/>
336       <xs:anyAttribute processContents="lax"/>
337     </xs:complexType>
338   </xs:element>
339   <xs:element name="mime">
340     <xs:complexType>
341       <xs:attribute name="name" use="required"/>
342       <xs:anyAttribute processContents="lax"/>
343     </xs:complexType>
344   </xs:element>
345   <xs:element name="subapp">
346     <xs:complexType>
347       <xs:attribute name="name" use="required"/>
348       <xs:anyAttribute namespace="##any" processContents="lax"/>
349     </xs:complexType>
350   </xs:element>
351   <xs:element name="background-category">
352     <xs:complexType mixed="true">
353       <xs:attribute name="value" type="xs:string"/>
354       <xs:anyAttribute namespace="##any" processContents="lax"/>
355     </xs:complexType>
356   </xs:element>
357   <xs:element name="support-size">
358   </xs:element>
359   <xs:element name="splash-screens">
360     <xs:complexType>
361       <xs:choice maxOccurs="unbounded" minOccurs="0">
362         <xs:element ref="packages:splash-screen"/>
363         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
364       </xs:choice>
365     </xs:complexType>
366   </xs:element>
367   <xs:element name="splash-screen">
368     <xs:complexType>
369       <xs:attribute name="src" use="required" type="xs:string"/>
370       <xs:attribute name="type" use="required" type="xs:string"/>
371       <xs:attribute name="dpi" type="xs:string"/>
372       <xs:attribute name="orientation" use="required" type="xs:string"/>
373       <xs:attribute name="indicator-display" type="xs:string"/>
374       <xs:attribute name="app-control-operation" type="xs:string"/>
375       <xs:attribute name="color-depth" type="xs:string"/>
376       <xs:anyAttribute namespace="##any" processContents="lax"/>
377     </xs:complexType>
378   </xs:element>
379   <xs:element name="component-based-application">
380     <xs:complexType>
381       <xs:choice maxOccurs="unbounded" minOccurs="0">
382         <xs:element ref="packages:icon"/>
383         <xs:element ref="packages:label"/>
384         <xs:element ref="packages:metadata"/>
385         <xs:element ref="packages:background-category"/>
386         <xs:element ref="packages:frame-component"/>
387         <xs:element ref="packages:service-component"/>
388         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
389       </xs:choice>
390       <xs:attribute name="appid" use="required" type="xs:string"/>
391       <xs:attribute name="exec" use="required"/>
392       <xs:attribute name="type" use="required" type="xs:string"/>
393       <xs:anyAttribute namespace="##any" processContents="lax"/>
394     </xs:complexType>
395   </xs:element>
396   <xs:element name="frame-component">
397     <xs:complexType>
398       <xs:choice maxOccurs="unbounded" minOccurs="0">
399         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
400       </xs:choice>
401       <xs:attribute name="id" use="required" type="xs:string"/>
402       <xs:attribute name="launch_mode" type="xs:string"/>
403     </xs:complexType>
404   </xs:element>
405   <xs:element name="service-component">
406     <xs:complexType>
407       <xs:choice maxOccurs="unbounded" minOccurs="0">
408         <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/>
409       </xs:choice>
410       <xs:attribute name="id" use="required" type="xs:string"/>
411     </xs:complexType>
412   </xs:element>
413 </xs:schema>