Generators: handle attributes.