Fixed package version
[platform/framework/web/wrt-installer.git] / configuration / widgets.tizen.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Widget Configuration Document Extensions XSD For TIZEN -->
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tizen="http://tizen.org/ns/widgets" targetNamespace="http://tizen.org/ns/widgets">
4     <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
5     <xs:simpleType name="data.boolean">
6         <xs:restriction base="xs:string">
7             <xs:enumeration value="true"/>
8             <xs:enumeration value="false"/>
9         </xs:restriction>
10     </xs:simpleType>
11
12     <xs:simpleType name="appserviceOperationType">
13         <xs:restriction base="xs:anyURI"/>
14     </xs:simpleType>
15
16     <xs:simpleType name="PackageType">
17         <xs:restriction base="xs:string">
18             <xs:pattern value="[0-9a-zA-Z]{10}"/>
19         </xs:restriction>
20     </xs:simpleType>
21
22     <xs:simpleType name="applicationIdType">
23         <xs:restriction base="xs:string">
24             <xs:pattern value="[0-9a-zA-Z]{10}[.][0-9a-zA-Z]{1,52}"/>
25         </xs:restriction>
26     </xs:simpleType>
27
28     <xs:simpleType name="screenOrientationType">
29         <xs:restriction base="xs:token">
30             <xs:enumeration value="portrait"/>
31             <xs:enumeration value="landscape"/>
32             <xs:enumeration value="auto-rotation"/>
33         </xs:restriction>
34     </xs:simpleType>
35
36     <xs:simpleType name="activationType">
37         <xs:restriction base="xs:token">
38             <xs:enumeration value="enable"/>
39             <xs:enumeration value="disable"/>
40         </xs:restriction>
41     </xs:simpleType>
42
43     <xs:simpleType name="appWidgetIdType">
44         <xs:restriction base="xs:string">
45             <xs:pattern value="[0-9a-zA-Z]{10}.[0-9a-zA-Z]{1,52}.[0-9a-zA-Z]{1,}"/>
46         </xs:restriction>
47     </xs:simpleType>
48
49     <xs:simpleType name="updatePeriodType">
50         <xs:restriction base="xs:float">
51             <xs:minInclusive value="60"/>
52         </xs:restriction>
53     </xs:simpleType>
54
55     <xs:element name="content">
56         <xs:complexType>
57             <xs:attribute name="src" use="required" type="xs:anyURI"/>
58         </xs:complexType>
59     </xs:element>
60
61     <xs:element name="application">
62         <xs:complexType>
63             <xs:attribute name="id" type="tizen:applicationIdType" use="required"/>
64             <xs:attribute name="package" type="tizen:PackageType" use="required"/>
65             <xs:attribute name="required_version" type="xs:float" use="required"/>
66         </xs:complexType>
67     </xs:element>
68
69     <xs:element name="setting">
70         <xs:complexType>
71             <xs:attribute name="screen-orientation" type="tizen:screenOrientationType" use="optional"/> <!-- default: portrait -->
72             <xs:attribute name="context-menu" type="tizen:activationType" use="optional"/> <!-- default: enable -->
73             <xs:attribute name="background-support" type="tizen:activationType" use="optional"/> <!-- default: enable -->
74             <xs:attribute name="encryption" type="tizen:activationType" use="optional"/> <!-- default: disable -->
75             <xs:attribute name="install-location" type="tizen:InstallLocationType" use="optional"/>
76             <xs:attribute name="nodisplay" type="tizen:data.boolean" use="optional"/> <!-- default: false -->
77             <xs:attribute name="indicator-persence" type="tizen:data.boolean" use="optional"/>
78             <xs:attribute name="backbutton-persence" type="tizen:data.boolean" use="optional"/>
79             <xs:attribute name="user-agent" use="optional"/>
80         </xs:complexType>
81     </xs:element>
82
83     <xs:element name="app-control">
84       <xs:complexType>
85         <xs:sequence>
86           <xs:choice maxOccurs="unbounded">
87             <xs:element ref="tizen:src"/>
88             <xs:element ref="tizen:operation"/>
89             <xs:element ref="tizen:uri"/>
90             <xs:element ref="tizen:mime"/>
91           </xs:choice>
92         </xs:sequence>
93       </xs:complexType>
94     </xs:element>
95
96     <xs:element name="category">
97       <xs:complexType>
98         <xs:anyAttribute processContents="lax"/>
99       </xs:complexType>
100     </xs:element>
101
102     <xs:element name="src">
103         <xs:complexType>
104             <xs:attribute name="name" use="required"/>
105         </xs:complexType>
106     </xs:element>
107
108     <xs:element name="operation">
109         <xs:complexType>
110             <xs:attribute name="name" type="tizen:appserviceOperationType" use="required"/>
111         </xs:complexType>
112     </xs:element>
113
114     <xs:element name="uri">
115         <xs:complexType>
116             <xs:attribute name="name" use="required"/>
117         </xs:complexType>
118     </xs:element>
119
120     <xs:element name="mime">
121       <xs:complexType>
122         <xs:attribute name="name" use="required"/>
123       </xs:complexType>
124     </xs:element>
125
126     <xs:element name="privilege">
127         <xs:complexType>
128             <xs:attribute name="name" use="required" type="xs:anyURI"/>
129         </xs:complexType>
130     </xs:element>
131
132     <xs:element name="content-security-policy" type="xs:string"/>
133     <xs:element name="content-security-policy-report-only" type="xs:string"/>
134     <xs:element name="allow-navigation" type="xs:string"/>
135
136     <xs:element name="app-widget">
137         <xs:complexType mixed="true">
138             <xs:all>
139                 <xs:element ref="tizen:box-label"/>
140                 <xs:element ref="tizen:box-icon"/>
141                 <xs:element ref="tizen:box-content"/>
142             </xs:all>
143             <xs:attribute name="id" type="tizen:appWidgetIdType" use="required"/>
144             <xs:attribute name="primary" type="tizen:data.boolean" use="required"/>
145             <xs:attribute name="auto-launch" type="tizen:data.boolean" use="optional"/>
146             <xs:attribute name="update-period" type="tizen:updatePeriodType" use="optional"/>
147             <xs:attribute name="type" type="xs:string" use="optional"/>
148         </xs:complexType>
149     </xs:element>
150
151     <xs:element name="box-label">
152         <xs:complexType mixed="true">
153             <xs:attribute ref="xml:lang" minOccurs="1"/>
154         </xs:complexType>
155     </xs:element>
156
157     <xs:element name="box-icon">
158         <xs:complexType>
159         <xs:attribute name="src" use="required" type="xs:anyURI"/>
160         </xs:complexType>
161     </xs:element>
162
163     <xs:element name="box-content">
164         <xs:complexType mixed="true">
165             <xs:sequence>
166                 <xs:element ref="tizen:box-size" minOccurs="1" maxOccurs="5"/>
167                 <xs:element ref="tizen:pd" minOccurs="0" maxOccurs="1"/>
168             </xs:sequence>
169             <xs:attribute name="src" use="required" type="xs:anyURI"/>
170             <xs:attribute name="mouse-event" use="optional" type="tizen:data.boolean"/>
171             <xs:attribute name="touch-effect" use="optional" type="tizen:data.boolean"/>
172         </xs:complexType>
173     </xs:element>
174
175     <xs:element name="pd">
176         <xs:complexType>
177             <xs:attribute name="src" use="required" type="xs:anyURI"/>
178             <xs:attribute name="width" use="required" type="xs:int"/>
179             <xs:attribute name="height" use="required" type="xs:int"/>
180             <xs:attribute name="fast-open" use="optional" type="tizen:data.boolean"/>
181         </xs:complexType>
182     </xs:element>
183
184     <xs:element name="box-size">
185         <xs:complexType mixed="true">
186         <xs:attribute name="preview" use="optional" type="xs:anyURI"/>
187         </xs:complexType>
188     </xs:element>
189
190     <xs:simpleType name="InstallLocationType">
191         <xs:restriction base="xs:string">
192             <xs:enumeration value="auto"/>
193             <xs:enumeration value="internal-only"/>
194             <xs:enumeration value="prefer-external"/>
195         </xs:restriction>
196     </xs:simpleType>
197
198     <xs:element name="capability">
199         <xs:complexType mixed="true">
200         </xs:complexType>
201     </xs:element>
202
203     <xs:element name="account">
204         <xs:complexType mixed="true">
205             <xs:sequence>
206                 <xs:choice maxOccurs="unbounded">
207                     <xs:element ref="tizen:icon" />
208                     <xs:element ref="tizen:display-name" />
209                     <xs:element ref="tizen:capability" />
210                 </xs:choice>
211             </xs:sequence>
212         <xs:attribute name="multiple-account-support" use="required" type="tizen:data.boolean"/>
213         </xs:complexType>
214     </xs:element>
215
216     <xs:element name="icon">
217       <xs:complexType mixed="true">
218         <xs:attribute name="section" use="required" type="xs:string"/>
219       </xs:complexType>
220     </xs:element>
221
222     <xs:element name="display-name">
223       <xs:complexType mixed="true">
224         <xs:attribute ref="xml:lang"/>
225       </xs:complexType>
226     </xs:element>
227
228     <xs:element name="metadata">
229         <xs:complexType>
230             <xs:attribute name="key" type="xs:string" use="required"/>
231             <xs:attribute name="value" type="xs:string" use="required"/>
232         </xs:complexType>
233     </xs:element>
234 </xs:schema>