On Saturday 02 February 2002 21:41, Terrence Brannon wrote: > I just read perldoc AxKit, but I am still in the dark about the > the stages of the pipeline. > > I dont know how many stages are in the default pipeline, or their names.
I'm not sure what you mean exactly by default pipeline. If you refer to what happens when you have AxKit installed, but not configured at all then the answer is pretty much simple: nothing :-) > I dont know the import of AddHandler axkit (.xsp|.xml|.xps), nor > how it conflicts/synergizes with AxAddProcessor... I dont know > how these two directives alter the chain. AddHandler is an Apache configuration directive. It tells Apache what handler is to process what file extension. AddHandler axkit .xml means "Hey, Apache, if you see a file that has a .xml extension, feed it to module axkit, ok?". However if that's all you have, AxKit will look at the file but will probably not do anything with it. AxAddProcessor adds a step in the pipeline. Say you have the following already in your configuration: AddHandler axkit .xml AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT We've seen what the first line means. The second tells AxKit that for processing type "text/xsl" it should use the Apache::AxKit::Language::LibXSLT module. That way, if we decide to change the XSLT processor we use, we only have to change the module name. All the rest of the config will only refer to text/xsl. Now adding the following: AxAddProcessor text/xsl /xsl/main.xsl will tell AxKit, "transform documents you handle using the text/xsl processor type defined earlier, and feeding it the /xsl/main.xsl stylesheet". You now have a one step pipeline set up, all documents with a .xml extension will be transformed using main.xsl. You can add a second step: AxAddProcessor text/xsl /xsl/output.xsl Now, all docs touched by AxKit will be processed through main.xsl, and what that produces will be processed through output.xsl. Does this make more sense ? -- _______________________________________________________________________ Robin Berjon <[EMAIL PROTECTED]> -- CTO k n o w s c a p e : // venture knowledge agency www.knowscape.com ----------------------------------------------------------------------- Design a system that even an idiot will be able to use, and only an idiot will want to use it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
