AxAddProcessor

This directive maps all XML files to a particular stylesheet for processing. You can do this in a <Files> directive if you need to do it by file extension, or on a file-by-file basis:

<Files *.dkb> AxAddProcessor text/xsl /stylesheets/docbook.xsl </Files>

Multiple directives for the same set of files make for a chained set of stylesheet processing instructions, in which the output of one processing stage goes into the input of the next. This is especially useful for XSP processing, in which the output of the XSP processor is likely not to be HTML (or WAP or whatever your chosen output format is):

<Files *.xsp> # use "." to indicate that XSP gets
           processed by itself. AxAddProcessor application/x-xsp . AxAddProcessor text/xsl
           /stylesheets/to_html.xsl </Files>

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.