From:
Frank Gard <frank.gard [at] handshake.de>
Date:
Sun, 03 Nov 2002 01:35:54 +0100
To:
axkit-users [at] axkit.org
Subject:
Problems with AxMediaType and AxStyleName directives
Hi there,
I'm using AxKit 1.6 on a Windows NT platform where Apache 1.3.27 with
mod_perl 1.27 is installed.
I tried the examples of the AxKit-Guide and it most things work great
(thanks to Matt and all other gurus).
But unfortunately I'm not able to use the AxMediaType and AxStyleName
directives. AxKit behaves as if they weren't there (i.e. gives the, say
xml, source and catches an exception). The error log claims that there
were no styles defined for "....xml" after calling the
"GetMatchingProcessors" sub using correct parameters (as far as I could
check it).
To find out more details, I played around with the ConfigReader.pm
inserting a debugging line after the "$list =
$self->{cfg}{DynamicProcessors};"-line of the
mentioned GetMatchingProcessors, which prints the current status of the
$self object variable using Data::Dumper::Dumper($self). The output of
the added code snippet shows that there is a problem with the parsing of
my httpd.conf file from which the AxKit concerning part is as follows.
############################
# ...
LoadModule perl_module modules/mod_perl.so
PerlModule AxKit
AxLogDeclines On
AxDebugLevel 10
AxAddPlugin Apache::AxKit::Plugin::Passthru
AxAddPlugin Apache::AxKit::StyleChooser::QueryString
<Files *.xml>
SetHandler AxKit
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
<AxMediaType screen>
<AxStyleName "#default">
AxAddProcessor text/xsl /xslt/test_blau.xsl
</AxStyleName>
<AxStyleName rot>
AxAddProcessor text/xsl /xslt/test_rot.xsl
</AxStyleName>
</AxMediaType>
</Files>
############################
The Dumper output (when requesting an example xml file with an
"?style=rot" as query string) says
...
'Processors' => {
'screen' => {}
},
...
while when I have an AxAddProcessor outside the
AxMediaType/AxStyleName-stuff, but within the <Files>-section, the same
debugging line gives (as expected in principle)
...
'Processors' => {
'screen' => {
'#default' => [
[
'NORMAL',
'text/xsl',
'/xslt/test_blau.xsl',
'',
]
]
}
},
...
Does anybody has any suggestions what I'm doing wrong (in addition to
using the wrong O/S ;-) )???
Any hint is appreciated. Thanks a lot in advance,
Frank Gard.
Problems with AxMediaType and AxStyleName directives - Frank Gard on 3 Nov 2002 00:36:39 -0000
Re: Problems with AxMediaType and AxStyleName directives - Matt Sergeant on 3 Nov 2002 11:05:38 -0000
Re: Problems with AxMediaType and AxStyleName directives - Frank Gard on 30 Nov 2002 23:58:35 -0000
Back up to archives |
These pages are copyright © 2002 Apache Software Foundation


Index