This element appears only in schema version 2.7 (see SPV Detail visualization Element).
This element determines a format, equivalent to an SPSS print format.
These attributes apply to all kinds of formats. The most important of these attributes determines the high-level kind of formatting in use:
elapsedTime. When this attribute is
omitted, this element is a numeric or string format.
Whether, in the corpus, other attributes are always present (“yes”),
never present (“no”), or sometimes present (“opt”) depends on
A character that replaces the formatted value when it cannot otherwise be represented in the given format. Always ‘*’.
These attributes are used with
formats or both.
Exactly four characters. In order, these are used for: decimal point, grouping, date separator, time separator. Always ‘.,-:’.
Within a date, the order of the days, months, and years.
dayMonthYear is the only observed value, but one would expect
yearMonthDay to be reasonable as
Whether to include the year and, if so, whether the year should be
shown abbreviated, that is, with only 2 digits. Each is
false; only values of
respectively, have been observed.
Whether to include the month (
false) and, if so,
how to format it.
monthFormat is one of the following:
The full name of the month, e.g. in an English locale,
The abbreviated name of the month, e.g. in an English locale,
The number representing the month, e.g. 9 for September.
A two-digit number representing the month, e.g. 09 for September.
Only values of
short, respectively, have been
These attributes presumably control whether each field in the output
is padded with spaces to its maximum width, but the details are not
understood. The only observed value for any of these attributes is
These attributes presumably control whether each field is displayed
in the output, but the details are not understood. The only
observed value for any of these attributes is
This attribute is always
month in the corpus, specifying that
the day of the month is to be displayed; a value of
supposed to indicate that the day of the year, where 1 is January 1,
is to be displayed instead.
hourFormat, if present, is one of:
The time is displayed with an
pm suffix, e.g.
The time is displayed in a 24-hour format, e.g.
This is the only value observed in the corpus.
The time is displayed in a 12-hour format, without distinguishing
morning or evening, e.g.
hourFormat is sometimes present for
which is confusing since a time duration does not have a concept of AM
or PM. This might indicate a bug in the code that generated the XML
in the corpus, or it might indicate that
sometimes used to format a time of day.
These attributes are used for formats when
useGrouping are also used
Minimum number of digits to display before the decimal point. Always
Maximum or minimum, respectively, number of digits to display after the decimal point. The observed values of each attribute range from 0 to 9.
Whether to use the grouping character to group digits in large
numbers. It would make sense for the grouping character to come from
separatorChars attribute, but that attribute is only
elapsedTime, in the corpus at least. Perhaps that is because
this attribute has only been observed as
This attribute controls when and whether the number is formatted in scientific notation. It takes the following values:
Use scientific notation only when the number’s magnitude is smaller
than the value of the
Use scientific notation when the number will not otherwise fit in the available space.
Always use scientific notation. Not observed in the corpus.
Never use scientific notation. A number that won’t otherwise fit will
be replaced by an error indication (see the
attribute). Not observed in the corpus.
Only present when the
scientific attribute is
onlyForSmall, this is a numeric magnitude below which the
number will be formatted in scientific notation. The values
0.0001 have been observed. The value
0 seems like a
pathological choice, since no real number has a magnitude less than 0;
perhaps in practice such a choice is equivalent to setting
Specifies a prefix or a suffix to apply to the formatted number. Only
suffix has been observed, with value ‘%’.
These attributes are used for formats when
When this is
true, it is supposed to indicate that string
values should be parsed as numbers and then displayed according to
numeric formatting rules. However, in the corpus it is always