-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathticket.xsd
55 lines (50 loc) · 1.84 KB
/
ticket.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
<?xml version="1.0" encoding="utf-8"?>
<!--
Validation file for scheduling tickets.
Validate with xmllint -schema events.xsd events
Copyright 2009 Petr Kubanek petr@kubanek.net
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="minmax">
<xs:annotation><xs:documentation>
Interval specifing interval of allowable values.
</xs:documentation></xs:annotation>
<xs:choice minOccurs="1" maxOccurs="2">
<xs:element name="min" type="xs:double"/>
<xs:element name="max" type="xs:double"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="timeinterval">
<xs:choice minOccurs="1" maxOccurs="2">
<xs:element name="from" type="xs:date"/>
<xs:element name="to" type="xs:date"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="ticket">
<xs:sequence>
<xs:element name="constraints" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:annotation><xs:documentation>
Various constrants for ticket execution.
</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="lunar_phase" type="minmax" minOccurs="0" maxOccurs="1"/>
<xs:element name="lunar_distance" type="minmax" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation>
Lunar distance in degrees.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="lunar_alt" type="minmax" minOccurs="0" maxOccurs="1"/>
<xs:element name="altitude" type="minmax" minOccurs="0" maxOccurs="1"/>
<xs:element name="time" type="timeinterval" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="ticket" type="ticket">
<xs:annotation><xs:documentation>
Root element.
</xs:documentation></xs:annotation>
</xs:element>
</xs:schema>