This section describes how to configure a variable and then add this variable to a root node.
To configure a variable:
To add a variable to a root node (for example, Document):
The variable appears in the Output: XML pane, as shown in the following image.
The counter should be initialized to zero for each document prior to the detail line loop (you must set the counter to 0).