Professional > Table scripting > Table specification syntax > Element list syntax
 
Element list syntax
Sample script file: ElementSpecifications.mrs
This example script is based on the Museum sample data set. See Running the sample table scripts for information on running the example scripts.
Table and axis syntax describes the syntax for defining the axes of your tables. One of the options is to use an element list to specify the elements that are to be included.
The term element includes categories, user-defined categories, means or other statistics, and any other item that forms part of a variable (in the user interface, the term category is used to refer to all of these items for the sake of simplicity, but strictly speaking they are elements). Each element is usually displayed as a row or column on a table (though in some cases the element may be included in the table but not displayed).
Element list syntax
VariableName
{<Element-List>}

<Element-List> :: = <Element> (, <Element>)*

<Element> ::=  [^] ElementName ['Label-text'] [<Properties>]
              | ElementName ([LanguageID: 'Label-text'])*
              | [^] [ElementName] .. [ElementName]
              | <Special-Element>
Parameters
VariableName
The name of a variable in the metadata.
ElementName
The name of an element in the specified variable.
^
Indicates that the following item is to be excluded.
..
Indicates a range of elements.
LanguageID
The code of a language that exists in the metadata. For details of recognized language codes, see Languages (3-character codes) for the change language script snippet
<Special-Element>
Defines a special non-category element. See Special elements for more information.
<Properties>
Defines one or more properties for the element. See Element properties for more information.
See also
Table specification syntax