I had a problem getting XSP programs to run until I dug around in the
File.pm provider and made a change to a regular expression at line 143
from:

($self->{apache}->content_type() =~ /^(text|application)\/xml/)

 to:

($self->{apache}->content_type() =~ /^(text|application)\/.*(xml|xsp)/) 

 Before this I already had the following:

 AddHandler axkit .xsp
 AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
 AddType application/x-xsp .xsp

 But until I fudged that regexp into shape, AxKit refused to recognize
any .xsp file as an XML file, despite the fact that all the
documentation I can find on AxKit, as well as all the examples, are
telling me it's supposed to be that way.

 Am I crazy, or was Provider/File.pm broken?

 I'm using the latest AxKit, built from the Apache CVS tree.

Regards,

Chris Wenham
www.disenchanted.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to