+ -
当前位置:首页 → 问答吧 → XSL中记数问题。 解决马上结贴。

XSL中记数问题。 解决马上结贴。

时间:2011-08-11

来源:互联网

XML code

<xsl:for-each select="Table">
<div>
<xsl:attribute name="id">tagContent</xsl:attribute>

<xsl:choose>
                <xsl:when test="??">//第一条记录
<xsl:attribute name="class">tagContent selectTag</xsl:attribute>
                </xsl:when>
                <xsl:otherwise>
<xsl:attribute name="class">tagContent</xsl:attribute>
                </xsl:otherwise>
</xsl:choose>
</div>



循环Table里的记录。怎么在第一条记录中添加 区别其它其它记录的 selectTag样式。谢谢。

作者: alloneday   发布时间: 2011-08-11

作者: alloneday   发布时间: 2011-08-11