If all nodes in the data template are replicated from the Message data, you can use the recurse or
enumerate meta rule on the message node in the data template (see
Meta rules (recurse and enumerate) for more information about meta rules). The meta rule will automatically generate the rules for the entire
/data/message sub tree, i.e. the full data transformation for the data template.
For example, if you use recurse on the message node you have to consider the expected occurrence of the nodes in the message tree (see Occurrence of template nodes) and edit the rules for individual nodes accordingly. You can check the compiled transformation in the Data transformation panel to see whether you have to edit transformation rules.