Commit | Line | Data |
---|---|---|
0f1cb2c0 MS |
1 | <?xml version="1.0"?> |
2 | <!-- This file is used for xml files which install, update or delete user group options. --> | |
3 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified"> | |
4 | <!-- include types --> | |
5 | <xs:include schemaLocation="types.xsd" /> | |
6 | ||
7 | <!-- include option types --> | |
8 | <xs:include schemaLocation="optionTypes.xsd" /> | |
9 | ||
10 | <!-- data element --> | |
11 | <xs:element name="data"> | |
12 | <xs:complexType> | |
13 | <xs:all> | |
14 | <xs:element name="import" type="import" minOccurs="0" /> | |
15 | <xs:element name="delete" type="delete" minOccurs="0" /> | |
16 | </xs:all> | |
17 | </xs:complexType> | |
18 | </xs:element> | |
19 | ||
20 | <!-- import element --> | |
21 | <xs:complexType name="import"> | |
22 | <xs:all> | |
23 | <xs:element name="categories" type="categories_import" minOccurs="0" /> | |
24 | <xs:element name="options" type="options_import" minOccurs="0" /> | |
25 | </xs:all> | |
26 | </xs:complexType> | |
27 | ||
28 | <!-- categories import element type --> | |
29 | <xs:complexType name="categories_import"> | |
30 | <xs:sequence> | |
31 | <xs:element name="category" type="category_import" maxOccurs="unbounded" /> | |
32 | </xs:sequence> | |
33 | </xs:complexType> | |
34 | ||
35 | <!-- imported/updated category element type --> | |
36 | <xs:complexType name="category_import"> | |
37 | <xs:complexContent> | |
38 | <xs:extension base="category_delete"> | |
39 | <xs:all> | |
40 | <xs:element name="parent" type="woltlab_varchar_nullable" minOccurs="0" /> | |
41 | <xs:element name="showorder" type="xs:unsignedInt" minOccurs="0" /> | |
42 | <xs:element name="options" type="woltlab_varchar_nullable" minOccurs="0" /> | |
43 | </xs:all> | |
44 | </xs:extension> | |
45 | </xs:complexContent> | |
46 | </xs:complexType> | |
47 | ||
48 | <!-- options import element type --> | |
49 | <xs:complexType name="options_import"> | |
50 | <xs:sequence> | |
51 | <xs:element name="option" type="option_import" maxOccurs="unbounded" /> | |
52 | </xs:sequence> | |
53 | </xs:complexType> | |
54 | ||
55 | <!-- imported/updated element type --> | |
56 | <xs:complexType name="option_import"> | |
57 | <xs:complexContent> | |
58 | <xs:extension base="option_delete"> | |
59 | <xs:all> | |
60 | <xs:element name="categoryname" type="woltlab_varchar" minOccurs="1" /> | |
61 | <xs:element name="optiontype" type="woltlab_varchar_nullable" minOccurs="0" /> | |
62 | <xs:element name="defaultvalue" type="xs:string" minOccurs="0" /> | |
9f2aa693 | 63 | <xs:element name="userdefaultvalue" type="xs:string" minOccurs="0" /> |
64 | <xs:element name="moddefaultvalue" type="xs:string" minOccurs="0" /> | |
0f1cb2c0 | 65 | <xs:element name="validationpattern" type="xs:string" minOccurs="0" /> |
01bd2eff | 66 | <xs:element name="enableoptions" type="xs:string" minOccurs="0" /> |
0f1cb2c0 MS |
67 | <xs:element name="showorder" type="xs:unsignedInt" minOccurs="0" /> |
68 | <xs:element name="options" type="xs:string" minOccurs="0" /> | |
69 | <xs:element name="permissions" type="xs:string" minOccurs="0" /> | |
70 | <xs:element name="admindefaultvalue" type="xs:string" minOccurs="0" /> | |
9f2aa693 | 71 | <xs:element name="usersonly" type="woltlab_boolean" minOccurs="0" /> |
72 | <xs:element name="wildcard" type="woltlab_varchar_nullable" minOccurs="0" /> | |
73 | <xs:element name="minvalue" type="xs:unsignedInt" minOccurs="0" /> | |
eec1d83c | 74 | <xs:element name="excludedInTinyBuild" type="woltlab_boolean" minOccurs="0" /> |
0f1cb2c0 MS |
75 | </xs:all> |
76 | </xs:extension> | |
77 | </xs:complexContent> | |
78 | </xs:complexType> | |
79 | </xs:schema> |