#38: Added the mechanism to add template role-specific style attributes
and to have them applied to the correct elements.