| Subject: [xsl] Problem using transformNode in html  transformed from XML From: "Steve Renshaw" <renshaw_steve@xxxxxxxxxxx> Date: Wed, 20 Mar 2002 20:32:05 +0000 | 
I have doc.xm and doc.xsl that generates html output. Within the generated html output, there a javascript function "Change()" that executes when a certain form element has an onChange event.
Within Change() I attempt to load Bug.xml and Bug.xsl, do the transform using transformNode and stuff the result into <div id="here">: The generated code within the html output looks like this:
<html>
<head>
 <script type="text/javascript">
   <![CDATA[
    function Change() {
     var objPathXml="Bug.xml";
     objXml= new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
     objXml.async =false;
     objXml.validateOnParse = false;
     objXml.load(objPathXml);     var objPathXsl="Bug.xsl";
     objXsl= new ActiveXObject('Microsoft.XMLDom');
     objXsl.async =false;
     objXsl.validateOnParse = false;
     objXsl.load(objPathXsl);     return;
    }
   ]]>
 </script>
</head>
<body>
 <div id="here"></div>
</body>
</html>on the line that contains "document.all['here'].innerHTML". I realize there is a lot going on in this example, but if I change the last line to:
then "Hello World" shows up in bold at <div id="here"> when the form element is changed. The only thing that does not appear to be working is the transformNode.
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] Wrox book still the best , Bryan Rasmussen | Thread | Re: [xsl] Problem using transformNo, Carsten Klein | 
| RE: [xsl] Wrox book still the best , Jhaveri, Harshal | Date | RE: [xsl] Wrox book still the best , Snow, Corey | 
| Month |