This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: A general question (Mozilla & xsl)


I'd like to add my $.02, since I experienced a similar frustration.

Does the http server send .xsl as text/plain or text/xml? The default
configuration of Apache on my box (Red Hat 7.2) uses the first mime type
and Galeon/Mozilla doesn't apply the stylesheet in that case.

To test it, just telnet to port 80 and look, or use

        wget -qs http://yourdomain.foo/yourfile.xsl -O - | grep
Content-type

(-s tells wget to save the headers, so that grep cat find them).

If the output of the above is 'Content-type: text/plain' you should edit
your webserver configuration.

For Apache, just find how mime types are handeld, eg.

        grep TypesConfig /etc/httpd/conf/httpd.conf

and edit the suitable file (in my case /etc/mime.types) to modify the line

        text/xml                        xml

to

        text/xml                        xml xsl

which simply tells that files with .xsl extension are xml files.

Good luck,
        Massimo



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]