Defining a parameter
This recipe explains how to a the parameter to the mapping file. Parameters are an important aspect of the transformation since they enable us to include some additional content into the transformation. In this recipe, we will show you how to add a parameter that will hold the generated UUID (universally unique identifier) information.
Getting ready
We will amend the example from the Using the xsl:for-each command recipe, by adding a parameter to the source part.
How to do it…
In the following steps, we will create a parameter and configure it to hold the generated UUID information:
We right-click on the source side and select Add Parameter….
We enter the parameter name and check the Set default value option in order to initialize the parameter at the beginning of the transformation as shown in the following screenshot:
After that, we configure the conditions. We will utilize the parameter to set up the reference number in case the source node is empty or missing. We achieve...