title: XSLT special condition for first row
body: <p>I am trying to parse an xml file with xslt. </p>
  
  <p>I need to have the values grouped in a div tag.
  First row the div tag should have a special class <code>&lt;div class="firstrow"&gt;</code>
  All other rows should have <code>&lt;div class="tabpanel"&gt;</code>.</p>
  
  <p>How can I assign the class="firstrow" for first row and all other rows with class="tabpanel"?</p>
  
  <p>source xml</p>
  
  <pre><code>&lt;row&gt;
     &lt;column1&gt;ABC&lt;/&lt;column1&gt;
     &lt;column2&gt;ABC&lt;/&lt;column2&gt;
  &lt;/row&gt;
  &lt;row&gt;
     &lt;column1&gt;123&lt;/&lt;column1&gt;
     &lt;column2&gt;123&lt;/&lt;column2&gt;
  &lt;/row&gt;
  &lt;row&gt;
     &lt;column1&gt;234&lt;/&lt;column1&gt;
     &lt;column2&gt;234&lt;/&lt;column2&gt;
  &lt;/row&gt;
  </code></pre>
  
  <p>Output I want</p>
  
  <pre><code>&lt;div class="firstrow"&gt;
     ABC
     ABC
  &lt;/div&gt;
  &lt;div class="tabpanel"&gt;
     123
     123
  &lt;/div&gt;
  &lt;div class="tabpanel"&gt;
     234
     234
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks</p>