Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: get DOM Tree from transformation

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 1/3/2007 5:07:00 PM

VK wrote:

> With XSL and XML loaded and parsed the next step currently looks like:
>     source.transformNodeToObject(XSL, DOC);
>     return DOC;
> 
> With the code on page:
>   document.body.appendChild(transResults);
> 
> gives error "No such interface supported" on IE6 which is tracked down
> to appendChild method.

That does not work if document.body is the body of an HTML DOM document. 
The XML DOM implementation (of MSXML) and the HTML DOM implementation 
(of IE/MSHTML) are separate implementations, you are not able to move 
nodes from an XML DOM document to a HTML DOM document. If your intention 
is to transform XML to HTML with XSLT then with IE you are bound to use 
transformNode to get a string result and insert that string into the 
HTML document with innerHTML or insertAdjacentHTML.

And note that even with Mozilla's DOM implementation you should consider 
using importNode instead of simply moving nodes from one document to 
another.




-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent