在html中,如何用xsl给一个<td value="" >里的属性value赋值?

1<td value="10"></td>

我只会给innerText赋值。

1<td><xsl:value-of select="name"></xsl:value-of></td>

---------------------------------------------------------------

1<td value="{name}"></td>

或者

1<td><xsl:attribute name="value"><xsl:value-of select="name"></xsl:value-of></xsl:attribute></td>

---------------------------------------------------------------

1<xsl:attribute name=""></xsl:attribute>
Published At
Categories with Web编程
comments powered by Disqus