Creating simple transformations
In this recipe, we will see how we can create a simple transformation comprising of literal texts and no data root. We will use the transaction XSLT_TOOL
.
How to do it...
We will carry out the following steps:
Call the transaction
XSLT_TOOL
. Enter a suitable transformation name in the field provided (we give the namezst6_first
). Then, press the Create button.This will display a dialog box asking you for the description and the type of the transformation. Enter a short description in the field provided. From the Transformation Type list box, make sure to choose the option Simple Transformation. Then, press Enter.
From the screen that appears, choose the SourceCde tab. You will find the source code editor filled with the basic code.
We will now write the code for our "simple" simple transformation. We will delete the root element. Within the template, we will add literal elements along with the necessary literal texts with and without identification. We create a...