Exactly, the XSLT stylesheet is being served as text/html

You see what you did is you sent a PI to Mozilla, which happily attempted to invoke its client-side XSLT processor, but it can't because of the bad MIME type on the stylesheet...
Fix that and it will most likely transform and render with Moz 1.5 and up, or IE 6.x if you have a new enough MSXML component (and some luck).


[EMAIL PROTECTED] root]# GET -e http://www.gentoo.org/xsl/guide.xsl
Connection: close
Date: Mon, 22 Mar 2004 19:11:05 GMT
Accept-Ranges: bytes
ETag: "55c175-543e-405b0115"
Server: Apache/1.3.29 (Unix) (Gentoo/Linux) mod_gzip/1.3.26.1a AxKit/1.61 mod_p
erl/1.27
Vary: Accept-Encoding,User-Agent
Content-Length: 21566
Content-Type: text/html; charset=UTF-8
Last-Modified: Fri, 19 Mar 2004 14:17:57 GMT
Client-Date: Mon, 22 Mar 2004 19:11:06 GMT
Client-Peer: 203.112.31.164:80
Client-Response-Num: 1


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
....

Lance Albertson wrote:

Correct me if this isn't how PassThru is supposed to work, but what is
supposed to happen if the xml file being returned from the PassThru plugin
contains a stylesheet location. Is axkit supposed to ignore it, or is this
browser dependent? Here is an example:

http://www.gentoo.org/index.xml?passthru=1

Returns the error:

Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:
http://www.gentoo.org/xsl/guide.xsl

Is there something in axkit we need to add/change or do we just have to deal
with this? If you view the source, the xml is indeed intact, but the browser
complains (I'm using Firefox). It does a similar thing on IE as well.

Any help would be great!




--
Tod Harter
Principal Developer
TradeDesk Software
voice: 802 655 2777
[EMAIL PROTECTED]


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



Reply via email to