Prepare xslt for layout