title: test variable string in xsl
body: <p>I'm trying to test if a variable value equals to some string</p>
  
  <pre><code> &lt;xsl:if test="$str1='rtl'"&gt;
  </code></pre>
  
  <p>I know for sure that $str1 value is 'rtl' but the test returns false..
  where do I go worng?</p>
  
  <p>thanks</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>well, the thing was that the variable value was '[[dir]]' and there was another (old) code that runs on this xsl file that replaced all those string to 'rtl' or to 'ltr' so the value was 'rtl' but only after the test...  :) / :(</p>