Reputation: 3155
I have an XML file on disk (file scheme) which starts with the following declaration:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xml" href="speisekarte.xsl"?>
<speisekarte>
...
</speisekarte>
speisekarte.xsl
is an XSL stylesheet which generates HTML (version 4.01) from the XML.
This works fine on Mac OS X with Safari and Google Chrome (given the --allow-file-access-from-files
option).
On Windows, it also works with Google Chrome (given the same option), but I can't get it to work with Internet Explorer 8.0.6001.18702. It always displays the XML tree, so it doesn't run the transformation.
What am I missing here?
Upvotes: 2
Views: 1406
Reputation: 167571
Use <?xml-stylesheet type="text/xsl" href="speisekarte.xsl"?>
instead of <?xml-stylesheet type="text/xml" href="speisekarte.xsl"?>
.
Upvotes: 2