View Single Post
  #1 (permalink)  
Old December 20th, 2007, 01:54 AM
picky picky is offline
Registered User
Join Date: Oct 2006
Location: chennai, tamilnadu, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.