Attributes View

The Attributes view presents all the possible attributes of the current element allowed by the schema of the document. It allows you to insert attributes in the current element or change the value of the attributes already used in the element. The already present attributes are painted with a bold font. Default values are painted with gray color. The Attributes view uses a red color to highlight invalid attributes and values.

Clicking the Value column of a table row will start editing the value of the attribute from the selected row. If the possible values of the attribute are specified as list in the schema associated with the edited document the Value column works as a combo box where you can select one of the possible values to be inserted in the document. The attributes table is sortable by clicking the column names. Thus the table's contents can be sorted in ascending order, in descending order or in a custom order, where the used attributes are placed at the beginning of the table as they appear in the element followed by the rest of the allowed elements as they are declared in the associated schema.

The Attributes View

A combo box located in the upper part of the view allows you to edit the attributes of the ancestors of the current element.

The contextual menu of the view allows you to insert a new element (Add action) or delete an existing one (Delete action). Delete action can be invoked on a selected table entry by pressing (Del) or (Backspace).

The attributes of an element can be edited also in place in the editor panel by pressing the shortcut (Alt + Enter) which pops up a small window with the same content of the Attributes view. In the initial form of the popup, only the two text fields Name and Value are displayed, the list of all the possible attributes is collapsed.

Edit attributes in place

The small right arrow button expands the list of possible attributes allowed by the schema of the document as in the Attributes panel.

Edit attributes in place - full version

The Name field auto-completes the name of the attribute: the complete name of the attribute is suggested based on the prefix already typed in the field as the user types in the field.

Adding an attribute that is not in the list of all defined attributes is not possible when the Allow only insertion of valid elements and attributes schema aware option is enabled.