我需要檢查節點列表中是否存在特定值。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