Instantiation clause


The instantiation_clause in the global declaration is optional. It is used to define named instances in the Target Model. A named instance is given a name beginning with the character '#' and the rest of the name is a simple_id. The named instances are defined in the global scope of the mapping schema, so that they can be referenced from all other declarations in the mapping schema.
A named instance can be used as an attribute value in an entity constructor that defines another named instance. In this way the named instances can be used to "handcraft" a structure.
The scope of the identifier that identifies a named instance is the mapping schema in which the instantiation clause occurs, i.e. the global scope of an EDMexpressX mapping schema.