问题还没解决,再次发帖
下面例子,怎么使用<td title="{/Root/Info}">把258abc在td那里提示, 我知道用<xsl:attribute 是可以的,但用{}怎么实现??
http://community.csdn.net/Expert/topic/4910/4910995.xml?temp=.5982172
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<Xml id=xmlItem>
<Root>
<Info>258abc</Info>
</Root>
</Xml>
<xml id=xslItem>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<table border="2">
<tr>
<td title="{/Root/Info}"><xsl:value-of select="/Root/Info" /></td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
</xml>
<div id="mdiv"></div>
<script>
var s
s = xmlItem.transformNode(xslItem);
mdiv.innerHTML = s
</script>
</body>
</html>