def _transform(xsl_filename, xml, **kwargs):
    """Transforms the xml using the specifiec xsl file."""
    xslt = _make_xsl(xsl_filename)
    xml = xslt(xml, **kwargs)
    return xml
Transforms the xml using the specifiec xsl file.