Displaying styled XML in Mozilla with CSS

J

Jim Jaworski

I've been learning XML since last October. I've been creating XML
files using Altova's Authentic 2004.
program as well as hand-coding small sample files.

There has been a problem though, when it comes to displaying XML on
Netscape after it has been uploaded to a web server.

Here is one of the sample files:

http://www.mts.net/~jjaworsk/xml/winnipegradio.xml

It displays just fine in MS IE 6.x locally or on the Net. But with
Mozilla 1.6 it only displays the styled document locally,
not online.

I'm using CSS to style.

What do I need to do to fix this?
 
M

Martin Honnen

Jim said:
I've been learning XML since last October. I've been creating XML
files using Altova's Authentic 2004.
program as well as hand-coding small sample files.

There has been a problem though, when it comes to displaying XML on
Netscape after it has been uploaded to a web server.

Here is one of the sample files:

http://www.mts.net/~jjaworsk/xml/winnipegradio.xml

It displays just fine in MS IE 6.x locally or on the Net. But with
Mozilla 1.6 it only displays the styled document locally,
not online.

I'm using CSS to style.

What do I need to do to fix this?

Your web server needs to be configured to send the correct Content-Type
for XML and CSS documents, for .xml document it sends the type
text/plain and therefore Mozilla simply displays the source text of the
..xml file. Ask your server administrator to set up .xml files as being
served with the HTTP response header
Content-Type: text/xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top