<?xml version="1.0" encoding="iso-8859-1"?>
<order version="1.0" facility="${printFacility.reference!}" provider="${printFacility.providerReference!}" orderdate="${order.date!}">
	<!-- the provider executes the order on behalf of a merchant-->
	<provider>
		<name>
			<firstname>${provider.firstName!}</firstname>
			<lastname>${provider.lastName!}</lastname>
			<initial>${provider.Initials!}</initial>
		</name>
		<contact>
			<phone>${provider.phone!}</phone>
			<email><![CDATA[${provider.email!}]]></email>
			<url><![CDATA[${provider.url!}]]></url>
		</contact>
		<address>
			<addressline1><![CDATA[${provider.addressLine1!}]]></addressline1>
			<addressline2><![CDATA[${provider.addressLine2!}]]></addressline2>
			<postalcode>${provider.addressPostalCode!}</postalcode>
			<city>${provider.addressCity!}</city>
			<state>${provider.addressState!}</state>
			<country>${provider.addressCountry!}</country>
			<countrycode>${provider.addressCountryCode!}</countrycode>
		</address>
		<general>
			<company><![CDATA[${provider.companyName!}]]></company>
			<chamberofcommercenumber>${provider.companyChamberOfCommerceNumber!}</chamberofcommercenumber>
			<language>${provider.language!}</language>
		</general>
	</provider>
	<shipment shipmentid="${shipment.number!}">
		<!-- the merchant allows the sender to send a shipment to the recipient -->
		<merchant>
			<name>
				<firstname>${merchant.firstName!}</firstname>
				<lastname>${merchant.lastName!}</lastname>
				<initial>${merchant.Initials!}</initial>
			</name>
			<contact>
				<phone>${merchant.phone!}</phone>
				<email><![CDATA[${merchant.email!}]]></email>
				<url><![CDATA[${merchant.url!}]]></url>
			</contact>
			<address>
				<addressline1><![CDATA[${merchant.addressLine1!}]]></addressline1>
				<addressline2><![CDATA[${merchant.addressLine2!}]]></addressline2>
				<postalcode>${merchant.addressPostalCode!}</postalcode>
				<city>${merchant.addressCity!}</city>
				<state>${merchant.addressState!}</state>
				<country>${merchant.addressCountry!}</country>
				<countrycode>${merchant.addressCountryCode!}</countrycode>
			</address>
			<general>
				<company><![CDATA[${merchant.companyName!}]]></company>
				<chamberofcommercenumber>${merchant.companyChamberOfCommerceNumber!}</chamberofcommercenumber>
				<language>${merchant.language!}</language>
			</general>
		</merchant>
		<shipping>
			<sender>
				<name>
					<firstname>${shipping.senderFirstName!}</firstname>
					<lastname>${shipping.senderLastName!}</lastname>
					<initial>${shipping.senderInitials!}</initial>
				</name>
				<contact>
					<phone>${shipping.senderPhone!}</phone>
					<email><![CDATA[${shipping.senderEmail!}]]></email>
					<url><![CDATA[${shipping.senderUrl!}]]></url>
				</contact>
				<address>
					<addressline1><![CDATA[${shipping.senderAddressLine1!}]]></addressline1>
					<addressline2><![CDATA[${shipping.senderAddressLine2!}]]></addressline2>
					<postalcode>${shipping.senderAddressPostalCode!}</postalcode>
					<city>${shipping.senderAddressCity!}</city>
					<state>${shipping.senderAddressState!}</state>
					<country>${shipping.senderAddressCountry!}</country>
					<countrycode>${shipping.senderAddressCountryCode!}</countrycode>
				</address>
				<general>
					<company><![CDATA[${shipping.senderCompanyName!}]]></company>
					<gender>${shipping.senderGender!}</gender>
					<language>${shipping.senderLanguage!}</language>
				</general>
			</sender>
			<recipient>
				<name>
					<firstname>${shipping.recipientFirstName!}</firstname>
					<lastname>${shipping.recipientLastName!}</lastname>
					<initial>${shipping.recipientInitials!}</initial>
				</name>
				<contact>
					<phone>${shipping.recipientPhone!}</phone>
					<email><![CDATA[${shipping.recipientEmail!}]]></email>
					<url><![CDATA[${shipping.recipientUrl!}]]></url>
				</contact>
				<address>
					<addressline1><![CDATA[${shipping.recipientAddressLine1!}]]></addressline1>
					<addressline2><![CDATA[${shipping.recipientAddressLine2!}]]></addressline2>
					<postalcode>${shipping.recipientAddressPostalCode!}</postalcode>
					<city>${shipping.recipientAddressCity!}</city>
					<state>${shipping.recipientAddressState!}</state>
					<country>${shipping.recipientAddressCountry!}</country>
					<countrycode>${shipping.recipientAddressCountryCode!}</countrycode>
				</address>
				<general>
					<company><![CDATA[${shipping.recipientCompanyName!}]]></company>
					<gender>${shipping.recipientGender!}</gender>
					<language>${shipping.recipientLanguage!}</language>
				</general>
			</recipient>
			<carrier>
				<name><![CDATA[${shipping.carrierName!}]]></name>
				<reference>${shipping.carrierReference!}</reference>
				<tracking>${shipping.carrierTracking!}</tracking>
				<deliverydate>${shipping.preferredArrivalDate!}</deliverydate>
			</carrier>
			<!--list shipments in a single order-->
			<shipmentline shipmentline="${shipment.lineNumber!}">
				<reference order="${order.reference!}" orderline="${order.lineNumber!}" />
				<!--list products in a single shipment-->
				<product producttype="${product.typeReference!}" product="${product.reference!}">
					<title>${product.customerTitle!}</title>
					<color>${product.color!}</color>
					<quantity>${product.quantity!}</quantity>
					<dimensions>
						<unit>${product.dimensionUnit!}</unit>						
						<width>${product.dimensionWidth!}</width>
						<height>${product.dimensionHeight!}</height>
						<size>${product.dimensionSize!}</size>
					</dimensions>
					<elements>${product.contentNumberOfFiles!}*</elements>
					<!--list elements of a single product-->
					<#list product.contentFiles as contentFile>
					<element reference="${contentFile.reference!}">
						<usage>${contentFile.usage!}</usage>
						<papertype>${contentFile.paperType!}</papertype>
						<file type="${contentFile.filetype!}">
							<filename><![CDATA[${contentFile.name!}]]></filename>
							<location><![CDATA[${contentFile.downloadLocation!}]]></location>
						</file>
					</element>
					</#list>
				</product>
			</shipmentline>
			<remark><![CDATA[${shipping.optionalRemark!}]]></remark>
		</shipping>
	</shipment>
</order>