title: How to break XSLT for-each loop?
body: <p>I know break is not possible in XSLT for-each loop. 
  But from following example, If I want to show 'something' element exist or not. Then I will go through loop and once I got it I want to break loop.</p>
  
  <ol>
  <li>I will make one bool variable say isExist=false;</li>
  <li>I will go through all nodes one by one.</li>
  <li>Once I got 'something', I will change its value to isExist=true</li>
  <li>want to break loop here.</li>
  </ol>
  
  <p>Now I want to break loop bcoz I want to show status as true or false. But If I will not use break after step 3, it will go to loop and make change it to false and I will get status as false. </p>
  
  <p><strong>My question is: If break not possible then How to achieve this result?</strong></p>
  
  <p>I am following this link <a href="https://stackoverflow.com/questions/7531431/how-to-interrupt-an-xslt-for-each-loop-for-not-contiguos-elements">How to interrupt an XSLT for-each loop for not contiguos elements?</a></p>
  
  <p>According to this link I will get first two occurrence but it doen't say 'something' exist or not.</p>
  
  <pre><code>&lt;root&gt;
    &lt;item/&gt;
    &lt;item/&gt;
    &lt;something/&gt;
    &lt;item/&gt;
  &lt;/root&gt;
  </code></pre>