I can suggest you this link. Let me know if it works.
The link turned out to be very useful thanks!!!
1) Based on what I've seen looking at this issue I think that the problem stems from the modal dialog ignoring the mime type and treating the xml as html
2) The solution I've got working, if not particularly tidily, relies on javascript loading the xml into an html page on load.......
change the url passeed to the modal dialog in TestModalXML.html
-
...showModalDialog('http://xxx.xxx/eg01.html'....
-
eg01.html
-
<html>
-
<head>
-
-
<XML id="eg01xml">
-
<catalog>
-
<cd>
-
<title>Empire Burlesque</title>
-
<artist>Bob Dylan</artist>
-
<country>USA</country>
-
<company>Columbia</company>
-
<price>10.90</price>
-
<year>1985</year>
-
</cd>
-
</catalog>
-
</XML>
-
-
<XML id="eg01xsl">
-
<xsl:stylesheet version="1.0"
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-
<xsl:template match="/">
-
<html>
-
<body>
-
<h2>My CD Collection</h2>
-
<table border="1">
-
<tr bgcolor="#9acd32">
-
<th align="left">Title</th>
-
<th align="left">Artist</th>
-
</tr>
-
<xsl:for-each select="catalog/cd">
-
<tr>
-
<td><xsl:value-of select="title"/></td>
-
<td><xsl:value-of select="artist"/></td>
-
</tr>
-
</xsl:for-each>
-
</table>
-
</body>
-
</html>
-
</xsl:template>
-
-
</xsl:stylesheet>
-
</XML>
-
-
<script type="text/javascript">
-
function testLoad() {
-
var xmldom = new ActiveXObject("msxml2.DOMDocument");
-
xmldom.async = false;
-
xmldom.resolveExternals = false;
-
xmldom.loadXML(eg01xml.innerHTML);
-
var xsldom = new ActiveXObject("msxml2.DOMDocument");
-
xsldom.async = false;
-
xsldom.resolveExternals = false;
-
xsldom.loadXML(eg01xsl.innerHTML);
-
var outputdom = new ActiveXObject("msxml2.DOMDocument");
-
outputdom.async = false;
-
outputdom.resolveExternals = false;
-
xmldom.transformNodeToObject(xsldom, outputdom);
-
divTarget.innerHTML = outputdom.xml;
-
}
-
-
</script>
-
</head>
-
<body onLoad="testLoad()">
-
<div id="divTarget"></div>
-
</body>
-
</html>
-