![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: get DOM Tree from transformation [Thread Next] get DOM Tree from transformation : partially solvedTo: NULL Date: 1/4/2007 5:32:00 AM
VK wrote:
> Sorry, I did not mean to make this thread as a "Microsoft criticism" of
> any kind. I'm just upset that among dozens and dozens of MSXML methods
> there is not a single one for such trivia.
For anyone hitting the same problem: I stopped on a workaround using
virtual DOM element:
...
var MSHTML = document.createElement('div');
MSHTML.innerHTML = source.transformNode(XSL);
return MSHTML.firstChild;
...
It is not a full-scaled hack like in Sarissa so it doesn't take care of
more complicated cases - a set of sibling elements, mal-formed fragment
and so on.
For my practical purposes though I fits well as it will be a
well-formed single parent out of a transformation (list, table, shape).
For such trivial cases it lets to bypass the IE's limitation with the
minimum overheat.
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
