Variable Formatting
In an assembly, the variable name is formatted with a delimiter, such as $VARIABLE or ${VARIABLE}. The ${VARIABLE} form is required if there is no space between the variable and any literal text that follows, such as: ${VNAME}, pg $VR.
Since only documents are mapped from a repository, the variable is resolved by using the current assembly as the starting point for its definition and searching down through the tree until it finds a bound document of the correct doctype, or by searching up to the first parent.
Variables are resolved in a leaf element to the first assigned document, and the publishing elements search for their parent and resolve from there. If the publishing element is not assigned to a document, it should follow the rules for searching the tree (as described above).
In a publishing template file (overlay, cover page), the variable name is formatted with an angle bracket delimiter, for example: <VARIABLE>. This can be used in overlay or cover page templates. The variable is resolved by using the current assembly as the starting point for its definition. These variables are not resolved in the body matter or content of the output, but only on the cover page and on the overlay.