XML not being formatted by XSL in netscape

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

XML not being formatted by XSL in netscape

Post 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
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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)
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post 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
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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..
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post 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"
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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..
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Yeah your XSL file is showing as plain text for me.

Mac
Post Reply