Fri Jun 13 18:26:45 2003

NAME

Apache::AxKit::StyleChooser::FileSuffix - Choose stylesheet using file suffix

SYNOPSIS

PerlTypeHandler Apache::AxKit::StyleChooser::FileSuffix

DESCRIPTION

This module lets you pick a stylesheet based on the filename suffix. To use it, you need to enable it as a PerlTypeHandler, because it needs to be invoked before the uri->filename translation is done in apache:

PerlTypeHandler Apache::AxKit::StyleChooser::FileSuffix

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.


Edit This Page / Show Page History /