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