473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 10979


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) (available here http://www.phpclasses.org/) ...
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 PostGreSQL database. However, it appears that the to...
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 perfectly when inserted inside VC#.NET or VB.NET...
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. Unforunately, my code causes IE to pop up an Open /...
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 installed on the computes, output something like...
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 successful except for one method named "findObjects"...
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 Image/JPEG... posting it here for future reference......
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 partially and found an issue when testing. Here is...
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 OS, but create problem when upload from Chinese...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.