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.
| Key | Value | Default | Description |
|---|---|---|---|
| check-has-attributes | Boolean: yes|no, 1|0, true|false, on|off | no | yes means: do not generate this button when the target element has no attributes (attribute wildcards and xsi:* attributes are ignored). |
| use-default-attribute-value | Boolean: yes|no, 1|0, true|false, on|off | no | yes means: newly added attribute is given its default value (as specified in the schema) if any, "???" otherwise. |
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,
use-default-attribute-value, yes)