# The Transform Command

The Transform command performs complex structure transformations, based on a language that specifies how a given structural pattern can be transformed into different structures. For example, nested lists can be transformed into a table and back again.

## Available Transformations

The available transformations are defined in the file `Amaya/amaya/HTML.trans`. Please refer to the document "Use of the file HTML.trans" for a description of the language in which the transformation rules are written.

Additional transformations may be specified in the HTML.trans file. Some transformations are provided in the HTML.trans file as examples.

## Using the Transform Command

To use this command:

1. Choose Transform from the Edit menu.

   Amaya displays a menu that lists all the transformations that can be applied to the current selection.

2. Choose the transformation you want.

## See Also:

- Editing the Document Structure
- Using the HTML.trans File