erl_xslt provides an Erlang NIF binding for libxslt that can be used for XSL Transformations.
Simply specify an XSLT stylesheet's filename and the XML to be transformed as binary, respectively. XSLT parameters are currently not supported.
Once a stylesheet has been read from the filesystem and is parsed, the stylesheet's parsed representation is cached in memory to be reused for speeding up subsequent transformations.
- Erlang >= R14B (with header files)
- rebar
- pkg-config
- libxml2 (with header files)
- libxslt (with header files)
make # build
make check # run testsuite to verify that everything works correctly
{ok, Xml} = file:read_file("foo.xml"),
{ok, Result} = erl_xslt:transform(<<"stylesheet.xsl">>, Xml).