|
December 23, 2001 Transforming XML to HTML Tips: December 2001
Yehuda Shiran, Ph.D.
|
|
When you have an XML file and want to convert it to an HTML file using XSLT in Internet Explorer, you need to first load the XML file in an ActiveXObject, then load the XSLT file in separate ActiveXObject, and then finally transform the XML object to an HTML object. Here is how you load the XML file with the value returned from a Web service (event.result.value):
and here is how you load the XSLT:
and, finally, convert the XML document to an HTML page, and put the result in the variable res:
People who read this tip also read these tips: Look for similar tips by subject: |