-
Notifications
You must be signed in to change notification settings - Fork 22
/
schema.xsd
113 lines (113 loc) · 4.52 KB
/
schema.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="notepad" type="notepadType"/>
<xs:complexType name="markdownType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="id" use="required"/>
<xs:attribute type="xs:string" name="x" use="required"/>
<xs:attribute type="xs:string" name="y" use="required"/>
<xs:attribute type="xs:string" name="width" use="required"/>
<xs:attribute type="xs:string" name="height" use="required"/>
<xs:attribute type="xs:string" name="fontSize" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="noteType">
<xs:sequence>
<xs:element type="addonsType" name="addons"/>
<xs:element name="bibliography">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element type="sourceType" name="source" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="markdownType" name="markdown" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="drawingType" name="drawing" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="recordingType" name="recording" minOccurs="0"/>
<xs:element type="imageType" name="image" minOccurs="0"/>
<xs:element type="fileType" name="file" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:string" name="title" use="required"/>
<xs:attribute type="xs:dateTime" name="time" use="required"/>
</xs:complexType>
<xs:complexType name="drawingType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="id" use="required"/>
<xs:attribute type="xs:string" name="x" use="required"/>
<xs:attribute type="xs:string" name="y" use="required"/>
<xs:attribute type="xs:string" name="width" use="required"/>
<xs:attribute type="xs:string" name="height" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="notepadType">
<xs:sequence>
<xs:element type="sectionType" name="section" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:string" name="title" use="required" />
<xs:attribute type="xs:dateTime" name="lastModified" use="optional" />
</xs:complexType>
<xs:complexType name="sourceType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:byte" name="id"/>
<xs:attribute type="xs:string" name="item"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="recordingType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="id"/>
<xs:attribute type="xs:string" name="x"/>
<xs:attribute type="xs:string" name="y"/>
<xs:attribute type="xs:string" name="width"/>
<xs:attribute type="xs:string" name="height"/>
<xs:attribute type="xs:string" name="filename"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="addonsType" mixed="true">
<xs:sequence>
<xs:element type="xs:string" name="import" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="bibliographyType">
<xs:sequence>
<xs:element type="sourceType" name="source" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sectionType">
<xs:sequence>
<xs:element type="sectionType" name="section" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="noteType" name="note" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:string" name="title" use="required"/>
</xs:complexType>
<xs:complexType name="imageType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="id" use="required"/>
<xs:attribute type="xs:string" name="x" use="required"/>
<xs:attribute type="xs:string" name="y" use="required"/>
<xs:attribute type="xs:string" name="width" use="required"/>
<xs:attribute type="xs:string" name="height" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="fileType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="id"/>
<xs:attribute type="xs:string" name="x"/>
<xs:attribute type="xs:string" name="y"/>
<xs:attribute type="xs:string" name="width"/>
<xs:attribute type="xs:string" name="height"/>
<xs:attribute type="xs:string" name="filename"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>