def load_xslt(filename=None, xsl=None):
parser = _get_xmlparser()<EOL>if filename is not None:<EOL><INDENT>xslt_doc = etree.parse(filename, parser=parser)<EOL><DEDENT>if xsl is not None:<EOL><INDENT>xslt_doc = etree.fromstring(xsl, parser=parser)<EOL><DEDENT>return etree.XSLT(xslt_doc)<EOL>
Load and compile an XSLT document (specified by filename or string)
    for repeated use in transforming XML.