xslt、xml 需要做成用户控件显示、更新 xml中的数据怎么实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?xml version="1.0" encoding="utf-8" ?><Evaluations Name="Evaluations1"> <Evaluation> <Name>选题</Name> <Weights>3</Weights> <Description>主要考察选题的学术价值或应用价值,对国内外研究状况的论述和评价。</Description> <Scores> <Score>10</Score> <Score>9</Score> <Score>8</Score> <Score>7</Score> <Score>6</Score> <Score>5</Score> <Score>4</Score> <Score>3</Score> </Scores> </Evaluation> <Evaluation> <Name>论证</Name> <Weights>5</Weights> <Description>主要考察研究思路、研究内容、重点难点、研究方法、基本观点和创新之处。</Description> <Scores> <Score>10</Score> <Score>9</Score> <Score>8</Score> <Score>7</Score> <Score>6</Score> <Score>5</Score> <Score>4</Score> <Score>3</Score> </Scores> </Evaluation> <Evaluation> <Name>研究基础</Name> <Weights>2</Weights> <Description>主要考察课题负责人的前期相关研究成果和主要参考文献。</Description> <Scores> <Score>10</Score> <Score>9</Score> <Score>8</Score> <Score>7</Score> <Score>6</Score> <Score>5</Score> <Score>4</Score> <Score>3</Score> </Scores> </Evaluation></Evaluations> xslt<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> <xsl:output method="html" indent="yes"/> <xsl:template match="/"> <html> <body> <table cellspacing="3" cellpadding="8"> <tr bgcolor="#AAAAAA"> <td class="heading"> <strong>评价指标</strong> </td> <td class="heading"> <strong>权重</strong> </td> <td class="heading"> <strong>指标说明</strong> </td> <td class="heading"> <strong>专家评分</strong> </td> </tr> <xsl:for-each select="Evaluations/Evaluation"> <tr> <td> <xsl:value-of select="Name"/> </td> <td> <xsl:value-of select="Weights"/> </td> <td> <xsl:value-of select="Description"/> </td> <xsl:for-each select="Scores/Score"> <td> <xsl:apply-templates/> </td> </xsl:for-each> </tr> </xsl:for-each> </table> </body> </html> </xsl:template></xsl:stylesheet> 这个不难,给个链接参考一下http://www.cnblogs.com/cfam/archive/2006/11/17/563441.html http://msdn.microsoft.com/zh-cn/library/66f54faw(VS.80).aspx http://msdn.microsoft.com/zh-cn/library/13ftcwy9(v=vs.100).aspx DataTable 生成 Word excel文件 紧急求组 在线等 关于IIS 中认证方式 页面上放一个textbox,值为"",还是null? 在分割页面里显示不同的页面 很简单的问题,我要取一个当前时间,传到我的后台.请问怎么取当前时间. gridview 多头文件固定前几列 两个不同编码的页面怎么在链接传递中文? 请帮忙。RegularExpressionValidator的使用。 任何实现TOOPTIP? 请教高手:在DataList中添加一个删除前会弹出一个提示框 旅游日历的问题。 有数据但是不显示
<Evaluations Name="Evaluations1">
<Evaluation>
<Name>选题</Name>
<Weights>3</Weights>
<Description>主要考察选题的学术价值或应用价值,对国内外研究状况的论述和评价。</Description>
<Scores>
<Score>10</Score>
<Score>9</Score>
<Score>8</Score>
<Score>7</Score>
<Score>6</Score>
<Score>5</Score>
<Score>4</Score>
<Score>3</Score>
</Scores>
</Evaluation>
<Evaluation>
<Name>论证</Name>
<Weights>5</Weights>
<Description>主要考察研究思路、研究内容、重点难点、研究方法、基本观点和创新之处。</Description>
<Scores>
<Score>10</Score>
<Score>9</Score>
<Score>8</Score>
<Score>7</Score>
<Score>6</Score>
<Score>5</Score>
<Score>4</Score>
<Score>3</Score>
</Scores>
</Evaluation>
<Evaluation>
<Name>研究基础</Name>
<Weights>2</Weights>
<Description>主要考察课题负责人的前期相关研究成果和主要参考文献。</Description>
<Scores>
<Score>10</Score>
<Score>9</Score>
<Score>8</Score>
<Score>7</Score>
<Score>6</Score>
<Score>5</Score>
<Score>4</Score>
<Score>3</Score>
</Scores>
</Evaluation>
</Evaluations>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<html>
<body>
<table cellspacing="3" cellpadding="8">
<tr bgcolor="#AAAAAA">
<td class="heading">
<strong>评价指标</strong>
</td>
<td class="heading">
<strong>权重</strong>
</td>
<td class="heading">
<strong>指标说明</strong>
</td>
<td class="heading">
<strong>专家评分</strong>
</td>
</tr>
<xsl:for-each select="Evaluations/Evaluation">
<tr>
<td>
<xsl:value-of select="Name"/>
</td>
<td>
<xsl:value-of select="Weights"/>
</td>
<td>
<xsl:value-of select="Description"/>
</td>
<xsl:for-each select="Scores/Score">
<td>
<xsl:apply-templates/>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
http://www.cnblogs.com/cfam/archive/2006/11/17/563441.html