Commit | Line | Data |
---|---|---|
a314770a MW |
1 | <?xml version="1.0"?> |
2 | <!-- The file "styleattributes.xsd" is used for xml-files which installs, updates or deletes style attributes. --> | |
3 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified"> | |
f165ae55 MS |
4 | <!-- include types --> |
5 | <xs:include schemaLocation="types.xsd" /> | |
6 | ||
7 | <!-- Represents the data-node. --> | |
8 | <xs:element name="data"> | |
9 | <xs:complexType> | |
10 | <xs:all> | |
11 | <xs:element name="import" type="import" minOccurs="0" /> | |
12 | <xs:element name="delete" type="delete" minOccurs="0" /> | |
13 | </xs:all> | |
14 | </xs:complexType> | |
15 | </xs:element> | |
16 | ||
17 | <!-- Represents the import-node. --> | |
18 | <xs:complexType name="import"> | |
19 | <xs:sequence> | |
20 | <xs:element name="attribute" type="styleattribute" maxOccurs="unbounded" /> | |
21 | </xs:sequence> | |
22 | </xs:complexType> | |
23 | ||
24 | <!-- Represents the delete-node. --> | |
25 | <xs:complexType name="delete"> | |
26 | <xs:sequence> | |
27 | <xs:element name="attribute" type="styleattribute" maxOccurs="unbounded" /> | |
28 | </xs:sequence> | |
29 | </xs:complexType> | |
30 | ||
31 | <!-- Represents a styleattribute, which will be installed, updated or deleted. --> | |
32 | <xs:complexType name="styleattribute"> | |
33 | <xs:all> | |
34 | <xs:element name="selector" minOccurs="0"> | |
35 | <xs:simpleType> | |
36 | <xs:restriction base="xs:string"> | |
37 | <xs:minLength value="0" /> | |
38 | <xs:maxLength value="200" /> | |
39 | </xs:restriction> | |
40 | </xs:simpleType> | |
41 | </xs:element> | |
42 | <xs:element name="name" minOccurs="0"> | |
43 | <xs:simpleType> | |
44 | <xs:restriction base="xs:string"> | |
45 | <xs:minLength value="0" /> | |
46 | <xs:maxLength value="50" /> | |
47 | </xs:restriction> | |
48 | </xs:simpleType> | |
49 | </xs:element> | |
50 | <xs:element name="value" minOccurs="1"> | |
51 | <xs:simpleType> | |
52 | <xs:restriction base="xs:string"> | |
53 | <xs:minLength value="0" /> | |
54 | <xs:maxLength value="50" /> | |
55 | </xs:restriction> | |
56 | </xs:simpleType> | |
57 | </xs:element> | |
58 | </xs:all> | |
a314770a MW |
59 | </xs:complexType> |
60 | </xs:schema> |