Handle multiple nesting of attributes.