O'Reilly logo

XML Publishing with AxKit by Kip Hampton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AxAddOutputTransformer

Output transformers are applied just before output is sent to the browser. This directive adds a transformer to the list of transformers to be applied to the output.

AxAddOutputTransformer MyModule::Transformer

The transformer is a subroutine that accepts a line to process and returns the transformed line:

package MyModule; sub Transformer { my $line = shift;  . . .  return $line; }

You can use an output transformer to add dynamic output (such as the date and time or a customer name) to a cached page.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required