better xsl handling
Merge pull request #521 from willtp87/7.x.mimes

better xsl handling