NAME
XML::SAXDriver::Sablotron - Perl SAX driver for the Sablotron XSLT processor
SYNOPSIS
$handler
= new XML::Handler::SomeHandler;
$sab
= new XML::SAXDriver::Sablotron(
Stylesheet
=>
"style.xsl"
,
Handler
=>
$handler
);
$sab
->parse_uri(
"data.xml"
);
DESCRIPTION
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.
METHODS
- new(%params)
-
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
- parse_uri($uri)
-
Applies the stylesheet to an XML data specified by
$uri
.
- parse_string($string)
-
Applies the stylesheet to an XML data serialized to the
$string
.
- parse_dom($dom)
-
Applies the stylesheet to a DOM object (by XML::Sablotron::DOM).
AUTHOR
Pavel Hlavnicka; pavel@gingerall.cz
SEE ALSO
perl(1), XML::Sablotron(3)