Commit | Line | Data |
---|---|---|
0f1cb2c0 MS |
1 | <?xml version="1.0"?> |
2 | <!-- This file is used for xml files which install, update or delete user 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="icon" type="woltlab_varchar_nullable" minOccurs="0" /> | |
41 | <xs:element name="menuicon" type="woltlab_varchar_nullable" minOccurs="0" /> | |
42 | <xs:element name="parent" type="woltlab_varchar_nullable" minOccurs="0" /> | |
43 | <xs:element name="showorder" type="xs:unsignedInt" minOccurs="0" /> | |
44 | </xs:all> | |
45 | </xs:extension> | |
46 | </xs:complexContent> | |
47 | </xs:complexType> | |
48 | ||
49 | <!-- options import element type --> | |
50 | <xs:complexType name="options_import"> | |
51 | <xs:sequence> | |
52 | <xs:element name="option" type="option_import" maxOccurs="unbounded" /> | |
53 | </xs:sequence> | |
54 | </xs:complexType> | |
55 | ||
56 | <!-- imported/updated element type --> | |
57 | <xs:complexType name="option_import"> | |
58 | <xs:complexContent> | |
59 | <xs:extension base="option_delete"> | |
60 | <xs:all> | |
61 | <xs:element name="categoryname" type="woltlab_varchar" minOccurs="1" /> | |
62 | <xs:element name="optiontype" type="woltlab_varchar_nullable" minOccurs="0" /> | |
63 | <xs:element name="defaultvalue" type="xs:string" minOccurs="0" /> | |
64 | <xs:element name="validationpattern" type="xs:string" minOccurs="0" /> | |
65 | <xs:element name="outputclass" type="woltlab_varchar_nullable" minOccurs="0" /> | |
66 | <xs:element name="selectoptions" type="xs:string" minOccurs="0" /> | |
67 | <xs:element name="enableoptions" type="xs:string" minOccurs="0" /> | |
68 | <xs:element name="required" type="woltlab_boolean" minOccurs="0" /> | |
69 | <xs:element name="editable" minOccurs="0" > | |
70 | <xs:simpleType> | |
71 | <xs:restriction base="xs:integer"> | |
72 | <xs:minInclusive value="0" /> | |
73 | <xs:maxInclusive value="4" /> | |
74 | </xs:restriction> | |
75 | </xs:simpleType> | |
76 | </xs:element> | |
77 | <xs:element name="visible" minOccurs="0"> | |
78 | <xs:simpleType> | |
79 | <xs:restriction base="xs:integer"> | |
80 | <xs:minInclusive value="0" /> | |
53e982f7 | 81 | <xs:maxInclusive value="15" /> |
0f1cb2c0 MS |
82 | </xs:restriction> |
83 | </xs:simpleType> | |
84 | </xs:element> | |
85 | <xs:element name="searchable" type="woltlab_boolean" minOccurs="0" /> | |
86 | <xs:element name="deactivated" type="woltlab_boolean" minOccurs="0" /> | |
87 | <xs:element name="showorder" type="xs:unsignedInt" minOccurs="0" /> | |
88 | <xs:element name="options" type="xs:string" minOccurs="0" /> | |
89 | <xs:element name="permissions" type="xs:string" minOccurs="0" /> | |
592f3c5b | 90 | <xs:element name="isdisabled" type="woltlab_boolean" minOccurs="0" /> |
0f1cb2c0 MS |
91 | </xs:all> |
92 | </xs:extension> | |
93 | </xs:complexContent> | |
94 | </xs:complexType> | |
21ab9270 | 95 | </xs:schema> |