Hi,

Thanks! Tried that and it works! Any idea about the
config not working if placed within Files, Location,
etc blocks?

Also, XSP scripts still has errors as follows in
Provider.pm

######################################################
[warn] [client 127.0.0.1] [AxKit] handler called for
/xsp/demo/core.xsp
[warn] [client 127.0.0.1] [AxKit] Content Provider
Override: Apache::AxKit::Provider::File
[warn] [client 127.0.0.1] [AxKit] [req] File Provider
given $r: /www/doc/xsp/demo/core.xsp
[warn] [client 127.0.0.1] [AxKit] checking if we
process this resource
[warn] [client 127.0.0.1] [AxKit] media: screen,
preferred style: #default
[warn] [client 127.0.0.1] [AxKit] Cache: key =
27462144a0e64356eccbd0fde510a7b5
[warn] [client 127.0.0.1] [AxKit] getting styles and
external entities from the XML
[warn] [client 127.0.0.1] [AxKit] styles not cached -
calling $provider->get_styles()
[warn] [client 127.0.0.1] [AxKit] using XS get_styles
(libxml2)
[warn] [client 127.0.0.1] [AxKit] calling
xs_get_styles_fh()
[warn] [client 127.0.0.1] [AxKit] calling
xs_get_styles_str()
[warn] [client 127.0.0.1] [AxKit] Caught an exception
[error] [client 127.0.0.1] [AxKit] [Error] Can't use
an undefined value as an ARRAY reference at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider.pm
line 254.

[error] [client 127.0.0.1] [AxKit] From:
/usr/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Exception.pm
: 9
[error] [client 127.0.0.1] [AxKit] [Backtrace] Can't
use an undefined value as an ARRAY reference at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider.pm
line 254.
       
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error',
'-text', 'Can\'t use an undefined value as an ARRAY
reference at /usr/lib/...') called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm
line 839
        AxKit::prep_exception('Can\'t use an undefined
value as an ARRAY reference at /usr/lib/...') called
at /usr/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm
line 191
        AxKit::__ANON__('Can\'t use an undefined value
as an ARRAY reference at /usr/lib/...') called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider.pm
line 254
       
Apache::AxKit::Provider::xs_get_styles('Apache::AxKit::Provider::File=HASH(0x83490f8)',
'screen', undef) called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider.pm
line 148
       
Apache::AxKit::Provider::get_styles('Apache::AxKit::Provider::File=HASH(0x83490f8)',
'screen', '#default') called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm
line 693
        AxKit::get_styles('screen', '#default',
'Apache::AxKit::Cache=HASH(0x834c58c)',
'Apache::AxKit::Provider::File=HASH(0x83490f8)')
called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm
line 371
       
AxKit::run_axkit_engine('Apache=SCALAR(0x8348ffc)',
'Apache::AxKit::Provider::File=HASH(0x83490f8)')
called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm
line 264
        eval {...} called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm
line 255
       
AxKit::main_handler('Apache=SCALAR(0x8348ffc)',
'Apache::AxKit::Provider::File=HASH(0x83490f8)')
called at
/usr/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm
line 226
        AxKit::handler('Apache=SCALAR(0x8348ffc)')
called at /dev/null line 0
        eval {...} called at /dev/null line 0
##################################################
--- Matt Sergeant <[EMAIL PROTECTED]> wrote:
> On Friday, Nov 22, 2002, at 09:20 Europe/London, lhc
> wrote:
> 
> > Hi,
> >
> > I am running AxKit 1.6 on Redhat 7.0 with Apache
> > 1.3.27 & mod_perl 1.27.
> >
> > If I place my AxKit configs in a <Files>,
> <Directory>
> > or <Location> block, AxKit is not being called to
> > handle the requests. It works if I place them in
> the
> > main block of the httpd.conf. Any idea?
> >
> > XML with XSL works perfectly. However, when I try
> to
> > run XSP scripts, I always get the following error:
> > "'/www/xsp/param.xsp' not recognised as XML" and
> the
> > whole script is outputted to the browser as plain
> > text. Any idea what went wrong?
> 
> You need to tell Apache that .xsp files are XML.
> Try:
> 
> AddType text/xml .xsp
> 
> Matt.
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to