Apache::AxKit::StyleChooser::FileSuffix - Choose stylesheet using file suffix
This module lets you pick a stylesheet based on the filename suffix. To use it, simply add this module to the list of PerlTypeHandlers prior to Apache::AxKit::XMLFinder:
PerlTypeHandler Apache::AxKit::StyleChooser::FileSuffix SetHandler perl-script PerlHandler AxKit
Then simply by referencing your xml files as follows:
http://xml.server.com/myfile.xml.printable
You will recieve the alternate stylesheets with title "printable". See the HTML 4.0 specification for more details on stylesheet choice.
Note that this installation is different from the other StyleChoosers, because the file we're requesting here doesn't actually exist.
Thanks to Salve J. Nilsen <sjn@foo.no> for this module.
To install AxKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AxKit
CPAN shell
perl -MCPAN -e shell install AxKit
For more information on module installation, please visit the detailed CPAN module installation guide.