![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: get DOM Tree from transformation >Thread Next - Re: get DOM Tree from transformation Re: get DOM Tree from transformationTo: 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/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
