title: How to select each child node of a parent in a for-each xslt statement?
body: <p>I want to select all child nodes from the adviceRow element (see xml data hereunder) in a for each loop. </p>
  
  <p>I want to avoid having to write an xslt file like this: </p>
  
  <pre><code>&lt;xsl:for-each select="Tables/routeAdviceTable/routeAdviceRows/adviceRow"&gt;
     &lt;xsl:value-of select="cog" /&gt;
     &lt;xsl:value-of select="current" /&gt;
     &lt;xsl:value-of select="distance" /&gt;
     &lt;xsl:value-of select="dtg" /&gt;
     etc..
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>Because a row can have many cells (and i have lots of similar but contentwise different tables)</p>
  
  <p>Can I work with a nested for-each loop? Something like: </p>
  
  <pre><code>for-each advice row:
      for-each child of advicerow?
  
  &lt;Tables&gt;
  &lt;routeAdviceTable&gt;
      &lt;routeAdviceRows&gt;
          &lt;adviceRow&gt;
              &lt;cog&gt;313&lt;/cog&gt;
              &lt;current&gt;0.3&lt;/current&gt;
              &lt;distance&gt;58.8&lt;/distance&gt;
              &lt;dtg&gt;1374786000000&lt;/dtg&gt;
              &lt;latitude&gt;????&lt;/latitude&gt;
              &lt;longitude&gt;????&lt;/longitude&gt;
              &lt;pressure&gt;22.300001&lt;/pressure&gt;
              &lt;sea&gt;0.2&lt;/sea&gt;
              &lt;sog&gt;14.7&lt;/sog&gt;
              &lt;stw&gt;???&lt;/stw&gt;
              &lt;swell&gt;1.7&lt;/swell&gt;
              &lt;waves&gt;1.711724324567694&lt;/waves&gt;
              &lt;wind&gt;0.8&lt;/wind&gt;
          &lt;/adviceRow&gt;
      &lt;/routeAdviceRows&gt;
  &lt;/routeAdviceTable&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thank you</p>