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"/>
12 <xs:simpleType name="appserviceOperationType">
13 <xs:restriction base="xs:anyURI"/>
16 <xs:simpleType name="PackageType">
17 <xs:restriction base="xs:string">
18 <xs:pattern value="[0-9a-zA-Z]{10}"/>
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}"/>
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"/>
36 <xs:simpleType name="activationType">
37 <xs:restriction base="xs:token">
38 <xs:enumeration value="enable"/>
39 <xs:enumeration value="disable"/>
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,}"/>
49 <xs:simpleType name="updatePeriodType">
50 <xs:restriction base="xs:float">
51 <xs:minInclusive value="60"/>
55 <xs:element name="content">
57 <xs:attribute name="src" use="required" type="xs:anyURI"/>
61 <xs:element name="application">
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"/>
69 <xs:element name="setting">
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"/>
83 <xs:element name="app-control">
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"/>
96 <xs:element name="category">
98 <xs:anyAttribute processContents="lax"/>
102 <xs:element name="src">
104 <xs:attribute name="name" use="required"/>
108 <xs:element name="operation">
110 <xs:attribute name="name" type="tizen:appserviceOperationType" use="required"/>
114 <xs:element name="uri">
116 <xs:attribute name="name" use="required"/>
120 <xs:element name="mime">
122 <xs:attribute name="name" use="required"/>
126 <xs:element name="privilege">
128 <xs:attribute name="name" use="required" type="xs:anyURI"/>
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"/>
136 <xs:element name="app-widget">
137 <xs:complexType mixed="true">
139 <xs:element ref="tizen:box-label"/>
140 <xs:element ref="tizen:box-icon"/>
141 <xs:element ref="tizen:box-content"/>
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"/>
151 <xs:element name="box-label">
152 <xs:complexType mixed="true">
153 <xs:attribute ref="xml:lang" minOccurs="1"/>
157 <xs:element name="box-icon">
159 <xs:attribute name="src" use="required" type="xs:anyURI"/>
163 <xs:element name="box-content">
164 <xs:complexType mixed="true">
166 <xs:element ref="tizen:box-size" minOccurs="1" maxOccurs="5"/>
167 <xs:element ref="tizen:pd" minOccurs="0" maxOccurs="1"/>
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"/>
175 <xs:element name="pd">
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"/>
184 <xs:element name="box-size">
185 <xs:complexType mixed="true">
186 <xs:attribute name="preview" use="optional" type="xs:anyURI"/>
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"/>
198 <xs:element name="capability">
199 <xs:complexType mixed="true">
203 <xs:element name="account">
204 <xs:complexType mixed="true">
206 <xs:choice maxOccurs="unbounded">
207 <xs:element ref="tizen:icon" />
208 <xs:element ref="tizen:display-name" />
209 <xs:element ref="tizen:capability" />
212 <xs:attribute name="multiple-account-support" use="required" type="tizen:data.boolean"/>
216 <xs:element name="icon">
217 <xs:complexType mixed="true">
218 <xs:attribute name="section" use="required" type="xs:string"/>
222 <xs:element name="display-name">
223 <xs:complexType mixed="true">
224 <xs:attribute ref="xml:lang"/>
228 <xs:element name="metadata">
230 <xs:attribute name="key" type="xs:string" use="required"/>
231 <xs:attribute name="value" type="xs:string" use="required"/>