Problem with mimetype?

M

Martin Honnen

GR33DY wrote:

When I view my XML page using I.E.6 it displays fine from both my web
server and when opened from windows explorer.
But when I view it in mozilla 1.7, it displays fine from windows
explorer, but when viewed via HTTP from the web server I get the
following error;

Error loading stylesheet: An XSLT stylesheet does not have an XML
mimetype

My server has the XML mimetype text/xml and I have tried configuring it
with text/xsl as well to no avail.

My XML page starts thus;

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>

Make sure the server serves style.xsl as text/xml or application/xml.
See the Mozilla XSLT FAQ at
http://www.mozilla.org/projects/xslt/faq.html
 
G

GR33DY

Hello again, I can see myself becoming a regular feature at the top here ;)

When I view my XML page using I.E.6 it displays fine from both my web
server and when opened from windows explorer.
But when I view it in mozilla 1.7, it displays fine from windows
explorer, but when viewed via HTTP from the web server I get the
following error;

Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype

My server has the XML mimetype text/xml and I have tried configuring it
with text/xsl as well to no avail.

My XML page starts thus;

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>

And my XSLT page starts thus;

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:eek:utput method="html" doctype-system="./board.dtd"/>

Is this a problem with my server (I have tried it on another) or with
the declarations?

Thanks in anticipation,

Tom.
 
R

Rolf Magnus

GR33DY said:
My server has the XML mimetype text/xml and I have tried configuring
it with text/xsl as well to no avail.

My XML page starts thus;

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>

text/xsl is not an official mimetype for xsl stylesheets. It's Microsoft
specific. Use text/xml or application/xml instead.
 

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,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top