[FIX] on_change tag change domain values.
[REF] more abstract generation of attributes