XML::SAXDriver::Sablotron - Perl SAX driver for the Sablotron XSLT processor
use XML::SAXDriver::Sablotron; use XML::Handler::SomeHandler; $handler = new XML::Handler::SomeHandler; $sab = new XML::SAXDriver::Sablotron(Stylesheet => "style.xsl", Handler => $handler); $sab->parse_uri("data.xml");
This extension allows to run the Sablotron XSLT processor as a SAX driver. A stylesheet passed to the constructor is applied to a document passed in as the parse_uri method argument.
Constructs the driver. In addition to the standard XML::SAXDriver params you may add
Stylesheet - the stylesheet URI
SablotHandlers - the hash containing XML::Sablotron handlers. Available keys are SchemeHandler, MessageHandler and MiscHandler
Applies the stylesheet to an XML data specified by $uri.
Applies the stylesheet to an XML data serialized to the $string.
Applies the stylesheet to a DOM object (by XML::Sablotron::DOM).
Pavel Hlavnicka; pavel@gingerall.cz
perl(1), XML::Sablotron(3)
To install XML::SAXDriver::Sablotron, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::SAXDriver::Sablotron
CPAN shell
perl -MCPAN -e shell install XML::SAXDriver::Sablotron
For more information on module installation, please visit the detailed CPAN module installation guide.