transformNode not working in firefox
Hi All,
I have my javscript code as following to apply xslt for the xml content present inside a div tag. This code works in ie. But not working in FireFox , Safari.
var strStyle = document.getElementById(âsStyleâ).XMLDocument;
document.getElementById(âwdâ).innerHTML = document.getElementById(âforxmlâ).transformNod e(âstrStyleâ);
here is the piece of code in my asp file where the xml transformation is taking place.
<XML ID="forxml" HEIGHT="0" WIDTH="0"><%=sentence%></XML>
<XML ID="sStyle" SRC="aod.xsl"></XML>
<div id =âwdâ></div>
the asp variable sentence holds the xml tag information .
This code works perfectly in Internet Explorer . But its not at all working in FireFox.
Its displaying error message as âtransformNode not a function in firefoxâ
Please give me suggestions how to rectify this�
Thanks in advance.
|