为啥IE不能打开XML,而chrome和firefox可以打开
为什么IE不能打开XML,而chrome和firefox可以打开?
RT。
我将一个xml及其的xsl样式表都写到一个文件,如下:
为什么IE无法正确打开,而firefox和chrome可以正确打开呢?
个人估计是IE对XML版本支持不行,那么有什么办法解决呢?
------解决方案--------------------
打不开给的地址,估计要翻墙。。。接分
RT。
我将一个xml及其的xsl样式表都写到一个文件,如下:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="#stylesheet"?>
<!DOCTYPE doc [
<!ATTLIST xsl:stylesheet
id ID #REQUIRED>
]>
<doc>
<!--Start XSL-->
<xsl:stylesheet id="stylesheet"
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="xsl:stylesheet" />
<xsl:template match="/doc">
<html>
<head>
</head>
<body>
<table width="100%" border="1dpx" class="table table-striped mt40">
<tr bgcolor="#5cacee">
<td align="left">Mainkind</td>
<td align="left">Monkey</td>
<td align="left">Pig</td>
<td align="left">celestial</td>
<td class="last-col" align="left">Horse</td>
</tr>
<xsl:for-each select="teams/team">
<tr>
<td><xsl:value-of select="mankind"/></td>
<td><xsl:value-of select="monkey"/></td>
<td><xsl:value-of select="pig"/></td>
<td><xsl:value-of select="celestial"/></td>
<td><xsl:value-of select="horse"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<teams>
<team>
<mankind>tangsheng</mankind>
<monkey>wukong</monkey>
<pig>bajie</pig>
<celestial>sasheng</celestial>
<horse>bailong</horse>
</team>
</teams>
</doc>
为什么IE无法正确打开,而firefox和chrome可以正确打开呢?
个人估计是IE对XML版本支持不行,那么有什么办法解决呢?
------解决方案--------------------
打不开给的地址,估计要翻墙。。。接分