Running XSL on an apache via .htaccess

Running XSL on an apache via .htaccess

Post by Robert Schindl » Mon, 14 Jan 2002 00:04:33



Hi there,
I'd like to use XML for a website but the mime type for xsl Documents
(which I intend to use) is unknown to the server. The administrator
told me to manage this via .htaccess but until now I couldn't get out
how to do so.
The Internet Explorer 6.0 correctly interprets the xsl Stylesheet but
the Mozilla dosn't although it displays the page correctly when viewed
local.
So my question is what needs to be put into a .htaccess file to make
it working?

Thanks for your help in advance!
I've never configured something at an apache before so I would be
thankful for any help.

Greetings
Robert

 
 
 

Running XSL on an apache via .htaccess

Post by Joshua Sliv » Mon, 14 Jan 2002 02:06:53



> Hi there,
> I'd like to use XML for a website but the mime type for xsl Documents
> (which I intend to use) is unknown to the server. The administrator
> told me to manage this via .htaccess but until now I couldn't get out
> how to do so.

You want AddType:
http://httpd.apache.org/docs/mod/mod_mime.html#addtype

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

Running XSL on an apache via .htaccess

Post by Robert Schindl » Mon, 14 Jan 2002 20:47:49


First: thanks!

Quote:> You want AddType:
> http://httpd.apache.org/docs/mod/mod_mime.html#addtype

But it still does not work. I copied a ".htaccess" file into the
desired directory and added:

AddType text/xsl .xsl

But still only the IE 6.0 interprets the xsl Stylesheet. So what did I
wrong?

Is the MIME type wrong, or is something more to be done for using xsl?

Here is my refer:
http://www.worldofwar.net/xml/glossar.xml
and some infos about the server:
http://www.worldofwar.net/xml/

I also tried this on another server, where it works:
http://www.komatika.de/glossar.xml
and again some info:
http://www.komatika.de/cowy.php
Note that in the field Configure Command there is a line saying
"'--enable-xslt' '--with-xslt-sablot'" and a bit below "XSLT support
enabled"

I can't really interpret that so again I am thankful for every bit of
help!

Thanks in advance
Robert Schindler

 
 
 

1. Re-Authentication with apache on FreeBSD 3.0 via .htaccess

Could someone help me with the following problem:

I am using the apache web server on FreeBSD 3.0 and have created a
.htaccess and a .htpasswd file to protect certain CGI scripts via user
authentication. This works ok, so a user/passwort mask appears to
authenticate the user.
After the user has authenticated properly he now can access all files
in the same realm without ever being prompted with the user/passwort
mask again.

My problem is the following:
I want to offer the possibility that the user can authenticate again
using a different username. One easy fix is to stop and restart
the browser, then the user/passwort mask again appears, but this is
of course not acceptable.
What I tried so far is to send a fake 401 Unauthorized message to the
server, but this also didn't work (all further authentication requests
failed).

Any help or workaround would be greatly appreciated ...

Stefan Schoenfelder

2. Help to change the Esc-Esc pattern matching functionality

3. Apache running faster?/.htaccess/access.conf

4. multiple websites, 1 ip on the same port?

5. apache .htaccess can't run script

6. Setup:Info 3 button Mouse in X

7. Running ssh in an cgi script via apache

8. HELP - modem/ppp

9. Apache CGI scripts download via web browser, and don't run?

10. via-rhine.c net driver/VIA VT6102 Rhine-II runs in spurts

11. header and footer via .htaccess??

12. NCSA 1.5 and Redirect via .htaccess. How?

13. Flexible access control via .htaccess