Add category element at manifest and config.xml
[platform/framework/web/wrt-installer.git] / configuration / config.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" xmlns:widgets="http://www.w3.org/ns/widgets">
4     <xs:import namespace="http://www.w3.org/ns/widgets" schemaLocation="config.xsd"/>
5 <xs:simpleType name="appserviceOperationType">
6     <!--                
7     <xs:restriction base="xs:token">            
8         <xs:enumeration value="http://tizen.org/appsvc/operation/edit"/>
9         <xs:enumeration value="http://tizen.org/appsvc/operation/view"/>
10         <xs:enumeration value="http://tizen.org/appsvc/operation/pick"/>
11         <xs:enumeration value="http://tizen.org/appsvc/operation/create_content"/>
12         <xs:enumeration value="http://tizen.org/appsvc/operation/call"/>
13         <xs:enumeration value="http://tizen.org/appsvc/operation/send"/>
14         <xs:enumeration value="http://tizen.org/appsvc/operation/dial"/>
15         <xs:enumeration value="http://tizen.org/appsvc/operation/search"/>
16     </xs:restriction>           
17     -->
18     <xs:restriction base="xs:anyURI"/>
19 </xs:simpleType>
20
21 <xs:simpleType name="applicationIdType">
22     <xs:restriction base="xs:string">
23         <xs:pattern value="[0-9a-zA-Z]{10}"/>
24     </xs:restriction>
25 </xs:simpleType>
26
27 <xs:simpleType name="screenOrientationType">
28     <xs:restriction base="xs:token">
29         <xs:enumeration value="portrait"/>
30         <xs:enumeration value="landscape"/>
31     </xs:restriction>
32 </xs:simpleType>
33
34 <xs:simpleType name="activationType">
35     <xs:restriction base="xs:token">
36         <xs:enumeration value="enable"/>
37         <xs:enumeration value="disable"/>
38     </xs:restriction>
39 </xs:simpleType>
40
41 <xs:element name="content">
42     <xs:complexType>
43         <xs:attribute name="src" use="required" type="xs:anyURI"/>
44     </xs:complexType>
45 </xs:element>
46
47 <!-- TODO : appservice will be removed. Please use app-control-->
48 <xs:element name="appservice">
49     <xs:complexType>
50         <xs:attribute name="src" type="xs:NCName" use="required"/>
51         <xs:attribute name="operation" type="tizen:appserviceOperationType" use="required"/>
52         <xs:attribute name="scheme" type="xs:string" use="optional"/>
53         <xs:attribute name="mime" type="xs:string" use="optional"/>
54     </xs:complexType>
55 </xs:element>
56
57 <xs:element name="application">
58     <xs:complexType>
59         <xs:attribute name="id" type="tizen:applicationIdType" use="required"/>
60         <xs:attribute name="required_version" type="xs:float" use="required"/>
61     </xs:complexType>
62 </xs:element>
63
64 <xs:element name="setting">
65     <xs:complexType>
66         <xs:attribute name="screen-orientation" type="tizen:screenOrientationType" use="optional"/> <!-- default: portrait -->
67         <xs:attribute name="context-menu" type="tizen:activationType" use="optional"/> <!-- default: enable -->
68         <xs:attribute name="background-support" type="tizen:activationType" use="optional"/> <!-- default: enable -->
69         <xs:attribute name="encryption" type="tizen:activationType" use="optional"/> <!-- default: disable -->
70         <xs:attribute name="nodisplay" type="widgets:data.boolean" use="optional"/> <!-- default: false -->
71     </xs:complexType>
72 </xs:element>
73
74 <xs:element name="app-control">
75   <xs:complexType>
76     <xs:sequence>
77       <xs:choice maxOccurs="unbounded">
78         <xs:element ref="packages:src"/>
79         <xs:element ref="packages:operation"/>
80         <xs:element ref="packages:scheme"/>
81         <xs:element ref="packages:mime"/>
82       </xs:choice>
83     </xs:sequence>
84   </xs:complexType>
85 </xs:element>
86
87 <xs:element name="category">
88   <xs:complexType>
89     <xs:anyAttribute processContents="lax"/>
90   </xs:complexType>
91 </xs:element>
92
93 <xs:element name="src">
94   <xs:complexType>
95     <xs:attribute name="name" type="xs:NCName" use="required"/>
96   </xs:complexType>
97 </xs:element>
98
99 <xs:element name="operation">
100   <xs:complexType>
101     <xs:attribute name="name" type="tizen:appserviceOperationType" use="required"/>
102   </xs:complexType>
103 </xs:element>
104
105 <xs:element name="scheme">
106   <xs:complexType>
107     <xs:attribute name="name" type="xs:string" use="optional"/>
108   </xs:complexType>
109 </xs:element>
110
111 <xs:element name="mime">
112   <xs:complexType>
113     <xs:attribute name="name" type="xs:string" use="optional"/>
114   </xs:complexType>
115 </xs:element>
116
117 </xs:schema>