Prior to IE9 I could open a local XML file using a XSL file. The browser would correctly locate the XSL file referenced in the XML and use it to transform the XML to an HTML page. That doesn't seem to be the case anymore, I just get a blank page.
When I hit F12 to get developer tools and enable IE7 or IE8, the XML file is loaded well. But I want to open it with IE9. Nevertheless the use of IE9 shows the error message
XML5658: Un signe « : » ne doit pas se trouver dans un nom.
And this one matches the line:
<?xml:stylesheet type="text/xsl" href="file.xsl"?>
I have read Style sheet for XML not rendering in IE9
My XSL is in compliance with this post.
Is there a workaround?
Instead of writing
<?xml:stylesheet type="text/xsl" href="file.xsl"?>
which happens to work fine in the IE browsers whose versions are less than IE9, we should write it in the standard format for associating stylesheets with XML documents:
<?xml-stylesheet type="text/xsl" href="file.xsl"?>
I also recommend that those having XSL processing problems with IE 9 go to:
http://msdn.microsoft.com/en-us/library/ie/hh180178%28v=vs.85%29.aspx
That helped me solve my issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With