0
我完全不熟悉xsl,能否请你帮助我。以下代码导致3单元格行,形成一个网格。xslt模板 - 在网格中每行更改单元格
<xsl:template match="Entity">
<xsl:if test="position() mod 3 = 1">
<div class="row">
<xsl:for-each select=". | following-sibling::*[position() < 3]">
<xsl:call-template name="SubCatCell" />
</xsl:for-each>
</div>
</xsl:if>
</xsl:template>
我认为这是下动态地产生以下:
<div class="row">
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
</div>
我需要它是每行4个细胞。我需要改变什么?
谢谢你解释这个!我会放弃这一点。 – isosmall 2014-09-03 21:53:15