title: XSLT if - attribute equals string
body: <p>I'm using a <code>xsl:if</code> to perform a small condition in a larger <code>xsl:template</code> block, and I'd like to test equality of an attribute of the current <code>xsl:template</code> matched node.</p>
  
  <p>The following is not working:</p>
  
  <pre><code>&lt;xsl:template match="sometag[@type='sometype']"&gt;
      ==Sometag==
      &lt;xsl:if test="@something!='hidden'"&gt;something&lt;/xsl:if&gt;
      &lt;!--a lot of other stuff that I don't want to duplicate by multiplying the xsl:templates--&gt;
  &lt;xsl:template&gt;
  </code></pre>
  
  <p>This test seems to be always evaluating to false, maybe I don't have the good syntax?</p>
  
  <p>This XML:</p>
  
  <pre><code>&lt;sometag type="sometype" something="visible"/&gt;
  &lt;sometag type="sometype" something="hidden"/&gt;
  &lt;sometag type="sometype"/&gt;
  </code></pre>
  
  <p>Should give</p>
  
  <pre><code>==Sometag==
  something...
  ==Sometag==
  ==Sometag==
  something...
  </code></pre>