<?xml version='1.0' encoding='UTF-16' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.siebel.com/xml/OE%20EAI%20SP%20Loss%20Notification%20-%20Inbound" exclude-result-prefixes="a">
	<xsl:output method="xml" encoding="UTF-16"/>
	<xsl:template match="/">
		<a:SiebelMessage MessageId="SPLossNotification" IntObjectFormat="Siebel Hierarchical" MessageType="Integration Object">
			<a:ListOfOeEaiSpLossNotification-Inbound>
				<a:CutAssetMgmt-ServicePoint>
					<a:AssetNumber>
						<xsl:value-of select="concat(OEXML/Transaction/TransferNotification/ChangeRequest/ChangeData/NMIStandingData/NMI,OEXML/Transaction/TransferNotification/ChangeRequest/ChangeData/NMIStandingData/NMI/@checksum)"/>
					</a:AssetNumber>
					<a:OELastTransferDate>
						<xsl:value-of select="OEXML/Transaction/TransferNotification/ChangeRequest/ChangeStatusCode/StatusChangeDate"/>
					</a:OELastTransferDate>
					<a:OETransferLossReasonCode>
						<xsl:value-of select="OEXML/Transaction/TransferNotification/ChangeRequest/ChangeData/ChangeReasonCode"/>
					</a:OETransferLossReasonCode>
					<a:OETransferStatus>
						<xsl:value-of select="OEXML/Transaction/TransferNotification/ChangeRequest/ChangeStatusCode/Status"/>
					</a:OETransferStatus>
					<a:ListOfOeProvisioningTask-Integration>
						<a:OeProvisioningTask-Integration>
							<a:Description>
								<xsl:value-of select="OEXML/Transaction/TransferNotification/ChangeRequest/ChangeData/ChangeReasonCode"/>
							</a:Description>
							<a:OEServiceStatus>Successful</a:OEServiceStatus>
							<xsl:choose>
								<xsl:when test="OEXML/Transaction/TransferNotification/ChangeRequest/ChangeStatusCode/Status= 'Completed'">
									<xsl:value-of select="'Successful'"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="'Blah'"/>
								</xsl:otherwise>
							</xsl:choose>
						</a:OeProvisioningTask-Integration>
					</a:ListOfOeProvisioningTask-Integration>
				</a:CutAssetMgmt-ServicePoint>
			</a:ListOfOeEaiSpLossNotification-Inbound>
		</a:SiebelMessage>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="SC22 Response" userelativepaths="yes" externalpreview="no" url="XMLTestBin_1&#x2D;N43M.xml" htmlbaseurl="" outputurl="" processortype="xalan" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="ListOfOeEaiSpLossNotification&#x2D;Inbound.xsd" destSchemaRoot="SiebelMessage" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="XMLTestBin_1&#x2D;N43M.xsd" srcSchemaRoot="OEXML" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="a:SiebelMessage/a:ListOfOeEaiSpLossNotification&#x2D;Inbound/a:CutAssetMgmt&#x2D;ServicePoint/a:AssetNumber/xsl:value&#x2D;of" x="204" y="418"/><block path="a:SiebelMessage/a:ListOfOeEaiSpLossNotification&#x2D;Inbound/a:CutAssetMgmt&#x2D;ServicePoint/a:ListOfOeProvisioningTask&#x2D;Integration/a:OeProvisioningTask&#x2D;Integration/xsl:choose" x="85" y="378"/><block path="a:SiebelMessage/a:ListOfOeEaiSpLossNotification&#x2D;Inbound/a:CutAssetMgmt&#x2D;ServicePoint/a:ListOfOeProvisioningTask&#x2D;Integration/a:OeProvisioningTask&#x2D;Integration/xsl:choose/=[0]" x="282" y="390"/><block path="a:SiebelMessage/a:ListOfOeEaiSpLossNotification&#x2D;Inbound/a:CutAssetMgmt&#x2D;ServicePoint/a:ListOfOeProvisioningTask&#x2D;Integration/a:OeProvisioningTask&#x2D;Integration/xsl:choose/xsl:when/xsl:value&#x2D;of" x="368" y="78"/><block path="a:SiebelMessage/a:ListOfOeEaiSpLossNotification&#x2D;Inbound/a:CutAssetMgmt&#x2D;ServicePoint/a:ListOfOeProvisioningTask&#x2D;Integration/a:OeProvisioningTask&#x2D;Integration/xsl:choose/xsl:otherwise/xsl:value&#x2D;of" x="208" y="78"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->