-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopen-mensa-v2.rnc
39 lines (38 loc) · 1.11 KB
/
open-mensa-v2.rnc
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
default namespace = "http://openmensa.org/open-mensa-v2"
start =
notAllowed
| element openmensa {
attribute version { xsd:float },
element canteen {
element day {
attribute date {
xsd:string { pattern = "[0-9]{4,4}-[0-9]{2,2}-[0-9]{2,2}" }
},
(element category {
attribute name {
xsd:string { minLength = "1" maxLength = "250" }
},
element meal {
element name {
xsd:string { minLength = "1" maxLength = "250" }
},
element note {
xsd:string { minLength = "1" maxLength = "250" }
}*,
element price {
attribute role {
xsd:string "other"
| xsd:string "student"
| xsd:string "employee"
| xsd:string "pupil"
},
xsd:float
}*
}+
}+
| element closed {
xsd:string { maxLength = "0" }
})
}*
}
}