I want to select all child nodes from the adviceRow element (see xml data hereunder) in a for each loop.
I want to avoid having to write an xslt file like this:
<Yes, you can nest for-each loops.
Try this
<xsl:for-each select="Tables/routeAdviceTable/routeAdviceRows/adviceRow">
<xsl:for-each select="./*">
<!--
Your code i.e.
<td class="{name(.)}">
<xsl:value-of select="."></xsl:value-of>
</td>
-->
</xsl:for-each>
</xsl:for-each>
The xpath "." refers to the current node (a.k.a the “context node”), "/*" select all the child nodes of the context node.