Sablotron Adapter -- XSL tranformations in Erlang
As you can guess, Sablotron adapter is an Erlang adapter for
the C++ library Sablotron, that
allows Erlang programs to perform efficient XSL transformations on
XML documents both as files or Erlang binaries.
Motivation
When developing monet,
a flexible monitoring tool for the
VoDka project, we needed a way
of generating monet output to different devices: standard browsers,
text-only browsers, wap-enabled terminals, and so on. Generating monet
output as XML documents and then transforming them using an XSL engine
with rules to choose the appropriate XSL style became an elegant and
effective solution.
How does it work?
The adaptation is composed by two differente modules:
- A sablotron adapter developed in C that uses the sablotron library.
- A generic server sablotron in charge of controlling the
interaction between sablotron adapter and the rest of Erlang processes.
The communication between sablotron adapter and the generic server is
carried out through an Erlang port.
Downloading
Sablotron adapter can be downloaded from either the official Erlang home page (or any mirror) in
user contributions, or
directly from this page:
In addition, you will need the following software:
Documentation
You also should see...
Related tools:
- mod_xsl, an inets module to perform XSL transformations on XML documents generated by mod_esi.
- erlatron, a clustered version of the sablotron adaptation.
Some examples of sablotron adapter at work:
- monet, the ultimate monitoring tool. Its output is generated as XML documents and then transformed using mod_xsl.
Víctor M. Gulías
Last modified: Wed May 2 08:46:07 CEST 2001