-
Notifications
You must be signed in to change notification settings - Fork 2
/
zngx.xsd
42 lines (42 loc) · 1.33 KB
/
zngx.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<element name="shapes">
<complexType>
<sequence>
<element name="shape" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="string">
<attribute name="type" use="required">
<simpleType>
<restriction base="string">
<enumeration value="line"/>
<enumeration value="triangle"/>
<enumeration value="rectangle"/>
<enumeration value="hexagon"/>
<enumeration value="octagon"/>
<enumeration value="circle"/>
<enumeration value="guy"/>
<enumeration value="text"/>
</restriction>
</simpleType>
</attribute>
<attribute name="top" type="integer" use="required"/>
<attribute name="left" type="integer" use="required"/>
<attribute name="width" type="integer" use="required"/>
<attribute name="height" type="integer" use="required"/>
<attribute name="color" use="required">
<simpleType>
<restriction base="string">
<pattern value="#[0-9A-Fa-f]{6}"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>