issue 751 - fixing XSL stylesheet

Using a subtemplate is adding some junk after the XML bbox block, so
doing it in the xsl flow instead of using a template.