title: XSLT: If check parameter value
body: <p>Following code in xslt (I've cut out the irrelevant parts, get-textblock is a lot longer and has a lot of parameters which are all passed correctly):</p>
  
  <pre><code>&lt;xsl:template name="get-textblock"&gt;
          &lt;xsl:param name="style"/&gt;
  
          &lt;xsl:element name="Border"&gt;         
              &lt;xsl:if test="$style='{StaticResource LabelText}'" &gt;
                  &lt;xsl:attribute name="Background"&gt;#FF3B596E&lt;/xsl:attribute&gt;
              &lt;/xsl:if&gt;
              &lt;xsl:attribute name="Background"&gt;#FF3B5940&lt;/xsl:attribute&gt;              
          &lt;/xsl:element&gt;
  
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>The style parameter can be either '{StaticResource LabelText}' or '{StaticResource ValueText}' and the background of the border depends on that value.</p>
  
  <p>This if structure fails however, it always draws the FF3B5940 border in my output.xaml file.
  I call the template like this:</p>
  
  <pre><code>&lt;xsl:call-template name="get-textblock"&gt;
      &lt;xsl:with-param name="style"&gt;{StaticResource LabelText}&lt;/xsl:with-param&gt;                    
  &lt;/xsl:call-template&gt;
  </code></pre>
  
  <p>Anyone sees what might be the problem? Thanks.</p>