Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / XSD / types.xsd
1 <?xml version="1.0"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified">
3 <!-- string type with a minimum length of 1 and a maximum length of 255 characters -->
4 <xs:simpleType name="woltlab_varchar">
5 <xs:restriction base="xs:string">
6 <xs:minLength value="1" />
7 <xs:maxLength value="255" />
8 </xs:restriction>
9 </xs:simpleType>
10
11 <!-- string type with a minimum length of 0 and a maximum length of 255 signs -->
12 <xs:simpleType name="woltlab_varchar_nullable">
13 <xs:restriction base="xs:string">
14 <xs:minLength value="0" />
15 <xs:maxLength value="255" />
16 </xs:restriction>
17 </xs:simpleType>
18
19 <!-- boolean type which only accepts '0' or '1' -->
20 <xs:simpleType name="woltlab_boolean">
21 <xs:restriction base="xs:integer">
22 <xs:minInclusive value="0" />
23 <xs:maxInclusive value="1" />
24 </xs:restriction>
25 </xs:simpleType>
26
27 <!-- user/admin environment type which only accepts 'user' or 'admin' -->
28 <xs:simpleType name="woltlab_environment">
29 <xs:restriction base="xs:string">
30 <xs:enumeration value="user" />
31 <xs:enumeration value="admin" />
32 <xs:enumeration value="all" />
33 </xs:restriction>
34 </xs:simpleType>
35 </xs:schema>