经测试,并没有问题!
测试版本v5.5正式版
sql语句
外层:
SELECT TOP 10 ID,FolderName FROM [KS_Class] Where ChannelID=1 and tj=1 and ClassType=1 ORDER BY FolderOrder
内层:
SELECT TOP 10 id,foldername FROM [KS_class] Where Tn='{R:ID}' Order By folderorder Desc
循环体
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<div class="class_loop">
<xsl:for-each select="xml/outerlist/outerrow">
<div class="loop_content">
<div class="loop_title">
<span class="classname"><a href="{@classlink}"><xsl:value-of select="@foldername" disable-output-escaping="yes" /></a></span>
<span class="class_more"><a href="{@classlink}">更多</a></span>
</div>
<div class="loop_list">
<ul>
<xsl:for-each select="innerlist/innerrow">
<li><a href="{@classlink}" title="{@foldername}" target="_blank">{KS:CutText(<xsl:value-of select="@foldername" disable-output-escaping="yes"/>,20,"...")}</a></li>
</xsl:for-each>
</ul>
</div>
</div>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>