Eddie Roosenmaallen wrote:
Hi all,

I'm running into some neat problems using AxKit.

My AxKit configuration (in httpd.conf, just after all the LoadModule lines) is:

# ----------------- AxKit Global Config -------------
PerlModule AxKit
AddHandler axkit .xml .xsp

#SetHandler perl-script
#PerlHandler AxKit
AxAddStyleMap application/x-xpathscript Apache::AxKit::Language:XPathScript
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
#AxAddPlugin Apache::AxKit::StyleChooser::QueryString
# ------------------ End Axkit Global --------------

AxKit seems to work well enough without those two lines, so I'm not too worried about it.
Right. You need either the AddHandler (SetHandler axkit works, too) *or* the SetHandler perl-script/PerlHandler AxKit combination, not both. "(Add|Set)Handler axkit" invokes the faster handler inside AxKit, so what you have there is the better choice.


Second problem: When I uncomment the AxAddPlugin line, to get named stylesheets working, AxKit stops processing my XML files entirely.

Later in my httpd.conf file, I have a <Location> block which includes an AxAddProcessor line. With the QueryString plugin commented out, all works well (except I can't retrieve the raw XML files). The solution seems to be named stylesheets, but if I add the QueryString plugin, AxKit just sends the raw XML, and never processes the stylesheets at all.
At this point, named styles are an all-or-nothing proposition. In practice, this means that if you are going to use a StyleChooser and named styles, you *must* explicitly set a default style. You can do this by adding a default AxStyleName block:

<AxStyleName "#default">
# will be invoked in cases where a
# named style is not returned from a StyleChooser
AxAddProcessor some/mime /path/to/my/stylesheet.xxx
<

Or, by setting the default to one of you existing named styles via the AxStyle directive:

AxStyle "your_style_name"

HTH,
-kip



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to