attribute
is used for DCE attributes declaration and track the attributes changes. It also be used by IDE and validation.
The attribute can be changed by component itself and used as output to the container.
Usual case is when value
attribute is updated from inside.
Initial value of attribute is available on the attributes
node attribute as in /datadom/attributes/@attr1
The current, i.e. including the changes by component itself, attribute value is a child node of attributes
as in /datadom/attributes/attr1
.
To define the attribute which is modified from within, the 3 parts are usually used as in //s[//s/event] ?? //attributes/@v ?? 'def'
//s[//s/event]
the slices
with event gives the slice value which was modified by user event like input//attributes/@v
the attribute passed by container'def'
the default value which used when no user input or attribute set by container