2.4.2.1 The sourceVariable Element

sourceVariable
   :id
   :categorical=(true)
   :source
   :domain=ref categoricalDomain?
   :sourceName
   :dependsOn=ref sourceVariable?
   :label?
   :labelVariable=ref sourceVariable?
=> variable_extension* (format | stringFormat)?

This element defines a variable whose data comes from the tableData.bin member that corresponds to this .xml.

This element has the following attributes.

Attribute: id

An id is always present because this element exists to be referenced from other elements.

Attribute: categorical

Always set to true.

Attribute: source

Always set to tableData, the source-name in the corresponding tableData.bin member (see Metadata).

Attribute: sourceName

The name of a variable within the source, corresponding to the variable-name in the tableData.bin member (see Numeric Data).

Attribute: label

The variable label, if any.

Attribute: labelVariable

The variable-name of a variable whose string values correspond one-to-one with the values of this variable and are suitable for use as value labels.

Attribute: dependsOn

This attribute doesn’t affect the display of a table.