mirror of
https://github.com/pyqt/examples.git
synced 2025-08-27 03:57:08 +00:00
The commits since then moved many files into the src/ subdirectory. This would have broken existing links on the internet. To solve this, we leave the master branch as-is and make such breaking changes on a different branch.
41 lines
1.5 KiB
XML
41 lines
1.5 KiB
XML
<?xml version="1.0"?>
|
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
|
|
<xsd:element name="recipe">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="title" type="xsd:string"/>
|
|
<xsd:element name="ingredient" type="ingredientType" maxOccurs="unbounded"/>
|
|
<xsd:element name="time" type="timeType"/>
|
|
<xsd:element name="method">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="step" type="xsd:string" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<xsd:complexType name="ingredientType">
|
|
<xsd:attribute name="name" type="xsd:string"/>
|
|
<xsd:attribute name="quantity" type="xsd:positiveInteger"/>
|
|
<xsd:attribute name="unit" type="xsd:string"/>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="timeType">
|
|
<xsd:attribute name="quantity" type="xsd:positiveInteger"/>
|
|
<xsd:attribute name="unit">
|
|
<xsd:simpleType>
|
|
<xsd:restriction base="xsd:string">
|
|
<xsd:enumeration value="seconds"/>
|
|
<xsd:enumeration value="minutes"/>
|
|
<xsd:enumeration value="hours"/>
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
</xsd:attribute>
|
|
</xsd:complexType>
|
|
|
|
</xsd:schema>
|