Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: get DOM Tree from transformation

From: "VK" <schools_ring@-----.--->
To: 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).



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