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