AxAddPlugin

Setting this to a module loads the module and executes the handler method of the module before any AxKit processing is done.

This allows you to set up such things as sessions, to authenticate, or to perform other actions that require no XML output, before the actual XML processing stage of AxKit.

AxAddPlugin MyAuthHandler

There is also a companion option, AxResetPlugins. Plug-in lists persist and get merged into directories, so if you want to start completely fresh, use the following:

AxResetPlugins AxAddPlugin MyFreshPlugin

As with other options that take a module, prefixing with a + sign preloads the module at compile time.

Get XML Publishing with AxKit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.