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 new property is added to the 4rd definition
in settings.agconf (changes are in
bold):
The file managedtextform.xsl is created,
to describe what is to be generated. This file should be
saved to the template directory. The GASDIR environment
variable should be defined in the GAS configuration and added to PATH.