472,353 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Problem with mimetype?

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:output 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.
Jul 20 '05 #1
3 10927


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
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Martin Honnen wrote:


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


D'oh!

I'd forgotten to add the xls extension to text/xlm.

Cheers :)

Tom
Jul 20 '05 #3
GR33DY wrote:
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.

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: S_p_ike | last post by:
Hi all, I have a problem with mail with attachments. To send e-mail with attachments from a form, I use Setec Astronomy's libmail class (v 1.4)...
5
by: Juho Saarikko | last post by:
I made a Python script which takes Usenet message bodies from a database, decodes uuencoded contents and inserts them as Large Object into a...
0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working...
0
by: Scott McFadden | last post by:
My aspx page code reads some custom values from the HTTP headers and then writes a given pdf to the output stream based upon the header values....
1
by: Patrick F | last post by:
I cant figure out what mimetype .aspx pages are, i have been searching thru msdn and the only thing that i found was a way to list all mimetypes...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are...
1
by: durayakar | last post by:
Hi, SQL 2005 Reporting services... I get a warning of rsInvalidMIMEType when the MIMEType of my external (http) image is Image/Jpeg or...
1
by: byrapaneni | last post by:
Hello all; I gathered information from this and several other groups to write a perl & cgi script to display a pdf document. My script works...
0
by: phpfreak2007 | last post by:
Hi all, I am trying to upload file using VB HTTP Post method and winsock control . Can successfully upload the files when client machine is English...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.