A.23 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> 

XML Publishing with AxKit
XML Publishing with Axkit
ISBN: 0596002165
EAN: 2147483647
Year: 2003
Pages: 109
Authors: Kip Hampton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net