Moss2007 XSL 超链接 数据列表行样式
超链接代码如下:
<td class="ms-vb">
<a href="http://www.northwindtraders.com/catalog/{@Category}/{@Title}">
<xsl:value-of select="@Product_x0020_Name" />
</a>
</td>
<td class="ms-vb">
<a href="http://www.northwindtraders.com/catalog/{@Category}/{@Title}">
<xsl:attribute name="title">
<xsl:value-of select="@Description"/>
</xsl:attribute>
<xsl:value-of select="@Product_x0020_Name" />
</a>
</td>
改变数据列表行样式:
<xsl:template name="dvt_1.rowview">
<tr>
<xsl:if test="position() mod 2 = 1">
<xsl:attribute name="class">ms-alternating</xsl:attribute>
</xsl:if>
<td class="ms-vb"><xsl:value-of select="@Category" /></td>
<td class="ms-vb">
<a href="http://www.northwindtraders.com/catalog/{@Category}/{@Title}">
<xsl:attribute name="title">
<xsl:value-of select="@Description"/>
</xsl:attribute>
<xsl:value-of select="@Product_x0020_Name" />
</a>
</td>