<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="rows">2</xsl:param>
<xsl:template match="/">
<table cellspacing="0" cellpadding="4" border="0" id="table1" width="5000px">
<tr align="center" class="head1">
<xsl:for-each select="/NewDataSet/BranchList">
<td>订单数</td>
<td>金额</td>
</xsl:for-each>
</tr>
<xsl:for-each select="/NewDataSet/CourseSort">
<xsl:call-template name="Type"/>
</xsl:for-each>
</table>
</xsl:template>
<xsl:template  name="Type">
<xsl:param name="SortSN">
<xsl:value-of select="SortSN"/>
</xsl:param>
<tr class="tr1">
<td align="center">
<xsl:value-of select="SortName" />
</td>
<xsl:for-each select="/NewDataSet/C_SortList">
                               <!--这儿能否判断CourseSort表中SortSN和C_SortList表中的SortSN 是否相等-->
                   <xsl:call-template name="List"/>
</xsl:for-each>
</tr>
</xsl:template>
<xsl:template name="List">
<td>
<xsl:value-of select="SCNum" />
</td>
<td>0</td>
</xsl:template>
</xsl:stylesheet>xsl嵌套循环的时候,我想判断一下表CourseSort和表C_SortList中的SortSN是否相等,请各位高手帮帮忙啊,非常着急