<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://www.xxx.com/eBusiness" xmlns="http://www.xxx.com/eBusiness" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.7"> <xsd:annotation> <xsd:documentation xml:lang="en"> XML Schema for the transfer of a Purchase Order Confirmation between an Agent and Client Companies </xsd:documentation> </xsd:annotation> <xsd:element name="MessageHeader"> <xsd:complexType> <xsd:sequence> <xsd:element name="PurchaseOrder" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="PurchaseOrderHeaderText" minOccurs="0" maxOccurs="999"> <xsd:complexType> <xsd:sequence> <xsd:element name="PurchaseOrderLine" minOccurs="0" maxOccurs="999"> <xsd:complexType> <xsd:attribute name="OrderLineNo" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:minInclusive value="1"/> <xsd:maxInclusive value="989"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="OrderSubLine" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="StockNo" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ManufacturerPartNo" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="Description" type="xsd:string" use="required"/> <xsd:attribute name="Quantity" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="10"/> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="UnitOfMeasure" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="4"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="UnitPrice" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="10"/> <xsd:fractionDigits value="4"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="LinePrice" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="12"/> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="Phase" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="A"/> <xsd:enumeration value="B"/> <xsd:enumeration value="C"/> <xsd:enumeration value="D"/> <xsd:enumeration value=""/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="StatusCode" use="required"> <xsd:annotation> <xsd:documentation> C = Line Cancelled </xsd:documentation> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="1"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="StatusText" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> <xsd:unique name="ClientQACodeConstraint"> <xsd:annotation> <xsd:documentation> ClientQACode attribute must be unique within the scope of each ClientQALine </xsd:documentation> </xsd:annotation> <xsd:selector xpath="ClientQALine"/> <xsd:field xpath="@ClientQACode"/> </xsd:unique> </xsd:element> </xsd:sequence> <xsd:attribute name="HeaderText" type="xsd:string" use="required"/> </xsd:complexType> </xsd:element> <xsd:element name="PurchaseOrderAdditionalCharge" minOccurs="0" maxOccurs="999"> <xsd:complexType> <xsd:attribute name="ChargeLineNo" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:minInclusive value="0"/> <xsd:maxInclusive value="999"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ChargeText" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ChargeValue" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="12"/> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="Phase" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="A"/> <xsd:enumeration value="B"/> <xsd:enumeration value="C"/> <xsd:enumeration value="D"/> <xsd:enumeration value=""/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> <xsd:element name="PurchaseOrderNote" minOccurs="0" maxOccurs="99"> <xsd:complexType> <xsd:attribute name="NoteText" type="xsd:string"/> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name="ClientCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ClientName" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AgentPurchaseOrder" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:minInclusive value="1"/> <xsd:maxInclusive value="999999"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AgentPurchaseOrderText" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required format is CC-NNNNNN</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([A-Z][A-Z][-][0-9][0-9][0-9][0-9][0-9][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ClientPurchaseOrder" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="RequisitionPart1" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="7"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="RequisitionPart2" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="9"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="RequisitionPart3" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="8"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="RequisitionText" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="26"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AmendmentNumber" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:minInclusive value="0"/> <xsd:maxInclusive value="99"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AmendmentText" type="xsd:string" use="required"/> <xsd:attribute name="PurchaseOrderTitle1" use="required"> <xsd:annotation> <xsd:documentation>Agency PurchaseOrder</xsd:documentation> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="30"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="PurchaseOrderTitle2" use="required"> <xsd:annotation> <xsd:documentation>e.g. Amendment No. 3</xsd:documentation> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="30"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="IssueDate" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required date format is YYYY-MM-DD</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([1-2][0-9][0-9][0-9][-][0-1][0-9][-][0-3][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="InspectionRequired" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Y"/> <xsd:enumeration value="N"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="InspectionRequiredText" use="required"> <xsd:annotation> <xsd:documentation>e.g. Inspection Required</xsd:documentation> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="30"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="Urgent" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Y"/> <xsd:enumeration value="N"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="UrgentText" use="required"> <xsd:annotation> <xsd:documentation>e.g. Urgent</xsd:documentation> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="30"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ClientProject" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="10"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="Description" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="120"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="TotalNumberItems" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:minInclusive value="1"/> <xsd:maxInclusive value="989"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="Currency" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="3"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="TotalMaterialValue" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="12"/> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="TotalAdditionalCosts" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="12"/> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="TotalOrderValue" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="12"/> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ReportingCurrency" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="3"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ReportingCurrencyValue" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="12"/> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="PaymentTermsCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="4"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="PaymentTermsText" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ClientVendorCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ClientVendorName" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:minInclusive value="1"/> <xsd:maxInclusive value="999999"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorName" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="50"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorAddressLine1" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="50"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorAddressLine2" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="50"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorAddressLine3" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="50"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorAddressLine4" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="50"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorPostCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="10"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorCountryCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorTelephone" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorFax" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorEmail" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="50"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="VendorContact" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AgentContact" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AgentBuyerName" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AgentAuthorisedBy" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="AgentAuthorisedByTitle" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="QuotationReference" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryDatePhaseA" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required date format is YYYY-MM-DD</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([1-2][0-9][0-9][0-9][-][0-1][0-9][-][0-3][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryDatePhaseB" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required date format is YYYY-MM-DD</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([1-2][0-9][0-9][0-9][-][0-1][0-9][-][0-3][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryDatePhaseC" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required date format is YYYY-MM-DD</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([1-2][0-9][0-9][0-9][-][0-1][0-9][-][0-3][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryDatePhaseD" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required date format is YYYY-MM-DD</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([1-2][0-9][0-9][0-9][-][0-1][0-9][-][0-3][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryDateLast" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required date format is YYYY-MM-DD</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([1-2][0-9][0-9][0-9][-][0-1][0-9][-][0-3][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="FreightTermCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="4"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="FreightTermText" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="90"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:integer"> <xsd:minInclusive value="0"/> <xsd:maxInclusive value="99"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine1" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine2" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine3" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine4" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine5" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine6" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine7" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ShippingMarkTextLine8" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine1" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine2" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine3" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine4" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine5" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine6" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine7" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DeliveryInstructionLine8" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="NoteLine1" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="80"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> <xsd:unique name="PurchaseOrderLineConstraint"> <xsd:annotation> <xsd:documentation> OrderLineNo and OrderSubLine combination must be unique with the scope of each PurchaseOrder </xsd:documentation> </xsd:annotation> <xsd:selector xpath="PurchaseOrderHeaderText/PurchaseOrderLine"/> <xsd:field xpath="@OrderLineNo"/> <xsd:field xpath="@OrderSubLine"/> </xsd:unique> </xsd:element> </xsd:sequence> <xsd:attribute name="FromCode" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation> J1 = Jawaby , M1 = Medoil </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:enumeration value="J1"/> <xsd:enumeration value="M1"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="FromCompany" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Jawaby"/> <xsd:enumeration value="Medoil"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="FromContact" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ToCode" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ToCompany" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ToContact" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="40"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="DateCreated" use="required"> <xsd:simpleType> <xsd:annotation> <xsd:documentation>Required date format is YYYY-MM-DD</xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:token"> <xsd:pattern value="([1-2][0-9][0-9][0-9][-][0-1][0-9][-][0-3][0-9])?"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="MessageType" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="POConfirm"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="Version" use="required"> <xsd:annotation> <xsd:documentation>The version of the Schema the instance document should conform to</xsd:documentation> </xsd:annotation> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="5"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="MessageReference" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="20"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ReplyToEmail" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="0"/> <xsd:maxLength value="50"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> </xsd:schema>