Variables are temporary data holders that you can use in place of XML elements or attributes. Variables are useful if you need to store a value temporarily during the operation of a transformation, and you do not need to output the value in the XML.
For example, suppose you want a Parser to read two
Content
anchors and concatenate their values. You might map each
Content
anchor to a user-defined variable. You can then use an action to concatenate the variables and output the result to an XML element.
The Script also uses pre-defined system variables to store information that is needed in certain operations.