[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

IE Mimeviewer rendered useless by Microsoft Hotfix

Subject: IE Mimeviewer rendered useless by Microsoft Hotfix
From: "Finstad, Franco" <franco.finstad@xxxxxxxxxx>
Date: Thu, 21 Oct 2004 10:33:24 -0400
franco finstad
Hello all,

I have a seemingly insoluble problem related to client-side processing
of XML/XSLT using MSXML4. Here's my problem:

My J2EE server returns XML to the browser. The XML specifies in it's
prolog to use a particular XSL stylesheet. The XSL stylesheet has
javascript in it that is called when the HTML <BODY> onLoad() event
fires. The javascript manipulates the XML document using basic XSLT,
then writes to <DIV> layers in the HTML.

Here's the javascript code:
// Get the XML string from the Mimeviewer object
var xmlString = window.document.XMLDocument;

// Create an MSXML4 DOMDocument object
var myXmlObject = new ActiveXObject("Msxml2.DOMDocument.4.0");
myXmlObject.async = false;
myXmlObject.load(xmlString);

// Get the MSXML4 object for the XSL data
var xslObject = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.4.0");
xslObject.async = false;
xslObject.resolveExternals = false;
xslObject.load(window.document.XSLDocument);

// Get the root node of the XML doc and apply the XSL to it
var myXmlNode = myXmlObject.documentElement;
var myHtml = myXmlNode.transformNode(xslObject);

The problem is that the IE Mimeviewer object
(window.document.XMLDocument) has been rendered unreliable by a
Microsoft hotfix released in July 2003. Namely, the "readyState"
property is unreliable, it does not accurately reflect the readiness of
the data. See below:

Limitation of XML Mimeviewer Causes Unexpected Behavior When You
Transform XML Data by Using Internet Explorer
http://support.microsoft.com/default.aspx?scid=KB;EN-US;823828

My question is --- How do I load my MSXML4 DOMDocument object without
using the Mimeviewer object?

Is there a way for me to access the XML loaded into the browser without
referring to window.document.XMLDocument?

Any help is greatly appreciated.


-------------------------------
Franco Finstad
Project Manager
Tallan Consulting
Office: 212-213-5199 x3417
Mobile: 917-453-5028

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.