Apache::AxKit::Language::YPathScript - An XML Stylesheet Language
AxAddStyleMap "application/x-xpathscript => \ Apache::AxKit::Language::YPathScript"
YPathScript is a fork of the original AxKit's XPathScript using XML::XPathScript as its transforming engine.
As it is mostly backward compatible with the classic Axkit XPathScript module, the definitive reference for XPathScript, located at http://axkit.org/docs/xpathscript/guide.dkb, also applies to YPathScript, excepts for the differences listed in the sections below.
A copy of the Apache::AxKit::request object -- which is itself a wrapper around the Apache::request object -- tied to the current document.
<% %args = $r->args() %> <p>args: <%= join ' : ', map "$_ => $args{$_}", keys %args %></p>
Fetch the xml document located at $uri and return it as a dom node.
Construct a new YPathScript language interpreter out of the provided providers.
The handler function called by Apache.
Overloaded from XML::XPathScript in order to provide URI-based stylesheet inclusions: $filename may now be any AxKit URI. The AxKit language class drops support for plain filenames that exists in the ancestor class: this means that include directives like
<!-- #include file="/some/where.xps" -->
in existing stylesheets should be turned into
<!-- #include file="file:///some/where.xps" -->
in order to work with AxKit.
Read an XML document from the provider and return it as a string.
Retrieve and return the $stylesheet (which can be a filehandler or a string) as a string.
Print $message if the requested debug level is equal or smaller than $level.
Print the $suicide_note and exit;
Read XML document located at $uri, parse it and return it in a node object.
The $uri can be specified using the regular schemes ('http://foo.org/bar.xml', 'ftp://foo.org/bar.xml'), or the Axkit scheme ('axkit://baz.xml'), or as a local file ('/home/web/foo.xml', './foo.xml' ).
Please send bug reports to <bug-xml-xpathscript@rt.cpan.org>, or via the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=XML-XPathScript .
Yanick Champoux <yanick@cpan.org>
Original Axkit::Apache::AxKit::Language module by Matt Sergeant <matt@sergeant.org>
To install XML::XPathScript, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::XPathScript
CPAN shell
perl -MCPAN -e shell install XML::XPathScript
For more information on module installation, please visit the detailed CPAN module installation guide.