I suggest using the attribute parameter, makes everything a lot easier and omits the need of any transformation:
attribute