<?xml version="1.0"?>
<!-- Generated using BizTalk Mapper on Mon, Apr 28 2003 08:40:36 PM -->
<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->
<mapsource Name="BizTalk Map" BizTalkServerMapperTool_Version="1.5" Version="1.5" XRange="100" YRange="420"><SrcTree><Schema name="CIDXPOSCHEMA.xml" b:BizTalkServerEditorTool_Version="1.5" b:root_reference="PO" b:standard="XML" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:b="urn:schemas-microsoft-com:BizTalkServer">
			<b:SelectionFields/>
			<ElementType name="POShipTo" content="empty">
				<b:RecordInfo/>
				<AttributeType name="street4" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street3" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street2" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street1" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="stateProvince" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="postalCode" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="entityidentifier" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="country" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="city" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="attn" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<attribute type="entityidentifier" default="ST"/>
				<attribute type="city"/>
				<attribute type="attn"/>
				<attribute type="country"/>
				<attribute type="stateProvince"/>
				<attribute type="street4"/>
				<attribute type="street3"/>
				<attribute type="street2"/>
				<attribute type="street1"/>
				<attribute type="postalCode"/>
			</ElementType><ElementType name="POLines" content="eltOnly">
				<b:RecordInfo/>
				<AttributeType name="startAt" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="count" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<attribute type="startAt"/>
				<attribute type="count"/>
				<element type="Item" maxOccurs="*" minOccurs="1"/>
			</ElementType><ElementType name="POHeader" content="empty">
				<b:RecordInfo/>
				<AttributeType name="poNumber" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="poDate" dt:type="dateTime.tz">
					<b:FieldInfo/></AttributeType>
				<attribute type="poNumber"/>
				<attribute type="poDate"/>
			</ElementType><ElementType name="POBillTo" content="empty">
				<b:RecordInfo/>
				<AttributeType name="street4" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street3" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street2" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street1" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="stateProvince" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="postalCode" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="entityidentifier" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="country" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="city" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="attn" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<attribute type="entityidentifier" default="BT"/>
				<attribute type="city"/>
				<attribute type="attn"/>
				<attribute type="country"/>
				<attribute type="stateProvince"/>
				<attribute type="street4"/>
				<attribute type="street3"/>
				<attribute type="street2"/>
				<attribute type="street1"/>
				<attribute type="postalCode"/>
			</ElementType><ElementType name="PO" content="eltOnly">
				<b:RecordInfo/>
				<element type="POHeader"/>
				<element type="Contact"/>
				<element type="POShipTo"/>
				<element type="POBillTo"/>
				<element type="POLines"/>
			</ElementType><ElementType name="Item" content="empty">
				<b:RecordInfo/>
				<AttributeType name="uom" dt:type="enumeration" dt:values="PC UNIT">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="unitPrice" dt:type="float">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="qty" dt:type="number">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="partno" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="line" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<attribute type="line"/>
				<attribute type="partno"/>
				<attribute type="qty"/>
				<attribute type="uom"/>
				<attribute type="unitPrice"/>
			</ElementType><ElementType name="Contact" content="empty">
				<b:RecordInfo/>
				<AttributeType name="contactPhone" dt:type="number">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="contactName" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="contactFunctionCode" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="contactEmail" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<attribute type="contactFunctionCode" default="BD"/>
				<attribute type="contactName"/>
				<attribute type="contactEmail"/>
				<attribute type="contactPhone"/>
			</ElementType></Schema>
	</SrcTree><TrgTree><Schema name="PurchaseOrder.biz" b:BizTalkServerEditorTool_Version="1.5" b:root_reference="PurchaseOrder" b:standard="XML" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:b="urn:schemas-microsoft-com:BizTalkServer">
			<b:SelectionFields/>
			<ElementType name="PurchaseOrder" content="eltOnly">
				<b:RecordInfo/>
				<element type="Header"/>
				<element type="DeliverTo"/>
				<element type="InvoiceTo"/>
				<element type="Items"/>
				<element type="Footer"/>
			</ElementType><ElementType name="Items" content="eltOnly">
				<b:RecordInfo/>
				<AttributeType name="itemCount" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<attribute type="itemCount"/>
				<element type="Item" maxOccurs="*" minOccurs="1"/>
			</ElementType><ElementType name="Item" content="empty">
				<b:RecordInfo/>
				<AttributeType name="yourPartNumber" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="unitPrice" dt:type="number">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="unitOfMeasure" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="salesValue" dt:type="number">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="quantity" dt:type="number">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="partNumber" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="partDescription" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="itemNumber" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<attribute type="itemNumber"/>
				<attribute type="yourPartNumber"/>
				<attribute type="partNumber"/>
				<attribute type="partDescription"/>
				<attribute type="quantity"/>
				<attribute type="unitOfMeasure"/>
				<attribute type="unitPrice"/>
				<attribute type="salesValue"/>
			</ElementType><ElementType name="InvoiceTo" content="eltOnly">
				<b:RecordInfo/>
				<element type="Address"/>
				<element type="Contact"/>
			</ElementType><ElementType name="Header" content="eltOnly">
				<b:RecordInfo/>
				<AttributeType name="yourAccountCode" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="ourAccountCode" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="orderNum" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="orderDate" dt:type="date">
					<b:FieldInfo/></AttributeType>
				<attribute type="orderNum"/>
				<attribute type="orderDate"/>
				<attribute type="ourAccountCode"/>
				<attribute type="yourAccountCode"/>
				<element type="Contact"/>
			</ElementType><ElementType name="Footer" content="empty">
				<b:RecordInfo/>
				<AttributeType name="totalValue" dt:type="number">
					<b:FieldInfo/></AttributeType>
				<attribute type="totalValue"/>
			</ElementType><ElementType name="DeliverTo" content="eltOnly">
				<b:RecordInfo/>
					<element type="Address"/>				
					<element type="Contact"/>
				
			</ElementType><ElementType name="Contact" content="empty">
				<b:RecordInfo/>
				<AttributeType name="telephone" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="e-mail" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="contactName" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="companyName" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<attribute type="contactName"/>
				<attribute type="companyName"/>
				<attribute type="e-mail"/>
				<attribute type="telephone"/>
			</ElementType><ElementType name="Address" content="empty">
				<b:RecordInfo/>
				<AttributeType name="street4" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street3" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street2" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="street1" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="stateProvince" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="postalCode" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="country" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="city" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<attribute type="city"/>
				<attribute type="country"/>
				<attribute type="stateProvince"/>
				<attribute type="street1"/>
				<attribute type="street2"/>
				<attribute type="street3"/>
				<attribute type="street4"/>
				<attribute type="postalCode"/>
			</ElementType></Schema>
	</TrgTree><TreeValues/><Pages><Page Name="Page 1"><Links><Link LinkID="1" LinkFrom="/PO/POHeader/@poDate" LinkTo="/PurchaseOrder/Header/@orderDate"/><Link LinkID="2" LinkFrom="/PO/POHeader/@poNumber" LinkTo="/PurchaseOrder/Header/@orderNum"/><Link LinkID="3" LinkFrom="/PO/Contact" LinkTo="/PurchaseOrder/Header/Contact"/><Link LinkID="4" LinkFrom="/PO/Contact/@contactName" LinkTo="/PurchaseOrder/Header/Contact/@contactName"/><Link LinkID="5" LinkFrom="/PO/Contact/@contactPhone" LinkTo="/PurchaseOrder/Header/Contact/@telephone"/><Link LinkID="6" LinkFrom="/PO/Contact/@contactEmail" LinkTo="/PurchaseOrder/Header/Contact/@e-mail"/><Link LinkID="7" LinkFrom="/PO/POShipTo" LinkTo="/PurchaseOrder/DeliverTo"/><Link LinkID="8" LinkFrom="/PO/POShipTo/@city" LinkTo="/PurchaseOrder/DeliverTo/Address/@city"/><Link LinkID="9" LinkFrom="/PO/POShipTo/@country" LinkTo="/PurchaseOrder/DeliverTo/Address/@country"/><Link LinkID="10" LinkFrom="/PO/POShipTo/@stateProvince" LinkTo="/PurchaseOrder/DeliverTo/Address/@stateProvince"/><Link LinkID="11" LinkFrom="/PO/POShipTo/@street1" LinkTo="/PurchaseOrder/DeliverTo/Address/@street1"/><Link LinkID="12" LinkFrom="/PO/POShipTo/@street2" LinkTo="/PurchaseOrder/DeliverTo/Address/@street2"/><Link LinkID="13" LinkFrom="/PO/POShipTo/@street3" LinkTo="/PurchaseOrder/DeliverTo/Address/@street3"/><Link LinkID="14" LinkFrom="/PO/POShipTo/@street4" LinkTo="/PurchaseOrder/DeliverTo/Address/@street4"/><Link LinkID="15" LinkFrom="/PO/POShipTo/@postalCode" LinkTo="/PurchaseOrder/DeliverTo/Address/@postalCode"/><Link LinkID="16" LinkFrom="/PO/POBillTo" LinkTo="/PurchaseOrder/InvoiceTo"/><Link LinkID="17" LinkFrom="/PO/POBillTo/@city" LinkTo="/PurchaseOrder/InvoiceTo/Address/@city"/><Link LinkID="18" LinkFrom="/PO/POBillTo/@country" LinkTo="/PurchaseOrder/InvoiceTo/Address/@country"/><Link LinkID="19" LinkFrom="/PO/POBillTo/@stateProvince" LinkTo="/PurchaseOrder/InvoiceTo/Address/@stateProvince"/><Link LinkID="20" LinkFrom="/PO/POBillTo/@postalCode" LinkTo="/PurchaseOrder/InvoiceTo/Address/@postalCode"/><Link LinkID="21" LinkFrom="/PO/POBillTo/@street1" LinkTo="/PurchaseOrder/InvoiceTo/Address/@street1"/><Link LinkID="22" LinkFrom="/PO/POBillTo/@street2" LinkTo="/PurchaseOrder/InvoiceTo/Address/@street2"/><Link LinkID="23" LinkFrom="/PO/POBillTo/@street3" LinkTo="/PurchaseOrder/InvoiceTo/Address/@street3"/><Link LinkID="24" LinkFrom="/PO/POBillTo/@street4" LinkTo="/PurchaseOrder/InvoiceTo/Address/@street4"/><Link LinkID="25" LinkFrom="/PO/POLines/Item" LinkTo="/PurchaseOrder/Items/Item"/><Link LinkID="26" LinkFrom="/PO/POLines/Item/@qty" LinkTo="/PurchaseOrder/Items/Item/@quantity"/><Link LinkID="27" LinkFrom="/PO/POLines/Item/@partno" LinkTo="/PurchaseOrder/Items/Item/@partNumber"/><Link LinkID="28" LinkFrom="/PO/POLines/Item/@unitPrice" LinkTo="/PurchaseOrder/Items/Item/@unitPrice"/><Link LinkID="29" LinkFrom="/PO" LinkTo="/PurchaseOrder"/><Link LinkID="30" LinkFrom="/PO/POHeader" LinkTo="/PurchaseOrder/Header"/><Link LinkID="31" LinkFrom="/PO/Contact/@contactFunctionCode" LinkTo="/PurchaseOrder/Header/@ourAccountCode"/><Link LinkID="32" LinkFrom="/PO/Contact/@contactFunctionCode" LinkTo="/PurchaseOrder/Header/@yourAccountCode"/><Link LinkID="33" LinkFrom="/PO/POLines" LinkTo="/PurchaseOrder/Items"/><Link LinkID="34" LinkFrom="/PO/POLines/@count" LinkTo="/PurchaseOrder/Items/@itemCount"/><Link LinkID="35" LinkFrom="/PO/POLines/Item/@line" LinkTo="/PurchaseOrder/Items/Item/@itemNumber"/><Link LinkID="36" LinkFrom="/PO/POLines/Item/@partno" LinkTo="/PurchaseOrder/Items/Item/@yourPartNumber"/><Link LinkID="37" LinkFrom="/PO/POLines/Item/@uom" LinkTo="/PurchaseOrder/Items/Item/@unitOfMeasure"/></Links><Functoids/></Page></Pages><CompiledXSL><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="urn:var" xmlns:userVBScript="urn:userVBScript" xmlns:userJScript="urn:userJScript" exclude-result-prefixes="msxsl var userVBScript userJScript" version="1.0">
			<xsl:output method="xml" omit-xml-declaration="yes"/>
			<xsl:template match="/">
				<xsl:apply-templates select="PO"/>
			</xsl:template>
			<xsl:template match="PO">
				<PurchaseOrder>
					<Header>
						<xsl:if test="POHeader/@poNumber"><xsl:attribute name="orderNum"><xsl:value-of select="POHeader/@poNumber"/></xsl:attribute></xsl:if>
						<xsl:if test="POHeader/@poDate"><xsl:attribute name="orderDate"><xsl:value-of select="POHeader/@poDate"/></xsl:attribute></xsl:if>
						<xsl:if test="Contact/@contactFunctionCode"><xsl:attribute name="ourAccountCode"><xsl:value-of select="Contact/@contactFunctionCode"/></xsl:attribute></xsl:if>
						<xsl:if test="Contact/@contactFunctionCode"><xsl:attribute name="yourAccountCode"><xsl:value-of select="Contact/@contactFunctionCode"/></xsl:attribute></xsl:if>
						<Contact>
							<xsl:if test="Contact/@contactName"><xsl:attribute name="contactName"><xsl:value-of select="Contact/@contactName"/></xsl:attribute></xsl:if>
							<xsl:if test="Contact/@contactEmail"><xsl:attribute name="e-mail"><xsl:value-of select="Contact/@contactEmail"/></xsl:attribute></xsl:if>
							<xsl:if test="Contact/@contactPhone"><xsl:attribute name="telephone"><xsl:value-of select="Contact/@contactPhone"/></xsl:attribute></xsl:if>
							<xsl:value-of select="Contact/text()"/>
						</Contact>
						<xsl:value-of select="POHeader/text()"/>
					</Header>
					<DeliverTo>
						<Address>
							<xsl:if test="POShipTo/@city"><xsl:attribute name="city"><xsl:value-of select="POShipTo/@city"/></xsl:attribute></xsl:if>
							<xsl:if test="POShipTo/@country"><xsl:attribute name="country"><xsl:value-of select="POShipTo/@country"/></xsl:attribute></xsl:if>
							<xsl:if test="POShipTo/@stateProvince"><xsl:attribute name="stateProvince"><xsl:value-of select="POShipTo/@stateProvince"/></xsl:attribute></xsl:if>
							<xsl:if test="POShipTo/@street1"><xsl:attribute name="street1"><xsl:value-of select="POShipTo/@street1"/></xsl:attribute></xsl:if>
							<xsl:if test="POShipTo/@street2"><xsl:attribute name="street2"><xsl:value-of select="POShipTo/@street2"/></xsl:attribute></xsl:if>
							<xsl:if test="POShipTo/@street3"><xsl:attribute name="street3"><xsl:value-of select="POShipTo/@street3"/></xsl:attribute></xsl:if>
							<xsl:if test="POShipTo/@street4"><xsl:attribute name="street4"><xsl:value-of select="POShipTo/@street4"/></xsl:attribute></xsl:if>
							<xsl:if test="POShipTo/@postalCode"><xsl:attribute name="postalCode"><xsl:value-of select="POShipTo/@postalCode"/></xsl:attribute></xsl:if>
						</Address>
						<xsl:value-of select="POShipTo/text()"/>
					</DeliverTo>
					<InvoiceTo>
						<Address>
							<xsl:if test="POBillTo/@city"><xsl:attribute name="city"><xsl:value-of select="POBillTo/@city"/></xsl:attribute></xsl:if>
							<xsl:if test="POBillTo/@country"><xsl:attribute name="country"><xsl:value-of select="POBillTo/@country"/></xsl:attribute></xsl:if>
							<xsl:if test="POBillTo/@stateProvince"><xsl:attribute name="stateProvince"><xsl:value-of select="POBillTo/@stateProvince"/></xsl:attribute></xsl:if>
							<xsl:if test="POBillTo/@street1"><xsl:attribute name="street1"><xsl:value-of select="POBillTo/@street1"/></xsl:attribute></xsl:if>
							<xsl:if test="POBillTo/@street2"><xsl:attribute name="street2"><xsl:value-of select="POBillTo/@street2"/></xsl:attribute></xsl:if>
							<xsl:if test="POBillTo/@street3"><xsl:attribute name="street3"><xsl:value-of select="POBillTo/@street3"/></xsl:attribute></xsl:if>
							<xsl:if test="POBillTo/@street4"><xsl:attribute name="street4"><xsl:value-of select="POBillTo/@street4"/></xsl:attribute></xsl:if>
							<xsl:if test="POBillTo/@postalCode"><xsl:attribute name="postalCode"><xsl:value-of select="POBillTo/@postalCode"/></xsl:attribute></xsl:if>
						</Address>
						<xsl:value-of select="POBillTo/text()"/>
					</InvoiceTo>
					<Items>
						<xsl:if test="POLines/@count"><xsl:attribute name="itemCount"><xsl:value-of select="POLines/@count"/></xsl:attribute></xsl:if>
						<xsl:for-each select="POLines/Item">
							<Item>
								<xsl:if test="@line"><xsl:attribute name="itemNumber"><xsl:value-of select="@line"/></xsl:attribute></xsl:if>
								<xsl:if test="@partno"><xsl:attribute name="yourPartNumber"><xsl:value-of select="@partno"/></xsl:attribute></xsl:if>
								<xsl:if test="@partno"><xsl:attribute name="partNumber"><xsl:value-of select="@partno"/></xsl:attribute></xsl:if>
								<xsl:if test="@qty"><xsl:attribute name="quantity"><xsl:value-of select="@qty"/></xsl:attribute></xsl:if>
								<xsl:if test="@uom"><xsl:attribute name="unitOfMeasure"><xsl:value-of select="@uom"/></xsl:attribute></xsl:if>
								<xsl:if test="@unitPrice"><xsl:attribute name="unitPrice"><xsl:value-of select="@unitPrice"/></xsl:attribute></xsl:if>
								<xsl:value-of select="./text()"/>
							</Item>
						</xsl:for-each>
						<xsl:value-of select="POLines/text()"/>
					</Items>
					<xsl:value-of select="./text()"/>
				</PurchaseOrder>
			</xsl:template>
		</xsl:stylesheet>
	</CompiledXSL></mapsource>

