Declaring user variables

User variables are variables defined by the user from within the context of a tag mapping . A user variable name is a token beginning with an upper-case letter and followed by one or more user variable name characters. The maximum length of a user variable name is 512 characters.

The typesetting engine will generate a run time error if you attempt to declare an illegal user variable name.

[Note] Note

For historical reasons percent encoded sequences within user variable names will be validated, but are not converted to the equivalent character value. For example:

<set var="XYZ%24Carbon" string="yes" />

assigns the variable XYZ%24Carbon, not the variable XYZ$Carbon. The use of the percent character in variable names should be avoided to prevent invalid name errors.