title: How to generate unique ID for DIV using XSLT
body: <p>so I'm able to get the correct titles from my sitecore project:</p>
  
  <pre><code>&lt;xsl:value-of select="sc:fld('title',.)" /&gt;
  </code></pre>
  
  <p>^ will spit out the titles I need to use as ID's</p>
  
  <p>Now below is my XSL to generate the HTML modals, there will be 9 modals and I need to add a unique ID to each one. How do you correctly use <strong>generate-id</strong> to add unique id's to each modal? Unique id's using the 'title' captured above?</p>
  
  <pre><code>&lt;xsl:for-each select="$TalentUser/item"&gt;
  
      &lt;div class="modal" id="generate-id(sc:fld('title',.))"&gt;
  
          &lt;div class="modal-top"&gt;
  
              &lt;div class="modal-title"&gt;
              &lt;label&gt;&lt;xsl:value-of select="sc:fld('title',.)" /&gt;&lt;/label&gt;
              : Select one or more genres below
              &lt;/div&gt;
  
              &lt;div class="modal-closer"&gt;
              &lt;a class="simplemodal-close" title="Close"&gt;&lt;img src='images/x.png' alt='Close' /&gt;&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>^ This is my latest code and it just spits out 9 divs, all with the same id</p>
  
  <pre><code>&lt;div class="modal" id="generate-id(sc:fld('title',.))"&gt;
  </code></pre>
  
  <p>Trying to get something more like</p>
  
  <pre><code>&lt;div class="modal" id="Actor"&gt;
  &lt;div class="modal" id="DJ"&gt;
  &lt;div class="modal" id="Comedian"&gt;
  </code></pre>
  
  <p>etc..</p>
  
  <p>Any tips appreciated!</p>
  
  <p>Another thing I'm trying is this, however running into escaping issues:</p>
  
  <pre><code>&lt;div class="modal" id="&lt;xsl:value-of select='sc:fld('title',.)' /&gt;"&gt;
  </code></pre>