remove not-used attribute (name of icon & image & preload-removable)
[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:sequence>
8         <xs:choice maxOccurs="unbounded">
9           <xs:element ref="packages:label"/>
10           <xs:element ref="packages:icon"/>
11           <xs:element ref="packages:author"/>
12           <xs:element ref="packages:description"/>
13           <xs:element ref="packages:compatibility"/>
14           <xs:element ref="packages:profile"/>
15           <xs:element ref="packages:watch-application"/>
16           <xs:element ref="packages:watchface"/>
17           <xs:element ref="packages:service-application"/>
18           <xs:element ref="packages:ui-application"/>
19           <xs:element ref="packages:ime-application"/>
20           <xs:element ref="packages:shortcut-list"/>
21           <xs:element ref="packages:widget"/>
22           <xs:element ref="packages:widget-application"/>
23           <xs:element ref="packages:account"/>
24           <xs:element ref="packages:notifications"/>
25           <xs:element ref="packages:privileges"/>
26           <xs:element ref="packages:font"/>
27           <xs:element ref="packages:ime"/>
28           <xs:element ref="packages:feature"/>
29         </xs:choice>
30       </xs:sequence>
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:enumeration value="apk"/>
62       <xs:enumeration value="coretpk"/>
63     </xs:restriction>
64   </xs:simpleType>
65   <xs:simpleType name="ProfileType">
66     <xs:restriction base="xs:string">
67       <xs:enumeration value="mobile"/>
68       <xs:enumeration value="wearable"/>
69       <xs:enumeration value="TV"/>
70     </xs:restriction>
71   </xs:simpleType>
72   <xs:simpleType name="TypeType">
73     <xs:restriction base="xs:string">
74       <xs:enumeration value="capp"/>
75       <xs:enumeration value="c++app"/>
76       <xs:enumeration value="webapp"/>
77       <xs:enumeration value="jsapp"/>
78     </xs:restriction>
79   </xs:simpleType>
80   <xs:simpleType name="HwAccelerationType">
81     <xs:restriction base="xs:string">
82       <xs:enumeration value="on"/>
83       <xs:enumeration value="off"/>
84       <xs:enumeration value="default"/>
85       <xs:enumeration value="use-GL"/>
86       <xs:enumeration value="not-use-GL"/>
87       <xs:enumeration value="use-system-setting"/>
88     </xs:restriction>
89   </xs:simpleType>
90   <xs:simpleType name="ScreenReaderType">
91     <xs:restriction base="xs:string">
92       <xs:enumeration value="screenreader-off"/>
93       <xs:enumeration value="screenreader-on"/>
94       <xs:enumeration value="use-system-setting"/>
95     </xs:restriction>
96   </xs:simpleType>
97   <xs:simpleType name="RecentImage">
98     <xs:restriction base="xs:string">
99     <xs:enumeration value="icon"/>
100     <xs:enumeration value="capture"/>
101      </xs:restriction>
102   </xs:simpleType>
103
104   <xs:element name="author">
105     <xs:complexType mixed="true">
106       <xs:attribute name="email"/>
107       <xs:attribute name="href"/>
108       <xs:attribute ref="xml:lang"/>
109     </xs:complexType>
110   </xs:element>
111   <xs:element name="description">
112     <xs:complexType mixed="true">
113       <xs:attribute ref="xml:lang"/>
114     </xs:complexType>
115   </xs:element>
116   <xs:element name="compatibility">
117     <xs:complexType/>
118   </xs:element>
119   <xs:element name="profile">
120     <xs:complexType>
121       <xs:attribute name="name" use="required" type="packages:ProfileType"/>
122     </xs:complexType>
123   </xs:element>
124   <xs:element name="watch-application">
125     <xs:complexType>
126       <xs:sequence>
127         <xs:choice maxOccurs="unbounded" minOccurs="0">
128           <xs:element ref="packages:label"/>
129           <xs:element ref="packages:icon"/>
130         </xs:choice>
131       </xs:sequence>
132       <xs:attribute name="appid" use="required" type="xs:string"/>
133       <xs:attribute name="exec" use="required"/>
134       <xs:attribute name="ambient-support" type="xs:boolean"/>
135     </xs:complexType>
136   </xs:element>
137   <xs:element name="watchface">
138   </xs:element>
139   <xs:element name="service-application">
140     <xs:complexType>
141       <xs:sequence>
142         <xs:choice maxOccurs="unbounded" minOccurs="0">
143           <xs:element ref="packages:label"/>
144           <xs:element ref="packages:icon"/>
145           <xs:element ref="packages:application-service"/>
146           <xs:element ref="packages:app-control"/>
147           <xs:element ref="packages:category"/>
148           <xs:element ref="packages:metadata"/>
149           <xs:element ref="packages:permission"/>
150           <xs:element ref="packages:datacontrol"/>
151           <xs:element ref="packages:background-category"/>
152         </xs:choice>
153       </xs:sequence>
154       <xs:attribute name="appid" use="required" type="xs:string"/>
155       <xs:attribute name="auto-restart" type="xs:boolean"/>
156       <xs:attribute name="exec" use="required"/>
157       <xs:attribute name="on-boot" type="xs:boolean"/>
158       <xs:attribute name="type" use="required" type="packages:TypeType"/>
159       <xs:attribute name="multiple" type="xs:boolean"/>
160       <xs:attribute name="taskmanage" type="xs:boolean"/>
161       <xs:attribute name="permission-type" type="xs:string"/>
162       <xs:attribute name="component-type" type="xs:string"/>
163       <xs:attribute name="nodisplay" type="xs:boolean"/>
164     </xs:complexType>
165   </xs:element>
166   <xs:element name="ui-application">
167     <xs:complexType>
168       <xs:sequence>
169         <xs:choice maxOccurs="unbounded" minOccurs="0">
170           <xs:element ref="packages:label"/>
171           <xs:element ref="packages:icon"/>
172           <xs:element ref="packages:image"/>
173           <xs:element ref="packages:application-service"/>
174           <xs:element ref="packages:app-control"/>
175           <xs:element ref="packages:category"/>
176           <xs:element ref="packages:metadata"/>
177           <xs:element ref="packages:permission"/>
178           <xs:element ref="packages:datacontrol"/>
179           <xs:element ref="packages:background-category"/>
180         </xs:choice>
181       </xs:sequence>
182       <xs:attribute name="appid" use="required" type="xs:string"/>
183       <xs:attribute name="exec" use="required"/>
184       <xs:attribute name="multiple" type="xs:boolean"/>
185       <xs:attribute name="nodisplay" type="xs:boolean"/>
186       <xs:attribute name="taskmanage" type="xs:boolean"/>
187       <xs:attribute name="enabled" type="xs:boolean"/>
188       <xs:attribute name="type" use="required" type="packages:TypeType"/>
189       <xs:attribute name="categories" type="xs:NCName"/>
190       <xs:attribute name="extraid"/>
191       <xs:attribute name="hw-acceleration" type="packages:HwAccelerationType"/>
192       <xs:attribute name="screen-reader" type="packages:ScreenReaderType"/>
193       <xs:attribute name="recentimage" type="packages:RecentImage"/>
194       <xs:attribute name="mainapp" type="xs:boolean"/>
195       <xs:attribute name="indicatordisplay" type="xs:boolean"/>
196       <xs:attribute name="portrait-effectimage" type="xs:string"/>
197       <xs:attribute name="landscape-effectimage" type="xs:string"/>
198       <xs:attribute name="effectimage-type" type="xs:string"/>
199       <xs:attribute name="guestmode-visibility" type="xs:string"/>
200       <xs:attribute name="launchcondition" type="xs:boolean"/>
201       <xs:attribute name="permission-type" type="xs:string"/>
202       <xs:attribute name="component-type" type="xs:string"/>
203       <xs:attribute name="submode" type="xs:boolean"/>
204       <xs:attribute name="submode-mainid" type="xs:string"/>
205       <xs:attribute name="process-pool" type="xs:boolean"/>
206       <xs:attribute name="auto-restart" type="xs:boolean"/>
207       <xs:attribute name="on-boot" type="xs:boolean"/>
208       <xs:attribute name="multi-instance" type="xs:boolean"/>
209       <xs:attribute name="multi-instance-mainid" type="xs:string"/>
210       <xs:attribute name="ui-gadget" type="xs:boolean"/>
211       <xs:attribute name="launch_mode" type="packages:LaunchType"/>
212     </xs:complexType>
213   </xs:element>
214   <xs:element name="ime-application">
215     <xs:complexType>
216       <xs:sequence>
217         <xs:choice maxOccurs="unbounded">
218           <xs:element ref="packages:label"/>
219           <xs:element ref="packages:icon"/>
220         </xs:choice>
221       </xs:sequence>
222       <xs:attribute name="appid" use="required" type="xs:string"/>
223       <xs:attribute name="exec" use="required" type="xs:NCName"/>
224       <xs:attribute name="multiple" type="xs:boolean"/>
225       <xs:attribute name="nodisplay" type="xs:boolean"/>
226       <xs:attribute name="type" use="required" type="packages:TypeType"/>
227     </xs:complexType>
228   </xs:element>
229   <xs:element name="shortcut-list">
230   </xs:element>
231   <xs:element name="widget">
232   </xs:element>
233   <xs:element name="widget-application">
234     <xs:complexType>
235       <xs:sequence>
236         <xs:choice maxOccurs="unbounded" minOccurs="0">
237           <xs:element ref="packages:label"/>
238           <xs:element ref="packages:icon"/>
239           <xs:element ref="packages:support-size"/>
240         </xs:choice>
241       </xs:sequence>
242       <xs:attribute name="appid" use="required" type="xs:ID"/>
243       <xs:attribute name="exec" use="required"/>
244       <xs:attribute name="main" type="xs:boolean"/>
245       <xs:attribute name="update-period" type="xs:positiveInteger"/>
246       <xs:attribute name="preview" type="xs:string"/>
247     </xs:complexType>
248   </xs:element>
249   <xs:element name="account">
250   </xs:element>
251   <xs:element name="notifications">
252   </xs:element>
253   <xs:element name="ime">
254   </xs:element>
255   <xs:element name="feature">
256   </xs:element>
257   <xs:element name="privileges">
258     <xs:complexType>
259       <xs:sequence>
260         <xs:choice maxOccurs="unbounded" minOccurs="0">
261           <xs:element ref="packages:privilege"/>
262         </xs:choice>
263       </xs:sequence>
264     </xs:complexType>
265   </xs:element>
266   <xs:element name="privilege">
267   </xs:element>
268   <xs:element name="font">
269   </xs:element>
270   <xs:element name="label">
271     <xs:complexType mixed="true">
272       <xs:attribute ref="xml:lang"/>
273     </xs:complexType>
274   </xs:element>
275   <xs:element name="icon">
276   <xs:complexType mixed="true">
277     <xs:attribute ref="xml:lang"/>
278     <xs:attribute name="section" type="xs:string"/>
279     <xs:attribute name="resolution" type="packages:ResolutionType"/>
280     <xs:attribute name="dpi" type="xs:string"/>
281   </xs:complexType>
282   </xs:element>
283   <xs:element name="image">
284   <xs:complexType mixed="true">
285     <xs:attribute ref="xml:lang"/>
286     <xs:attribute name="section" type="xs:string"/>
287   </xs:complexType>
288   </xs:element>
289   <xs:simpleType name="SectionType">
290   <xs:restriction base="xs:string">
291     <xs:enumeration value="notification"/>
292     <xs:enumeration value="setting"/>
293    </xs:restriction>
294   </xs:simpleType>
295   <xs:simpleType name="LaunchType">
296   <xs:restriction base="xs:string">
297     <xs:enumeration value="caller"/>
298     <xs:enumeration value="single"/>
299     <xs:enumeration value="group"/>
300     <xs:enumeration value="singleton"/>
301    </xs:restriction>
302   </xs:simpleType>
303   <xs:simpleType name="ResolutionType">
304   <xs:restriction base="xs:string">
305     <xs:enumeration value="xhigh"/>
306     <xs:enumeration value="high"/>
307    </xs:restriction>
308   </xs:simpleType>
309   <xs:element name="application-service">
310     <xs:complexType>
311       <xs:sequence>
312         <xs:choice maxOccurs="unbounded">
313           <xs:element ref="packages:operation"/>
314           <xs:element ref="packages:uri"/>
315           <xs:element ref="packages:mime"/>
316           <xs:element ref="packages:subapp"/>
317         </xs:choice>
318       </xs:sequence>
319     </xs:complexType>
320   </xs:element>
321   <xs:element name="app-control">
322     <xs:complexType>
323       <xs:sequence>
324         <xs:choice maxOccurs="unbounded">
325           <xs:element ref="packages:operation"/>
326           <xs:element ref="packages:uri"/>
327           <xs:element ref="packages:mime"/>
328           <xs:element ref="packages:subapp"/>
329         </xs:choice>
330       </xs:sequence>
331     </xs:complexType>
332   </xs:element>
333   <xs:element name="category">
334     <xs:complexType>
335       <xs:sequence>
336         <xs:choice maxOccurs="unbounded">
337           <xs:any minOccurs="0" processContents="lax"/>
338         </xs:choice>
339       </xs:sequence>
340       <xs:attribute name="name" use="required"/>
341       <xs:anyAttribute processContents="lax"/>
342     </xs:complexType>
343   </xs:element>
344   <xs:element name="metadata">
345     <xs:complexType>
346       <xs:attribute name="key" use="required" type="xs:string"/>
347       <xs:attribute name="value" type="xs:string"/>
348     </xs:complexType>
349   </xs:element>
350   <xs:element name="permission">
351   <xs:complexType>
352     <xs:attribute name="type" type="xs:string"/>
353   </xs:complexType>
354   </xs:element>
355   <xs:element name="datacontrol">
356   <xs:complexType>
357     <xs:attribute name="providerid" type="xs:string"/>
358     <xs:attribute name="access" type="xs:string"/>
359     <xs:attribute name="type" type="xs:string"/>
360   </xs:complexType>
361   </xs:element>
362   <xs:element name="operation">
363     <xs:complexType>
364       <xs:attribute name="name" use="required"/>
365     </xs:complexType>
366   </xs:element>
367   <xs:element name="uri">
368     <xs:complexType>
369       <xs:attribute name="name" use="required"/>
370     </xs:complexType>
371   </xs:element>
372   <xs:element name="mime">
373     <xs:complexType>
374       <xs:attribute name="name" use="required"/>
375     </xs:complexType>
376   </xs:element>
377   <xs:element name="subapp">
378     <xs:complexType>
379       <xs:attribute name="name" use="required"/>
380     </xs:complexType>
381   </xs:element>
382   <xs:element name="background-category">
383     <xs:complexType mixed="true">
384       <xs:attribute name="value" type="packages:BackgroundCategoryType"/>
385     </xs:complexType>
386   </xs:element>
387   <xs:simpleType name="BackgroundCategoryType">
388     <xs:restriction base="xs:string">
389       <xs:enumeration value="media"/>
390       <xs:enumeration value="download"/>
391       <xs:enumeration value="background-network"/>
392       <xs:enumeration value="location"/>
393       <xs:enumeration value="sensor"/>
394       <xs:enumeration value="iot-communication"/>
395       <xs:enumeration value="system"/>
396     </xs:restriction>
397   </xs:simpleType>
398   <xs:element name="support-size">
399   </xs:element>
400 </xs:schema>