[EMAIL PROTECTED] wrote:


# Added to include AxKit directives - PRE 06/02/2004 PerlModule AxKit

#SetHandler perl-script
#PerlHandler AxKit
#AddHandler axkit .xml .xsp .dkb

# Install AxKit main parts
SetHandler AxKit

# Setup style type mappings
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript

# Optionally set a hard coded cache directory
# make sure this is writable by nobody
AxCacheDir /opt/axkit/cachedir

# turn on debugging (1 - 10)
AxNoCache On
AxDebugLevel 5
AxTraceIntermediate /tmp/axkit-trace

Hi Peter,


Looks like you are close. First, IIRC, when you use the SetHandler directive, it needs to be:

SetHandler axkit

(note the difference in case to yours). In any case, you'll want to limit the scope of the SetHandler directive, since, as you have it there, Apache will try to send *all* resources (images, CSS stylesheets, MP3s, whatever) in to AxKit to process.. this is *not* what you want. To avoid this, I use the AddHandler directive instead:

AddHandler axkit .xml .xsp .dkb .rdf

Also, and more to the point, there is nothing in your config that associates any documents with any stylesheets. For example, if you want the file test.xml to be processed with the stylesheet test.xsl you need to add that mapping via one of the AxAdd*Processor directives. Assuming both files are in the same directory you might do:

<Files test.xml>
  AxAddProcessor text/xsl test.xsl
</Files>

or you could add an xml-stylesheet processing instruction to the top of your XML document (after the XML declaration and before the top-level element).

<?xml-stylesheet type="text/xsl" href="test.xsl"?>

but, really using the config directives to do this mapping the the preferred method.

Give it a shot, crank the debug level up to 10 and let us know how it turns out...

-kip


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



Reply via email to