Transformation

The root element for a TML document.

<transformation output-encoding="encoding"
output-system-doctype="dtd"
output-public-doctype="name">
		<script/>
		<set/>
		<map/>
		<transform/>
</transformation>

Parameters

output-encoding
Specifies the character encoding that should be used for the generated output data. The default for this attribute is UTF-8. This parameter is optional.
output-system-doctype
Specifies the name of a document type definition that will be placed in a DOCTYPE element in the generated output. This parameter is optional.
output-public-doctype
Specifies the name of the public identifier to use from the document type definition. This attribute is ignored if the output-system-doctype attribute is empty or not provided. This parameter is optional.
script
Holds user defined functions. This parameter is optional but may be included multiple times.
set
Generates fixed value data in the output. This parameter is optional but may be included multiple times.
map
Maps data from the input and writes it to the output. This parameter is optional but may be included multiple times.
transform
Writes a calculated value to the output. This parameter is optional but may be included multiple times.

Example 1

<!--Sets the output year to a fixed value-->
<set>
		<target>SSC/Payload/SalesOrder/Date/Year</target>
		<value>1998</value>
</set>