title: Position of node with attribute
body: <p>How can i select the position of a node with a specific attribute in XSL.<br><br></p>
  
  <p>XML:</p>
  
  <pre><code>&lt;document type="async" page="tabTabel"&gt;
   &lt;tabs&gt;
    &lt;table&gt;
     &lt;row type="header"&gt;
      &lt;column type="text"&gt;href&lt;/column&gt;
      &lt;column type="number"&gt;Mapnr.&lt;/column&gt;
      &lt;column type="mapposition"&gt;Nr.&lt;/column&gt;
      &lt;column type="text"&gt;Description&lt;/column&gt;
      &lt;column type="text"&gt;Document&lt;/column&gt;
      &lt;column type="date"&gt;Date&lt;/column&gt;
     &lt;/row&gt;
  
     &lt;row type="data"&gt;
      &lt;column&gt;&lt;![CDATA[]]&gt;&lt;/column&gt;
      &lt;column&gt;&lt;![CDATA[10]]&gt;&lt;/column&gt;
      &lt;column&gt;&lt;![CDATA[17]]&gt;&lt;/column&gt;
      &lt;column&gt;&lt;![CDATA[Documentation may 2013 .pdf]]&gt;&lt;/column&gt;
      &lt;column&gt;&lt;![CDATA[Documentation may 2013 .pdf]]&gt;&lt;/column&gt;
      &lt;column&gt;&lt;![CDATA[03-04-2014]]&gt;&lt;/column&gt;
     &lt;/row&gt;
  
    &lt;/table&gt;
   &lt;/tabs&gt;
  &lt;/document&gt;
  </code></pre>
  
  <p>Current not-working XSLT:</p>
  
  <pre><code>&lt;xsl:template match="tabs//row[@type='data']&gt;
   &lt;xsl:variable name="mapnumber"&gt;
    &lt;xsl:value-of select="../row[@type='header']/column[@type='mapposition'][position()]" /&gt;
   &lt;/xsl:variable&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>I want the index number/position of the column with type 'mapposition'. How can I do this?</p>