-
Notifications
You must be signed in to change notification settings - Fork 1
/
Definitions.xsd
158 lines (158 loc) · 7.76 KB
/
Definitions.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.ofdspec.org/2016" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.ofdspec.org/2016" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:simpleType name="ST_ID">
<xs:restriction base="xs:unsignedInt" />
</xs:simpleType>
<xs:simpleType name="ST_RefID">
<xs:restriction base="xs:unsignedInt" />
</xs:simpleType>
<xs:simpleType name="ST_Loc">
<xs:restriction base="xs:anyURI" />
</xs:simpleType>
<xs:simpleType name="ST_Array">
<xs:restriction base="xs:string" />
</xs:simpleType>
<xs:simpleType name="ST_Pos">
<xs:restriction base="xs:string" />
</xs:simpleType>
<xs:simpleType name="ST_Box">
<xs:restriction base="xs:string" />
</xs:simpleType>
<xs:complexType name="CT_Dest">
<xs:attribute name="Type" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="XYZ" />
<xs:enumeration value="Fit" />
<xs:enumeration value="FitH" />
<xs:enumeration value="FitV" />
<xs:enumeration value="FitR" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="PageID" type="ST_RefID" use="required" />
<xs:attribute name="Left" type="xs:double" />
<xs:attribute name="Top" type="xs:double" />
<xs:attribute name="Right" type="xs:double" />
<xs:attribute name="Bottom" type="xs:double" />
<xs:attribute name="Zoom" type="xs:double" />
</xs:complexType>
<xs:complexType name="CT_PageArea">
<xs:sequence>
<xs:element name="PhysicalBox" type="ST_Box" />
<xs:element name="ApplicationBox" type="ST_Box" minOccurs="0" />
<xs:element name="ContentBox" type="ST_Box" minOccurs="0" />
<xs:element name="BleedBox" type="ST_Box" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="CT_Action">
<xs:sequence>
<xs:element name="Region" type="CT_Region" minOccurs="0" />
<xs:choice>
<xs:element name="Goto">
<xs:complexType>
<xs:choice>
<xs:element name="Dest" type="CT_Dest" />
<xs:element name="Bookmark">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="URI">
<xs:complexType>
<xs:attribute name="URI" type="xs:string" use="required" />
<xs:attribute name="Base" type="xs:string" />
<xs:attribute name="Target" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="GotoA">
<xs:complexType>
<xs:attribute name="AttachID" type="xs:IDREF" use="required" />
<xs:attribute name="NewWindow" type="xs:boolean" default="true" />
</xs:complexType>
</xs:element>
<xs:element name="Sound">
<xs:complexType>
<xs:attribute name="ResourceID" type="ST_RefID" use="required" />
<xs:attribute name="Volume" type="xs:int" />
<xs:attribute name="Repeat" type="xs:boolean" />
<xs:attribute name="Synchronous" type="xs:boolean" />
</xs:complexType>
</xs:element>
<xs:element name="Movie">
<xs:complexType>
<xs:attribute name="ResourceID" type="ST_RefID" use="required" />
<xs:attribute name="Operator" default="Play">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Play" />
<xs:enumeration value="Stop" />
<xs:enumeration value="Pause" />
<xs:enumeration value="Resume" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="Event" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="DO" />
<xs:enumeration value="PO" />
<xs:enumeration value="CLICK" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="CT_Region">
<xs:sequence>
<xs:element name="Area" maxOccurs="unbounded">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Move">
<xs:complexType>
<xs:attribute name="Point1" type="ST_Pos" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="Line">
<xs:complexType>
<xs:attribute name="Point1" type="ST_Pos" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="QuadraticBezier">
<xs:complexType>
<xs:attribute name="Point1" type="ST_Pos" use="required" />
<xs:attribute name="Point2" type="ST_Pos" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="CubicBezier">
<xs:complexType>
<xs:attribute name="Point1" type="ST_Pos" />
<xs:attribute name="Point2" type="ST_Pos" />
<xs:attribute name="Point3" type="ST_Pos" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="Arc">
<xs:complexType>
<xs:attribute name="SweepDirection" type="xs:boolean" use="required" />
<xs:attribute name="LargeArc" type="xs:boolean" use="required" />
<xs:attribute name="RotationAngle" type="xs:double" use="required" />
<xs:attribute name="EllipseSize" type="ST_Array" use="required" />
<xs:attribute name="EndPoint" type="ST_Pos" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="Close" />
</xs:choice>
<xs:attribute name="Start" type="ST_Pos" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>