tizen 2.4 release
[framework/web/wrt-installer.git] / configuration_mobile / common.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:widgets="http://www.w3.org/ns/widgets">
3   <xs:include schemaLocation="local.xsd"/>
4
5   <xs:group name="extension">
6     <xs:sequence>
7       <xs:group ref="anyElement"/>
8     </xs:sequence>
9   </xs:group>
10
11   <xs:attributeGroup name="extension">
12     <xs:attributeGroup ref="anyAttribute"/>
13   </xs:attributeGroup>
14
15   <xs:group name="foreignElement">
16     <xs:sequence>
17       <xs:choice minOccurs="0">
18         <xs:group ref="local"/>
19       </xs:choice>
20     </xs:sequence>
21   </xs:group>
22
23   <xs:attributeGroup name="foreignAttribute">
24     <xs:anyAttribute namespace="##other" processContents="skip"/>
25   </xs:attributeGroup>
26
27   <xs:group name="anyElement">
28     <xs:sequence>
29       <xs:any processContents="skip"/>
30     </xs:sequence>
31   </xs:group>
32
33   <xs:attributeGroup name="anyAttribute">
34     <xs:anyAttribute processContents="skip"/>
35   </xs:attributeGroup>
36
37   <xs:simpleType name="data.positiveNumber">
38     <xs:restriction base="xs:string">
39       <!-- W3C testcase <xs:pattern value="[1-9]\d*"/> -->
40       <xs:pattern value="\s*([1-9]\d*)?.*"/> <!-- accept everything anyway -->
41     </xs:restriction>
42   </xs:simpleType>
43
44   <xs:simpleType name="data.boolean">
45     <xs:restriction base="xs:string">
46       <!-- w3c testcases - ignore invalid
47       <xs:enumeration value="true"/>
48       <xs:enumeration value="false"/>
49       -->
50     </xs:restriction>
51   </xs:simpleType>
52
53   <xs:attributeGroup name="global.attrs">
54     <xs:attribute name="dir">
55       <xs:simpleType>
56         <xs:list>
57           <xs:simpleType>
58             <xs:restriction base="xs:token">
59               <xs:enumeration value="ltr"/>
60               <xs:enumeration value="rtl"/>
61               <xs:enumeration value="lro"/>
62               <xs:enumeration value="rlo"/>
63             </xs:restriction>
64           </xs:simpleType>
65         </xs:list>
66       </xs:simpleType>
67     </xs:attribute>
68   </xs:attributeGroup>
69
70   <xs:attributeGroup name="global.xml">
71     <xs:anyAttribute namespace="##other" processContents="skip"/>
72   </xs:attributeGroup>
73
74   <xs:simpleType name="data.versionNumber">
75     <xs:restriction base="xs:string">
76       <xs:pattern value="[0-9]{1,3}\.[0-9]{1,3}(\.[0-9]{1,5})?"/>
77     </xs:restriction>
78   </xs:simpleType>
79 </xs:schema>