根据CSS / XSLT中收到的列表创建动态行

时间:2014-09-30 09:44:01

标签: css

我想根据我使用xslt和css接收的列表创建行。目前我的xslt如下所示。在下面的代码中,我使用xsl:for-each读取DataList,如果我的数据列表大小超过7,我想创建一个新行。有人可以帮忙解决这个问题。

<table width="100%">
    <tr>
        <td width="97px" style="font-size:14px;font-weight:bold;color:#9EB7B4;">DATA:</td>

        <td>
            <table style = "width:100%; ">
                <tr style="height:35px">
                    <xsl:for-each select="DataList">
                        <td><a href="#{generate-id(DataName)}" ><xsl:value-of select="DataName"/></a></td>

            </xsl:for-each>
    </tr>
    </table>
    </td>
    </tr>
</table>

0 个答案:

没有答案