|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <xs:schema |
|
3 targetNamespace="http://www.symbian.com/sdbcreator/symbiansecuritysettings" |
|
4 xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|
5 xmlns:sdb="http://www.symbian.com/sdbcreator/symbiansecuritysettings"> |
|
6 |
|
7 <xs:element name="sdb"> |
|
8 <xs:complexType> |
|
9 <xs:sequence> |
|
10 <xs:element name="database" minOccurs="1" maxOccurs="2"> |
|
11 <xs:complexType> |
|
12 <xs:sequence> |
|
13 <xs:element name="policy" type="sdb:policy_type" minOccurs="0" maxOccurs="4"/> |
|
14 <xs:element name="configuration" type="sdb:configuration_type" minOccurs="0" maxOccurs="4"/> |
|
15 </xs:sequence> |
|
16 <xs:attribute name="type" use="required" type="sdb:db_type" /> |
|
17 </xs:complexType> |
|
18 </xs:element> |
|
19 <xs:element name="common" minOccurs="0" maxOccurs="2"> |
|
20 <xs:complexType> |
|
21 <xs:sequence> |
|
22 <xs:element name="applicable" minOccurs="1" maxOccurs="2" > |
|
23 <xs:complexType> |
|
24 <xs:attribute name="type" use="required" type="sdb:db_type" /> |
|
25 </xs:complexType> |
|
26 </xs:element> |
|
27 <xs:element name="database"> |
|
28 <xs:complexType> |
|
29 <xs:sequence> |
|
30 <xs:element name="policy" type="sdb:policy_type" minOccurs="0" maxOccurs="4"/> |
|
31 <xs:element name="configuration" type="sdb:configuration_type" minOccurs="0" maxOccurs="4"/> |
|
32 </xs:sequence> |
|
33 </xs:complexType> |
|
34 </xs:element> |
|
35 </xs:sequence> |
|
36 |
|
37 </xs:complexType> |
|
38 </xs:element> |
|
39 </xs:sequence> |
|
40 <xs:attribute name="version" use="required"> |
|
41 <xs:simpleType> |
|
42 <xs:restriction base="xs:string"> |
|
43 <xs:pattern value="\d+(.)?\d*"></xs:pattern> |
|
44 </xs:restriction> |
|
45 </xs:simpleType> |
|
46 </xs:attribute> |
|
47 </xs:complexType> |
|
48 </xs:element> |
|
49 |
|
50 <xs:simpleType name="PolicyType"> |
|
51 <xs:restriction base="xs:string"> |
|
52 <xs:enumeration value="default"/> |
|
53 <xs:enumeration value="read"/> |
|
54 <xs:enumeration value="schema"/> |
|
55 <xs:enumeration value="write"/> |
|
56 </xs:restriction> |
|
57 </xs:simpleType> |
|
58 |
|
59 <xs:simpleType name="always"> |
|
60 <xs:restriction base="xs:string"> |
|
61 <xs:enumeration value="pass"/> |
|
62 <xs:enumeration value="fail"/> |
|
63 </xs:restriction> |
|
64 </xs:simpleType> |
|
65 |
|
66 <xs:complexType name="policy_type"> |
|
67 <xs:sequence> |
|
68 <xs:element name="capability" minOccurs="0" maxOccurs="7"> |
|
69 <xs:complexType> |
|
70 <xs:attribute name="type" type="sdb:capabilitytype"/> |
|
71 </xs:complexType> |
|
72 </xs:element> |
|
73 </xs:sequence> |
|
74 <xs:attribute name="type" type="sdb:PolicyType" use="required"/> |
|
75 <xs:attribute name="VID" type="xs:string" use="optional"/> |
|
76 <xs:attribute name="SID" type="xs:string" use="optional"/> |
|
77 <xs:attribute name="always" type="sdb:always" use="optional"/> |
|
78 </xs:complexType> |
|
79 |
|
80 |
|
81 <xs:complexType name="configuration_type"> |
|
82 <xs:attribute name="name" use="required" type="sdb:config_name"/> |
|
83 <xs:attribute name="value" use="required"/> |
|
84 </xs:complexType> |
|
85 |
|
86 <xs:simpleType name="capabilitytype"> |
|
87 <xs:restriction base="xs:string"> |
|
88 <xs:enumeration value="NetworkServices" /> |
|
89 <xs:enumeration value="LocalServices" /> |
|
90 <xs:enumeration value="ReadUserData" /> |
|
91 <xs:enumeration value="WriteUserData" /> |
|
92 <xs:enumeration value="Location" /> |
|
93 <xs:enumeration value="UserEnvironment" /> |
|
94 <xs:enumeration value="TCB" /> |
|
95 <xs:enumeration value="CommDD" /> |
|
96 <xs:enumeration value="PowerMgmt" /> |
|
97 <xs:enumeration value="MultimediaDD" /> |
|
98 <xs:enumeration value="ReadDeviceData" /> |
|
99 <xs:enumeration value="WriteDeviceData" /> |
|
100 <xs:enumeration value="DRM" /> |
|
101 <xs:enumeration value="TrustedUI" /> |
|
102 <xs:enumeration value="ProtSrv" /> |
|
103 <xs:enumeration value="DiskAdmin" /> |
|
104 <xs:enumeration value="NetworkControl" /> |
|
105 <xs:enumeration value="AllFiles" /> |
|
106 <xs:enumeration value="SwEvent" /> |
|
107 <xs:enumeration value="SurroundingsDD" /> |
|
108 </xs:restriction> |
|
109 </xs:simpleType> |
|
110 |
|
111 <xs:simpleType name="db_type"> |
|
112 <xs:restriction base="xs:string"> |
|
113 <xs:enumeration value="sqlite"/> |
|
114 <xs:enumeration value="dbms"/> |
|
115 </xs:restriction> |
|
116 </xs:simpleType> |
|
117 |
|
118 |
|
119 <xs:simpleType name="config_name"> |
|
120 <xs:restriction base="xs:string"> |
|
121 <xs:enumeration value="page_size"/> |
|
122 <xs:enumeration value="encoding"/> |
|
123 <xs:enumeration value="locale"/> |
|
124 <xs:enumeration value="block_size"/> |
|
125 <xs:enumeration value="cluster_size"/> |
|
126 </xs:restriction> |
|
127 </xs:simpleType> |
|
128 </xs:schema> |