Add attributes extracted from an attribute.

Allows to add attributes to element of an attribute which contains
the attribute pattern.