General syntax |
<add target="attribute" name="regexp" [value="regexp"] />
|
Description |
Adds a new attribute with given value to the component. The value
is optional; if not defined it will be defined as null. The
attribute is only added if it exists; otherwise the add will be silently
omitted. |
Attributes |
Name |
Use |
Annotation |
target |
required |
The target defining the type of the operation to execute. Valid
values are:
Value |
Description |
attribute |
Defines to add an attribute. |
|
name |
required |
Defines the new name of the target. The value can be either a string
or any Regular Expression reference. |
value |
optional |
Defines the new value of the target. The value can be either a string
or any Regular Expression reference. Defaults to
null if omitted. |
|
Examples |
<!-- adds a new attribute named SYMBOL and set its value to 1234 -->
<add target="attribute" name="SYMBOL" value="1234" />
|