Data templates and transformations > Data transformation process reference > Attribute evaluation

Attribute evaluation
The elements in a data template may contain attributes. If you want to fill an attribute value dynamically, you must create a value for it in the corresponding rule, for example:
<tdt:rule path="/data/day/station">
<tdt:value key="@name">/data/details/name</tdt:value>
</tdt:rule>
If the transformation rule contains an XPath expression that evaluates to a value for the attribute, then the value is overwritten by the evaluation result (deleted if the result is empty).
If the transformation rule does not contain an XPath expression that evaluates to a value, then the value is left as it is in the data template (no value or static value).
Note:
OpenText StreamServe 5.6.2 Updated: 2018-01-26