Apologies meant to send this to the group!
--

After much messing about with my httpd.conf and various *.pm's to get my xsp
pages to work (my lack of understanding rather that any fault of AxKit!), I
found the following from the AxKit article on perl.com. works great.

Matt I'll let you tell me if its the best way to go, but everything seems to
function just fine.

PerlModule AxKit
AddHandler axkit .xml .xsp
AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT

On 13/04/2002 11:25 pm, "Matt Sergeant" <[EMAIL PROTECTED]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Saturday 13 April 2002 5:17 pm, Christopher H. Laco wrote:
>> In the last exciting episode of Das Internet,Matt Sergeant spewed forth the
>> following FUD:
>           ^^^
> Excuse me?
> 
>>> On Saturday 13 April 2002 1:39 am, Chris Wenham wrote:
>>>>  AddType application/x-xsp .xsp
>>> 
>>> That should be application/xsp+xml probably (which is how other xml
>>> sub-types  are defined).
>> 
>> Well, now I'm really confused.
>> As most people probably did, I started to learn AxKit from the axkit.org
>> site, and a perl.com article on using AxKit.
>> 
>> http://www.axkit.org/docs/guide.dkb?section=7
>> http://www.perl.com/pub/a/2002/03/12/axkit.html?page=2
>> 
>> ..both use application/x-xsp , which is where I picked up the content-type
>> from...
>> 
>> Is there a 'right' answer to this?
> 
> AxKit 1.5.1 changed how it detected XML. It dropped the sniffer that looked
> inside of XML files for the <?xml section. This meant that the check for
> whether we should process something relied solely on a few simple things,
> like the filename, the content-type, and so on. However that check occurs if
> and only if using the slower PerlHandler AxKit method, rather than the
> "AddHandler axkit .xsp" method (for obvious reasons).
> 
> So the right answer is to use AddHandler.
> 
> As far as the actual mime type used, we do generally use application/x-xsp,
> but it's not really set in stone. We only test for "xml" in the mime type in
> the test above, so if you use application/xsp+xml, it should work.
> 
> Hope that helps.
> 
> - -- 
> <:->get a SMart net</:->
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iEYEARECAAYFAjy4vnYACgkQVBc71ct6OyxgsQCgp0MqsCnQudzt8kdeJGEAUvDD
> i2wAoKSj0RSUCk/CPn3af+cArdzV7boB
> =MhUJ
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> 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