I had to render some XML using XSLT. The problem is, it is getting rendered in IE (I tested on my office machine which has IE6), and not in other browsers. Other browsers show document content with the XSL (as opposed to the Document Structure without XSL).
Here are my XML file headers:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="demo.xsl"?>
<XMLCodeFollows>
.
.
.
</XMLCodeFollows>
and here is the XSL file header:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
anybody knows what the problem is?
EDIT:Removed the extra bogus lines in xsl that may have made it IE specific, but it still doesn’t work. IE still renders the XML/XSL, but no other browser does.
I’m not sure from your description exactly what the problem is – does the XML document get styled by your XSLT file in IE, but not in the other browsers (ie: Firefox etc just display the plain XML?). It’s difficult to tell without seeing the whole XSLT, but something that jumps out at me is that your xsl file starts by declaring the Microsoft-specific XSL namespace msxsl, which suggests your stylesheet might be using XSLT extensions that Firefox or Chrome don’t support.