<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:annotation>
		<xsd:documentation xml:lang="EN">
			Schema for GLORIEN Cashier Present-Validation
		</xsd:documentation>
	</xsd:annotation>

	<!-- Root
		Every Element is required
		Contains a list of Presents
	-->
	<xsd:element name="presents">
		<xsd:complexType>
		    <xsd:sequence>
		        <xsd:element name="present" type="presentDef" maxOccurs="unbounded"/>
		    </xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	
	<!-- Present Definition
		"price" sets the present-price
		"text" sets a specific text
		Attribute "id" represents the present-id
	-->
	<xsd:complexType name="presentDef">
		<xsd:sequence>
			<xsd:element name="price" type="price"/>
			<xsd:element name="text" type="xsd:string"/>
		</xsd:sequence>
		<xsd:attribute name="id" type="xsd:string" use="required"/>
	</xsd:complexType>	

	<!-- Type Definition: Price
		Germany Number Format 123,11
	-->
	<xsd:simpleType name="price">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[0-9]+,[0-9]{2}" />
		</xsd:restriction>
	</xsd:simpleType>
</xsd:schema>