<SNIP>

> To 
> avoid this, I use the AddHandler directive instead:
> 
> AddHandler axkit .xml .xsp .dkb .rdf

<SNIP>

> 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

Hi, Kip,

Thanks for the response.  I used the AddHandler directive instead of the SetHandler 
directive (case seemed to make no difference, anyway) as you suggested.

I didn't mention it in the last mail, but I had included the stylesheet line you 
quoted in my test.xml file - as it was in one of the examples pages on the WIKI site.

As that wasn't working either, I've tried inserting the <Files ... code you included 
but that also has no effect.

I've bumped up the debug level to 10 but I still get no references to AxKit at all in 
the apache logs (and /tmp/axkit-trace is still empty).  I've included below a couple 
of example snippets of what I'm seeing in them when I restart the server and call 
test.xml.  Oh, and running apachectl configtest comes back with Syntax OK.

Sooo ... I dunno ... is there some other way to see what's happening?

Peter.

access_log
127.0.0.1 - - [09/Feb/2004:13:10:59 +0000] "GET /test.xml HTTP/1.1" 304 -
127.0.0.1 - - [09/Feb/2004:13:10:59 +0000] "GET /test.xsl HTTP/1.1" 200 702

error_log
[Mon Feb  9 13:09:06 2004] [notice] Apache/1.3.29 (Unix) mod_perl/1.29 configured -- 
resuming normal operations
[Mon Feb  9 13:09:06 2004] [notice] suEXEC mechanism enabled (wrapper: 
/usr/local/apache/bin/suexec)
[Mon Feb  9 13:09:06 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)

httpd.conf
# Added to include AxKit directives
#Include /srv/www/axkit.conf
PerlModule AxKit
#SetHandler perl-script
#PerlHandler AxKit
AddHandler axkit .xml .xsp .dkb .rdf
#AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript
#AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT

# 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

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

# 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 10
AxTraceIntermediate /tmp/axkit-trace

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

Reply via email to