Document.XSLDocument is not working in Firefox, but works in IE

document.XSLDocument is not working in Firefox, but works in IE

rpt = parent.frames['report'];
xmlDoc = rpt.document.XMLDocument;
xslDoc = rpt.document.XSLDocument;
filtervar = xslDoc.selectSingleNode("//xsl:variable[@name='xyz']");

It is giving as undefined error, how to get XSL object from dynamically load xml/xsl content, so i can format XML/XSL in client side itself.


maybe you have problem with firefox XHTML handling. Basically, when XHTML is case sensitive and all tags are lowercase, so when firefox receive document he execute method that converts all tags to lowercase which can cause errors.

I’m not sure that this issue is also in your code, but this can help.

I am using frameset doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">