title: XSL: for each within another for each iterating data
body: <p>I need to perform a cyclical sequence within another public secuanci and get the data of each person and each status, the problem that I have with the code is that it does not iterate the data that I am delivering. I need help in the second for-each when I have empty fields and then I can work with Word content controls</p>
  
  <p>XML file</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;emailList&gt;
    &lt;person&gt;
      &lt;name&gt;name 1&lt;/name&gt;
      &lt;email&gt;g@gmail.com&lt;/email&gt;
      &lt;status&gt;
          &lt;active&gt;1&lt;/active&gt;
          &lt;active&gt;2&lt;/active&gt;
          &lt;active&gt;3&lt;/active&gt;
      &lt;/status&gt;
    &lt;/person&gt;
    &lt;person&gt;
      &lt;name&gt;name 2&lt;/name&gt;
      &lt;email&gt;n@hotmail.com&lt;/email&gt;
      &lt;status&gt;
          &lt;active&gt;4&lt;/active&gt;
          &lt;active&gt;5&lt;/active&gt;
      &lt;/status&gt;
    &lt;/person&gt;
  &lt;/emailList&gt;
  </code></pre>
  
  <p>XSL file</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0"&gt;
  &lt;html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0"&gt;
    &lt;head&gt;
      &lt;title&gt;Email Listing&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;table&gt;
        &lt;tr&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;E-mail Address&lt;/th&gt;
          &lt;th&gt;Status&lt;/th&gt;
        &lt;/tr&gt;
        &lt;xsl:for-each select="emailList/person"&gt;
          &lt;tr&gt;
            &lt;td&gt;&lt;xsl:value-of select="name"/&gt;&lt;/td&gt;
            &lt;td&gt;&lt;xsl:value-of select="email"/&gt;&lt;/td&gt;
            &lt;td&gt;
              &lt;xsl:for-each select="emailList/person/status"&gt;
              &lt;xsl:value-of select="active"/&gt;
              &lt;/xsl:for-each&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
        &lt;/xsl:for-each&gt;
      &lt;/table&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>