Legacy latex fixes

Newer libxml2 complains about a couple things in the xslt for the legacy latex based pipeline