Data templates and transformations > Data transformation process reference > Data transformation persistence

Data transformation persistence
The current version of data transformation persistence is a simple XML with rules defined for each data template node to include in the transformation process, and the keys and values to evaluate for each rule:
<tdt:rule path="somePath">
<tdt:value key="someKey">someValue</tdt:value>
<tdt:value key="someKey">someValue</tdt:value>
...
</tdt:rule>
Note:
A simple data transformation is shown in the example below.
<tdt:transformation>
<tdt:rule path="/data/message/Name">
<tdt:value key="text()">/data/message/Name</tdt:value>
</tdt:rule>
<tdt:rule path="/data/message/Street">
<tdt:value key="text()">/data/message/Street</tdt:value>
</tdt:rule>
<tdt:rule path="/data/message/blkProducts">
<tdt:value key=".">/data/message/blkProducts</tdt:value>
<tdt:value key="recurse">.</tdt:value>
</tdt:rule>
</tdt:transformation>
The corresponding data template is shown below.
<data>
<message>
<FirstName>?</Name>
<Street>?</Street>
<blkProducts>
<Product>?</Product>
<Price>?</Price>
</blkProducts>
</message>
</data>
The image and XML below illustrate a transformation rule in the Define Transformation dialog box and the corresponding rule in the data transformation XML. Note that the values are dummy values used for comparison between the GUI and the XML.Click to enlarge
<tdt:rule path="/data/message/CustomerData/Category">
<tdt:value key="union">unionVal</tdt:value>
<tdt:value key=".">repeaterVal</tdt:value>
<tdt:value key="recurse">recurseVal</tdt:value>
<tdt:value key="$var">varVal</tdt:value>
<tdt:value key="text()">textVal</tdt:value>
<tdt:value key="@name">attributeVal</tdt:value>
</tdt:rule>
OpenText StreamServe 5.6.2 Updated: 2018-01-26