1. add-attribute-button

Inserts a command-button in generated content which can be used to add an attribute to the element for which the button has been generated.

Optional parameter check-has-attributes may be set to yes (other allowed value is no) to specify that no button is to be generated when target element has no attributes (attribute wildcards and xsi:* attributes are ignored).

Do not specify command, parameter or menu parameters for this type of command-button. A menu of putAttribute commands is built dynamically each time this button is clicked.

By default, this button has its icon set to icon(plus).

Examples:

add-attribute-button()

add-attribute-button(text, "Add attr.", 
                     check-has-attributes, yes)