Transformation Designer - example - simple mapping

The following is an example of mapping data from the input directly to data in the output. The transformation is simply changing the structure and names of the fields in the document.

TML

<?xml version='1.0'?>

<transformation>

		<map>

				<target>SSC/Payload/AddressBook/Address/Name</target>

				<source>generated-by-outlook/contact/name</source>

		</map>

		<map>

				<target>SSC/Payload/AddressBook/Address/TelNum</target>

				<source>generated-by-outlook/contact/phone</source>

		</map>

</transformation>

Input data

<generated-by-outlook>

		<contact>

				<name>R Giggs</name>

				<phone>0171 295 541</phone>

		</contact>

		<contact>

				<name>A Ferguson</name>

				<phone>0181 55 6732</phone>

		</contact>

</generated-by-outlook>

Generated output


<SSC>

		<Payload>

				<AddressBook>

						<Address>

								<Name>R Giggs</Name>

								<TelNum>0171 295 541</TelNum>

						</Address>

						<Address>

								<Name>A Ferguson</Name>

								<TelNum>0181 55 6732</TelNum>

						</Address>

				</AddressBook>

		</Payload>

</SSC>