我需要检查节点列表中是否存在特定值。XSLT:检查节点列表中是否找到节点
现在我正在使用for-each,我认为这不是有效的。
<xsl:for-each select="$ChildList">
<i><xsl:value-of select="current()"></xsl:value-of> and <xsl:value-of select="$thisProduct"></xsl:value-of></i><br/>
<xsl:if test="string(current())=string($thisProduct)">
<!--<xsl:variable name="flag" select="1"/> -->
<p><b>Found!</b>
</p>
</xsl:if>
</xsl:for-each>
我希望能在一个镜头中得到它。我怎么能够?
非常感谢。这个对我有用。 – Kangkan 2011-12-23 13:33:01