Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Problem with mimetype? (http://www.velocityreviews.com/forums/t167361-problem-with-mimetype.html)

Martin Honnen 06-25-2004 01:08 PM

Re: Problem with mimetype?
 


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/


GR33DY 06-25-2004 01:27 PM

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.

GR33DY 06-25-2004 02:00 PM

Re: Problem with mimetype?
 
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

Rolf Magnus 06-26-2004 08:45 AM

Re: Problem with mimetype?
 
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.



All times are GMT. The time now is 03:58 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.