reducing XML-template dependency on "trailers"