Re: [xsl] An XSLT stylesheet does not have an XML mimetype

Subject: Re: [xsl] An XSLT stylesheet does not have an XML mimetype
From: Anton Triest <anton@xxxxxxxx>
Date: Thu, 07 Oct 2004 10:25:57 +0200
I don't know if this could cause an error, but shouldn't encoding="ISO_8859-1" be "ISO-8859-1"?

I tried it out in IE6 and Mozilla Firefox, they seem to ignore this; Saxon says:
"Failed to load ISO_8859-1" (but it does generate an output file).


Anton


raven wrote:


Greetings. I have created a set of documents that when
I call them in Internet Explorer, they work fine, but
when I call them in Netscape, I receive "Error loading
stylesheet: An XSLT stylesheet does not have an XML
mimetype."


The top lines of my XML code read as follows:

<?xml version="1.0" encoding="ISO_8859-1"?>
<?xml-stylesheet type="text/xsl" href="about.xsl" ?>

xml code . . .

The top lines of about.xsl are:

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:output method="html" encoding="ISO_8859-1" />

What must I modify to get this to work in
Netscape/Mozilla?


Thank you.

ra5en

Current Thread