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.
Different renderings are used for marking the attribute states:
- attributes with a specified value are rendered with a bold font;
- default values are rendered with an plain font, painted gray;
- empty values display the text "[empty]", painted gray;
- invalid attributes and values are painted red;
Clicking a cell in the
Value column starts 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
Attribute column
header. Thus the table contents can be sorted:
- by attribute name in ascending order;
- by attribute name in descending order;
- custom order, where the used attributes are displayed at the beginning of the table
sorted in ascending order, followed by the rest of the allowed elements sorted in
ascending order.
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 following actions may be available in the contextual menu:
- Add - allows you to insert a new attribute. 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.
- Set empty value - Specifies the current attribute value as
empty.
- Remove - Removes the attribute (action available only if the
attribute is specified). You can invoke this action by pressing the
(Delete) or
(Backspace) keys.
The attributes of an element can be edited 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, with the list of all the possible attributes being 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 view.
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.