![]() |
![]() | ![]() | ![]() | 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 7:41:00 AM
Martin Honnen wrote:
> Make sure all documents involved belong to the same MSXML version (e.g.
> in the above sample MSXML 3).
To avoid this branch of possibilities: the MSIE's part of the
initialisation block looks like:
...
INIT:
do {
try {
XSL = new ActiveXObject('Msxml2.DOMDocument.'+N+'.0');
XML = new ActiveXObject('Msxml2.DOMDocument.'+N+'.0');
DOC = new ActiveXObject('Msxml2.DOMDocument.'+N+'.0');
break INIT;
}
catch(e) {
--N;
continue INIT;
}
} while (N>2);
if (DOC == null) {
flagError(
'Automation server cannot create object\n' +
'ActiveX instantiation is blocked by security settings ' +
'or MSXML version is too old - 3.0 or higher is required.');
}
...
This way either all objects initialized with the same ProgID or not
init at all (goes to error handling).
On the test machine the lowest supported version is used (3) and XML,
XSL and DOC are successfully created.
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.
At the same time transResult.documentElement.tagName properly shows the
root of the fragment (ol in my case).
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
