tizen 2.3 release
[framework/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: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:service-application"/>
16           <xs:element ref="packages:ui-application"/>
17           <xs:element ref="packages:ime-application"/>
18           <xs:element ref="packages:shortcut-list"/>
19           <xs:element ref="packages:livebox"/>
20                   <xs:element ref="packages:dynamicbox"/>
21           <xs:element ref="packages:account"/>
22                   <xs:element ref="packages:notifications"/>
23                   <xs:element ref="packages:privileges"/>
24           <xs:element ref="packages:font"/>
25                   <xs:element ref="packages:ime"/>
26         </xs:choice>
27       </xs:sequence>
28           <xs:attribute name="storeclient-id" type="xs:string"/>
29       <xs:attribute name="install-location" type="packages:InstallLocationType"/>
30       <xs:attribute name="package" use="required" type="xs:string"/>
31       <xs:attribute name="type" type="packages:PackageType"/>
32       <xs:attribute name="version" use="required" type="xs:NMTOKEN"/>
33       <xs:attribute name="size" type="xs:NMTOKEN"/>
34           <xs:attribute name="root_path" type="xs:string"/>
35           <xs:attribute name="csc_path" type="xs:string"/>
36           <xs:attribute name="appsetting" type="xs:boolean"/>
37           <xs:attribute name="nodisplay-setting" type="xs:boolean"/>
38           <xs:attribute name="url" type="xs:string"/>
39           <xs:attribute name="support-disable" type="xs:boolean"/>
40           <xs:attribute name="mother-package" type="xs:boolean"/>
41           <xs:attribute name="api-version" type="xs:string"/>
42           <xs:attribute name="support-mode" type="xs:string"/>
43           <xs:attribute name="support-reset" type="xs:string"/>
44     </xs:complexType>
45   </xs:element>
46
47     <xs:simpleType name="InstallLocationType">
48       <xs:restriction base="xs:string">
49         <xs:enumeration value="auto"/>
50         <xs:enumeration value="internal-only"/>
51         <xs:enumeration value="prefer-external"/>
52       </xs:restriction>
53     </xs:simpleType>
54     <xs:simpleType name="PackageType">
55       <xs:restriction base="xs:string">
56         <xs:enumeration value="rpm"/>
57         <xs:enumeration value="tpk"/>
58         <xs:enumeration value="wgt"/>
59         <xs:enumeration value="apk"/>
60         <xs:enumeration value="coretpk"/>
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:restriction>
76     </xs:simpleType>
77     <xs:simpleType name="HwAccelerationType">
78       <xs:restriction base="xs:string">
79         <xs:enumeration value="use-GL"/>
80         <xs:enumeration value="not-use-GL"/>
81         <xs:enumeration value="use-system-setting"/>
82        </xs:restriction>
83     </xs:simpleType>
84         <xs:simpleType name="ScreenReaderType">
85           <xs:restriction base="xs:string">
86                 <xs:enumeration value="screenreader-off"/>
87                 <xs:enumeration value="screenreader-on"/>
88                 <xs:enumeration value="use-system-setting"/>
89            </xs:restriction>
90         </xs:simpleType>
91         <xs:simpleType name="RecentImage">
92           <xs:restriction base="xs:string">
93                 <xs:enumeration value="icon"/>
94                 <xs:enumeration value="capture"/>
95            </xs:restriction>
96         </xs:simpleType>
97
98   <xs:element name="author">
99     <xs:complexType mixed="true">
100       <xs:attribute name="email"/>
101       <xs:attribute name="href"/>
102       <xs:attribute ref="xml:lang"/>
103     </xs:complexType>
104   </xs:element>
105   <xs:element name="description">
106     <xs:complexType mixed="true">
107       <xs:attribute ref="xml:lang"/>
108     </xs:complexType>
109   </xs:element>
110   <xs:element name="compatibility">
111     <xs:complexType/>
112   </xs:element>
113   <xs:element name="profile">
114     <xs:complexType>
115       <xs:attribute name="name" use="required" type="packages:ProfileType"/>
116     </xs:complexType>
117   </xs:element>
118   <xs:element name="service-application">
119   </xs:element>
120   <xs:element name="ui-application">
121     <xs:complexType>
122       <xs:sequence>
123         <xs:choice maxOccurs="unbounded" minOccurs="0">
124           <xs:element ref="packages:label"/>
125           <xs:element ref="packages:icon"/>
126                   <xs:element ref="packages:image"/>
127           <xs:element ref="packages:application-service"/>
128                   <xs:element ref="packages:app-control"/>
129           <xs:element ref="packages:category"/>
130           <xs:element ref="packages:metadata"/>
131                   <xs:element ref="packages:permission"/>
132                   <xs:element ref="packages:datacontrol"/>
133         </xs:choice>
134       </xs:sequence>
135       <xs:attribute name="appid" use="required" type="xs:string"/>
136       <xs:attribute name="exec" use="required"/>
137       <xs:attribute name="multiple" type="xs:boolean"/>
138       <xs:attribute name="nodisplay" type="xs:boolean"/>
139       <xs:attribute name="taskmanage" type="xs:boolean"/>
140       <xs:attribute name="enabled" type="xs:boolean"/>
141       <xs:attribute name="type" use="required" type="packages:TypeType"/>
142       <xs:attribute name="categories" type="xs:NCName"/>
143       <xs:attribute name="extraid"/>
144       <xs:attribute name="hw-acceleration" type="packages:HwAccelerationType"/>
145           <xs:attribute name="screen-reader" type="packages:ScreenReaderType"/>
146           <xs:attribute name="recentimage" type="packages:RecentImage"/>
147           <xs:attribute name="mainapp" type="xs:boolean"/>
148       <xs:attribute name="indicatordisplay" type="xs:boolean"/>
149       <xs:attribute name="portrait-effectimage" type="xs:string"/>
150       <xs:attribute name="landscape-effectimage" type="xs:string"/>
151       <xs:attribute name="effectimage-type" type="xs:string"/>
152       <xs:attribute name="guestmode-visibility" type="xs:string"/>
153           <xs:attribute name="launchcondition" type="xs:boolean"/>
154           <xs:attribute name="permission-type" type="xs:string"/>
155           <xs:attribute name="component-type" type="xs:string"/>
156           <xs:attribute name="submode" type="xs:boolean"/>
157           <xs:attribute name="submode-mainid" type="xs:string"/>
158           <xs:attribute name="process-pool" type="xs:boolean"/>
159           <xs:attribute name="auto-restart" type="xs:boolean"/>
160           <xs:attribute name="on-boot" type="xs:boolean"/>
161           <xs:attribute name="multi-instance" type="xs:boolean"/>
162           <xs:attribute name="multi-instance-mainid" type="xs:string"/>
163           <xs:attribute name="ui-gadget" type="xs:boolean"/>
164     </xs:complexType>
165   </xs:element>
166   <xs:element name="ime-application">
167     <xs:complexType>
168       <xs:sequence>
169         <xs:choice maxOccurs="unbounded">
170           <xs:element ref="packages:label"/>
171           <xs:element ref="packages:icon"/>
172         </xs:choice>
173       </xs:sequence>
174       <xs:attribute name="appid" use="required" type="xs:string"/>
175       <xs:attribute name="exec" use="required" type="xs:NCName"/>
176       <xs:attribute name="multiple" type="xs:boolean"/>
177       <xs:attribute name="nodisplay" type="xs:boolean"/>
178       <xs:attribute name="type" use="required" type="packages:TypeType"/>
179     </xs:complexType>
180   </xs:element>
181   <xs:element name="shortcut-list">
182   </xs:element>
183   <xs:element name="livebox">
184   </xs:element>
185   <xs:element name="dynamicbox">
186   </xs:element>
187   <xs:element name="account">
188   </xs:element>
189   <xs:element name="notifications">
190   </xs:element>
191   <xs:element name="ime">
192   </xs:element>
193   <xs:element name="privileges">
194     <xs:complexType>
195       <xs:sequence>
196         <xs:choice maxOccurs="unbounded" minOccurs="0">
197           <xs:element ref="packages:privilege"/>
198         </xs:choice>
199       </xs:sequence>
200     </xs:complexType>
201   </xs:element>
202   <xs:element name="privilege">
203   </xs:element>
204   <xs:element name="font">
205   </xs:element>
206   <xs:element name="label">
207     <xs:complexType mixed="true">
208       <xs:attribute ref="xml:lang"/>
209     </xs:complexType>
210   </xs:element>
211   <xs:element name="icon">
212         <xs:complexType mixed="true">
213           <xs:attribute ref="xml:lang"/>
214           <xs:attribute name="section" type="xs:string"/>
215           <xs:attribute name="resolution" type="packages:ResolutionType"/>
216         </xs:complexType>
217   </xs:element>
218   <xs:element name="image">
219         <xs:complexType mixed="true">
220           <xs:attribute ref="xml:lang"/>
221           <xs:attribute name="section" type="xs:string"/>
222         </xs:complexType>
223   </xs:element>
224   <xs:simpleType name="SectionType">
225         <xs:restriction base="xs:string">
226           <xs:enumeration value="notification"/>
227           <xs:enumeration value="setting"/>
228          </xs:restriction>
229   </xs:simpleType>
230   <xs:simpleType name="ResolutionType">
231         <xs:restriction base="xs:string">
232           <xs:enumeration value="xhigh"/>
233           <xs:enumeration value="high"/>
234          </xs:restriction>
235   </xs:simpleType>
236   <xs:element name="application-service">
237     <xs:complexType>
238       <xs:sequence>
239         <xs:choice maxOccurs="unbounded">
240           <xs:element ref="packages:operation"/>
241           <xs:element ref="packages:uri"/>
242           <xs:element ref="packages:mime"/>
243           <xs:element ref="packages:subapp"/>
244         </xs:choice>
245       </xs:sequence>
246     </xs:complexType>
247   </xs:element>
248   <xs:element name="app-control">
249     <xs:complexType>
250       <xs:sequence>
251         <xs:choice maxOccurs="unbounded">
252           <xs:element ref="packages:operation"/>
253           <xs:element ref="packages:uri"/>
254           <xs:element ref="packages:mime"/>
255           <xs:element ref="packages:subapp"/>
256         </xs:choice>
257       </xs:sequence>
258     </xs:complexType>
259   </xs:element>
260   <xs:element name="category">
261     <xs:complexType>
262       <xs:sequence>
263         <xs:choice maxOccurs="unbounded">
264           <xs:any minOccurs="0" processContents="lax"/>
265         </xs:choice>
266       </xs:sequence>
267       <xs:anyAttribute processContents="lax"/>
268     </xs:complexType>
269   </xs:element>
270   <xs:element name="metadata">
271     <xs:complexType>
272       <xs:attribute name="key" use="required" type="xs:string"/>
273       <xs:attribute name="value" type="xs:string"/>
274     </xs:complexType>
275   </xs:element>
276   <xs:element name="permission">
277         <xs:complexType>
278           <xs:attribute name="type" type="xs:string"/>
279         </xs:complexType>
280   </xs:element>
281   <xs:element name="datacontrol">
282     <xs:complexType>
283       <xs:attribute name="providerid" type="xs:string"/>
284       <xs:attribute name="access" type="xs:string"/>
285       <xs:attribute name="type" type="xs:string"/>
286     </xs:complexType>
287   </xs:element>
288   <xs:element name="operation">
289     <xs:complexType>
290       <xs:attribute name="name" use="required"/>
291     </xs:complexType>
292   </xs:element>
293   <xs:element name="uri">
294     <xs:complexType>
295       <xs:attribute name="name" use="required"/>
296     </xs:complexType>
297   </xs:element>
298   <xs:element name="mime">
299     <xs:complexType>
300       <xs:attribute name="name" use="required"/>
301     </xs:complexType>
302   </xs:element>
303   <xs:element name="subapp">
304     <xs:complexType>
305       <xs:attribute name="name" use="required"/>
306     </xs:complexType>
307   </xs:element>
308 </xs:schema>