Apply prefix to attributes.