Extending XSLT with python


def f(ctx, str):

libxslt.registerExtModuleFunction("foo",
             "http://example.com/foo", f)

See example 8