I modified the sample .xsp file as the following.

<?xml version="1.0"?>
<?xml-stylesheet type="application/x-xsp" href="NULL"?>
<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core";
        xmlns="uri://axkit.org/NS/MyHomePage"
        language="Perl">
        <page>
                <body>
                        <heading>Hello World</heading>
                        It is now: <xsp:expr>scalar localtime</xsp:expr>
                </body>
        </page>
</xsp:page>

Unfortunately, I got the error message as the following.
Is this the problem of old AxKit package?
I'm currently using the AxKit 1.4_82 installed from 
http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer
via ppm of activeperl-5.6.1-.629.

[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] handler 
called for /AxKit/test.xsp
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] checking if 
we process this resource
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] media: 
screen, preferred style: #default
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] Cache: key 
= 600122ee7fabf33103d1d6bc7cb7fccc
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] getting 
styles and external entities from the XML
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] styles not 
cached - calling $provider->get_styles()
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] using XS 
get_styles (libxml2)

[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] calling 
xs_get_styles_fh()

[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] parse_pi: 
type = application/x-xsp
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] parse_pi: 
href = NULL
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] 
xs_get_styles returned: , , {http://www.apache.org/1999/XSP/Core}page

[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] Calling 
GetMatchingProcessors with (screen, , , , 
{http://www.apache.org/1999/XSP/Core}page)
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] get_styles: 
loading style modules
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] get_styles: 
looking for mapping for style type: 'application/x-xsp'
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] resetting 
cache with no preferred style (#default ne )
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] Cache: key 
= 8633691a0c457f9f34e604b11467e0f5
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] cache 
doesn't exist
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] some 
condition failed. recreating output
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] styles: 
Apache::AxKit::Language::XSP(NULL)
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] File 
Provider looking up uri NULL
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] File 
Provider set filename to c:/local/apache group/apache/axkit/null
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] about to 
execute: Apache::AxKit::Language::XSP::handler
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] XSP: parsing fh
[Wed Dec 12 18:56:17 2001] [warn] [client 127.0.0.1] [AxKit] Caught an 
exception
[Wed Dec 12 18:56:17 2001] [error] [client 127.0.0.1] [AxKit] [Error] 
Parse of 'c:/local/apache group/apache/axkit/test.xsp' failed: Can't use 
string ("XML::LibXML") as a HASH ref while "strict refs" in use at 
C:/Perl/site/lib/XML/LibXML.pm line 91, <_GEN_3> line 1.

[Wed Dec 12 18:56:17 2001] [error] [client 127.0.0.1] [AxKit] From: 
C:/Perl/site/lib/Error.pm : 146
[Wed Dec 12 18:56:17 2001] [error] [client 127.0.0.1] [AxKit] 
[Backtrace] Parse of 'c:/local/apache group/apache/axkit/test.xsp' 
failed: Can't use string ("XML::LibXML") as a HASH ref while "strict 
refs" in use at C:/Perl/site/lib/XML/LibXML.pm line 91, <_GEN_3> line 1.
        Error::throw('Apache::AxKit::Exception::Error', '-text', 'Parse of 
\'c:/local/apache group/apache/axkit/test.xsp\' failed:...') called at 
C:/Perl/site/lib/Apache/AxKit/Language/XSP.pm line 99
        Apache::AxKit::Language::XSP::handler('Apache::AxKit::Language::XSP', 
'AxKit::Apache=SCALAR(0xbdc064)', 
'Apache::AxKit::Provider::File=HASH(0xbda65c)', 
'Apache::AxKit::Provider::File=HASH(0xbda734)', 1) called at 
C:/Perl/site/lib/AxKit.pm line 448
        AxKit::process_request('AxKit::Apache=SCALAR(0xbdc064)', 
'Apache::AxKit::Provider::File=HASH(0xbda65c)', 'ARRAY(0x8f48e4)') 
called at C:/Perl/site/lib/AxKit.pm line 286
        eval {...} called at C:/Perl/site/lib/AxKit.pm line 212
        AxKit::main_handler('AxKit::Apache=SCALAR(0xbdc064)', 
'Apache::AxKit::Provider::File=HASH(0xbda65c)') called at 
C:/Perl/site/lib/AxKit.pm line 206
        AxKit::handler('AxKit::Apache=SCALAR(0xbdc064)') called at nul line 0
        eval {...} called at nul line 0

[Wed Dec 12 18:56:17 2001] [error] ErrorStylesheet: No module mapping 
found for type ''

Matt Sergeant wrote:

> You haven't setup a mapping for it. You need to explicitly let AxKit know
> that it should process this file in some way. Either by adding in
> <?xml-stylesheet type="application/x-xsp" href="NULL"?>, or by adding in
> config directives to achieve the same.
> 
> ----- Original Message -----
> From: "Chien-Kang Huang" <[EMAIL PROTECTED]>
> To: "John Napiorkowski" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 12, 2001 1:14 AM
> Subject: Re: Using XSP on Win2000
> 
> 
> 
>>I just don't know what's wrong with the axkit.
>>The Apache server output the source of .xsp files directly,
>>without executing any perl expression in the .xsp file.
>>
>>C.K.
>>
>>John Napiorkowski wrote:
>>
>>
>>>Are you using the activestate distribution?  I was
>>>able to get this to work a few months ago, with a lot
>>>of trouble, on win2000, but I had to install pretty
>>>much everything from that ppm respository Matt points
>>>us to in his FAQ.
>>>
>>>I'll dig around and see if I can find my apache config
>>>file.
>>>
>>>__John
>>>
>>>--- Chien-Kang Huang <[EMAIL PROTECTED]>
>>>wrote:
>>>
>>>
>>>>I set my Apache server as the following.
>>>>
>>>>LoadModule perl_module modules/mod_perl.so
>>>>
>>>>#
>>>># AxKit configuration
>>>>#
>>>>Alias /AxKit/ "C:/local/Apache Group/Apache/AxKit/"
>>>>PerlModule AxKit
>>>><Location /AxKit>
>>>>   SetHandler perl-script
>>>>   PerlHandler AxKit
>>>>
>>>>   AxDebugLevel 10
>>>>   AxLogDeclines On
>>>>
>>>>   AxAddStyleMap text/xsl
>>>>Apache::AxKit::Language::Sablot
>>>>   AxAddStyleMap application/x-xpathscript
>>>>Apache::AxKit::Language::XPathScript
>>>>   AxAddStyleMap application/x-xsp
>>>>Apache::AxKit::Language::XSP
>>>></Location>
>>>>
>>>>Try the following XSP file as sample.
>>>>
>>>><xsp:page
>>>>xmlns:xsp="http://www.apache.org/1999/XSP/Core";
>>>>xmlns="uri://axkit.org/NS/MyHomePage"
>>>>language="Perl">
>>>><page>
>>>><body>
>>>><heading>Hello World</heading>
>>>>It is now: <xsp:expr>scalar localtime</xsp:expr>
>>>></body>
>>>></page>
>>>></xsp:page>
>>>>
>>>>Unfortunately, the XSP does not work.
>>>>Except for the XSP, the XSLT and XPathScript can
>>>>work properly.
>>>>Could anyone give me a help on XSP settings?
>>>>
>>>>C.K.
>>>>
>>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> 




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

Reply via email to