<xsl:template name="SubCatCell">
<xsl:param name="scName"></xsl:param>
<xsl:param name="URL"><xsl:value-of select="aspdnsf:EntityLink(EntityID, SEName, $EntityName, 0, '')" /></xsl:param> <td align="center">
<a href="{$URL}">
<xsl:value-of select="aspdnsf:LookupEntityImage(EntityID, $EntityName, 'icon', 0)" disable-output-escaping="yes" />
</a>
<br/>
<a href="{$URL}">
<xsl:value-of select="$scName" disable-output-escaping="yes"/>
</a>
</td> </xsl:template>
<xsl:template match="Product"> <xsl:if test="position() mod $SubcatGridCols = 1">
<tr>
<xsl:for-each select=". | following-sibling::*[position() < $SubcatGridCols]">
<xsl:call-template name="ProductCell"></xsl:call-template>
</xsl:for-each>
</tr>
</xsl:if> </xsl:template>
<xsl:template name="ProductCell"> <xsl:param name="pName2" select="aspdnsf:GetMLValue(Name)"></xsl:param> <td align="center" style="border:1px solid #ccc;">
<a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}">
<xsl:value-of select="aspdnsf:LookupImage(ProductID, 'product', 'icon', 1)" disable-output-escaping="yes"/>
</a>
<br/>
<a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}">
<xsl:value-of select="$pName2" disable-output-escaping="yes"/>
</a>
</td> </xsl:template>
;里面象select="aspdnsf:LookupImage(ProductID, 'product', 'icon', 1)"
这样的对数据库操作的语句都不知道什么意思,请高手解释一下.小弟感激不尽..55
<xsl:param name="scName"></xsl:param>
<xsl:param name="URL"><xsl:value-of select="aspdnsf:EntityLink(EntityID, SEName, $EntityName, 0, '')" /></xsl:param> <td align="center">
<a href="{$URL}">
<xsl:value-of select="aspdnsf:LookupEntityImage(EntityID, $EntityName, 'icon', 0)" disable-output-escaping="yes" />
</a>
<br/>
<a href="{$URL}">
<xsl:value-of select="$scName" disable-output-escaping="yes"/>
</a>
</td> </xsl:template>
<xsl:template match="Product"> <xsl:if test="position() mod $SubcatGridCols = 1">
<tr>
<xsl:for-each select=". | following-sibling::*[position() < $SubcatGridCols]">
<xsl:call-template name="ProductCell"></xsl:call-template>
</xsl:for-each>
</tr>
</xsl:if> </xsl:template>
<xsl:template name="ProductCell"> <xsl:param name="pName2" select="aspdnsf:GetMLValue(Name)"></xsl:param> <td align="center" style="border:1px solid #ccc;">
<a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}">
<xsl:value-of select="aspdnsf:LookupImage(ProductID, 'product', 'icon', 1)" disable-output-escaping="yes"/>
</a>
<br/>
<a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}">
<xsl:value-of select="$pName2" disable-output-escaping="yes"/>
</a>
</td> </xsl:template>
;里面象select="aspdnsf:LookupImage(ProductID, 'product', 'icon', 1)"
这样的对数据库操作的语句都不知道什么意思,请高手解释一下.小弟感激不尽..55
xsl是XML显示的样式所以aspdnsf是xml文件的一个节点node
ProductandEntityLink 是一个js吧