Example: Using XSLT instead of Tcl

The code for your application can be generated using XSLT instead of Tcl.

This example demonstrates how to generate a file with AG using XSL Translator.

Generating a form

Instead of generating 4gl as the template does, we'll generate a per file (Genero form definition file). This example uses a 4rd (report data) file and generate a per form file with formfields corresponding to the 4rd record. We'll add an additional property frmLabel on each record field, which will be displayed to the left of each per file formfield.

The generated form

When the per file is opened and previewed, it looks like this.

This figure is a screenshot of the per form.

Figure 2. per form