XSLT render pipeline for deeply nested templates