I m trying to create a dynamic row filter based on a variable. I have the following code:
<xsl:variable name="filter" select="contain(@Title, title1 ) or contain(@Title, title2 )"/>
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[string($filter)]" />
This unfortunately doesn t seem to work and I end up with all rows. I m guessing the filter doesn t actually get applied, since I can copy and paste the output of the $filter variable, copy and paste it in the Row[] and it works as expected.
Anyone tried to do this before?
In case you re wondering the filter variable is actually created using a template that splits a string like: title1 - title2 - title3 and returns a string like: contain(@Title, title1 ) or contain(@Title, title2 ) or contain(@Title, title3 )
Any help would be greatly appreciated!