Home >Online Product Documentation >Table of Contents >Naming Fields
Every field in an input file - including fields in the same region and row - can have its own field element name. All field element names (<field> is the default) include the namespace prefix in the XML output if one was specified.
Field names are determined by two properties - Element Name Source in the Region Type properties, and Field Element Name, as shown in Figure 172.
The Element Name Source indicates the origin of the field name used in the XML output when converting the input file. The Field Element Name property specifies the actual value used to name the <field> element.
There are three values for the Element Name Source property:
The default value of the Field Element Name property is field. If you use other values for the Element Name Source property, Stylus Studio provides the values for the Field Element Name property.
User-Supplied is the default setting for the Element Name Source property.
Consider the following input file:
If you set Element Name Source to From First Row, the XML output uses Make, Model, and Year for the <field> element names, as shown here:
You can specify any row as the source for field names using the Get Field Names from This Row from the row's shortcut menu.
When you use an existing row as the source for field names in the XML output, Stylus Studio changes the display of that row in the document pane to a darker blue to indicate this, as shown here:
In addition, preceding rows in that region, if any, are grayed out, and the value of the Rows to Skip field in the Region Type properties changes to reflect this.
In the event that the first row has fewer names than there are fields in one or more subsequent lines in the file, Stylus Studio names the extra fields <fieldn>, where n is the field number relative to other fields in the row. Also, if the values in the row are not valid XML identifiers, they are converted using the following rules:
The Field Element Name property displays the current value for the field.
Alternative:
The field name field becomes editable.