Page 1 of 1

XML not being formatted by XSL in netscape

Posted: Wed Jan 21, 2004 10:44 am
by kendall
Hello,

the following are links to a xml/xsl data

http://brotherresistance.com/draft/downloads.xsl
http://brotherresistance.com/draft/downloads.xml

While the document is seen correctly in IE....it isnt in NETSCAPE/ FIREBIRD (i have >6)

Why is this happening in netscape?

Kendall

Posted: Wed Jan 21, 2004 11:45 am
by Stoker
As usual, Bill Gates is trying to be helpful and automatically processing a plain text document as something it is not (or may not be) based on the extension (This is how Bill Gates approaches security, run before ask, one of the biggest windows/IE flaws ever was based on this with .exe and .bat files)...

So, the reason Mozilla won't do anything is because the webserver presents it as a plain text file, you need to add a mimetype for XML documents, I am not entirely sure which one is the right type but I believe text/xml would work... (the Content-type header, you can probably set this in a htaccess file if you dont have root/httpd.conf access, or you can ask your host to add .xml and .xsl files as text/xml)

Posted: Wed Jan 21, 2004 12:38 pm
by kendall
So what was the <?xml version = 1.0 ?> for....appearance

geez man, is there no end to my madness
how far off my rocker must i get

ARH!
the pain
theagony
KEndall

Posted: Wed Jan 21, 2004 1:20 pm
by Stoker
.. the main issue is, it is up to the server to tell the client what the content is, in which way the server determines what it is doesn't matter...

Bill Gates takes matter in his own hands and make somewhat educated (and sometimes insecure) guesses on what it is..

Posted: Thu Jan 22, 2004 7:09 am
by kendall
Stoker,

I went and complained to my IHP about the situation. They redirected the problem back to the browser saying that it may be a browser problem....

However, now get and error message

"Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:http://www.brotherresistance.com/draft/downloads.xsl"

Posted: Thu Jan 22, 2004 5:44 pm
by Stoker
heh, inexperienced hosting staff I would say....

the .xsl file must also have the same mime type, as that is infact an XML document.. so add thatone as well..

Posted: Fri Jan 23, 2004 3:54 am
by twigletmac
Yeah your XSL file is showing as plain text for me.

Mac