Next: , Previous: , Up: The setFormat Element   [Contents][Index]


D.4.10.2 The stringFormat Element

stringFormat => relabel* affix*

relabel :from=real :to => EMPTY

The stringFormat element specifies how to display a string. By default, a string is displayed verbatim, but relabel can change it.

The relabel element appears as a child of stringFormat (and of format, when it is used to format strings). It specifies how to display a given value. It is used to implement value labels and to display the system-missing value in a human-readable way. It has the following attributes:

Attribute: from

The value to map. In the corpus this is an integer or the system-missing value -1.797693134862316E300.

Attribute: to

The string to display in place of the value of from. In the corpus this is a wide variety of value labels; the system-missing value is mapped to ‘.’.