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