I need to generate a dynamic CAML query for DataView web part. My requirement is similar to what is mentioned at: https://stackoverflow.com/questions/1985560/sharepoint-dynamic-caml-query-problem .
I'm trying to use following Query:
<Query>
<Where>
<In>
<FieldRef Name="ID"/>
<Values>
<xsl:for-each select="tokenize($IDs, ',')">
<Value Type="Text"><xsl:value-of select="."/></Value>
</xsl:for-each>
</Values>
</In>
</Where>
</Query>
But I'm not able to use xsl:for-each in CAML query. What could be wrong?