/erl_xslt

Erlang NIF for libxslt.

Primary LanguageC

erl_xslt

erl_xslt provides an Erlang NIF binding for libxslt that can be used for XSL Transformations.

Functionality

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.

Requirements

Building

  make # build
  make check # run testsuite to verify that everything works correctly

Usage

  {ok, Xml} = file:read_file("foo.xml"),
  {ok, Result} = erl_xslt:transform(<<"stylesheet.xsl">>, Xml).