def transform(tree, stylesheet_path, **args):

    if args:
        _args = [(k, "'%s'" + args[k]) for k in args]
        _args = dict(_args)
    else:
        _args = None
    stylesheet = etree.parse(stylesheet_path)

    ac = etree.XSLTAccessControl(read_file=True, read_network=True)
    transformer = etree.XSLT(stylesheet, access_control=ac)
    if _args:
        result = transformer(tree, **_args)
    else:
        result = transformer(tree)
    return result

# -----------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/static/scripts/tools/csv2xml.py/transform/operator `%` -> `+`