Logic for separate styles based on xml