<?xml version="1.0"?>
<!-- Generated using BizTalk Mapper on Tue, Nov 18 2003 08:53:19 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="PO1.xml" b:BizTalkServerEditorTool_Version="1.5" b:root_reference="PO1" 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="ShipTo" content="empty">
				<b:RecordInfo/>
				<AttributeType name="shipToZip" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="shipToStreet" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="shipToCity" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="poNo" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="custNo" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<attribute type="poNo"/>
				<attribute type="custNo"/>
				<attribute type="shipToCity"/>
				<attribute type="shipToStreet"/>
				<attribute type="shipToZip"/>
			</ElementType><ElementType name="PO1" content="eltOnly">
				<b:RecordInfo/>
				<element type="ShipTo"/>
				<element type="Customer"/>
			</ElementType><ElementType name="Customer" content="empty">
				<b:RecordInfo/>
				<AttributeType name="custZip" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="custStreet" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="custNo" dt:type="int">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="custName" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="custCity" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<attribute type="custNo"/>
				<attribute type="custName"/>
				<attribute type="custCity"/>
				<attribute type="custStreet"/>
				<attribute type="custZip"/>
			</ElementType></Schema>
	</SrcTree><TrgTree><Schema name="PO2.biz" b:BizTalkServerEditorTool_Version="1.5" b:root_reference="PO2" 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="PO2" content="eltOnly">
				<b:RecordInfo/>
				<element type="DeliverTo"/>
				<element type="BillTo"/>
			</ElementType><ElementType name="DeliverTo" content="eltOnly">
				<b:RecordInfo/>
				<element type="Address"/>
			</ElementType><ElementType name="BillTo" content="eltOnly">
				<b:RecordInfo/>
				<element type="Address"/>
			</ElementType><ElementType name="Address" content="empty">
				<b:RecordInfo/>
				<AttributeType name="Zip" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="Street" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<AttributeType name="City" dt:type="string">
					<b:FieldInfo/></AttributeType>
				<attribute type="Street"/>
				<attribute type="City"/>
				<attribute type="Zip"/>
			</ElementType></Schema>
	</TrgTree><TreeValues/><Pages><Page Name="Page 1"><Links><Link LinkID="1" LinkFrom="/PO1/ShipTo/@shipToStreet" LinkTo="/PO2/DeliverTo/Address/@Street"/><Link LinkID="2" LinkFrom="/PO1/ShipTo/@shipToCity" LinkTo="/PO2/DeliverTo/Address/@City"/><Link LinkID="3" LinkFrom="/PO1/ShipTo/@shipToZip" LinkTo="/PO2/DeliverTo/Address/@Zip"/><Link LinkID="4" LinkFrom="/PO1/Customer/@custStreet" LinkTo="/PO2/BillTo/Address/@Street"/><Link LinkID="5" LinkFrom="/PO1/Customer/@custCity" LinkTo="/PO2/BillTo/Address/@City"/><Link LinkID="6" LinkFrom="/PO1/Customer/@custZip" LinkTo="/PO2/BillTo/Address/@Zip"/><Link LinkID="7" LinkFrom="/PO1" LinkTo="/PO2"/><Link LinkID="8" LinkFrom="/PO1/Customer" LinkTo="/PO2/BillTo"/><Link LinkID="9" LinkFrom="/PO1/ShipTo" LinkTo="/PO2/DeliverTo"/></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="PO1"/>
			</xsl:template>
			<xsl:template match="PO1">
				<PO2>
					<DeliverTo>
						<Address>
							<xsl:if test="ShipTo/@shipToStreet"><xsl:attribute name="Street"><xsl:value-of select="ShipTo/@shipToStreet"/></xsl:attribute></xsl:if>
							<xsl:if test="ShipTo/@shipToCity"><xsl:attribute name="City"><xsl:value-of select="ShipTo/@shipToCity"/></xsl:attribute></xsl:if>
							<xsl:if test="ShipTo/@shipToZip"><xsl:attribute name="Zip"><xsl:value-of select="ShipTo/@shipToZip"/></xsl:attribute></xsl:if>
						</Address>
						<xsl:value-of select="ShipTo/text()"/>
					</DeliverTo>
					<BillTo>
						<Address>
							<xsl:if test="Customer/@custStreet"><xsl:attribute name="Street"><xsl:value-of select="Customer/@custStreet"/></xsl:attribute></xsl:if>
							<xsl:if test="Customer/@custCity"><xsl:attribute name="City"><xsl:value-of select="Customer/@custCity"/></xsl:attribute></xsl:if>
							<xsl:if test="Customer/@custZip"><xsl:attribute name="Zip"><xsl:value-of select="Customer/@custZip"/></xsl:attribute></xsl:if>
						</Address>
						<xsl:value-of select="Customer/text()"/>
					</BillTo>
					<xsl:value-of select="./text()"/>
				</PO2>
			</xsl:template>
		</xsl:stylesheet>
	</CompiledXSL></mapsource>

