晕死了!这么简单的xml也会出错???就是不显示数据,也不报错???[没分了:(]
data.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml:stylesheet type="text/xsl" href="student.xsl"?>
<document>
<resume>
<name>ice</name>
</resume>
</document>
student.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<head>
<title>Untitled Document</title>
</head>
<body>
<xsl:for-each select="document/resume">
<table width="75%">
<tr align="center" bgcolor="#FFFFFF">
<td width="20%">姓名</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td width="20%"><xsl:value-of select="name"/></td>
</tr>
</table>
</xsl:for-each>
</body>
</html>