title: XSLT understand about the generate-id working way
body: <p>Further to this link <a href="https://stackoverflow.com/questions/17301355/xslt-return-selection-of-following-siblings?rq=1">xslt return selection of following siblings</a>
  I Just to want to know, here, what is purpose of this <code>generate-id</code> and how it is making sense in this matching protocol.</p>
  
  <pre><code>&lt;xsl:for-each select="/items/item[@lcn='005417714']"&gt;
    &lt;xsl:for-each select="following-sibling::*[generate-id(preceding-sibling::item[@lcn != ''][1]) = generate-id(current())]"&gt;
    &lt;/xsl:for-each&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>Any idea, pls share.</p>