Transformations are defined in transformation specifications, located in files. A transformation is defined using the keywork textmodule or texttransformation.
A texttransformation defines the name of
the module, which can be
any name chosen, independent of file name.
It defines the input metamodel in terms of one or more model parameters.
// imports
texttransformation testAnnotations (in uml:"http://www.eclipse.org/uml2/1.0.0/UML") {
// variables and constant properties
// transformation rules
}
The body of a transformation contain rules. Curly brackets may be used to group rules in a transformations, but this is optional.