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

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>

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