Skip to content

Embedding

Phil Shafer edited this page Jul 9, 2013 · 3 revisions

How to Embed SLAX

SLAX is integrated with the XSLT engine in libxslt, using the xsltSetLoaderFunc() function in libxslt to define an alternative loader. At present, this loader is only triggered if the file has the ".slax" extension, but auto-detection may be added in the future.

To support SLAX within an application, link with libslax and call the libslax initializer function:

#include <libslax/slax.h>

int
main (int argc, char **argv)
{
    ...
    slaxEnable(1);
    ...
}
Clone this wiki locally