title: XSLT multiple nodes same name same level
body: <p>I have the following XML document:</p>
  
  <pre><code>&lt;ReportParameters SP="prRptActivityDetail"&gt;
      &lt;Parameter&gt;
          &lt;Name&gt;Period Start Date&lt;/Name&gt;
          &lt;Type&gt;Date&lt;/Type&gt;
          &lt;Control&gt;DateTextbox&lt;/Control&gt;
          &lt;ControlName&gt;dtePeriodStartDate&lt;/ControlName&gt;
          &lt;Validators&gt;
              &lt;Validator&gt;Required&lt;/Validator&gt;
              &lt;Validator&gt;DataTypeCheck&lt;/Validator&gt;
              &lt;Validator&gt;StartBeforeEnd&lt;/Validator&gt;
          &lt;/Validators&gt;
      &lt;/Parameter&gt;
  &lt;/ReportParameters&gt;
  </code></pre>
  
  <p>I have written an XSLT file to transform the above:</p>
  
  <pre><code>&lt;xsl:for-each select="ReportParameters/Parameter/Validators"&gt;
     &lt;xsl:choose&gt;
         &lt;xsl:when test="Validator='Required'"&gt;
             &lt;span&gt;
                 &lt;REQUIRED VALIDATOR CONTROL HERE&gt;
             &lt;/span&gt;
         &lt;/xsl:when&gt;
         &lt;xsl:when test="Validator='DataTypeCheck'"&gt;
             &lt;span&gt;
                 &lt;DATA TYPE CHECK VALIDATOR CONTROL HERE&gt;
             &lt;/span&gt;
         &lt;/xsl:when&gt;
     &lt;/xsl:choose&gt;
  </code></pre>
  
  <p>I've left out a lot of the XSLT for clarity.</p>
  
  <p>For each parameter control (Period Start Date in this case) I wish to have all of the validators listed (3 in this case) placed on the page as validator controls, but I only get the first one when using for-each. I know why this is but I'm a complete newbie with xslt and don't know the syntax to get around this. </p>
  
  <p>Any help much appreciated,</p>
  
  <p>Rich.</p>