title: Question on XSLT following-sibling
body: <p>My XML structure looks like this </p>
  
  <pre><code>&lt;COMPANY&gt;
  &lt;COMPANY-DATA&gt;ABC&lt;/COMPANY-DATA&gt;
  &lt;ID&gt;10800&lt;/ISSUE-ID&gt;
  &lt;PROJECT-ID/&gt;
  &lt;/COMPANY-ISSUE-INFO&gt;
   &lt;/COMPANY&gt;
  "COMPANY Node repeats"
  </code></pre>
  
  <p>What I want to do is I want to do I want to check for COMPANY-DATA='ABC' and get its ID</p>
  
  <p>I tried using </p>
  
  <pre><code>&lt;xsl:value-of select="//COMPANY-DATA/.='ABC'/following-sibling::ID/."/&gt; 
  </code></pre>
  
  <p>But this doesn't seem to work and throwing error</p>
  
  <blockquote>
    <p>Expression must evaluate to node-set
    //COMPANY-DATA/.= -->'ABC'&lt;--
    /following-sibling::ID/.</p>
  </blockquote>
  
  <p>Thanks,</p>
  
  <p>Karthik</p>
  
  <p>Edit: I found the solution</p>
  
  <pre><code> **&lt;xsl:value-of select="//COMPANY-DATA[.='ABC']/following-sibling::ID/."/&gt;** 
  </code></pre>
  
  <p>Thanks</p>