title: For-each loop through radio buttons in XSL
body: <p>I have got the following problem: I have an XML file, from which I am creating an HTML file using XSL. In the XSL file I have a for-each loop, which creates a couple of radio buttons and of course I need the only one button being checked, but after I open my <code>index.php</code> file in my project folder it is possible to check ALL radio buttons. How can I achieve, that after looping only one radio button can be selected? Thank you in advance!</p>
  
  <p>Here the code snippet inside the loop:</p>
  
  <pre><code>&lt;div data-role="fieldcontain"&gt;
      &lt;fieldset data-role="controlgroup"&gt;
          &lt;input type="radio" name="radio-choice" id="radio-choice-3"  /&gt;
          &lt;label for="radio-choice-3"&gt;&lt;xsl:value-of select="text"/&gt;&lt;/label&gt;
      &lt;/fieldset&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>P.S. I suppose it is the ID that does not change and every time a loop goes through the code an independent radio button is created and obviously the attribute <code>controlgroup</code> doesn't group the buttons.</p>