0
|
1 |
<?xml version="1.0"?>
|
|
2 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
3 |
|
|
4 |
<xsd:element name="recipe">
|
|
5 |
<xsd:complexType>
|
|
6 |
<xsd:sequence>
|
|
7 |
<xsd:element name="title" type="xsd:string"/>
|
|
8 |
<xsd:element name="ingredient" type="ingredientType" maxOccurs="unbounded"/>
|
|
9 |
<xsd:element name="time" type="timeType"/>
|
|
10 |
<xsd:element name="method">
|
|
11 |
<xsd:complexType>
|
|
12 |
<xsd:sequence>
|
|
13 |
<xsd:element name="step" type="xsd:string" maxOccurs="unbounded"/>
|
|
14 |
</xsd:sequence>
|
|
15 |
</xsd:complexType>
|
|
16 |
</xsd:element>
|
|
17 |
</xsd:sequence>
|
|
18 |
</xsd:complexType>
|
|
19 |
</xsd:element>
|
|
20 |
|
|
21 |
<xsd:complexType name="ingredientType">
|
|
22 |
<xsd:attribute name="name" type="xsd:string"/>
|
|
23 |
<xsd:attribute name="quantity" type="xsd:positiveInteger"/>
|
|
24 |
<xsd:attribute name="unit" type="xsd:string"/>
|
|
25 |
</xsd:complexType>
|
|
26 |
|
|
27 |
<xsd:complexType name="timeType">
|
|
28 |
<xsd:attribute name="quantity" type="xsd:positiveInteger"/>
|
|
29 |
<xsd:attribute name="unit">
|
|
30 |
<xsd:simpleType>
|
|
31 |
<xsd:restriction base="xsd:string">
|
|
32 |
<xsd:enumeration value="seconds"/>
|
|
33 |
<xsd:enumeration value="minutes"/>
|
|
34 |
<xsd:enumeration value="hours"/>
|
|
35 |
</xsd:restriction>
|
|
36 |
</xsd:simpleType>
|
|
37 |
</xsd:attribute>
|
|
38 |
</xsd:complexType>
|
|
39 |
|
|
40 |
</xsd:schema>
|