To be able to use external parameters (e.g. global StreamServe variables) in transformations, these parameters must be passed on to the transformation process as tdt.param transformation parameters. The value of a transformation parameter is an XPath expression that references available Message data and global StreamServe variables.
To reference tdt.param:name in a transformation rule you use
$name. For example, to reference
tdt.param:fullname you use
$fullname.
In this example the variables are string variables, and($varname) is used to make sure the parameter is evaluated as a string.