<?xml version="1.0" ?>
<xsl:stylesheet xmlns:a="urn:schemas-basda-org:2000:purchaseOrder:xdr:3.01" exclude-result-prefixes="a" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<Order xsi:noNamespaceSchemaLocation="file://c:\Workspace\Stylus%20Studio\Schemas\xCBL\xCBL.Order.Schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<OrderHeader>
				<OrderNumber>
					<xsl:for-each select="a:Order/a:OrderReferences/a:BuyersOrderNumber">
						<BuyerOrderNumber>Fix me
							<xsl:value-of select="."/>
						</BuyerOrderNumber>
					</xsl:for-each>
					<SellerOrderNumber/>
					<ListOfMessageID>
						<MessageID>
							<IDNumber>NA</IDNumber>
							<IDAssignedBy>
								<IDAssignedByCoded>Other</IDAssignedByCoded>
							</IDAssignedBy>
						</MessageID>
					</ListOfMessageID>
				</OrderNumber>
				<xsl:for-each select="a:Order/a:OrderDate">
					<OrderIssueDate>
						<xsl:value-of select="."/>fix me convert to UTC
					</OrderIssueDate>
				</xsl:for-each>
				<OrderReferences>
					<AccountCode>
						<Reference>
							<xsl:for-each select="a:Order/a:Supplier/a:SupplierReferences/a:BuyersCodeForSupplier">
								<RefNum>
									<xsl:value-of select="."/>
								</RefNum>
							</xsl:for-each>
							<xsl:for-each select="a:Order/a:OrderDate">
								<RefDate>
									<xsl:value-of select="."/>fix me convert to utc
								</RefDate>
							</xsl:for-each>
						</Reference>
					</AccountCode>
					<ContractReferences>
						<ListOfContract>
							<Contract>
								<ContractID>
									<Identifier>
										<Agency>
											<AgencyCoded>Other</AgencyCoded>
										</Agency>
										<Ident>ContractAgencyIdent</Ident>
									</Identifier>
								</ContractID>
								<ContractType>
									<ContractTypeCoded>Other</ContractTypeCoded>
								</ContractType>
								<ValidityDates>
									<StartDate>20021004T00:00:00</StartDate>
									<EndDate>20031004T00:00:00</EndDate>
								</ValidityDates>
							</Contract>
						</ListOfContract>
					</ContractReferences>
					<QuoteReference>
						<Reference>
							<RefNum>NA</RefNum>
						</Reference>
					</QuoteReference>
					<OtherOrderReferences>
						<ListOfReferenceCoded>
							<ReferenceCoded>
								<ReferenceTypeCoded>Other</ReferenceTypeCoded>
								<PrimaryReference>
									<Reference>
										<RefNum>NA</RefNum>
									</Reference>
								</PrimaryReference>
								<SupportingReference>
									<Reference>
										<RefNum>NA</RefNum>
									</Reference>
								</SupportingReference>
								<SupportingSubReference>
									<Reference>
										<RefNum>NA</RefNum>
									</Reference>
								</SupportingSubReference>
								<ReferenceDescription>NA</ReferenceDescription>
							</ReferenceCoded>
						</ListOfReferenceCoded>
					</OtherOrderReferences>
				</OrderReferences>
				<Purpose>
					<PurposeCoded>Original</PurposeCoded>
				</Purpose>
				<RequestedResponse>
					<RequestedResponseCoded>Other</RequestedResponseCoded>
				</RequestedResponse>
				<OrderType>
					<OrderTypeCoded>PurchaseOrder</OrderTypeCoded>
				</OrderType>
				<OrderCurrency>
					<Currency>
						<CurrencyCoded>GBP</CurrencyCoded>
					</Currency>
				</OrderCurrency>
				<TaxAccountingCurrency>
					<Currency>
						<CurrencyCoded>GBP</CurrencyCoded>
					</Currency>
				</TaxAccountingCurrency>
				<OrderLanguage>
					<Language>
						<LanguageCoded>en</LanguageCoded>
					</Language>
				</OrderLanguage>
				<OrderTaxReference>
					<TaxReference>
						<TaxFunctionQualifierCoded>Other</TaxFunctionQualifierCoded>
						<TaxCategoryCoded>StandardRate</TaxCategoryCoded>
						<TaxTypeCoded>ValueAddedTax</TaxTypeCoded>
						<TaxTypeCodedOther>
							<Identifier>
								<Agency>
									<AgencyCoded>Other</AgencyCoded>
								</Agency>
								<Ident>NA</Ident>
							</Identifier>
						</TaxTypeCodedOther>
						<TaxPercent>17.5</TaxPercent>
						<xsl:for-each select="a:Order/a:OrderTotal/a:GoodsValue">
							<TaxableAmount>
								<xsl:value-of select="."/>fix me lose comma						
							</TaxableAmount>
						</xsl:for-each>
						<xsl:for-each select="a:Order/a:OrderTotal/a:GoodsValue">
							<TaxAmount>
								<xsl:value-of select="."/>fix me lose comma and mulitply by .175
							</TaxAmount>
						</xsl:for-each>
						<TaxTreatmentCoded>NetLineLevel</TaxTreatmentCoded>
					</TaxReference>
				</OrderTaxReference>
				<OrderInvoiceMediumTypeCoded>Other</OrderInvoiceMediumTypeCoded>
				<OrderDates>
					<xsl:for-each select="a:Order/a:Delivery/a:PreferredDate">
						<RequestedDeliverByDate>
							<xsl:value-of select="."/>fix me convert to utc
						</RequestedDeliverByDate>
					</xsl:for-each>
					<ValidityDates>
						<StartDate>20021004T00:00:00</StartDate>
						<EndDate>20031004T00:00:00 fix me set to further future date</EndDate>
					</ValidityDates>
					<CancelByDate/>
				</OrderDates>
				<OrderParty>
					<BuyerParty>
						<Party>
							<PartyID>
								<Identifier>
									<Agency>
										<AgencyCoded>Other</AgencyCoded>
									</Agency>
									<xsl:for-each select="a:Order/a:Buyer/a:Party">
										<Ident>
											<xsl:value-of select="."/>
										</Ident>
									</xsl:for-each>
								</Identifier>
							</PartyID>
							<NameAddress>
								<xsl:for-each select="a:Order/a:Buyer/a:Party">
									<Name1>
										<xsl:value-of select="."/>
									</Name1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Buyer/a:Address/a:AddressLine">
									<Street>
										<xsl:value-of select="."/>
									</Street>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Buyer/a:Address/a:Street">
									<StreetSupplement1>
										<xsl:value-of select="."/>
									</StreetSupplement1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Buyer/a:Address/a:PostCode">
									<PostalCode>
										<xsl:value-of select="."/>
									</PostalCode>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Buyer/a:Address/a:City">
									<City>
										<xsl:value-of select="."/>
									</City>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Buyer/a:Address/a:State">
									<County>
										<xsl:value-of select="."/>
									</County>
								</xsl:for-each>
								<Country>
									<CountryCoded>Other</CountryCoded>
									<xsl:for-each select="a:Order/a:Buyer/a:Address/a:Country">
										<CountryCodedOther>
											<xsl:value-of select="."/>
										</CountryCodedOther>
									</xsl:for-each>
								</Country>
							</NameAddress>
							<OrderContact>
								<Contact>
									<xsl:for-each select="a:Order/a:Buyer/a:Contact/a:Name">
										<ContactName>
											<xsl:value-of select="."/>fix me sort one to many generation for contcat values
										</ContactName>
									</xsl:for-each>
									<xsl:for-each select="a:Order/a:Buyer/a:Contact/a:Department">
										<ContactDescription>
											<xsl:value-of select="."/>
										</ContactDescription>
									</xsl:for-each>
								</Contact>
							</OrderContact>
							<CorrespondenceLanguage>
								<Language>
									<LanguageCoded>en</LanguageCoded>
									<LocaleCoded>Other</LocaleCoded>
								</Language>
							</CorrespondenceLanguage>
						</Party>
					</BuyerParty>
					<BuyerTaxInformation>
						<PartyTaxInformation>
							<TaxIdentifier>
								<Identifier>
									<Agency>
										<AgencyCoded/>
									</Agency>
									<Ident/>
								</Identifier>
							</TaxIdentifier>
						</PartyTaxInformation>
					</BuyerTaxInformation>
					<SellerParty>
						<Party>
							<PartyID>
								<Identifier>
									<Agency>
										<AgencyCoded>Other</AgencyCoded>
									</Agency>
									<xsl:for-each select="a:Order/a:Supplier/a:Party">
										<Ident>
											<xsl:value-of select="."/>
										</Ident>
									</xsl:for-each>
								</Identifier>
							</PartyID>
							<ListOfIdentifier>
								<Identifier>
									<Agency>
										<AgencyCoded>Other</AgencyCoded>
									</Agency>
									<Ident>NA</Ident>
								</Identifier>
							</ListOfIdentifier>
							<NameAddress>
								<xsl:for-each select="a:Order/a:Supplier/a:Party">
									<Name1>
										<xsl:value-of select="."/>
									</Name1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Supplier/a:Address/a:AddressLine">
									<Street>
										<xsl:value-of select="."/>
									</Street>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Supplier/a:Address/a:Street">
									<StreetSupplement1>
										<xsl:value-of select="."/>
									</StreetSupplement1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Supplier/a:Address/a:PostCode">
									<PostalCode>
										<xsl:value-of select="."/>
									</PostalCode>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Supplier/a:Address/a:City">
									<City>
										<xsl:value-of select="."/>
									</City>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Supplier/a:Address/a:State">
									<County>
										<xsl:value-of select="."/>
									</County>
								</xsl:for-each>
								<Country>
									<CountryCoded>Other</CountryCoded>
									<xsl:for-each select="a:Order/a:Supplier/a:Address/a:Country">
										<CountryCodedOther>
											<xsl:value-of select="."/>
										</CountryCodedOther>
									</xsl:for-each>
								</Country>
							</NameAddress>
							<OrderContact>
								<Contact>
									<xsl:for-each select="a:Order/a:Supplier/a:Contact/a:Name">
										<ContactName>
											<xsl:value-of select="."/>
										</ContactName>
									</xsl:for-each>
									<xsl:for-each select="a:Order/a:Supplier/a:Contact/a:Department">
										<ContactDescription>
											<xsl:value-of select="."/>
										</ContactDescription>
									</xsl:for-each>
								</Contact>
							</OrderContact>
						</Party>
					</SellerParty>
					<ShipToParty>
						<Party>
							<PartyID>
								<Identifier>
									<Agency>
										<AgencyCoded>Other</AgencyCoded>
									</Agency>
									<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Party">
										<Ident>
											<xsl:value-of select="."/>
										</Ident>
									</xsl:for-each>
								</Identifier>
							</PartyID>
							<NameAddress>
								<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Party">
									<Name1>
										<xsl:value-of select="."/>
									</Name1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:DeliverToReferences/a:BuyersCodeForLocation">
									<Name2>
										<xsl:value-of select="."/>
									</Name2>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Address/a:AddressLine">
									<Street>
										<xsl:value-of select="."/>
									</Street>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Address/a:Street">
									<StreetSupplement1>
										<xsl:value-of select="."/>
									</StreetSupplement1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Address/a:PostCode">
									<PostalCode>
										<xsl:value-of select="."/>
									</PostalCode>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Address/a:City">
									<City>
										<xsl:value-of select="."/>
									</City>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Address/a:State">
									<County>
										<xsl:value-of select="."/>
									</County>
								</xsl:for-each>
								<Country>
									<CountryCoded>Other</CountryCoded>
									<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Address/a:Country">
										<CountryCodedOther>
											<xsl:value-of select="."/>
										</CountryCodedOther>
									</xsl:for-each>
								</Country>
							</NameAddress>
							<OrderContact>
								<Contact>
									<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Contact/a:Name">
										<ContactName>
											<xsl:value-of select="."/>
										</ContactName>
									</xsl:for-each>
									<xsl:for-each select="a:Order/a:Delivery/a:DeliverTo/a:Contact/a:Department">
										<ContactDescription>
											<xsl:value-of select="."/>
										</ContactDescription>
									</xsl:for-each>
								</Contact>
							</OrderContact>
						</Party>
					</ShipToParty>
					<BillToParty>
						<Party>
							<PartyID>
								<Identifier>
									<Agency>
										<AgencyCoded>Other</AgencyCoded>
									</Agency>
									<xsl:for-each select="a:Order/a:InvoiceTo/a:Party">
										<Ident>
											<xsl:value-of select="."/>
										</Ident>
									</xsl:for-each>
								</Identifier>
							</PartyID>
							<NameAddress>
								<xsl:for-each select="a:Order/a:InvoiceTo/a:Party">
									<Name1>
										<xsl:value-of select="."/>
									</Name1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:InvoiceTo/a:Address/a:AddressLine">
									<Street>
										<xsl:value-of select="."/>
									</Street>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:InvoiceTo/a:Address/a:Street">
									<StreetSupplement1>
										<xsl:value-of select="."/>
									</StreetSupplement1>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:InvoiceTo/a:Address/a:PostCode">
									<PostalCode>
										<xsl:value-of select="."/>
									</PostalCode>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:InvoiceTo/a:Address/a:City">
									<City>
										<xsl:value-of select="."/>
									</City>
								</xsl:for-each>
								<xsl:for-each select="a:Order/a:InvoiceTo/a:Address/a:State">
									<County>
										<xsl:value-of select="."/>
									</County>
								</xsl:for-each>
								<Country>
									<CountryCoded>Other</CountryCoded>
									<xsl:for-each select="a:Order/a:InvoiceTo/a:Address/a:Country">
										<CountryCodedOther>
											<xsl:value-of select="."/>
										</CountryCodedOther>
									</xsl:for-each>
								</Country>
							</NameAddress>
							<OrderContact>
								<Contact>
									<xsl:for-each select="a:Order/a:InvoiceTo/a:Contact/a:Name">
										<ContactName>
											<xsl:value-of select="."/>
										</ContactName>
									</xsl:for-each>
									<xsl:for-each select="a:Order/a:InvoiceTo/a:Contact/a:Department">
										<ContactDescription>
											<xsl:value-of select="."/>
										</ContactDescription>
									</xsl:for-each>
								</Contact>
							</OrderContact>
						</Party>
					</BillToParty>
				</OrderParty>
				<ListOfTransport>
					<Transport>
						<TransportID>0</TransportID>
						<xsl:for-each select="a:Order/a:Delivery/a:DeliveryInformation">
							<TransportNote>
								<xsl:value-of select="."/>
							</TransportNote>
						</xsl:for-each>
					</Transport>
				</ListOfTransport>
				<OrderPaymentInstructions>
					<PaymentInstructions>
						<PaymentTerms>
							<PaymentTerm>
								<PaymentTermCoded>Other</PaymentTermCoded>
							</PaymentTerm>
							<Discounts>
								<xsl:for-each select="a:Order/a:PercentDiscount/a:Percentage">
									<DiscountPercent>
										<xsl:value-of select="."/>
									</DiscountPercent>
								</xsl:for-each>
								<DiscountAmount>
									<MonetaryValue>
										<xsl:for-each select="a:Order/a:AmountDiscount/a:Amount">
											<MonetaryAmount>
												<xsl:value-of select="."/>
											</MonetaryAmount>
										</xsl:for-each>
									</MonetaryValue>
								</DiscountAmount>
							</Discounts>
						</PaymentTerms>
						<PaymentMethod>
							<PaymentMeanCoded>Other</PaymentMeanCoded>
						</PaymentMethod>
					</PaymentInstructions>
				</OrderPaymentInstructions>
				<xsl:for-each select="a:Order/a:SpecialInstructions">
					<OrderHeaderNote>
						<xsl:value-of select="."/>
					</OrderHeaderNote>
				</xsl:for-each>
			</OrderHeader>
			<xsl:for-each select="a:Order/a:OrderLine">
				<OrderDetail>
					<ListOfItemDetail>
						<ItemDetail>
							<BaseItemDetail>
								<LineItemNum>
									<xsl:for-each select="a:LineNumber">
										<BuyerLineItemNum>
											<xsl:value-of select="."/>
										</BuyerLineItemNum>
									</xsl:for-each>
								</LineItemNum>
								<LineItemType>
									<LineItemTypeCoded>Other</LineItemTypeCoded>
								</LineItemType>
								<ItemIdentifiers>
									<PartNumbers>
										<SellerPartNumber>
											<PartNum>
												<xsl:for-each select="a:Product/a:SuppliersProductCode">
													<PartID>
														<xsl:value-of select="."/>
													</PartID>
												</xsl:for-each>
											</PartNum>
										</SellerPartNumber>
										<BuyerPartNumber>
											<PartNum>
												<xsl:for-each select="a:Product/a:BuyersProductCode">
													<PartID>
														<xsl:value-of select="."/>
													</PartID>
												</xsl:for-each>
											</PartNum>
										</BuyerPartNumber>
									</PartNumbers>
									<xsl:for-each select="a:Product/a:Description">
										<ItemDescription>
											<xsl:value-of select="."/>
										</ItemDescription>
									</xsl:for-each>
								</ItemIdentifiers>
								<TotalQuantity>
									<Quantity>
										<xsl:for-each select="a:Quantity/a:Amount">
											<QuantityValue>
												<xsl:value-of select="."/>
											</QuantityValue>
										</xsl:for-each>
										<UnitOfMeasurement>
											<UOMCoded>Other</UOMCoded>
											<UOMCodedOther>
												<xsl:value-of select="a:Quantity/@UOMCode"/>
											</UOMCodedOther>
										</UnitOfMeasurement>
									</Quantity>
								</TotalQuantity>
								<ListOfItemReferences>
									<ListOfReferenceCoded>
										<ReferenceCoded>
											<ReferenceTypeCoded>Other</ReferenceTypeCoded>
										</ReferenceCoded>
									</ListOfReferenceCoded>
								</ListOfItemReferences>
							</BaseItemDetail>
							<PricingDetail>
								<ListOfPrice>
									<Price>
										<UnitPrice>
											<xsl:for-each select="a:Price/a:UnitPrice">
												<UnitPriceValue>
													<xsl:value-of select="."/>
												</UnitPriceValue>
											</xsl:for-each>
											<Currency>
												<CurrencyCoded>
													<xsl:value-of select="../a:OrderHead/a:OrderCurrency/a:Currency/@Code"/>
												</CurrencyCoded>
											</Currency>
											<UnitOfMeasurement>
												<UOMCoded>Other</UOMCoded>
												<UOMCodedOther>
													<xsl:value-of select="a:Price/@UOMCode"/>
												</UOMCodedOther>
											</UnitOfMeasurement>
										</UnitPrice>
									</Price>
								</ListOfPrice>
								<Tax>
									<TaxFunctionQualifierCoded>Other</TaxFunctionQualifierCoded>
									<TaxCategoryCoded>StandardRate</TaxCategoryCoded>
									<TaxTypeCoded>ValueAddedTax</TaxTypeCoded>
									<xsl:for-each select="a:LineTotal">
										<TaxableAmount>
											<xsl:value-of select="."/>
										</TaxableAmount>
									</xsl:for-each>
									<xsl:for-each select="a:LineTotal">
										<TaxAmount>
											<xsl:value-of select="."/>fix me multiply me
										</TaxAmount>
									</xsl:for-each>
								</Tax>
								<TotalValue>
									<MonetaryValue>
										<xsl:for-each select="a:LineTotal">
											<MonetaryAmount>
												<xsl:value-of select="."/>
											</MonetaryAmount>
										</xsl:for-each>
										<Currency>
											<CurrencyCoded>
												<xsl:value-of select="../a:OrderHead/a:OrderCurrency/a:Currency/@Code"/>
											</CurrencyCoded>
										</Currency>
									</MonetaryValue>
								</TotalValue>
							</PricingDetail>
							<DeliveryDetail>
								<ShipToLocation>
									<Location>
										<LocationIdentifier>
											<LocID>
												<Identifier>
													<Agency>
														<AgencyCoded>Other</AgencyCoded>
													</Agency>
													<xsl:for-each select="a:Delivery/a:DeliverTo/a:DeliverToReferences/a:BuyersCodeForLocation">
														<Ident>
															<xsl:value-of select="."/>
														</Ident>
													</xsl:for-each>
												</Identifier>
											</LocID>
											<xsl:for-each select="a:Delivery/a:DeliverTo/a:Location">
												<LocationDescription>
													<xsl:value-of select="."/>
												</LocationDescription>
											</xsl:for-each>
										</LocationIdentifier>
										<NameAddress>
											<xsl:for-each select="a:Delivery/a:DeliverTo/a:Party">
												<Name1>
													<xsl:value-of select="."/>
												</Name1>
											</xsl:for-each>
											<Identifier>
												<Agency>
													<AgencyCoded>Other</AgencyCoded>
												</Agency>
											</Identifier>
											<xsl:for-each select="a:Delivery/a:DeliverTo/a:Address/a:AddressLine">
												<Street>
													<xsl:value-of select="."/>
												</Street>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverTo/a:Address/a:Street">
												<StreetSupplement1>
													<xsl:value-of select="."/>
												</StreetSupplement1>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverTo/a:Address/a:PostCode">
												<PostalCode>
													<xsl:value-of select="."/>
												</PostalCode>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverTo/a:Address/a:City">
												<City>
													<xsl:value-of select="."/>
												</City>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverTo/a:Address/a:State">
												<County>
													<xsl:value-of select="."/>
												</County>
											</xsl:for-each>
											<Country>
												<CountryCoded>Other</CountryCoded>
												<xsl:for-each select="a:Delivery/a:DeliverTo/a:Address/a:Country">
													<CountryCodedOther>
														<xsl:value-of select="."/>
													</CountryCodedOther>
												</xsl:for-each>
											</Country>
										</NameAddress>
									</Location>
								</ShipToLocation>
								<ShipFromLocation>
									<Location>
										<LocationIdentifier>
											<LocID>
												<Identifier>
													<Agency>
														<AgencyCoded>Other</AgencyCoded>
													</Agency>
													<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Party">
														<Ident>
															<xsl:value-of select="."/>
														</Ident>
													</xsl:for-each>
												</Identifier>
											</LocID>
											<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Location">
												<LocationDescription>
													<xsl:value-of select="."/>
												</LocationDescription>
											</xsl:for-each>
										</LocationIdentifier>
										<NameAddress>
											<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Party">
												<Name1>
													<xsl:value-of select="."/>
												</Name1>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Address/a:AddressLine">
												<Street>
													<xsl:value-of select="."/>
												</Street>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Address/a:Street">
												<StreetSupplement1>
													<xsl:value-of select="."/>
												</StreetSupplement1>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Address/a:PostCode">
												<PostalCode>
													<xsl:value-of select="."/>
												</PostalCode>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Address/a:City">
												<City>
													<xsl:value-of select="."/>
												</City>
											</xsl:for-each>
											<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Address/a:State">
												<County>
													<xsl:value-of select="."/>
												</County>
											</xsl:for-each>
											<Country>
												<CountryCoded>Other</CountryCoded>
												<xsl:for-each select="a:Delivery/a:DeliverFrom/a:Address/a:Country">
													<CountryCodedOther>
														<xsl:value-of select="."/>
													</CountryCodedOther>
												</xsl:for-each>
											</Country>
										</NameAddress>
									</Location>
								</ShipFromLocation>
							</DeliveryDetail>
							<xsl:for-each select="a:OrderLineInformation">
								<LineItemNote>
									<xsl:value-of select="."/>
								</LineItemNote>
							</xsl:for-each>
						</ItemDetail>
					</ListOfItemDetail>
				</OrderDetail>
			</xsl:for-each>
			<OrderSummary>
				<NumberOfLines>fix me do count functoid</NumberOfLines>
				<TotalTax>
					<MonetaryValue>
						<xsl:for-each select="a:Order/a:OrderTotal/a:TaxTotal">
							<MonetaryAmount>
								<xsl:value-of select="."/>
							</MonetaryAmount>
						</xsl:for-each>
						<Currency>
							<CurrencyCoded>
								<xsl:value-of select="a:Order/a:OrderHead/a:OrderCurrency/a:Currency/@Code"/>
							</CurrencyCoded>
						</Currency>
					</MonetaryValue>
				</TotalTax>
				<TotalAmount>
					<MonetaryValue>
						<xsl:for-each select="a:Order/a:OrderTotal/a:GoodsValue">
							<MonetaryAmount>
								<xsl:value-of select="."/>
							</MonetaryAmount>
						</xsl:for-each>
						<Currency>
							<xsl:for-each select="a:Order/a:OrderHead/a:OrderCurrency">
								<CurrencyCoded>
									<xsl:value-of select="."/>
								</CurrencyCoded>
							</xsl:for-each>
						</Currency>
					</MonetaryValue>
				</TotalAmount>
				<xsl:for-each select="a:Order/a:Narrative">
					<SummaryNote>
						<xsl:value-of select="."/>
					</SummaryNote>
				</xsl:for-each>
			</OrderSummary>
		</Order>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c)1998-2003 Copyright Sonic Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="no" name="BASDA PO to xCBL PO test" userelativepaths="yes" externalpreview="no" url="..\Samples\PO\BASDA\eBUILD&#x2D;orderSample.xml" htmlbaseurl="" outputurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="yes" name="BASDA PO to xCBL PO test 2" userelativepaths="yes" externalpreview="no" url="..\..\..\BizTalkActivity\Samples\POs\BASDA\test.xml" htmlbaseurl="" outputurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo srcSchemaPath="..\Schemas\BASDA\order&#x2D;v3.xsd" srcSchemaRoot="a:Order" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="..\Schemas\xCBL\xCBL.Order.Schema.xsd" destSchemaRoot="Order" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
-->