Merge branch '5.2' into 5.3
[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="apiVersion" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
25 <xs:element name="image" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
26 <xs:element name="image2x" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
27 <xs:element name="copyright" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
28 <xs:element name="license" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
29 <xs:element name="default" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
30 <xs:element name="description" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
31 <xs:element name="coverPhoto" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
32 </xs:choice>
33 </xs:complexType>
34
35 <!-- author information element -->
36 <xs:complexType name="author">
37 <xs:choice maxOccurs="unbounded">
38 <xs:element name="authorname" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
39 <xs:element name="authorurl" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
40 </xs:choice>
41 </xs:complexType>
42
43 <!-- files information element -->
44 <xs:complexType name="files">
45 <xs:choice maxOccurs="unbounded">
46 <xs:element name="variables" type="woltlab_varchar" minOccurs="1" maxOccurs="1" />
47 <xs:element name="images" minOccurs="0" maxOccurs="1">
48 <xs:complexType>
49 <xs:simpleContent>
50 <xs:extension base="woltlab_varchar">
51 <xs:attribute name="path" type="xs:string" />
52 </xs:extension>
53 </xs:simpleContent>
54 </xs:complexType>
55 </xs:element>
56 <xs:element name="templates" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
57 </xs:choice>
58 </xs:complexType>
59 </xs:schema>