Example of an XSLT File Created For a New Entity

This topic lists an example of an XSLT file created for an entity that has been imported into Siebel Tools for use in the Integration. It also lists the source and target XML files associated with the new XSLT file.

In this example, the CreateLoanAccountResponseEBM entity is imported into Siebel Tools, as described in Step 6 in Importing the EBM Files to Siebel Tools; this provides the source XML file. The EAI XSD Wizard then generates the CreateLoanAccountResponseEBM integration object (the target XML file), as described in Step 8 in Importing the EBM Files to Siebel Tools. In the XSLT file that must be created for the new entity, the value of the Name field in the source XML file is mapped to the Full Name field in the target XML file.

XSL Transformation File

The following shows the XSLT file created for the new entity to be used in the Integration, CreateLoanAccountResponseEBM.

Note: The file in this topic is listed for example purposes only; it is not an actual representation of either an AIA EBM or a Siebel CRM XSD file.
		<?xml version="1.0" encoding="ISO-8859-1"?>
		<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
		<xsl:output method="xml"/>

		<xsl:template match="/">
 			<xsl:apply-templates select="CreateLoanAccountResponseEBM"/>
		</xsl:template>

		<xsl:template match="CreateLoanAccountResponseEBM">
		  <xsl:apply-templates select="EBMHeader"/>
		</xsl:template>

		<xsl:template match="EBMHeader">
		  <xsl:apply-templates select="Sender"/>
		</xsl:template>

		<xsl:template match="Sender">
		<SiebelMessage>
	     <Account>
	     <AccountId>
	     <xsl:value-of select="Id"/>
	     </AccountId
	     <FullName>
	     <xsl:value-of select="Name"/> <!-- this step maps the value in the Name field Aaron)in the source XML file to the FullName field in the Target			xml file-->
	     </FullName>
	     </Account>
     </SiebelMessage

		</xsl:template>
		</xsl:stylesheet>

The following shows an example of the CreateLoanAccountResponseEBM XML file imported into Siebel Tools.

		<?xml version="1.0" encoding="UTF-8" ?>
		<CreateLoanAccountResponseEBM languageCode="" versionID="">
     	<EBMHeader languageCode="">
        	<Sender>
            <SenderMessageID schemeVersionID="" schemeID="" schemeAgencyID="">FC_88-2UU0</SenderMessageID>
               <ID schemeVersionID="" schemeID="" schemeAgencyID="">FLEXCUBE</ID>
            <Name>Aaron</Name> <!-- This is a new field. It is mapped to the Full Name Field in the Target.xml -->
            </Sender>
        <FaultNotification>
            <FaultMessage>
               <Code listID="" listVersionID="" listAgencyID="" />
               <Text languageCode="" languageLocaleCode="" />
            </FaultMessage>
        </FaultNotification>
     </EBMHeader>
     </CreateLoanAccountResponseEBM

The following shows an example XML file generated for the CreateLoanAccountResponseEBM integration object in Siebel Tools.

		<?xml version="1.0" encoding="UTF-8" ?>
		<SiebelMessage>
		<Account>
     		<AccountId/> <!-- this field maps to Id field in the source.xml -->
     		<FullName/> <!-- this field is mapped to Name field in source.xml -->
		</Account>
		</SiebelMessage>