split style element processing into three different steps for greater flexibility