title: how to get value in xml attribute through xslt to variable
body: <p>XML:</p>
  
  <pre><code>&lt;sheet&gt;
      &lt;row num="4"&gt;
          &lt;cell num="1"&gt;Customer CODE&lt;/cell&gt;
          &lt;cell num="2"&gt;2213213&lt;/cell&gt;
      &lt;/row&gt;
      &lt;row num="5"&gt;
          &lt;cell num="1"&gt;header&lt;/cell&gt;
          &lt;cell num="4"&gt;12312&lt;/cell&gt;
      &lt;/row&gt;
  &lt;/sheet&gt;
  </code></pre>
  
  <p>I want to set to variable value <code>5</code>. Because in 5th row there is cell[@num='1'] which equals to <code>header</code>.</p>
  
  <p>This is just returns <code>true</code></p>
  
  <pre><code>&lt;xsl:variable name="header_pos" select="//row/cell[@num='1']='header'"/&gt;
  </code></pre>
  
  <p>But I don't know how to get row num value for that cell.. Could you please help</p>