title: Sharepoint XSLT Dynamic filtering
body: <p>I'm trying to create a dynamic row filter based on a variable. I have the following code:</p>
  
  <pre><code>&lt;xsl:variable name="filter" select="contain(@Title, 'title1') or contain(@Title, 'title2')"/&gt;
  &lt;xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[string($filter)]" /&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>Anyone tried to do this before?</p>
  
  <p>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')</p>
  
  <p>Any help would be greatly appreciated!</p>