Update the shim for the editor suggestions
[GitHub/WoltLab/WCF.git] / XSD / style.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified">
3 <!-- include types -->
4 <xs:include schemaLocation="types.xsd" />
5
6 <!-- data element -->
7 <xs:element name="style">
8 <xs:complexType>
9 <xs:choice maxOccurs="unbounded">
10 <xs:element name="general" type="general" minOccurs="1" maxOccurs="1" />
11 <xs:element name="author" type="author" minOccurs="0" maxOccurs="1" />
12 <xs:element name="files" type="files" minOccurs="1" maxOccurs="1" />
13 </xs:choice>
14 </xs:complexType>
15 </xs:element>
16
17 <!-- general information element -->
18 <xs:complexType name="general">
19 <xs:choice maxOccurs="unbounded">
20 <xs:element name="stylename" type="woltlab_varchar" minOccurs="1" maxOccurs="1" />
21 <xs:element name="packageName" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
22 <xs:element name="date" type="xs:date" minOccurs="0" maxOccurs="1" />
23 <xs:element name="version" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
24 <xs:element name="image" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
25 <xs:element name="image2x" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
26 <xs:element name="copyright" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
27 <xs:element name="license" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
28 <xs:element name="default" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
29 <xs:element name="description" minOccurs="0" maxOccurs="unbounded">
30 <xs:complexType>
31 <xs:simpleContent>
32 <xs:extension base="woltlab_varchar">
33 <xs:attribute name="language" type="xs:string" />
34 </xs:extension>
35 </xs:simpleContent>
36 </xs:complexType>
37 </xs:element>
38 <xs:element name="coverPhoto" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
39 <xs:element name="hasDarkMode" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
40 </xs:choice>
41 </xs:complexType>
42
43 <!-- author information element -->
44 <xs:complexType name="author">
45 <xs:choice maxOccurs="unbounded">
46 <xs:element name="authorname" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
47 <xs:element name="authorurl" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
48 </xs:choice>
49 </xs:complexType>
50
51 <!-- files information element -->
52 <xs:complexType name="files">
53 <xs:choice maxOccurs="unbounded">
54 <xs:element name="variables" type="woltlab_varchar" minOccurs="1" maxOccurs="1" />
55 <xs:element name="variablesDarkMode" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
56 <xs:element name="images" minOccurs="0" maxOccurs="1">
57 <xs:complexType>
58 <xs:simpleContent>
59 <xs:extension base="woltlab_varchar">
60 <xs:attribute name="path" type="xs:string" />
61 </xs:extension>
62 </xs:simpleContent>
63 </xs:complexType>
64 </xs:element>
65 <xs:element name="templates" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
66 </xs:choice>
67 </xs:complexType>
68 </xs:schema>