In addition to a type and a constraint, replacement slots may also be given a name. Slot names are explained in more detail below.
Replacement slots may be given a slot name, to allow them to be referenced from outside the slot. There are a variety of reasons to do this, including assigning a value to each slot and creating a co-dependency constraint between slots. The most common use of slot names is to refer to the slot to which a value is assigned, during the process of populating the template.
Slot names are defined within the slot using an '@' prefix. For example, the following expression template includes one slot that represents the value of |Associated with|. This slot has been given the slot name "finding".
Slot names may be repeated within a template. When the same slot name is associated with more than one slot in the same template, it indicates that these slots must be populated with the same value.
For example, the expression template below has two slots, which have each been given the name "site".